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
fix: various Nav Bar fixes #19283
fix: various Nav Bar fixes #19283
Conversation
Thanks for taking the time to open a PR!
|
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
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.
Seems fine, two comments, I don't see specific reason to use _
for Pinia state. Also check-ts
is busted.
> | ||
<router-link | ||
class="outline-none" | ||
:to="{ path: 'runner', query: { file: result.spec.relative } } | ||
:to="{ path: 'specs/runner', query: { file: result.spec.relative } } |
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.
should this be absolute like the rest?
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.
agreed
:to="{ path: 'specs/runner', query: { file: result.spec.relative } } | |
:to="{ path: '/specs/runner', query: { file: result.spec.relative } } |
packages/app/src/store/main-store.ts
Outdated
@@ -13,12 +14,19 @@ export const useMainStore = defineStore({ | |||
id: 'main', | |||
state: (): MainStoreState => { | |||
return { | |||
navBarExpanded: true, | |||
_navBarExpanded: true, |
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.
Why is this prefixed with _
? Seems to serve no purpose, it's not really a private variable.
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.
It has to have a different name than the exposed variable and should never be updated on it's own.
How else can I achieve this private state member in pinia?
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.
I renamed it so that the flag can be set in tests.
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
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.
There is an issue when changing browsers and preserving the runnable spec. You can test that it is broken by selecting a spec and then switching to another browser. The backend redirects the frontend incorrectly with this change.
I made a PR to fix this here: #19290
@ZachJW34 Thank you, I merged your fix. |
@elevatebart Me neither, I don't think the backend should know/care about the frontend routing. Maybe a redirect on the frontend when matching a certain pattern could help out a bit. I'll take note of it. |
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.
My only comment on the nav is the same as @ZachJW34, to not have the "expand" control appear on hover if the route does not allow the navigation to be expanded. I think there is a slight miscommunication between @lmiller1990 and Zach - Zach’s talking about the setter for |
802cb1d
to
b7931d2
Compare
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.
Tested, works great. LGTM!
…text * 10.0-release: (45 commits) fix: various Nav Bar fixes (#19283) build: add patch package as a dev dependency for fe-shared chore: hoist is - fun with cached dependencies build: hoist is hard build: better hoisting strategy fix: remove windows and mac workflow from branch revert: remove change about node version 17 build: remove testing of desktop-gui assets build: run window & mac CI in this branch build: more fixes build: remove toycode mdi from launchpad rename patch because of dev dep build: fix merge issue in packages generation chore: update sass for windows compatibility fix: Do not crash when a ill formed URL request is proxied (#19274) fix: remove desktop-gui from circle.yml change whitepace in patch fix: adding timeout option to writeFile command (#19015) release 9.1.1 fix: patch-package is not applied in dist'ed build (#19239) ...
* 10.0-release: (53 commits) refactor: makeLegacyContext -> getCtx (#19308) fix: various Nav Bar fixes (#19283) build: add patch package as a dev dependency for fe-shared chore: hoist is - fun with cached dependencies build: hoist is hard build: better hoisting strategy chore: remove unused testing preferences (#19301) fix: remove windows and mac workflow from branch fix: show script errors when spec file fails to process (#19298) revert: remove change about node version 17 feat: open config file in user's editor (#19276) feat(unify): scale the AUT (#19297) build: remove testing of desktop-gui assets build: run window & mac CI in this branch build: more fixes build: remove toycode mdi from launchpad rename patch because of dev dep build: fix merge issue in packages generation chore: update sass for windows compatibility fix: Do not crash when a ill formed URL request is proxied (#19274) ...
What has changed
Coco.mov
User facing changelog