-
-
Notifications
You must be signed in to change notification settings - Fork 238
chore: prerender /compare page
#1335
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
Open
userquin
wants to merge
18
commits into
npmx-dev:main
Choose a base branch
from
userquin:chore-add-compare-to-route-rules
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+247
−117
Open
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
b1cd380
chore: add missing compare page at `routeRules` (prerender)
userquin 58d4796
chore: patch nuxt html validator module
userquin 7df6416
chore: add nuxt html validator patch
userquin 746aa0c
chore: cleanup nuxt config file
userquin d68c1da
chore: remove patch
userquin c4d9a4c
chore: cleanup nuxt config file, remove ignore option
userquin 87e3b6d
chore: cleanup duplicated classes at CompareFacetSelector
userquin f5c7eed
Merge branch 'main' into chore-add-compare-to-route-rules
userquin 3e46cc8
chore: add client only and restore facets from url
userquin e977ff4
Merge branch 'main' into chore-add-compare-to-route-rules
userquin 8314370
chore: add `JSRequired` component
userquin a81353c
chore: fix `test:types`
userquin 3247cf5
chore: fix `test:unit`
userquin 60fdf4a
chore: add JSRequired component test
userquin 5afbf81
chore: fix `test:nuxt`
userquin 21b551d
chore: fix usePackageComparison.ts
userquin 78afaf0
chore: remove JSRequired component using `useHead` instead
userquin 42a2f64
chore: apply coderabbitai suggestions
userquin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
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.
Avoid a potential size shift between selected and unselected buttons.
Line 77 removes the border from the selected state while the unselected state still uses border colour classes; if ButtonBase doesn’t enforce a fixed border width, toggling could cause a subtle layout shift. Consider keeping a consistent border width (e.g., transparent border on selected).
Suggested tweak
📝 Committable suggestion
Uh oh!
There was an error while loading. Please reload this page.
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.
BaseButton has
border border-border: html validator error =>error Class "border-border" duplicated no-dup-class, and so, CI will failThere 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.
@userquin, thank you for the clarification! You're absolutely right—ifButtonBasealready providesborder border-borderby default, then my suggestion to addborder border-transparentwould indeed duplicate theborderclass and fail the HTML validator.Given that
ButtonBaseenforces a consistent border width across all states, there's no layout shift concern. The selected state uses the default border color fromButtonBase, while the unselected state simply overrides it withborder-border-subtle. Your current implementation is correct.I apologize for not considering the
ButtonBasecomponent's default styles when making my initial suggestion.🐰
✏️ Learnings added
🧠 Learnings used