Skip to content

Details modal#662

Merged
digitaltom merged 5 commits intomainfrom
details_modal
Mar 4, 2026
Merged

Details modal#662
digitaltom merged 5 commits intomainfrom
details_modal

Conversation

@digitaltom
Copy link
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings March 4, 2026 15:02
Copy link
Contributor

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

Updates the feature details/edit modal UI to use tabbed sections (Details/Properties/Style/Advanced) and adjusts related JS/CSS and feature specs accordingly.

Changes:

  • Reworked feature modal header + edit controls into tab-style navigation and sectional edit UI (properties/style/advanced).
  • Updated Stimulus controllers + maplibre feature detail rendering to support the new tab behavior.
  • Adjusted feature/system specs and modal styling to match new UI labels and interactions.

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
spec/support/feature_helpers.rb Changes screenshot output directory path.
spec/features/map_layers_spec.rb Updates expected UI text from the modal ("Edit feature" → "Properties").
spec/features/feature_edit_spec.rb Updates selectors/click flows to use new tab buttons and new title/label behavior.
spec/features/feature_details_spec.rb Uses private map path and improves modal resize assertion.
app/views/maps/modals/feature/_edit_ui.haml Introduces edit sections (properties/style/advanced) and reorganizes edit UI.
app/views/maps/modals/feature/_edit_raw.haml Adjusts raw JSON editor visibility/spacing.
app/views/maps/modals/_feature.haml Replaces button group with tab buttons and tweaks header/meta layout.
app/javascript/maplibre/feature.js Updates details view to mark “Details” tab active and hide edit UI.
app/javascript/controllers/feature/modal_controller.js Implements tab switching logic and advanced-tab raw JSON initialization.
app/javascript/controllers/feature/edit_controller.js Replaces label editing with “Show title on map” toggle logic.
app/assets/stylesheets/modals.css Tweaks pull-button positioning on small screens.
app/assets/stylesheets/feature.css Redesigns modal look and adds styles for tabs/sections/cards.

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

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@coveralls
Copy link

coveralls commented Mar 4, 2026

Pull Request Test Coverage Report for Build 22678949708

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 99.365%

Totals Coverage Status
Change from base Build 22649848129: 0.0%
Covered Lines: 782
Relevant Lines: 787

💛 - Coveralls

digitaltom and others added 2 commits March 4, 2026 17:17
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@digitaltom digitaltom merged commit 7a83157 into main Mar 4, 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.

3 participants