Skip to content

Conversation

@matkoniecz
Copy link

No description provided.

matkoniecz and others added 15 commits November 4, 2025 13:14
* Material of window frames.

* Reorder items on dropdown list for window materials.

* fix category
* add construction_material_window_frame map style

* apply line trick to planning_combined styling
…ow_frames_map_style

add construction_material_window_frame map style
Co-authored-by: Copilot <[email protected]>
…ge-overlay-button-formatting

Change overlay button formatting.
…ature/upstream_merge

with adjustment to cover all switchers
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR merges upstream changes that add a new "window frame material" feature to the building construction data model and standardizes UI button labels across map overlay controls.

Key Changes

  • Added database fields and UI for capturing window frame material data (wood, metal, plastic, other, or no windows)
  • Standardized map overlay toggle button labels to use bracketed [on]/[off] suffixes for consistency
  • Updated map style colors for "Other Metal" construction materials and "World Heritage Site" designations

Reviewed changes

Copilot reviewed 28 out of 28 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
migrations/057.window_frame_material.up.sql Adds three new database columns for window frame material data and source tracking
migrations/057.window_frame_material.down.sql Provides rollback script to remove window frame material columns
app/src/tiles/dataDefinition.ts Adds SQL query to generate map tiles for window frame material visualization
app/src/frontend/config/tileserver-config.ts Registers the window frame material tileset type
app/src/frontend/config/data-fields-config.ts Defines field configuration including dropdown options and source tracking fields
app/src/frontend/config/category-maps-config.ts Defines map legend and color scheme for window frame materials, updates colors for "Other Metal" and "World Heritage Site"
app/src/frontend/building/data-containers/construction-design.tsx Adds UI components for editing and verifying window frame material data
app/src/api/config/dataFields.ts Enables edit and verify permissions for the new window frame material fields
app/map_styles/polygon.xml Implements map styling rules for window frame materials with appropriate colors and borders
app/src/frontend/map/*-switcher.tsx (multiple files) Standardizes button text to use [on]/[off] bracketed notation for all map overlay toggles
app/src/frontend/map/legend.css Adds minimum height to legend elements for better visual consistency

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

<button className="btn btn-outline btn-outline-dark"
type="submit">
{(creative === 'enabled')? 'Enterprise Zones on' : 'Creative Enterprise Zones off'}
{(creative === 'enabled')? 'Creative Enterprise Zones [on]' : 'Creative Enterprise Zones [off]'}
Copy link

Copilot AI Dec 16, 2025

Choose a reason for hiding this comment

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

The enabled and disabled states of this button display inconsistent text. When enabled, it shows "Creative Enterprise Zones [on]" but the original disabled text was "Creative Enterprise Zones off". However, the removed line shows "Enterprise Zones on" which suggests the enabled state text was incomplete. This creates a mismatch where the button labels differ not just in their on/off state but in the feature name itself. The button should consistently use either "Enterprise Zones" or "Creative Enterprise Zones" for both states.

Suggested change
{(creative === 'enabled')? 'Creative Enterprise Zones [on]' : 'Creative Enterprise Zones [off]'}
{(creative === 'enabled') ? 'Creative Enterprise Zones on' : 'Creative Enterprise Zones off'}

Copilot uses AI. Check for mistakes.
@matkoniecz matkoniecz merged commit 14f9adf into colouring-cities:master Dec 16, 2025
8 checks passed
@matkoniecz matkoniecz deleted the feature/upstream_merge branch December 16, 2025 08:12
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.

1 participant