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

front: hook popups to browser's history api #473

Closed
wants to merge 1 commit into from

Conversation

otomir23
Copy link
Contributor

as stated in #410, this makes cobalt feel a little bit more native. also possibly reduces user frustration by avoiding the situation where using system's back button closes the app trying instead of closing popups.

closes #410

Copy link
Member

@wukko wukko left a comment

Choose a reason for hiding this comment

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

going back closes all popups instead of going to previous state on desktop in chrome, and as i assume mobile chrome uses same way of navigation. not sure what this pr is supposed to do.

i think a better way to implement history would be to do page links like /settings/audio, which would also be retained across page refreshes.

@wukko wukko marked this pull request as draft April 30, 2024 07:58
@otomir23
Copy link
Contributor Author

system's back button behaving the same as the popup's back button (which currently closes all popups) felt more intuitive, but I can implement popup tab history if you think that this approach is better.

popup urls would require a bit of frontend server rewriting, which i'm up for, but i'm not sure if it's worth it judging by the progress made on the svelte rewrite.

@otomir23 otomir23 deleted the branch imputnet:current May 18, 2024 12:09
@otomir23 otomir23 closed this May 18, 2024
@otomir23 otomir23 deleted the current branch May 18, 2024 12:09
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.

Use the history API
2 participants