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

fix(comment-preview): can't post a comment and don't query notification messages if user doesn't signin #553

Closed devrsi0n closed 1 year ago

devrsi0n commented 1 year ago

Description

Fixes a dozen of issues:

Added a new feature:

image

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Checklist

changeset-bot[bot] commented 1 year ago

โš ๏ธ No Changeset found

Latest commit: 7426e220c2efd1f0e3dde65143d13d1a5739bb39

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 9, 2022 at 2:26PM (UTC)
github-actions[bot] commented 1 year ago

Coverage report for ./apps/main

St.:grey_question:
Category Percentage Covered / Total
๐Ÿ”ด Statements 8.73% 40/458
๐Ÿ”ด Branches 10.23% 9/88
๐Ÿ”ด Functions 4.1% 5/122
๐Ÿ”ด Lines 9.25% 38/411

Test suite run success

2 tests passing in 2 suites.

Report generated by ๐Ÿงชjest coverage report action from 7426e220c2efd1f0e3dde65143d13d1a5739bb39

github-actions[bot] commented 1 year ago

Coverage report for ./packages/ui

St.:grey_question:
Category Percentage Covered / Total
๐Ÿ”ด Statements
52.85% (+0.13% ๐Ÿ”ผ)
2373/4490
๐Ÿ”ด Branches
26.89% (-0.1% ๐Ÿ”ป)
441/1640
๐Ÿ”ด Functions
36.41% (+0.21% ๐Ÿ”ผ)
461/1266
๐Ÿ”ด Lines
52.95% (+0.14% ๐Ÿ”ผ)
2256/4261
Show new covered files ๐Ÿฃ
|
St.:grey_question:
| File | Statements | Branches | Functions | Lines | | :----------------------------------------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------- | :--------- | :------- | :-------- | :----- | | ๐ŸŸก |
`...` / create-project-button.tsx
| 78.57% | 36.36% | 100% | 78.57% |
Show files with reduced coverage ๐Ÿ”ป
|
St.:grey_question:
| File | Statements | Branches | Functions | Lines | | :----------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------------- | :------------------------------------------------------------- | :------------------------------------------------------------ | :------------------------------------------------------------- | | ๐ŸŸข |
`...` / user.ts
|
85.71% (-14.29% ๐Ÿ”ป)
| 100% |
66.67% (-33.33% ๐Ÿ”ป)
| 100% | | ๐ŸŸก |
`...` / index.tsx
|
64.29% (-1.23% ๐Ÿ”ป)
|
57.14% (+3.3% ๐Ÿ”ผ)
| 40% |
64.29% (-1.23% ๐Ÿ”ป)
| | ๐ŸŸข |
`...` / notification-hub.tsx
|
92.31% (+3.85% ๐Ÿ”ผ)
|
84.62% (-6.29% ๐Ÿ”ป)
| 100% |
92% (+4% ๐Ÿ”ผ)
| | ๐Ÿ”ด |
`...` / comment-widget-preview.tsx
| 34.55% |
10% (-8.18% ๐Ÿ”ป)
| 25% | 35.85% |

Test suite run success

50 tests passing in 32 suites.

Report generated by ๐Ÿงชjest coverage report action from 7426e220c2efd1f0e3dde65143d13d1a5739bb39

relativeci[bot] commented 1 year ago

Job #1209: Bundle Size โ€” 2.02MiB (0%).

1510937(current) vs 1510937 main#1208(baseline)

Metrics (1 change)
โ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒ โ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒCurrent
Job #1209
โ€ƒโ€ƒโ€ƒโ€ƒโ€ƒBaseline
Job #1208
Initial JS 1.39MiB 1.39MiB
Initial CSS 90.41KiB 90.41KiB
Cache Invalidation 0% 24.42%
Chunks 50 50
Assets 57 57
Modules 1045 1045
Duplicate Modules 182 182
Duplicate Code 4.83% 4.83%
Packages 88 88
Duplicate Packages 0 0

Total size by type (no changes)
| โ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒ | โ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒCurrent
[Job #1209](https://app.relative-ci.com/projects/rYoEVFddayylGRgFiBEd/jobs/1209-kH7bmDCFFVXyKWhh47GO?utm_source=github&utm_medium=pr-report "View job report") | โ€ƒโ€ƒโ€ƒโ€ƒโ€ƒBaseline
[Job #1208](https://app.relative-ci.com/projects/rYoEVFddayylGRgFiBEd/jobs/1208-uqi0yPlhOgOmojnlGklF?utm_source=github&utm_medium=pr-report "View baseline job report") | |:--|--:|--:| | [CSS](https://app.relative-ci.com/projects/rYoEVFddayylGRgFiBEd/jobs/1209-kH7bmDCFFVXyKWhh47GO/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") | `90.41KiB` | `90.41KiB` | | [Fonts](https://app.relative-ci.com/projects/rYoEVFddayylGRgFiBEd/jobs/1209-kH7bmDCFFVXyKWhh47GO/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/1209-kH7bmDCFFVXyKWhh47GO/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/1209-kH7bmDCFFVXyKWhh47GO/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` | `0B` | | [JS](https://app.relative-ci.com/projects/rYoEVFddayylGRgFiBEd/jobs/1209-kH7bmDCFFVXyKWhh47GO/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.92MiB` | `1.92MiB` | | [Media](https://app.relative-ci.com/projects/rYoEVFddayylGRgFiBEd/jobs/1209-kH7bmDCFFVXyKWhh47GO/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/1209-kH7bmDCFFVXyKWhh47GO/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.53KiB` | `11.53KiB` |

View job #1209 reportโ€ƒView prod branch activity

cypress[bot] commented 1 year ago



Test summary

4 2 0 1Flakiness 0


Run details

Project chirpy
Status Failed
Commit 7426e220c2
Started Dec 9, 2022 2:27 PM
Ended Dec 9, 2022 2:30 PM
Duration 02:20 ๐Ÿ’ก
OS Linux Ubuntu - 22.04
Browser Chrome 108

View run in Cypress Dashboard โžก๏ธ


Failures

home/header.spec.ts Failed
1 Header > should show user menu
dashboard/project.spec.ts Failed
1 Project > should show integration doc

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