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

feat: add issues in URL and handle history state #129

Merged
merged 6 commits into from
Oct 20, 2024

Conversation

zugdev
Copy link
Contributor

@zugdev zugdev commented Oct 19, 2024

Resolves #118

@zugdev zugdev requested a review from 0x4007 as a code owner October 19, 2024 07:26
@ubiquity-os-deployer
Copy link

ubiquity-os-deployer bot commented Oct 19, 2024

Copy link
Member

@0x4007 0x4007 left a comment

Choose a reason for hiding this comment

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

Try running linter. Commit hooks shouldnt have let you commit these

@@ -149,6 +149,40 @@ export function viewIssueDetails(full: GitHubIssue) {
modal.classList.add("active");
modal.classList.remove("error");
document.body.classList.add("preview-active");

updateURLWithIssueID(full.id);
Copy link
Member

Choose a reason for hiding this comment

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

Strict pascal case lint shouldnt let this work

@0x4007
Copy link
Member

0x4007 commented Oct 19, 2024

Just tested. Looks like it is almost perfect. I think ideally the app mode should change to proposals when viewing a proposal though.

https://4a76efd5.devpool-directory-ui.pages.dev/?issue=2499194812

This is a proposal but when I X out of the modal, its in the tasks view. Any good solution for this?

@zugdev
Copy link
Contributor Author

zugdev commented Oct 19, 2024

Yeah that's easy will check isProposalsViewer, should be effective enough.

@zugdev
Copy link
Contributor Author

zugdev commented Oct 19, 2024

Should be good to go now. I have added a proposal parameter to the URL if we are in proposal view. Also it changes the toggle from Directory to Proposals based on URL.

@0x4007 0x4007 merged commit b08f758 into ubiquity:development Oct 20, 2024
1 of 2 checks passed
@ubiquity-os ubiquity-os bot mentioned this pull request Oct 20, 2024
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.

Deep Links
2 participants