Skip to content

test(ControlsPanel-type-compiler): verify TypeScript Compiler Validation & Schema Constraints Stability#7948

Open
sheeeuWu wants to merge 1 commit into
JhaSourav07:mainfrom
sheeeuWu:test/6872-controlspanel-type-compiler
Open

test(ControlsPanel-type-compiler): verify TypeScript Compiler Validation & Schema Constraints Stability#7948
sheeeuWu wants to merge 1 commit into
JhaSourav07:mainfrom
sheeeuWu:test/6872-controlspanel-type-compiler

Conversation

@sheeeuWu

Copy link
Copy Markdown
Contributor

Description

Adds ControlsPanel.type-compiler.test.tsx with 5 tests covering TypeScript type safety: Scale and BadgeSize reject invalid literals, Font correctly widens to string (enabling custom font input), SIZES/FONTS/SPEEDS values stay assignable to their exported types, and the component's props enforce literal unions on scale/bgType/size
No schema validation step, since the codebase has no schema library like zod/yup. types.ts is plain TypeScript only.

Fixes #6872

Pillar

  • 🎨 Pillar 1 — New Theme Design
  • 📐 Pillar 2 — Geometric SVG Improvement
  • 🕐 Pillar 3 — Timezone Logic Optimization
  • 🛠️ Other (Bug fix, refactoring, docs)

Visual Preview

N/A

Checklist before requesting a review:

  • I have read the CONTRIBUTING.md file.
  • I have tested these changes locally (localhost:3000/api/streak?user=YOUR_USERNAME).
  • I have run npm run format and npm run lint locally and resolved all errors (CI will fail otherwise).
  • My commits follow the Conventional Commits format (e.g., feat(themes): ..., fix(calculate): ...).
  • I have updated README.md if I added a new theme or URL parameter.
  • I have started the repo.
  • I have made sure that i have only one commit to merge in this PR.
  • The SVG output matches the CommitPulse "premium quality" aesthetic standard (no raw elements, smooth animations, correct fonts).
  • (Recommended) I joined the CommitPulse Discord community for contributor discussions, mentorship, and faster PR support.

@github-actions

Copy link
Copy Markdown
Contributor

📦 Next.js Bundle Size Report (Gzipped Sizes)

✨ No significant bundle size changes detected.

📊 Summary of Totals

Category PR Size Base Size Difference
Total JS 3910.49 KB 3910.49 KB 0 B
Total CSS 326.92 KB 326.92 KB 0 B

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.

test(ControlsPanel-type-compiler): verify TypeScript Compiler Validation & Schema Constraints Stability (Variation 10)

1 participant