devrsi0n / chirpy

๐Ÿ’ฌ A privacy-friendly and customizable Disqus (comment system) alternate. ๆณจ้‡้š็งไฟๆŠคๅ’ŒๅฎšๅˆถๅŒ–็š„่ฏ„่ฎบ็ณป็ปŸใ€‚
https://chirpy.dev
GNU Affero General Public License v3.0
555 stars 32 forks source link

[BREAKING] refactor: move to tRPC #549

Closed devrsi0n closed 1 year ago

devrsi0n commented 1 year ago

Description

Related Issue

Closes #541

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Checklist

changeset-bot[bot] commented 1 year ago

โš ๏ธ No Changeset found

Latest commit: 755a681674c14ce009936c4c71daf2217fbe7de5

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git โ†—๏ธŽ

Name Status Preview Updated
chirpy โœ… Ready (Inspect) Visit Preview Dec 1, 2022 at 2:08PM (UTC)
github-actions[bot] commented 1 year ago

Coverage report for ./apps/main

St.:grey_question:
Category Percentage Covered / Total
๐Ÿ”ด Statements
8.66% (+4.33% ๐Ÿ”ผ)
40/462
๐Ÿ”ด Branches
10.23% (+6.75% ๐Ÿ”ผ)
9/88
๐Ÿ”ด Functions
4.07% (+1.96% ๐Ÿ”ผ)
5/123
๐Ÿ”ด Lines
9.16% (+4.77% ๐Ÿ”ผ)
38/415
Show new covered files ๐Ÿฃ
|
St.:grey_question:
| File | Statements | Branches | Functions | Lines | | :----------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------ | :--------- | :------- | :-------- | :---- | | ๐Ÿ”ด |
`...` / [trpc].ts
| 0% | 100% | 0% | 0% |

Test suite run success

2 tests passing in 2 suites.

Report generated by ๐Ÿงชjest coverage report action from 755a681674c14ce009936c4c71daf2217fbe7de5

relativeci[bot] commented 1 year ago

Job #1181: Bundle Size โ€” 2MiB (+1.03%).

a452cbe(current) vs 504186d main#1164(baseline)

Metrics (9 changes)
โ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒ โ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒCurrent
Job #1181
โ€ƒโ€ƒโ€ƒโ€ƒโ€ƒBaseline
Job #1164
Initial JS 1.03MiB(+1.99%) 1.01MiB
Initial CSS 85.6KiB 85.6KiB
Cache Invalidation 54.32% 0.77%
Chunks 50(+2.04%) 49
Assets 57(-3.39%) 59
Modules 1041(+3.48%) 1006
Duplicate Modules 179(+3.47%) 173
Duplicate Code 4.53%(+10.76%) 4.09%
Packages 90(+5.88%) 85
Duplicate Packages 0(-100%) 1

