Skip to content
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 mpc theme, refact: variables.scss #1344

Merged
merged 3 commits into from
Jun 27, 2024

Conversation

tbrkollar
Copy link
Collaborator

No description provided.

@tbrkollar tbrkollar requested a review from brdandu June 21, 2024 11:50
@tbrkollar tbrkollar self-assigned this Jun 21, 2024
src/App.vue Outdated Show resolved Hide resolved
src/pages/EndpointManager.vue Outdated Show resolved Hide resolved
@tbrkollar tbrkollar force-pushed the feature/multiprotocolTheme branch from 7880aef to 684dfe1 Compare June 26, 2024 14:46
@codecov-commenter
Copy link

codecov-commenter commented Jun 26, 2024

Codecov Report

Attention: Patch coverage is 25.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 66.00%. Comparing base (1bf40e8) to head (3121c6f).
Report is 9 commits behind head on master.

Files Patch % Lines
src/App.vue 0.00% 2 Missing ⚠️
src/pages/ZapConfig.vue 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1344      +/-   ##
==========================================
- Coverage   66.00%   66.00%   -0.01%     
==========================================
  Files         194      194              
  Lines       20528    20589      +61     
  Branches     4455     4472      +17     
==========================================
+ Hits        13550    13590      +40     
- Misses       6978     6999      +21     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

// Picking the first category in the case of multi-protocol(zigbee/matter)
if (Array.isArray(zclProps) && zclProps.length > 0) {
return zclProps[0].category
} else {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't if (Array.isArray(zclProps) && zclProps.length > 0) { return zclProps[0].category } and if (this.$store.state.zap.isMultiConfig) { return 'multiprotocol' } the same?

// Picking the first category in the case of multi-protocol(zigbee/matter)
if (Array.isArray(zclProps) && zclProps.length > 0) {
return zclProps[0].category
} else {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't if (Array.isArray(zclProps) && zclProps.length > 0) { return zclProps[0].category } and if (this.$store.state.zap.isMultiConfig) { return 'multiprotocol' } the same?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this all be something like

if (this.$store.state.zap.isMultiConfig) { return 'multiprotocol' } else { return this.$store.state.zap.selectedZapConfig?.zclProperties.category }

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think no, because if user choose two zigbee or two matter categories (if it is possible) they are not multiprotocol but zclProperties is an arrray. if it is not possible, you are right.

src/pages/EndpointManager.vue Outdated Show resolved Hide resolved
src/App.vue Outdated Show resolved Hide resolved
@tbrkollar tbrkollar force-pushed the feature/multiprotocolTheme branch from dc3d954 to 2594e50 Compare June 27, 2024 20:42
@tbrkollar tbrkollar merged commit 0066896 into project-chip:master Jun 27, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants