Minh/UI ux - #58
Merged
Merged
Minh/UI ux#58
Conversation
- 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 -
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.