Total size by type (3 changes)
| โ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒ | โ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒCurrent
[Job #1181](https://app.relative-ci.com/projects/rYoEVFddayylGRgFiBEd/jobs/1181-QGRg8zRHsO7VLyQplop7?utm_source=github&utm_medium=pr-report "View job report") | โ€ƒโ€ƒโ€ƒโ€ƒโ€ƒBaseline
[Job #1164](https://app.relative-ci.com/projects/rYoEVFddayylGRgFiBEd/jobs/1164-hEESNpWFRT5EZYq0SGr3?utm_source=github&utm_medium=pr-report "View baseline job report") | |:--|--:|--:| | [CSS](https://app.relative-ci.com/projects/rYoEVFddayylGRgFiBEd/jobs/1181-QGRg8zRHsO7VLyQplop7/assets?ba=%7B%22filters%22%3A%7B%22ft.CSS%22%3Atrue%2C%22ft.JS%22%3Afalse%2C%22ft.IMG%22%3Afalse%2C%22ft.MEDIA%22%3Afalse%2C%22ft.FONT%22%3Afalse%2C%22ft.HTML%22%3Afalse%2C%22ft.OTHER%22%3Afalse%7D%7D "View all CSS assets") | `88.66KiB` | `88.66KiB` | | [Fonts](https://app.relative-ci.com/projects/rYoEVFddayylGRgFiBEd/jobs/1181-QGRg8zRHsO7VLyQplop7/assets?ba=%7B%22filters%22%3A%7B%22ft.CSS%22%3Afalse%2C%22ft.JS%22%3Afalse%2C%22ft.IMG%22%3Afalse%2C%22ft.MEDIA%22%3Afalse%2C%22ft.FONT%22%3Atrue%2C%22ft.HTML%22%3Afalse%2C%22ft.OTHER%22%3Afalse%7D%7D "View all Fonts assets") | `0B` | `0B` | | [HTML](https://app.relative-ci.com/projects/rYoEVFddayylGRgFiBEd/jobs/1181-QGRg8zRHsO7VLyQplop7/assets?ba=%7B%22filters%22%3A%7B%22ft.CSS%22%3Afalse%2C%22ft.JS%22%3Afalse%2C%22ft.IMG%22%3Afalse%2C%22ft.MEDIA%22%3Afalse%2C%22ft.FONT%22%3Afalse%2C%22ft.HTML%22%3Atrue%2C%22ft.OTHER%22%3Afalse%7D%7D "View all HTML assets") | `0B` | `0B` | | [IMG](https://app.relative-ci.com/projects/rYoEVFddayylGRgFiBEd/jobs/1181-QGRg8zRHsO7VLyQplop7/assets?ba=%7B%22filters%22%3A%7B%22ft.CSS%22%3Afalse%2C%22ft.JS%22%3Afalse%2C%22ft.IMG%22%3Atrue%2C%22ft.MEDIA%22%3Afalse%2C%22ft.FONT%22%3Afalse%2C%22ft.HTML%22%3Afalse%2C%22ft.OTHER%22%3Afalse%7D%7D "View all IMG assets") | `0B` (`-100%`) | `1.45KiB` | | [JS](https://app.relative-ci.com/projects/rYoEVFddayylGRgFiBEd/jobs/1181-QGRg8zRHsO7VLyQplop7/assets?ba=%7B%22filters%22%3A%7B%22ft.CSS%22%3Afalse%2C%22ft.JS%22%3Atrue%2C%22ft.IMG%22%3Afalse%2C%22ft.MEDIA%22%3Afalse%2C%22ft.FONT%22%3Afalse%2C%22ft.HTML%22%3Afalse%2C%22ft.OTHER%22%3Afalse%7D%7D "View all JS assets") | `1.9MiB` (`+1.15%`) | `1.88MiB` | | [Media](https://app.relative-ci.com/projects/rYoEVFddayylGRgFiBEd/jobs/1181-QGRg8zRHsO7VLyQplop7/assets?ba=%7B%22filters%22%3A%7B%22ft.CSS%22%3Afalse%2C%22ft.JS%22%3Afalse%2C%22ft.IMG%22%3Afalse%2C%22ft.MEDIA%22%3Atrue%2C%22ft.FONT%22%3Afalse%2C%22ft.HTML%22%3Afalse%2C%22ft.OTHER%22%3Afalse%7D%7D "View all Media assets") | `0B` | `0B` | | [Other](https://app.relative-ci.com/projects/rYoEVFddayylGRgFiBEd/jobs/1181-QGRg8zRHsO7VLyQplop7/assets?ba=%7B%22filters%22%3A%7B%22ft.CSS%22%3Afalse%2C%22ft.JS%22%3Afalse%2C%22ft.IMG%22%3Afalse%2C%22ft.MEDIA%22%3Afalse%2C%22ft.FONT%22%3Afalse%2C%22ft.HTML%22%3Afalse%2C%22ft.OTHER%22%3Atrue%7D%7D "View all Other assets") | `11.52KiB` (`+1.27%`) | `11.37KiB` |

View job #1181 reportโ€ƒView main branch activity

github-actions[bot] commented 1 year ago

Coverage report for ./packages/ui

St.:grey_question:
Category Percentage Covered / Total
๐Ÿ”ด Statements
52.75% (+0.04% ๐Ÿ”ผ)
2341/4438
๐Ÿ”ด Branches
26.67% (+0.68% ๐Ÿ”ผ)
431/1616
๐Ÿ”ด Functions
36.23% (+0.59% ๐Ÿ”ผ)
455/1256
๐Ÿ”ด Lines
52.84% (-0.03% ๐Ÿ”ป)
2226/4213
Show new covered files ๐Ÿฃ
|
St.:grey_question:
| File | Statements | Branches | Functions | Lines | | :----------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------- | :--------- | :------- | :-------- | :----- | | ๐ŸŸข |
`...` / trpc-client.ts
| 100% | 100% | 100% | 100% | | ๐Ÿ”ด |
`...` / use-register-device.ts
| 23.08% | 0% | 0% | 23.08% | | ๐ŸŸข |
`...` / index.tsx
| 100% | 100% | 100% | 100% | | ๐ŸŸข |
`...` / comment-forest.tsx
| 82.35% | 42.86% | 75% | 84.85% | | ๐ŸŸข |
`...` / use-comment-order-by.ts
| 100% | 100% | 100% | 100% | | ๐Ÿ”ด |
`...` / use-refetch-interval.ts
| 16.67% | 100% | 0% | 16.67% |
Show files with reduced coverage ๐Ÿ”ป
|
St.:grey_question:
| File | Statements | Branches | Functions | Lines | | :----------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------- | :-------------------------------------------------------------- | :------------------------------------------------------------- | :-------------------------------------------------------------- | :-------------------------------------------------------------- | | ๐ŸŸก | hooks/use-time.ts |
73.33% (-13.33% ๐Ÿ”ป)
|
40% (-20% ๐Ÿ”ป)
|
66.67% (-22.22% ๐Ÿ”ป)
|
76.92% (-15.38% ๐Ÿ”ป)
| | ๐Ÿ”ด |
`...` / use-create-a-comment.ts
|
20% (-3.53% ๐Ÿ”ป)
| 0% | 0% |
20% (-3.53% ๐Ÿ”ป)
| | ๐Ÿ”ด |
`...` / use-delete-a-comment.ts
|
20% (-5% ๐Ÿ”ป)
| 100% | 0% |
20% (-5% ๐Ÿ”ป)
| | ๐Ÿ”ด |
`...` / use-toggle-a-like-action.ts
|
15.15% (-3.37% ๐Ÿ”ป)
| 0% | 0% |
15.15% (-3.37% ๐Ÿ”ป)
| | ๐ŸŸข |
`...` / like-action.tsx
|
88% (-0.89% ๐Ÿ”ป)
|
50% (-7.14% ๐Ÿ”ป)
| 100% |
88% (-0.89% ๐Ÿ”ป)
| | ๐Ÿ”ด |
`...` / utilities.ts
|
8.11% (-0.51% ๐Ÿ”ป)
| 0% | 0% |
8.33% (-0.44% ๐Ÿ”ป)
| | ๐ŸŸก |
`...` / index.tsx
|
65.52% (-7.21% ๐Ÿ”ป)
|
45.45% (+20.45% ๐Ÿ”ผ)
|
40% (-10% ๐Ÿ”ป)
|
65.52% (-9.48% ๐Ÿ”ป)
| | ๐ŸŸข |
`...` / notification-hub.tsx
|
95.83% (-4.17% ๐Ÿ”ป)
| 90% | 100% |
95.65% (-4.35% ๐Ÿ”ป)
| | ๐Ÿ”ด |
`...` / use-force-update.ts
|
16.67% (-50% ๐Ÿ”ป)
| 100% |
0% (-33.33% ๐Ÿ”ป)
|
20% (-60% ๐Ÿ”ป)
| | ๐Ÿ”ด |
`...` / comment-widget-preview.tsx
| 34.55% |
18.18% (-1.82% ๐Ÿ”ป)
| 25% | 35.85% | | ๐ŸŸข |
`...` / confirm-user-fields.tsx
|
80% (-0.49% ๐Ÿ”ป)
|
82.14% (+3.57% ๐Ÿ”ผ)
| 100% |
82.05% (-0.45% ๐Ÿ”ป)
| | ๐ŸŸก |
`...` / project-card.tsx
|
77.55% (-5.78% ๐Ÿ”ป)
|
50% (+8.33% ๐Ÿ”ผ)
| 71.43% |
77.55% (-5.78% ๐Ÿ”ป)
| | ๐Ÿ”ด |
`...` / redirecting.tsx
|
32% (-1.33% ๐Ÿ”ป)
| 0% | 0% |
32% (-1.33% ๐Ÿ”ป)
| | ๐ŸŸก |
`...` / index.tsx
|
60% (-6.67% ๐Ÿ”ป)
| 0% | 0% |
60% (-6.67% ๐Ÿ”ป)
|

Test suite run success

50 tests passing in 32 suites.

Report generated by ๐Ÿงชjest coverage report action from 755a681674c14ce009936c4c71daf2217fbe7de5

cypress[bot] commented 1 year ago



Test summary

6 1 0 0Flakiness 0


Run details

Project chirpy
Status Failed
Commit 755a681674
Started Dec 1, 2022 2:14 PM
Ended Dec 1, 2022 2:17 PM
Duration 03:11 ๐Ÿ’ก
OS Linux Ubuntu - 22.04
Browser Chrome 107

View run in Cypress Dashboard โžก๏ธ


Failures

cypress/e2e/dashboard/project.spec.ts Failed
1 Project > should active theme

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard