Skip to content

feat(filter): migrate plugin#436

Open
oeninghe-dataport wants to merge 64 commits intonextfrom
vue3/migrate-plugin-filter
Open

feat(filter): migrate plugin#436
oeninghe-dataport wants to merge 64 commits intonextfrom
vue3/migrate-plugin-filter

Conversation

@oeninghe-dataport
Copy link
Copy Markdown
Collaborator

@oeninghe-dataport oeninghe-dataport commented Jan 2, 2026

Summary

The filter plugin is migrated to POLAR@3.

Instructions for local reproduction and review

  • Open snowbox.
  • Enable the layer "Anliegen (MML)" and move the map to Hamburg, Germany.
  • Use the filters and test them.

Additional hints

Layout flaws

The layout of the filter dialog is somehow broken.
It is larger than the map's height (in the snowbox).
You may scroll it, but you cannot see the bottom of the scrollbar, as it overflows.

This, however, is, as far as I can tell, not a filter-specific problem but located probably in iconMenu.
Therefore, it is not considered here.

Fixed with #493

Styling

The general styling for this component is inspired by some (deprecated) UI/UX drafts.

Date range picker

The date range picker consists of two browser-native date pickers.
This control is supported by all major browsers (https://caniuse.com/input-datetime).

This improvised date range picker already supports limiting the dates (up to or starting with today's date).
An advanced implementation (as before with Vuetify) is left open to another PR.

Relevant tickets, issues, et cetera

Closes #370

@oeninghe-dataport oeninghe-dataport added this to the POLAR@3 milestone Jan 2, 2026
@oeninghe-dataport oeninghe-dataport self-assigned this Jan 2, 2026
@oeninghe-dataport oeninghe-dataport added the refactor Refactoring of previous code label Jan 2, 2026
@oeninghe-dataport oeninghe-dataport linked an issue Jan 2, 2026 that may be closed by this pull request
@oeninghe-dataport oeninghe-dataport force-pushed the vue3/migrate-plugin-filter branch from bd44e84 to 4640a4e Compare January 2, 2026 13:02
dependabot bot and others added 2 commits January 5, 2026 17:07
Bumps [@commitlint/cli](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/cli) from 20.2.0 to 20.3.0.
- [Release notes](https://github.com/conventional-changelog/commitlint/releases)
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/@commitlint/cli/CHANGELOG.md)
- [Commits](https://github.com/conventional-changelog/commitlint/commits/v20.3.0/@commitlint/cli)

---
updated-dependencies:
- dependency-name: "@commitlint/cli"
  dependency-version: 20.3.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@oeninghe-dataport oeninghe-dataport force-pushed the vue3/migrate-plugin-filter branch from 4640a4e to 22cd58a Compare January 5, 2026 16:09
@oeninghe-dataport oeninghe-dataport force-pushed the vue3/migrate-plugin-filter branch 2 times, most recently from a9658ca to 9a5d3cf Compare January 7, 2026 15:33
@oeninghe-dataport oeninghe-dataport force-pushed the vue3/migrate-plugin-filter branch from 9a5d3cf to 2fa72f1 Compare January 7, 2026 15:38
@oeninghe-dataport oeninghe-dataport marked this pull request as ready for review January 7, 2026 15:45
Comment thread src/plugins/filter/store.ts Outdated
@dopenguin dopenguin removed the request for review from warm-coolguy January 19, 2026 10:33
@github-actions
Copy link
Copy Markdown

github-actions bot commented Jan 19, 2026

PR Preview Action v1.8.0

QR code for preview link

🚀 View preview at
https://Dataport.github.io/polar/pr-preview/pr-436/

Built to branch gh-pages at 2026-04-15 15:23 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

Copy link
Copy Markdown
Member

@dopenguin dopenguin left a comment

Choose a reason for hiding this comment

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

  • I can't seem to be able to tab through the selection of the buttons. Please take a look at this. This probably results from the <input>s being hidden and only the labels being displayed. Not sure how a ScreenReader would interpret them as well. Maybe using an actual button here seems reasonable?
  • Selecting a BlockButton makes it jiggle a bit, which is annoying. This should be fixable by reserving some space for the border.
  • Implement the old UI for layout: 'nineRegions'. As we didn't have a final draft yet, the previous layout should be available.

I've also attached a patch which adds the pointer-events to the correct elements.

🏓 @oeninghe-dataport

Comment thread examples/iceberg/tsconfig.json
Comment thread src/plugins/filter/types.ts Outdated
Comment thread src/plugins/filter/types.ts Outdated
Comment thread src/plugins/filter/components/FilterUI.ce.vue
Comment thread src/plugins/filter/components/FilterLayerChooser.ce.vue Outdated
Comment thread src/plugins/filter/components/FilterTime.ce.vue Outdated
Comment thread src/plugins/filter/components/FilterUI.spec.ts Outdated
Comment thread src/plugins/filter/components/FilterTime.ce.vue
Comment thread src/lib/getVectorSource.ts
Comment thread src/plugins/filter/store.ts Outdated
@oeninghe-dataport
Copy link
Copy Markdown
Collaborator Author

Could you please add an example to iceberg?

b893b49

The filter in nineRegions should look like the previous UI, like I mentioned before. So please add the missing expansion panels.

Before: Bildschirmfoto 2026-02-19 um 16 59 39

Now: Bildschirmfoto 2026-02-19 um 17 00 48

Oh, right, I missed that one. Is changed with 9476c57

@oeninghe-dataport
Copy link
Copy Markdown
Collaborator Author

🏓 @dopenguin

Copy link
Copy Markdown
Member

@dopenguin dopenguin left a comment

Choose a reason for hiding this comment

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

Could you please add an example to iceberg?

b893b49

The filter in nineRegions should look like the previous UI, like I mentioned before. So please add the missing expansion panels.
Before: Bildschirmfoto 2026-02-19 um 16 59 39
Now: Bildschirmfoto 2026-02-19 um 17 00 48

Oh, right, I missed that one. Is changed with 9476c57

All the following things are related to the implementation in layout: 'nineRegions'.

There is some empty space on the right:
Bildschirmfoto 2026-02-23 um 17 52 48

The window jiggles when hovering the date input:
jiggle

The spacing for the date input looks off. As in: not enough space on top, too much on the bottom. Also, the <hr> looks off if no other accordion follows.
Bildschirmfoto 2026-02-23 um 17 57 26

🏓 @oeninghe-dataport

Comment thread src/plugins/filter/components/FilterCategory.ce.vue Outdated
Comment on lines +31 to +34
/**
* An icon that is assigned to the value for filtering.
*/
icon?: Icon
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This can only be used in layout: 'standard', correct?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Correct. f2071ff

Copy link
Copy Markdown
Member

@dopenguin dopenguin Apr 13, 2026

Choose a reason for hiding this comment

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

Linking to {@link MapConfiguration.layout | layout} should be the way here.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@dopenguin
Copy link
Copy Markdown
Member

dopenguin commented Apr 7, 2026

@oeninghe-dataport pls @ me once you've tackled all the things!

@oeninghe-dataport
Copy link
Copy Markdown
Collaborator Author

All the following things are related to the implementation in layout: 'nineRegions'.

There is some empty space on the right: Bildschirmfoto 2026-02-23 um 17 52 48

This is caused by iconMenu (scrollbar-gutter: stable), and should therefore be handled as a separate issue.
image

The window jiggles when hovering the date input: jiggle jiggle

I cannot reproduce this any longer using @kern-ux/native@^2.5.0

@oeninghe-dataport
Copy link
Copy Markdown
Collaborator Author

The spacing for the date input looks off. As in: not enough space on top, too much on the bottom. Also, the <hr> looks off if no other accordion follows. Bildschirmfoto 2026-02-23 um 17 57 26

d8f619b

@oeninghe-dataport
Copy link
Copy Markdown
Collaborator Author

🏓 @dopenguin Your turn again :)

@dopenguin
Copy link
Copy Markdown
Member

The spacing for the date input looks off. As in: not enough space on top, too much on the bottom. Also, the <hr> looks off if no other accordion follows. Bildschirmfoto 2026-02-23 um 17 57 26

d8f619b

The <hr> still looks off and was not there on the last expansion panel in the previous implementation

Copy link
Copy Markdown
Member

@dopenguin dopenguin left a comment

Choose a reason for hiding this comment

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

Please also mind #436 (comment)

🏓 @oeninghe-dataport

Comment thread src/plugins/filter/stores/category.ts
@oeninghe-dataport
Copy link
Copy Markdown
Collaborator Author

The spacing for the date input looks off. As in: not enough space on top, too much on the bottom. Also, the <hr> looks off if no other accordion follows. Bildschirmfoto 2026-02-23 um 17 57 26

d8f619b

The <hr> still looks off and was not there on the last expansion panel in the previous implementation

434dc05 should now match the previous implementation, although I prefer the KERN style here.

@oeninghe-dataport
Copy link
Copy Markdown
Collaborator Author

🏓 @dopenguin

@dopenguin
Copy link
Copy Markdown
Member

The spacing for the date input looks off. As in: not enough space on top, too much on the bottom. Also, the <hr> looks off if no other accordion follows. Bildschirmfoto 2026-02-23 um 17 57 26

d8f619b

The <hr> still looks off and was not there on the last expansion panel in the previous implementation

434dc05 should now match the previous implementation, although I prefer the KERN style here.

This is certainly something that will be tackled when we tackle this with a new design.

You missed a spot #436 (comment)

The color for the title does not really seem to be a good choice :D

Bildschirmfoto 2026-04-14 um 16 16 48 Bildschirmfoto 2026-04-14 um 16 16 56

Please rebase the branch onto main please or merge main into this branch.

🏓 @oeninghe-dataport

@oeninghe-dataport
Copy link
Copy Markdown
Collaborator Author

oeninghe-dataport commented Apr 15, 2026

You missed a spot #436 (comment)

See there

The color for the title does not really seem to be a good choice :D

Yea, this is kinda hard to read even on usual screens. ecb39bf makes testing that easier, and 27e376f fixes it.

Please rebase the branch onto main please or merge main into this branch.

I hope that you wanted to say next. If so, 33adf62. If not...this will take some more time ;)

🏓 @oeninghe-dataport

🏓 @dopenguin

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

Labels

refactor Refactoring of previous code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migration of Filter plugin to POLAR@3

2 participants