Repository navigation
feat(web): 分项能耗 joins 能耗分析 as 用电去向 - #567
Merged
Merged
Conversation
Both pages read the same period of HVAC electricity with the same period switch, compare and export; one asked how much and what it cost, the other where it went, and an operator checking a high day had to pick the period again on the second page. 能耗分析 now shows the flow and each machine's energy under the period chart, with the category trend, the TOU cost and the detail table as tabs. The year view splits by month too; the export appends the machines. Page subtitles say what 能耗分析 and 用电负荷 each answer. The breakdown route is removed.
…ded current bars Every search-only navigation (a tab, a period, a metric, a side sheet) reset the window to the top, because the router resets scroll on every navigation; the router now resets it only when the page changes. On the energy page the flow and the machines' table sat side by side and the table needed a horizontal scrollbar at 1440 px, so the flow is above it again. The period chart's current bars are stacked with the running bucket and lost their rounded top while the comparison bars kept theirs.
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.
Summary
能源 能耗分析 /energy-analysis/consumption?period&metric&view=trend|tou|detail - 分项能耗 /energy-analysis/breakdown 用电负荷Both pages read the same period of electricity with the same switch, compare and export; one answered how much and what it cost, the other where it went.
useEnergyBreakdownnow acceptsyear(monthly buckets). Subtitles state what each page answers: 能耗分析「用了多少电、用在哪台设备、花了多少钱」, 用电负荷「空调总电表现在的负荷、最高负荷和接下来的预测」.Evidence
web:shell:test40,web:model:test113,web:e2e56 passed.breakdown.spec.tsfolded intoconsumption.spec.ts: flow caption, machine rows, unallocated, trend chart, two hourly device reads, a monthly split for 本年, unmetered machine; TOU and detail assertions now open their tabs.Merge Danger
Door: two-way — frontend only.
Blast Radius:
/energy-analysis/breakdown404s (no redirect); sidebar loses one item.