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

[beam] Segmented Display Component #228

Merged
merged 1 commit into from
Jan 23, 2025
Merged

Conversation

crabinak
Copy link
Collaborator

@agritheory I've created a Segmented Display component based on #215 . You should be able to change the CSS color of both the background and display text using any CSS terminology (accepts string names, variable names, RGB, RGBA, HSL, HSLA, and hex). Variable names should just be --variable-name-only and not include the var() wrapper since the component handles that.

This component takes the following props:

  • display-color (custom Color type looks for Hex, RGB/RGBA, HSL/HSLA, CSS Variable, or CSS string name)
  • text-color (custom Color type looks for Hex, RGB/RGBA, HSL/HSLA, CSS Variable, or CSS string name)
  • display-input (number)
  • decimal-places (number)

@crabinak crabinak requested a review from agritheory December 20, 2024 17:38
Copy link
Contributor

Coverage Report for ./beam

Status Category Percentage Covered / Total
🔴 Lines 5.1% (🎯 70%) 7 / 137
🔴 Statements 5.36% (🎯 70%) 8 / 149
🔴 Functions 2.32% (🎯 70%) 1 / 43
🔴 Branches 0% (🎯 70%) 0 / 85
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
beam/src/components/SegmentedDisplay.vue 0% 0% 0% 0% 21-27
Unchanged Files
beam/src/components/ActionFooter.vue 0% 100% 0% 0% 12-5
beam/src/components/BeamArrow.vue 0% 0% 100% 0% 2-4
beam/src/components/BeamDayDivider.vue 0% 0% 0% 0% 17-2
beam/src/components/BeamFilter.vue 0% 0% 0% 0% 18-9
beam/src/components/BeamFilterOption.vue 0% 0% 0% 0% 41-21
beam/src/components/BeamMetadata.vue 0% 0% 0% 0% 2-1
beam/src/components/BeamModal.vue 0% 0% 0% 0% 3-5
beam/src/components/BeamModalOutlet.vue 0% 100% 100% 0% 2
beam/src/components/BeamProgress.vue 0% 0% 0% 0% 22-3
beam/src/components/Confirm.vue 0% 0% 0% 0% 4-1
beam/src/components/ItemCheck.vue 0% 0% 0% 0% 9-3
beam/src/components/ItemCount.vue 0% 0% 0% 0% 20-1
beam/src/components/ListAnchor.vue 0% 100% 100% 0% 1
beam/src/components/ListItem.vue 0% 0% 0% 0% 27-15
beam/src/components/ListView.vue 0% 0% 0% 0% 29-2
beam/src/components/Navbar.vue 0% 0% 0% 0% 13-null
beam/src/components/ScanInput.vue 88.88% 100% 50% 87.5% 23
beam/src/components/SplitColumn.vue 0% 0% 100% 0% 5-8
beam/src/composables/mqtt.ts 0% 0% 0% 0% 12-44
Generated in workflow #513 for commit 1cf2361 by the Vitest Coverage Report Action

@Alchez Alchez changed the title Beam Segmented Display Component [beam] Segmented Display Component Jan 21, 2025
Copy link
Owner

@agritheory agritheory left a comment

Choose a reason for hiding this comment

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

This came out perfect. Thank you!

@agritheory agritheory merged commit f37688b into development Jan 23, 2025
4 of 5 checks passed
@agritheory agritheory deleted the feat-segmented-display branch January 23, 2025 20:22
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.

2 participants