mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-04 10:24:02 +00:00
feat(ui): render the Street Level panel from a store
The panel's markup moves, verbatim, into StreetLevelPanel, which renders the presentation StreetLevelControls publishes to the gev-street-level store, with the EXPAND state. The controls keep their listeners, full screen and popover handling, focus moves, resizing and transitions. The SINCE readout follows the thumb while dragging and shows the recorded window once the thumb is there; the thumb never moves under the user's hand. Text the panel now renders itself drops its data-i18n markers. Panels lifted out of a view live in src/ui/views/panels/, kept out of Prettier like the views.
This commit is contained in:
1 parent
3a2acf9b0f
commit
e6aee52ea0
8 files changed
+500
-528
No files matched your search
@@ -84,7 +84,9 @@ They contain no application state.
|
||||
`SceneShotList` over the `gev-scenes` store), Weather (done: the owner
|
||||
renders `WeatherReadout` from the view it computes), Recent imagery
|
||||
(done: `RecentImageryReadout` and its day cards, the same way),
|
||||
Street level, CCTV, Layers, Display, Context and Radio, the command dock,
|
||||
Street level (done: `StreetLevelPanel` renders the `gev-street-level`
|
||||
store that `StreetLevelControls` publishes to; the controls keep their
|
||||
listeners, EXPAND, focus and resizing), CCTV, Layers, Display, Context and Radio, the command dock,
|
||||
the phone shell, then Cockpit. Layers that write into the right rail
|
||||
directly gain a slot instead.
|
||||
|
||||
@@ -100,6 +102,12 @@ They contain no application state.
|
||||
`@vue/test-utils` and `happy-dom`. `npm test` registers the loader; to run
|
||||
one file that reaches a component (including anything importing the
|
||||
shell), use `node --import=./build/registerVue.js --test <file>`.
|
||||
- Never pass happy-dom nodes to `assert.equal` or `deepEqual`: a failure
|
||||
prints both operands, and a node reaches the whole page and window, which
|
||||
runs the process out of memory. Compare nodes with `assertSameNode()`
|
||||
(`src/testSupport/domAssert.mjs`).
|
||||
- Panels lifted out of a view keep its verbatim markup in
|
||||
`src/ui/views/panels/`, which Prettier leaves alone like the views.
|
||||
- Visual parity: before/after screenshots of every panel at desktop and phone
|
||||
widths, in the default and Cyber themes, with the rail as the only expected
|
||||
difference.
|
||||
|
||||
Reference in new issue
Block a user