Fix some ui issues#1694
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request enhances the user interface for managing cluster domains by introducing an 'Open All' button, providing users with a quick way to expand all collapsed domains. It also refines the visibility of the 'Close All' and 'Open All' buttons, ensuring that only the appropriate action is presented to the user based on the current state of the domains. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
brdandu
left a comment
There was a problem hiding this comment.
add open ALL and close all cypress tests while changing the different filter options(enabled, all clusters, etc) and make sure nothing breaks
There was a problem hiding this comment.
Code Review
This pull request introduces a UI improvement for managing cluster domains by adding 'Open All' and 'Close All' buttons that toggle based on the collapsed state of the domains. The changes involve updating the Vuex store to track the collapsed state and modifying the component to display the appropriate button. The implementation is mostly correct, but I have a couple of suggestions to improve code readability and maintainability by making a conditional more explicit and addressing the use of a magic string.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1694 +/- ##
==========================================
- Coverage 75.16% 75.13% -0.03%
==========================================
Files 203 203
Lines 23833 23843 +10
Branches 5454 5456 +2
==========================================
+ Hits 17914 17915 +1
- Misses 5919 5928 +9 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| { retries: { runMode: 2, openMode: 2 } }, | ||
| () => { | ||
| cy.get('[data-test="filter-input"]').click() | ||
| // Selecting All clusters |
There was a problem hiding this comment.
Selecting all clusters filter option
There was a problem hiding this comment.
Github ui is not so good. line 56,
cy.get('.q-virtual-scroll__content > :nth-child(2)').click({
force: true
})
It is the "All Clusters" option.
| // hiding domains and swapping to Open All button | ||
| cy.dataCy('cluster-btn-closeall').click() | ||
| cy.dataCy('cluster-btn-closeall').should('not.exist') | ||
| cy.dataCy('cluster-btn-openall').should('exist') |
There was a problem hiding this comment.
Check if the clusters do not exist after close all? (data.cluster10 and data.cluster9)
There was a problem hiding this comment.
you are right. i add a not-visible check.
|
|
||
| cy.fixture('data').then((data) => { | ||
| cy.get('tbody').children().contains(data.cluster9).should('exist') | ||
| cy.get('tbody').children().contains(data.cluster10).should('exist') |
There was a problem hiding this comment.
What about the not.exist when close all button is clicked?
There was a problem hiding this comment.
you are right. i add a not-visible check.
| cy.fixture('data').then((data) => { | ||
| // Power Configurator for Zigbee is disabled and should not show up | ||
| // Occupancy Sensing for Matter is disabled and should not exist | ||
| cy.get('tbody').children().contains(data.cluster9).should('not.exist') |
There was a problem hiding this comment.
Please open the file and check it again. Github ui is not so good.
you can see above in the code (before open and close) that this value does not exist.
There was a problem hiding this comment.
@tbrkollar I am also confused by this line of code should('not.exist')
There was a problem hiding this comment.
nvm I see the comment clearly explains it // Power Configurator for Zigbee is disabled and should not show up // Occupancy Sensing for Matter is disabled and should not exist
| cy.fixture('data').then((data) => { | ||
| // Power Configurator for Zigbee is disabled and should not show up | ||
| // Occupancy Sensing for Matter is disabled and should not exist | ||
| cy.get('tbody').children().contains(data.cluster9).should('not.exist') |
There was a problem hiding this comment.
@tbrkollar I am also confused by this line of code should('not.exist')
| cy.fixture('data').then((data) => { | ||
| // Power Configurator for Zigbee is disabled and should not show up | ||
| // Occupancy Sensing for Matter is disabled and should not exist | ||
| cy.get('tbody').children().contains(data.cluster9).should('not.exist') |
There was a problem hiding this comment.
nvm I see the comment clearly explains it // Power Configurator for Zigbee is disabled and should not show up // Occupancy Sensing for Matter is disabled and should not exist
No description provided.