Skip to content

Better darkmode #73

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

Merged
merged 9 commits into from
May 1, 2025
Merged

Better darkmode #73

merged 9 commits into from
May 1, 2025

Conversation

SharzyL
Copy link
Owner

@SharzyL SharzyL commented May 1, 2025

  • optim: do not fetch paste content on /d/ req
  • feat: add backend support for multipart upload
  • refac: rearrange files
  • refac[frontend]: move upload logic to a separate file
  • fix[frontend]: blink on toggle daro mode due to inconsistent transition-duration
  • feat[frontend]: monitor query change on system dark mode

Copy link

github-actions bot commented May 1, 2025

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 77.71%
⬇️ -0.33%
729 / 938
🔵 Statements 77.09%
⬇️ -0.60%
744 / 965
🔵 Functions 74.83%
⬆️ +0.99%
116 / 155
🔵 Branches 70.84%
⬇️ -1.80%
469 / 662
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
frontend/components/DarkModeToggle.tsx 92.3%
⬇️ -7.70%
92.85%
⬆️ +5.35%
88.88%
⬇️ -11.12%
92.3%
⬇️ -7.70%
32, 48
frontend/components/PasteEditor.tsx 16%
🟰 ±0%
31.25%
🟰 ±0%
18.18%
🟰 ±0%
16.66%
🟰 ±0%
26-41, 57, 87-118
frontend/components/PasteSettingPanel.tsx 28.57%
🟰 ±0%
75%
🟰 ±0%
28.57%
🟰 ±0%
28.57%
🟰 ±0%
64-126
frontend/components/UploadedPanel.tsx 57.14%
🟰 ±0%
50%
🟰 ±0%
50%
🟰 ±0%
57.14%
🟰 ±0%
13-15
frontend/test/testUtils.ts 100% 100% 100% 100%
frontend/utils/overrides.ts 100% 100% 100% 100%
frontend/utils/uploader.ts 42.1% 36.36% 50% 42.85% 8-11, 24-34, 38, 41-44, 51, 53, 54, 73
frontend/utils/utils.ts 42.1%
⬇️ -4.95%
23.07%
⬇️ -4.20%
50%
⬇️ -25.00%
43.24%
⬇️ -5.24%
14-21, 25, 28-33, 43, 51-56, 63-68, 74
shared/constants.ts 100% 100% 100% 100%
shared/uploadMPU.ts 86.53% 82.14% 50% 86.27% 8-9, 38, 46, 63, 86, 90
worker/handlers/handleMPU.ts 81.63% 70% 100% 81.63% 16, 20, 42, 47, 50, 71, 74, 93, 100
Generated in workflow #54 for commit 6735967 by the Vitest Coverage Report Action

@SharzyL SharzyL merged commit 9be3a8a into goshujin May 1, 2025
3 checks passed
@SharzyL SharzyL deleted the darkmode branch May 1, 2025 01:20
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.

1 participant