-
Notifications
You must be signed in to change notification settings - Fork 330
Momo poppy/refactor theme select 0930 #2251
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
Closed
MomoPoppy
wants to merge
10
commits into
opentiny:dev
from
MomoPoppy:MomoPoppy/refactor-theme-select-0930
Closed
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
c42bde8
refactor(select): [select] refactor theme vars for select
MomoPoppy 141318a
refactor(select): [select] refactor theme vars for select
MomoPoppy f30f72f
feat(select): [select] refactor(select): [select] refactor theme vars…
MomoPoppy 423a64f
test(select): [select] modify test cases
MomoPoppy 3187d33
refactor(select): [select] refactor vue template for select
MomoPoppy 9b6ecc9
refactor(select): [select] modify variable names and add refactor styles
MomoPoppy 6f86f3e
refactor(select): [select] change data-tag="tiny-select-dropdown-item…
MomoPoppy ad2ed0d
refactor(select): [select] modify variable names and add refactor sty…
MomoPoppy 50a5268
feat(theme): [select] add new vars
MomoPoppy e80212c
refactor(option-group): [select] modify variable names and add refact…
MomoPoppy 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
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.
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.
💡 Codebase verification
Remaining
border-colorAssertion FoundA leftover assertion for
border-colorwas detected inautomatic-dropdown.spec.ts:await expect(input).toHaveCSS('border-color', 'rgb(25, 25, 25)')Please update this assertion to align with the recent refactoring to
border-bottom-colorto ensure consistency across the component's tests.🔗 Analysis chain
Approve changes and suggest consistency check.
The updates to the class and CSS property assertions in the disabled state test are consistent with the changes made in the default state test. This systematic update improves the overall consistency of the component's structure and styling.
To ensure this refactoring has been applied consistently across all related components, please run the following check:
If these searches return results, it may indicate areas where the refactoring needs to be applied for consistency.
Update Verification Script to Include Vue Files and Check Remaining CSS Assertions
To address the issues found, please run the following updated shell script:
This script corrects the file type recognition by using glob patterns and will help ensure that all instances of the old class name and
border-colorassertions are identified.Corrected Verification Script with Proper Quoting
To resolve the syntax error and accurately verify the consistency of the select component styling, please execute the following updated shell script:
Explanation of Changes:
First
rgCommand: Remains unchanged as it correctly searches for'tiny-select__underline'in.tsand.vuefiles using single quotes.Second
rgCommand:') to double (") to allow single quotes within the regex pattern.'border-color', thereby eliminating the syntax error.Please run this corrected script to ensure that all instances of the old class name and
border-colorassertions have been successfully addressed.Corrected Verification Script with Proper Regex Escaping
To resolve the regex parse error and accurately verify the consistency of the select component styling, please execute the following updated shell script:
Explanation of Changes:
Second
rgCommand:") to single (') to simplify escaping.toHaveCSS\('border-color'accurately matches thetoHaveCSS('border-color', ...)assertions in the test files.Alternatively, if single quotes cause issues, you can use double quotes with properly escaped characters:
Please run this corrected script to ensure that all instances of the old class name and
border-colorassertions have been successfully addressed.🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 284
Script:
Length of output: 142
Script:
Length of output: 232
Script:
Length of output: 251
Script:
rg "toHaveCSS\('border-color'" examples/sites/demos/pc/app/selectLength of output: 202