Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: move ui to dedicated modules #1847

Merged
merged 4 commits into from
May 22, 2024
Merged

chore: move ui to dedicated modules #1847

merged 4 commits into from
May 22, 2024

Conversation

yohanboniface
Copy link
Member

@yohanboniface yohanboniface commented May 22, 2024

umap.ui.js is removed, and replaced by those two modules: tooltip.js and alert.js
Also, panel.js is moved in the same folder modules/ui/
Also, a minimal Dialog class is added, to replace the custom made help box.

Those changes impact a lot of lines, but with very little logic change.
The most notable is certainly that Request does not expect anymore a ui parameter but an alert directly. And thus, it cannot use ui anymore to send its event, so it sends them on the body element, which the Map is then listening.

Better to review each commit separately. :)

@davidbgk
Copy link
Contributor

There are probably things to go pick from #1641

@yohanboniface
Copy link
Member Author

Oops, that PR was totally out of my radar :(

@davidbgk davidbgk merged commit d6a20b3 into master May 22, 2024
4 checks passed
@davidbgk davidbgk deleted the ui-to-modules branch May 22, 2024 17:05
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.

None yet

2 participants