Skip to content

Minh/UI ux - #58

Merged
Nekoishere merged 14 commits into
mainfrom
minh/ui-ux
Jun 29, 2026
Merged

Nekoishere merged 14 commits into
mainfrom
minh/ui-ux

Conversation

@stardust-zip

Copy link
Copy Markdown
Owner

No description provided.

- Rebuilt assets page with list-first layout: inline location browser
  (left) + map/detail panel (right), KPI strip, grouped site/building rows
- Removed archive/active filter UI and stopped fetching archived locations
- Lifted backend location limit cap (le=1000 → unlimited, default None)
- Removed LOCATION_INDEX_LIMIT constant and includeArchived flags
- Added assets-page-redesign.md plan document
- Rename right panel from Asset Map to Asset Details with building icon
- Remove OSM map iframe, replace with details-only view
- Keep fact grid, action buttons, and assigned operators
- Remove models, child assets, and metadata JSON sections
- Remove asset-detail-hd (redundant with card title)
- Delete unused: ModelDetailModal, detailModel state, selectedModels,
  shortJson, displayModelName import, AssignedOperator-related code
- Add margin-top to asset-kpi-strip for spacing from page header
- Move Open OSM button to card header, show only for buildings with coords
- Remove Anomaly button from asset details card
- Remove asset-detail-hd (name/ID redundant with card title)
- Rename Type fact to Primary Usage Space, swap order with Site
- Keep Locations title fixed across site and building views, remove subtitle
- Remove icon from operator Edit button
- Add margin-top to KPI strip for spacing from page header
- Clean up dead code: useRouter, anomalyHref, metadataString
DEFAULT_SIM_BOUNDS used new Date() which produces local-timezone timestamps.
For UTC+8 browsers this was 8h behind the UTC midnight the backend queries from,
causing a gap from 0:00-8:00 on Oct 1 and a spurious futurePoints line in the
first 6 hours of Jan 1 2018. Switch to Date.UTC() so bounds always match the
backend's UTC data range exactly.
Resets simNow to the beginning of the simulation range and stops playback
whenever a user signs in, so every session starts from a clean state.
- Replace Active Anomalies card with Current Consumption (latest actual
  reading vs expected baseline) and move it to first position
- Add Avg. Consumption Today/Yesterday and Avg. Forecast Next 6h cards
  computed from the selected building timeline and simNow
- Rename Critical Alerts to Critical Alerts Today, scoped to the current
  simulated UTC day
- Show - with no delta footer when no building is selected
- Hide KPI footer in KpiCard when value is -
@Nekoishere
Nekoishere merged commit eec1653 into main Jun 29, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants