Skip to content

feat: map - #8931

Open
mindspank wants to merge 14 commits into
mainfrom
feat/map
Open

feat: map#8931
mindspank wants to merge 14 commits into
mainfrom
feat/map

Conversation

@mindspank

Copy link
Copy Markdown
Contributor
  • Needs new icon
  • Needs a cleaner way to disable interactions in edit or new interaction patters in edit in general.
  • Token is public but has limited scopes. Can be refreshed via the mapbox console.
  • If we go deeper on themes I would suggest moving most of the style related settings to themes.
  • base style is perhaps a bit boring but optimized for legibility

Checklist:

  • Covered by tests
  • Ran it and it works as intended
  • Reviewed the diff before requesting a review
  • Checked for unhandled edge cases
  • Linked the issues it closes
  • Checked if the docs need to be updated. If so, create a separate Linear DOCS issue
  • Intend to cherry-pick into the release branch
  • I'm proud of this work!

@mindspank
mindspank requested a review from djbarnwal February 26, 2026 08:57
@djbarnwal

Copy link
Copy Markdown
Member

This PR would require some refactoring. Moving to draft for now. Will pick it up from here later when prioritized.

@djbarnwal
djbarnwal marked this pull request as draft March 17, 2026 11:43
@nishantmonu51

Copy link
Copy Markdown
Collaborator

@djbarnwal : Can you please take this one up ?

@nishantmonu51 nishantmonu51 added Type:Feature New feature request Area:Dashboard Size:L Large change: 500-1,999 lines labels Jun 30, 2026
@djbarnwal
djbarnwal marked this pull request as ready for review July 24, 2026 10:31
djbarnwal and others added 3 commits August 18, 2026 17:11
The previous lockfile regen ran with the repo's `.npmrc` `prefer-offline=true`,
so npm resolved the tree from the local cache: `resolved`/`integrity` fields
were stripped and platform-specific optional dependencies outside darwin were
dropped. CI's `npm ci` on linux-x64 then had no `@rolldown/binding-linux-x64-gnu`
to install, so every step loading `svelte.config.js` failed with
"Cannot find native binding".

Restored the lockfile from `main` and regenerated with `--prefer-online`, leaving
just the `mapbox-gl` entry as the diff.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@djbarnwal
djbarnwal requested review from AdityaHegde and removed request for djbarnwal August 19, 2026 13:16
component.specStore.update((s) => ({ ...s }));
}

$: if (mapReady && rows.length > 0 && mapRenderDeps) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

rows.length check is meant for query is loaded or not? It skips update if filters results in 0 rows. Better to check corresponding isPending directly

map.setPaintProperty("polygons-outline", "line-color", outlineColor);
map.setPaintProperty("polygons-outline", "line-width", 2);

if (geoJson.features.length > 0) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This will update the focus on each filter change, feels intrusive.

How about we allow to set initial view for the map in editing? We never call fitBounds after initial load.

let mapContainer: HTMLDivElement;
let map: mapboxgl.Map | null = null;

const MAPBOX_TOKEN =

@AdityaHegde AdityaHegde Aug 26, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We need a better way to manage the token. @himadrisingh any suggestions?

if (cm) measures.push({ name: cm });
if (spec.size_measure) measures.push({ name: spec.size_measure });

const enabled =

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Does it make sense to query without a measure? If not then lets check measures as well?

@@ -0,0 +1,403 @@
<script lang="ts">

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Since this a new component, lets move to svelte5

@@ -0,0 +1,109 @@
<script lang="ts">

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Same here, move to svelte5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area:Dashboard Size:L Large change: 500-1,999 lines Type:Feature New feature request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants