Skip to content

Commit 92fbd0f

Browse files
style: run prettier to resolve format checks
1 parent 2d9dbde commit 92fbd0f

2 files changed

Lines changed: 27 additions & 3 deletions

File tree

app/api/og/route.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ function getLuminance(hex: string) {
3737

3838
export async function GET(req: NextRequest) {
3939
const { searchParams } = new URL(req.url);
40-
const parsed = ogParamsSchema.parse(
41-
Object.fromEntries(searchParams.entries())
42-
);
40+
const parsed = ogParamsSchema.parse(Object.fromEntries(searchParams.entries()));
4341
let { user } = parsed;
4442
const { theme, bg, text, accent } = parsed;
4543

pr_body_584.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
## Description
2+
3+
Fixes #584
4+
5+
## Pillar
6+
7+
- [ ] 🎨 Pillar 1 — New Theme Design
8+
- [ ] 📐 Pillar 2 — Geometric SVG Improvement
9+
- [ ] 🕐 Pillar 3 — Timezone Logic Optimization
10+
- [x] 🛠️ Other (Bug fix, refactoring, docs)
11+
12+
## Visual Preview
13+
14+
No visual changes. This implements an in-memory sliding-window IP rate limiter on the `/api/track-user` endpoint to prevent "Denial of Wallet" and database bloating through automated spam.
15+
16+
## Checklist before requesting a review:
17+
18+
- [x] I have read the `CONTRIBUTING.md` file.
19+
- [x] I have tested these changes locally (`localhost:3000/api/streak?user=YOUR_USERNAME`).
20+
- [x] I have run `npm run format` and `npm run lint` locally and resolved all errors (CI will fail otherwise).
21+
- [x] My commits follow the Conventional Commits format (e.g., `feat(themes): ...`, `fix(calculate): ...`).
22+
- [x] I have updated `README.md` if I added a new theme or URL parameter.
23+
- [x] I have started the repo.
24+
- [x] I have made sure that i have only one commit to merge in this PR.
25+
- [x] The SVG output matches the CommitPulse "premium quality" aesthetic standard (no raw elements, smooth animations, correct fonts).
26+
- [x] (Recommended) I joined the CommitPulse Discord server for faster collaboration, mentorship, and PR support.

0 commit comments

Comments
 (0)