Repository navigation
feat(ui): add color hex alpha transparency utility (#584) - #590
Merged
TheVicky1 merged 1 commit intoOct 13, 2026
Merged
Conversation
- Implement applyHexOpacity helper converting 3-digit and 6-digit hex colors into 8-digit RGBA hex strings - Enforce strict boundary clamping for opacity decimals between 0.0 and 1.0 - Add comprehensive unit test suite in tests/hex-opacity.test.ts covering 3/6-digit strings, clamped bounds, and invalid fallbacks Signed-off-by: GauravPatil2515 <gauravpatil2516@gmail.com>
4 tasks
👋 Welcome to PACT OS, @GauravPatil2515! 🚀Thank you for taking the time to open your first pull request on PACT! We are thrilled to have you here in our open-source community. 🔍 What Happens Next?
📚 Helpful Quick Links
Thank you for helping make PACT better! Plan. Track. Improve. Repeat. 🏛️✨ |
|
@GauravPatil2515 is attempting to deploy a commit to the Vicky's projects Team on Vercel. A member of the Team first needs to authorize it. |
TheVicky1
approved these changes
Oct 13, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #584
Summary of Changes
applyHexOpacity(hexColor: string, opacity: number): stringinsrc/lib/ui/hex-opacity.ts.#rgb->#rrggbb) and 6-digit hex representations.#symbol.0.0and1.0.#00000000for invalid inputs or empty strings.tests/hex-opacity.test.tsverifying all acceptance criteria.Verification
node scratch/run-tests.mjs hex-opacity.test.ts-> PASS (5/5 tests passing).npm test-> All 85 suites passing.npm run typecheck-> Clean, 0 type errors.