Skip to content

withdrawn - #277

Closed
pjeweb wants to merge 0 commit into
mainfrom
feat/count-aggregator-water-level-pegel-mnn
Closed

withdrawn#277
pjeweb wants to merge 0 commit into
mainfrom
feat/count-aggregator-water-level-pegel-mnn

Conversation

@pjeweb

@pjeweb pjeweb commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Withdrawn.

City-specific Pegel / mNN label strings stay in the plan app. They should not land in @mapsight/count-aggregator-ui. If this grouping is shared later, it belongs on the platform, not hardcoded in the OSS UI package.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The chart flow does not yet separate mixed Pegel/mNN selections, and some excluded labels are misclassified.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Adds station-label classification and formatting helpers intended to keep Pegel and mNN stations in separate comparison charts.

Changes:

  • Classifies and formats water-level station labels.
  • Adds grouping helpers, tests, and public exports.
  • Adds two patch changesets.
File summaries
File Summary
packages/count-aggregator-ui/src/lib/stations.ts Adds classification and grouping helpers. The chart flow does not use the grouping helper (moderate, 2 votes), and exclusion predicates run after mNN classification (moderate, 2 votes).
packages/count-aggregator-ui/src/lib/stations.test.ts Adds classification and grouping tests.
packages/count-aggregator-ui/src/index.ts Exports the helpers, but the production chart path does not consume them, leaving mixed selections combined (moderate, 1 vote).
.changeset/water-level-pegel-mnn.md Adds a patch release note.
.changeset/water-level-pegel-mnn-swap.md Adds a patch release note.
Review details

Suppressed comments (1)

packages/count-aggregator-ui/src/index.ts:74

  • Within this package these helpers are only exported; no production chart path calls them. ResultStep and OverviewChartPanel still pass the complete station ID list to one TimeSeriesChart, so a mixed Pegel/mNN selection continues to render one combined chart rather than separate comparison charts. Apply the grouping in the wizard/overview chart data-fetch and render flow, or adjust the PR scope and description.
	stationIdsForWaterLevelGroup,
  • Files reviewed: 5/5 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +31 to +48
if (
/\bmnn\b/.test(normalized) ||
/\bm\.?\s*nn\b/.test(normalized) ||
normalized.includes("wasserstand mnn")
) {
return "mnn";
}

if (
/\b(ow|uw)\b/.test(normalized) ||
normalized.includes("oberwasser") ||
normalized.includes("unterwasser") ||
normalized.includes("geländeoberkante") ||
normalized.includes("tagesmittel") ||
/[⌀∅ø]\s*\/\s*d/.test(normalized)
) {
return null;
}
Comment on lines +77 to +81
export function stationIdsForWaterLevelGroup(
stationsById: ReadonlyMap<number, Station>,
group: WaterLevelComparisonGroup,
): number[] {
const ids: number[] = [];
@pjeweb

pjeweb commented Sep 11, 2026

Copy link
Copy Markdown
Contributor Author

Copilot’s note that the package wizard still draws one combined chart is expected for this extraction.

stationIdsForWaterLevelGroup / waterLevelComparisonGroupFromLabel are host helpers. Stadtplan’s CityMapDataPanel already splits Pegel vs mNN with them. Wiring the same split into this package’s own ResultStep / OverviewChartPanel would be a separate change.

@pjeweb pjeweb closed this Sep 11, 2026
@pjeweb
pjeweb force-pushed the feat/count-aggregator-water-level-pegel-mnn branch from 75f6635 to d04c5e0 Compare September 11, 2026 19:57
@pjeweb pjeweb changed the title feat(count-aggregator-ui): keep Pegel and mNN on separate comparison charts withdrawn Sep 11, 2026
@pjeweb
pjeweb deleted the feat/count-aggregator-water-level-pegel-mnn branch September 11, 2026 19:57
@changeset-bot

changeset-bot Bot commented Sep 11, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: d04c5e0

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

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