Skip to content

Conversation

@MananTank
Copy link
Member

@MananTank MananTank commented Sep 26, 2025


PR-Codex overview

This PR focuses on enhancing the playground-web application by adding the geist font library and updating the tailwind.config.ts to extend the theme with new font families. It also replaces the existing font imports in layout.tsx with GeistSans and GeistMono.

Detailed summary

  • Added geist library to package.json.
  • Updated tailwind.config.ts to extend the theme with new font families:
    • sans: var(--font-geist-sans)
    • mono: var(--font-geist-mono)
  • Replaced Inter and Fira_Code imports in layout.tsx with GeistSans and GeistMono.
  • Updated class names in the <body> tag to use GeistSans and GeistMono variables.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Summary by CodeRabbit

  • Style

    • Updated global typography to Geist Sans and Geist Mono for a cleaner, consistent look across the app.
    • Tailwind configured to use Geist-based sans and mono font families.
  • Chores

    • Added the "geist" package as a new runtime dependency.
  • Notes

    • No functional changes; changes are visual/typographic only.

@changeset-bot
Copy link

changeset-bot bot commented Sep 26, 2025

⚠️ No Changeset found

Latest commit: 108a79a

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
Copy link

vercel bot commented Sep 26, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
docs-v2 Ready Ready Preview Comment Sep 26, 2025 11:55am
nebula Ready Ready Preview Comment Sep 26, 2025 11:55am
thirdweb_playground Ready Ready Preview Comment Sep 26, 2025 11:55am
thirdweb-www Ready Ready Preview Comment Sep 26, 2025 11:55am
1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
wallet-ui Skipped Skipped Sep 26, 2025 11:55am

@MananTank MananTank marked this pull request as ready for review September 26, 2025 10:15
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Sep 26, 2025

Walkthrough

Replaces Inter and Fira Code font setup with Geist Sans and Geist Mono across the web app, adds the geist package dependency, and updates Tailwind config to reference new CSS variables for the Geist fonts and applies them in the root layout body className.

Changes

Cohort / File(s) Summary
Dependency update
apps/playground-web/package.json
Adds runtime dependency "geist": "^1.5.1".
Geist font integration
apps/playground-web/src/app/layout.tsx, apps/playground-web/tailwind.config.ts
Replaces Inter/Fira Code imports and variables with GeistSans/GeistMono; applies Geist CSS variable classes on the body; extends Tailwind theme to set fontFamily.sans and fontFamily.mono to var(--font-geist-sans) and var(--font-geist-mono) respectively.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Pre-merge checks and finishing touches

