Skip to content

Document map preset filter feature#170

Open
Ekhorn wants to merge 2 commits into
mainfrom
document/map-preset-filter
Open

Document map preset filter feature#170
Ekhorn wants to merge 2 commits into
mainfrom
document/map-preset-filter

Conversation

@Ekhorn

@Ekhorn Ekhorn commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Changes

  • Adds example and short description of the preset filters to "appearance page" documentation page
  • Adjusts the language used for the geocoding codeblocks to javascript for better highlighting.

Notes

I tried to use js-templates for the codeblocks but that didn't seem to work. Might need to update prism.js for that.

@Ekhorn Ekhorn self-assigned this Jun 23, 2026
@Ekhorn Ekhorn requested review from a team and Miggets7 and removed request for Miggets7 June 23, 2026 15:57
```

**Map - Preset filters:**
This configures map preset filters, which add a dropdown on the map page to quickly filter the visible assets by type, attribute values, realm, and more using an `AssetQuery`. A live matching-asset count badge is shown per filter option. Options without a `label` will have an auto-derived label based on the type names and attribute values. Selected filters are persisted across page reloads (per user and realm) and reset on each new login session. You can also specify an optional `default` boolean or an array of `realms` to limit where the filter applies. Note that unsupported query fields like `orderBy`, `limit`, and `offset` will result in a warning.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Maybe we can reference the AssetQuery somehow? Reference to the class in the code? Something better maybe?

Also we also include an example of a default filter and a filter limited to a specific realm.

@wborn

wborn commented Jun 24, 2026

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: 8c920176b8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

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