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

fix: fix invalid color str in paste #2783

Merged
merged 2 commits into from
Jul 17, 2024
Merged

fix: fix invalid color str in paste #2783

merged 2 commits into from
Jul 17, 2024

Conversation

ybzky
Copy link
Member

@ybzky ybzky commented Jul 16, 2024

close #xxx

Pull Request Checklist

  • Related tickets or issues have been linked in the PR description (or missing issue).
  • Naming convention is followed (do please check it especially when you created new plugins, commands and resources).
  • Unit tests have been added for the changes (if applicable).
  • Breaking changes have been documented (or no breaking changes introduced in this PR).

@ybzky ybzky requested review from jikkai and Jocs as code owners July 16, 2024 11:22
Copy link

codecov bot commented Jul 16, 2024

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 26.20%. Comparing base (75bb1f6) to head (9fc3af2).
Report is 14 commits behind head on dev.

Files Patch % Lines
packages/ui/src/utils/cell.ts 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #2783      +/-   ##
==========================================
- Coverage   26.31%   26.20%   -0.11%     
==========================================
  Files        1706     1729      +23     
  Lines       91390    91897     +507     
  Branches    19345    19433      +88     
==========================================
+ Hits        24045    24080      +35     
- Misses      67345    67817     +472     

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

Copy link

github-actions bot commented Jul 16, 2024

View Deployment

📑 Examples 📚 Storybook
🔗 Preview link 🔗 Preview link

Comment on lines 208 to 218
const colorKit = new ColorKit(value);
if (colorKit.isValid) {
const rgbStr = colorKit.toRgbString();
styleList.cl = {
rgb: rgbStr,
};
} else {
styleList.cl = {
rgb: 'rgb(0,0,0)',
};
}
Copy link
Member

Choose a reason for hiding this comment

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

styleList.cl = {
  rgb: colorKit.isValid ? colorKit.toRgbString() : 'rgb(0,0,0)',
};

@jikkai jikkai merged commit d0ac904 into dev Jul 17, 2024
9 checks passed
@jikkai jikkai deleted the fix-paste-invalid-color branch July 17, 2024 07:27
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