-
Notifications
You must be signed in to change notification settings - Fork 29
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
Conversation
There was a problem hiding this 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); |
There was a problem hiding this comment.
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
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? |
Yeah that's easy will check |
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. |
Resolves #118