Skip to content

Conversation

@Arbyhisenaj
Copy link
Member

Screenshot 2026-01-21 at 15 26 49

Description

Motivation and Context

How Can It Be Tested?

How Will This Be Deployed?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I've checked the spec (e.g. Figma file) and documented any divergences.
  • My code follows the code style of this project.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I've updated the documentation accordingly.
  • Replace unused checkboxes with bullet points.

@Arbyhisenaj Arbyhisenaj requested a review from joaquimds January 21, 2026 15:30
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

This PR adds marker clustering and coloring features to a mapping application, allowing users to switch between cluster and heatmap display modes for data sources, and customize colors for markers, folders, and placed markers through a context menu color picker.

Changes:

  • Added MarkerDisplayMode enum with Clusters and Heatmap options, and color configuration fields to the map schema
  • Implemented a ColorPalette component for color selection with a predefined palette
  • Added context menu options for changing display modes and colors across markers, folders, and data sources
  • Updated map rendering to support both cluster and heatmap visualizations with custom colors

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
src/server/models/Map.ts Added MarkerDisplayMode enum and new optional fields to mapConfigSchema for display modes and color customization
src/server/trpc/routers/map.ts Extended map config update to include new marker display modes and color fields
src/components/ColorPalette.tsx New reusable color picker component with 12-color default palette
src/app/map/[id]/components/controls/MarkersControl/SortableMarkerItem.tsx Added color selection submenu to marker context menu
src/app/map/[id]/components/controls/MarkersControl/SortableFolderItem.tsx Added folder color selection that propagates to all markers in folder
src/app/map/[id]/components/controls/MarkersControl/MarkersList.tsx Updated drag-and-drop logic to inherit folder colors when markers are moved, added color to drag overlay
src/app/map/[id]/components/controls/MarkersControl/MarkerDragOverlay.tsx Updated to display custom colors in drag overlay
src/app/map/[id]/components/controls/DataSourceItem.tsx Added display mode toggle (Clusters/Heatmap) and color selection for data sources
src/app/map/[id]/components/controls/ControlWrapper.tsx Extended to support custom colors for control visual indicators
src/app/map/[id]/components/PlacedMarkers.tsx Updated to use custom marker colors from config in map rendering
src/app/map/[id]/components/Markers.tsx Implemented heatmap display mode, restored hexToRgb utility functions, applied custom colors to clusters and heatmaps

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

Copy link
Contributor

Copilot AI commented Jan 25, 2026

@ev-sc I've opened a new pull request, #289, to work on those changes. Once the pull request is ready, I'll request review from you.

Co-authored-by: ev-sc <4164774+ev-sc@users.noreply.github.com>
Copilot AI and others added 2 commits January 25, 2026 18:55
…e code

Co-authored-by: ev-sc <4164774+ev-sc@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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

Copilot reviewed 16 out of 16 changed files in this pull request and generated 3 comments.


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

ev-sc and others added 6 commits January 25, 2026 20:01
Add hex color validation to prevent invalid RGBA strings
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…t.tsx

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…nd add new MarkersList component for enhanced marker management
@ev-sc ev-sc merged commit 3105bda into main Jan 25, 2026
1 check passed
@ev-sc ev-sc deleted the feat/clustering-and-colouring branch January 25, 2026 19:46
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