❌ Failed checks (2 warnings)
Check name Status Explanation Resolution
Description Check ⚠️ Warning The pull request description remains as the unfilled template comments and does not include the required title format, reviewer notes, or testing instructions specified by the repository’s description template, leaving essential context and guidance missing. Please replace the placeholder template with a completed description including the formatted title line, specific Notes for the reviewer, and concrete How to test steps to fulfill the repository’s PR description requirements.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (1 passed)
Check name Status Explanation
Title Check ✅ Passed The title Playground: Use Geist fonts succinctly captures the primary change of integrating the Geist font into the playground-web application and is clear and focused for anyone scanning the history.
✨ Finishing touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch 09-26-playground_use_geist_fonts

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 053502f and 108a79a.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (3)
  • apps/playground-web/package.json (1 hunks)
  • apps/playground-web/src/app/layout.tsx (2 hunks)
  • apps/playground-web/tailwind.config.ts (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (3)
  • apps/playground-web/tailwind.config.ts
  • apps/playground-web/src/app/layout.tsx
  • apps/playground-web/package.json
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Analyze (javascript)

Warning

Review ran into problems

🔥 Problems

Errors were encountered while retrieving linked issues.

Errors (1)
  • TEAM-0000: Entity not found: Issue - Could not find referenced Issue.

Comment @coderabbitai help to get the list of available commands and usage tips.

@MananTank MananTank requested review from a team as code owners September 26, 2025 10:15
@vercel vercel bot temporarily deployed to Preview – wallet-ui September 26, 2025 10:15 Inactive
@github-actions github-actions bot added the Playground Changes involving the Playground codebase. label Sep 26, 2025
Copy link
Member Author

MananTank commented Sep 26, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge-queue - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@codecov
Copy link

codecov bot commented Sep 26, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 56.27%. Comparing base (51390f3) to head (108a79a).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8133   +/-   ##
=======================================
  Coverage   56.27%   56.27%           
=======================================
  Files         906      906           
  Lines       59193    59193           
  Branches     4173     4173           
=======================================
  Hits        33311    33311           
  Misses      25777    25777           
  Partials      105      105           
Flag Coverage Δ
packages 56.27% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 26, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 64.09 KB (0%) 1.3 s (0%) 228 ms (+82.62% 🔺) 1.6 s
thirdweb (cjs) 361.63 KB (0%) 7.3 s (0%) 1.3 s (-0.43% 🔽) 8.5 s
thirdweb (minimal + tree-shaking) 5.73 KB (0%) 115 ms (0%) 99 ms (+1725.31% 🔺) 214 ms
thirdweb/chains (tree-shaking) 526 B (0%) 11 ms (0%) 37 ms (+648.29% 🔺) 47 ms
thirdweb/react (minimal + tree-shaking) 19.14 KB (0%) 383 ms (0%) 60 ms (+572.89% 🔺) 443 ms

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (2)
apps/playground-web/src/app/layout.tsx (1)

27-31: Mark as server-only and add explicit return type

  • Add import "server-only" to enforce server component boundaries.
  • Provide an explicit return type for RootLayout per TS guidelines.

As per coding guidelines

You can apply these outside the shown hunk:

// at the very top of the file
import "server-only";
// function signature
export default async function RootLayout({
  children,
}: {
  children: React.ReactNode;
}): Promise<JSX.Element> {
apps/playground-web/tailwind.config.ts (1)

11-13: Preserve base font families and add generic fallbacks

Current block overwrites any upstream fontFamily extensions and lacks generic fallbacks. Merge with base config and add "sans-serif"/"monospace" to be resilient if fonts fail to load.

Apply this diff:

-      fontFamily: {
-        sans: ["var(--font-geist-sans)"],
-        mono: ["var(--font-geist-mono)"],
-      },
+      fontFamily: {
+        ...(tailwindConfig.theme?.extend?.fontFamily || {}),
+        sans: [
+          "var(--font-geist-sans)",
+          ...(tailwindConfig.theme?.extend?.fontFamily?.sans ?? []),
+          "system-ui",
+          "sans-serif",
+        ],
+        mono: [
+          "var(--font-geist-mono)",
+          ...(tailwindConfig.theme?.extend?.fontFamily?.mono ?? []),
+          "ui-monospace",
+          "SFMono-Regular",
+          "Menlo",
+          "monospace",
+        ],
+      },
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 51390f3 and 053502f.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (3)
  • apps/playground-web/package.json (1 hunks)
  • apps/playground-web/src/app/layout.tsx (2 hunks)
  • apps/playground-web/tailwind.config.ts (1 hunks)
🧰 Additional context used
📓 Path-based instructions (4)
**/*.{ts,tsx}

📄 CodeRabbit inference engine (CLAUDE.md)

**/*.{ts,tsx}: Write idiomatic TypeScript with explicit function declarations and return types
Limit each file to one stateless, single-responsibility function for clarity
Re-use shared types from @/types or local types.ts barrels
Prefer type aliases over interface except for nominal shapes
Avoid any and unknown unless unavoidable; narrow generics when possible
Choose composition over inheritance; leverage utility types (Partial, Pick, etc.)
Comment only ambiguous logic; avoid restating TypeScript in prose

**/*.{ts,tsx}: Use explicit function declarations and explicit return types in TypeScript
Limit each file to one stateless, single‑responsibility function
Re‑use shared types from @/types where applicable
Prefer type aliases over interface except for nominal shapes
Avoid any and unknown unless unavoidable; narrow generics when possible
Prefer composition over inheritance; use utility types (Partial, Pick, etc.)
Lazy‑import optional features and avoid top‑level side‑effects to reduce bundle size

Files:

  • apps/playground-web/tailwind.config.ts
  • apps/playground-web/src/app/layout.tsx
**/*.{ts,tsx,js,jsx}

📄 CodeRabbit inference engine (CLAUDE.md)

Load heavy dependencies inside async paths to keep initial bundle lean (lazy loading)

Files:

  • apps/playground-web/tailwind.config.ts
  • apps/playground-web/src/app/layout.tsx
apps/{dashboard,playground-web}/**/*.{ts,tsx}

📄 CodeRabbit inference engine (CLAUDE.md)

apps/{dashboard,playground-web}/**/*.{ts,tsx}: Import UI primitives from @/components/ui/* (Button, Input, Select, Tabs, Card, Sidebar, Badge, Separator) in dashboard and playground apps
Use NavLink for internal navigation with automatic active states in dashboard and playground apps
Use Tailwind CSS only – no inline styles or CSS modules
Use cn() from @/lib/utils for conditional class logic
Use design system tokens (e.g., bg-card, border-border, text-muted-foreground)
Server Components (Node edge): Start files with import "server-only";
Client Components (browser): Begin files with 'use client';
Always call getAuthToken() to retrieve JWT from cookies on server side
Use Authorization: Bearer header – never embed tokens in URLs
Return typed results (e.g., Project[], User[]) – avoid any
Wrap client-side data fetching calls in React Query (@tanstack/react-query)
Use descriptive, stable queryKeys for React Query cache hits
Configure staleTime/cacheTime in React Query based on freshness (default ≥ 60s)
Keep tokens secret via internal API routes or server actions
Never import posthog-js in server components

Files:

  • apps/playground-web/tailwind.config.ts
  • apps/playground-web/src/app/layout.tsx
**/package.json

📄 CodeRabbit inference engine (AGENTS.md)

Track bundle budgets via package.json#size-limit

Files:

  • apps/playground-web/package.json
🧠 Learnings (4)
📚 Learning: 2025-08-29T15:37:38.513Z
Learnt from: CR
PR: thirdweb-dev/js#0
File: AGENTS.md:0-0
Timestamp: 2025-08-29T15:37:38.513Z
Learning: Applies to apps/{dashboard,playground}/**/*.{ts,tsx} : Use Tailwind CSS for styling; no inline styles

Applied to files:

  • apps/playground-web/tailwind.config.ts
  • apps/playground-web/src/app/layout.tsx
📚 Learning: 2025-07-18T19:19:55.613Z
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-18T19:19:55.613Z
Learning: Applies to apps/{dashboard,playground-web}/**/*.{ts,tsx} : Use Tailwind CSS only – no inline styles or CSS modules

Applied to files:

  • apps/playground-web/tailwind.config.ts
  • apps/playground-web/src/app/layout.tsx
📚 Learning: 2025-07-18T19:19:55.613Z
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-18T19:19:55.613Z
Learning: Applies to apps/{dashboard,playground-web}/**/*.{ts,tsx} : Use design system tokens (e.g., `bg-card`, `border-border`, `text-muted-foreground`)

Applied to files:

  • apps/playground-web/src/app/layout.tsx
📚 Learning: 2025-08-29T15:37:38.513Z
Learnt from: CR
PR: thirdweb-dev/js#0
File: AGENTS.md:0-0
Timestamp: 2025-08-29T15:37:38.513Z
Learning: Applies to apps/{dashboard,playground}/**/*.{ts,tsx} : Stick to design tokens (e.g., bg-card, border-border, text-muted-foreground)

Applied to files:

  • apps/playground-web/src/app/layout.tsx
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
  • GitHub Check: Size
  • GitHub Check: Lint Packages
  • GitHub Check: Analyze (javascript)
🔇 Additional comments (2)
apps/playground-web/package.json (1)

29-29: Geist dependency addition looks good

Version ^1.5.1 is current and stable; aligns with the layout/tailwind changes.

apps/playground-web/src/app/layout.tsx (1)

7-8: Geist font imports are correct

Using geist/font/mono and geist/font/sans with .variable matches Tailwind’s CSS variable mapping.

@graphite-app
Copy link
Contributor

graphite-app bot commented Sep 26, 2025

Merge activity

<!--

## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes"

If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000):

## Notes for the reviewer

Anything important to call out? Be sure to also clarify these in your comments.

## How to test

Unit tests, playground, etc.

-->

<!-- start pr-codex -->

---

## PR-Codex overview
This PR primarily focuses on integrating the `geist` font into the `playground-web` application, updating the `tailwind` configuration, and replacing existing font imports with `GeistSans` and `GeistMono`.

### Detailed summary
- Added `geist` dependency in `package.json`.
- Updated `tailwind.config.ts` to extend the theme with `geist` font families.
- Replaced `Fira_Code` and `Inter` font imports in `layout.tsx` with `GeistMono` and `GeistSans`.
- Updated the body class to use `GeistSans` and `GeistMono` variables.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

## Summary by CodeRabbit

- Style
  - Updated global typography to Geist Sans and Geist Mono for a cleaner, consistent look.
  - Replaced previous Inter and Fira Code fonts with new Geist font variables in the app layout.
  - Configured Tailwind to use Geist-based sans and mono font families across the app.

- Chores
  - Added Geist font package as a new dependency.

- Notes
  - No functional changes; visual update limited to typography.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Playground Changes involving the Playground codebase.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants