Skip to content

Conversation

@saminacodes
Copy link
Member

@saminacodes saminacodes commented Jul 4, 2025

CORE-0000


PR-Codex overview

This PR focuses on updating the Payments and Supported Chains sections in the documentation, modifying icons and their sizes, and enhancing SVG graphics for various icons. It also removes unused images, improving overall asset management.

Detailed summary

  • Removed unused images: background-1.png, auth.svg, infra.svg, nebula.svg, payment.svg, storage.svg, contract.svg.
  • Updated icon in page.mdx from thirdweb to payments.
  • Changed title in page.mdx to "thirdweb Payments Docs: Web3 Payments, On-ramping, bridging & swapping".
  • Modified metadata in supported-chains/page.mdx:
    • Updated title to "Supported Chains".
    • Changed icon to payments.
  • Increased iconSize from 300 to 400 in route.tsx.
  • Updated positioning of SVG elements in route.tsx.
  • Replaced SVG content in insight.svg with a new design.
  • Added new SVG graphics for rpc.svg, contracts.svg, and vault.svg, enhancing visual representation.
  • Adjusted styles and attributes in newly added SVG files for consistency and clarity.

The following files were skipped due to too many changes: apps/portal/public/og/icons/vault.svg, apps/portal/public/og/icons/account-abstraction.svg, apps/portal/public/og/icons/payments.svg, apps/portal/public/og/icons/wallets.svg, apps/portal/public/og/icons/transactions.svg

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

Summary by CodeRabbit

  • Style

    • Increased the size of the icon and adjusted its placement in generated images for improved visual appearance.
  • Documentation

    • Updated the icon and image title in the payments documentation and supported chains pages to better reflect their content.

@saminacodes saminacodes requested review from a team as code owners July 4, 2025 02:10
@changeset-bot
Copy link

changeset-bot bot commented Jul 4, 2025

⚠️ No Changeset found

Latest commit: a09d93c

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 Jul 4, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 4, 2025 2:22am
4 Skipped Deployments
Name Status Preview Comments Updated (UTC)
nebula ⬜️ Skipped (Inspect) Jul 4, 2025 2:22am
thirdweb_playground ⬜️ Skipped (Inspect) Jul 4, 2025 2:22am
thirdweb-www ⬜️ Skipped (Inspect) Jul 4, 2025 2:22am
wallet-ui ⬜️ Skipped (Inspect) Jul 4, 2025 2:22am

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jul 4, 2025

Walkthrough

The changes update image-related properties across several files. The icon size and positioning are modified in an image generation route, while the metadata for two documentation pages is updated to use a different icon and image title. No changes are made to public APIs or exported function signatures.

Changes

File(s) Summary of Changes
apps/portal/src/app/api/og/route.tsx Increased iconSize from 300 to 400 and adjusted the right and top style properties for the icon.
apps/portal/src/app/pay/page.mdx,
apps/portal/src/app/pay/supported-chains/page.mdx
Updated metadata: changed image icon from "thirdweb" to "payments"; updated image title in one file.

Warning

Review ran into problems

🔥 Problems

Errors were encountered while retrieving linked issues.

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

📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 7500d87 and a09d93c.

⛔ Files ignored due to path filters (15)
  • apps/portal/public/og/background-1.png is excluded by !**/*.png
  • apps/portal/public/og/icons/account-abstraction.svg is excluded by !**/*.svg
  • apps/portal/public/og/icons/auth.svg is excluded by !**/*.svg
  • apps/portal/public/og/icons/contract.svg is excluded by !**/*.svg
  • apps/portal/public/og/icons/contracts.svg is excluded by !**/*.svg
  • apps/portal/public/og/icons/infra.svg is excluded by !**/*.svg
  • apps/portal/public/og/icons/insight.svg is excluded by !**/*.svg
  • apps/portal/public/og/icons/nebula.svg is excluded by !**/*.svg
  • apps/portal/public/og/icons/payment.svg is excluded by !**/*.svg
  • apps/portal/public/og/icons/payments.svg is excluded by !**/*.svg
  • apps/portal/public/og/icons/rpc.svg is excluded by !**/*.svg
  • apps/portal/public/og/icons/storage.svg is excluded by !**/*.svg
  • apps/portal/public/og/icons/transactions.svg is excluded by !**/*.svg
  • apps/portal/public/og/icons/vault.svg is excluded by !**/*.svg
  • apps/portal/public/og/icons/wallets.svg is excluded by !**/*.svg
📒 Files selected for processing (3)
  • apps/portal/src/app/api/og/route.tsx (2 hunks)
  • apps/portal/src/app/pay/page.mdx (1 hunks)
  • apps/portal/src/app/pay/supported-chains/page.mdx (1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
`**/*.{ts,tsx}`: Write idiomatic TypeScript with explicit function declarations ...

**/*.{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
Load heavy dependencies inside async paths to keep initial bundle lean (lazy loading)

📄 Source: CodeRabbit Inference Engine (CLAUDE.md)

List of files the instruction was applied to:

  • apps/portal/src/app/api/og/route.tsx
🧠 Learnings (4)
📓 Common learnings
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-06-30T10:25:29.488Z
Learning: Surface breaking changes prominently in PR descriptions
Learnt from: CR
PR: thirdweb-dev/js#0
File: .cursor/rules/dashboard.mdc:0-0
Timestamp: 2025-06-30T10:26:04.389Z
Learning: Applies to dashboard/**/components/**/*.{ts,tsx} : Icons come from `lucide-react` or the project-specific `…/icons` exports – never embed raw SVG.
apps/portal/src/app/pay/supported-chains/page.mdx (1)
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-06-30T10:25:29.488Z
Learning: Surface breaking changes prominently in PR descriptions
apps/portal/src/app/pay/page.mdx (1)
Learnt from: MananTank
PR: thirdweb-dev/js#7152
File: apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/tokens/shared-page.tsx:41-48
Timestamp: 2025-05-26T16:28:50.772Z
Learning: The `projectMeta` prop is not required for the server-rendered `ContractTokensPage` component in the tokens shared page, unlike some other shared pages where it's needed for consistency.
apps/portal/src/app/api/og/route.tsx (4)
Learnt from: CR
PR: thirdweb-dev/js#0
File: .cursor/rules/dashboard.mdc:0-0
Timestamp: 2025-06-30T10:26:04.389Z
Learning: Applies to dashboard/**/components/**/*.{ts,tsx} : Icons come from `lucide-react` or the project-specific `…/icons` exports – never embed raw SVG.
Learnt from: CR
PR: thirdweb-dev/js#0
File: .cursor/rules/dashboard.mdc:0-0
Timestamp: 2025-06-30T10:26:04.389Z
Learning: Applies to dashboard/**/hooks/**/*.{ts,tsx} : Prefer API routes or server actions to keep tokens secret; the browser only sees relative paths.
Learnt from: CR
PR: thirdweb-dev/js#0
File: .cursor/rules/dashboard.mdc:0-0
Timestamp: 2025-06-30T10:26:04.389Z
Learning: Applies to dashboard/**/api/**/*.{ts,tsx} : Redirect logic using `redirect()` from `next/navigation`.
Learnt from: MananTank
PR: thirdweb-dev/js#7505
File: apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/webhooks/components/webhook-metrics.tsx:40-40
Timestamp: 2025-07-02T20:04:53.982Z
Learning: The Spinner component imported from "@/components/ui/Spinner/Spinner" in the dashboard accepts a className prop, not a size prop. The correct usage is <Spinner className="size-4" />, not <Spinner size="sm" />. The component defaults to "size-4" if no className is provided.
⏰ Context from checks skipped due to timeout of 90000ms (2)
  • GitHub Check: Size
  • GitHub Check: Analyze (javascript)
🔇 Additional comments (4)
apps/portal/src/app/pay/supported-chains/page.mdx (1)

5-6: LGTM! Consistent metadata updates for payments branding.

The simplified image title and icon change to "payments" align well with the PR objectives to standardize payments documentation imagery.

apps/portal/src/app/pay/page.mdx (1)

9-9: LGTM! Consistent icon update across payments pages.

The change to "payments" icon maintains consistency with the supported-chains page and aligns with the PR's branding objectives.

apps/portal/src/app/api/og/route.tsx (2)

12-12: LGTM! Icon size increase coordinates with metadata updates.

The increase from 300 to 400 pixels aligns with the payments icon updates in the MDX files and should provide better visual prominence.


139-140: Positioning calculations verified: icon fits within the 1200×630 bounds

The updated values

  • right: width / 20 → 60 px
  • top: height / 2 - iconSize / 1.5 → ~48 px

yield icon boundaries of
• x: 740 px → 1140 px
• y: 48 px → 448 px

All edges fall within the 1200×630 canvas. No further adjustments needed.

✨ Finishing Touches
  • 📝 Generate Docstrings

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@graphite-app
Copy link
Contributor

graphite-app bot commented Jul 4, 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.

@github-actions github-actions bot added the Portal Involves changes to the Portal (docs) codebase. label Jul 4, 2025
@codecov
Copy link

codecov bot commented Jul 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 51.96%. Comparing base (f1a965b) to head (a09d93c).
Report is 9 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7526   +/-   ##
=======================================
  Coverage   51.96%   51.96%           
=======================================
  Files         952      952           
  Lines       64224    64220    -4     
  Branches     4237     4237           
=======================================
- Hits        33377    33375    -2     
+ Misses      30740    30738    -2     
  Partials      107      107           
Flag Coverage Δ
packages 51.96% <ø> (+<0.01%) ⬆️

see 5 files with indirect coverage changes

🚀 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.

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: 2

🔭 Outside diff range comments (1)
apps/portal/src/app/api/og/route.tsx (1)

7-7: Typo in constant name (BAST_URL) leaks into every generated asset URL
BAST_URL is most likely meant to be BASE_URL. Using the miss-spelled identifier propagates to every src={…} making all OG image requests 404 when the environment variable/path is correct but the variable name is not.

-const BAST_URL = getBaseUrl();
+const BASE_URL = getBaseUrl();
 ...
-const iconUrl = `${BAST_URL}/og/icons/${icon}.svg`;
+const iconUrl = `${BASE_URL}/og/icons/${icon}.svg`;

(Search/replace the remaining occurrences as well.)

🧹 Nitpick comments (1)
apps/portal/src/app/api/og/route.tsx (1)

14-16: Variable inter600 fetches a “700” font – naming drift
For clarity & future maintenance, rename either the file or the variable so weight and name match.

-const inter600 = fetch(new URL("./inter/700.ttf", import.meta.url)).then(
+const inter700 = fetch(new URL("./inter/700.ttf", import.meta.url)).then(
   (res) => res.arrayBuffer(),
 );
 ...
-          data: await inter600,
+          data: await inter700,
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 7500d87 and a09d93c.

⛔ Files ignored due to path filters (15)
  • apps/portal/public/og/background-1.png is excluded by !**/*.png
  • apps/portal/public/og/icons/account-abstraction.svg is excluded by !**/*.svg
  • apps/portal/public/og/icons/auth.svg is excluded by !**/*.svg
  • apps/portal/public/og/icons/contract.svg is excluded by !**/*.svg
  • apps/portal/public/og/icons/contracts.svg is excluded by !**/*.svg
  • apps/portal/public/og/icons/infra.svg is excluded by !**/*.svg
  • apps/portal/public/og/icons/insight.svg is excluded by !**/*.svg
  • apps/portal/public/og/icons/nebula.svg is excluded by !**/*.svg
  • apps/portal/public/og/icons/payment.svg is excluded by !**/*.svg
  • apps/portal/public/og/icons/payments.svg is excluded by !**/*.svg
  • apps/portal/public/og/icons/rpc.svg is excluded by !**/*.svg
  • apps/portal/public/og/icons/storage.svg is excluded by !**/*.svg
  • apps/portal/public/og/icons/transactions.svg is excluded by !**/*.svg
  • apps/portal/public/og/icons/vault.svg is excluded by !**/*.svg
  • apps/portal/public/og/icons/wallets.svg is excluded by !**/*.svg
📒 Files selected for processing (3)
  • apps/portal/src/app/api/og/route.tsx (2 hunks)
  • apps/portal/src/app/pay/page.mdx (1 hunks)
  • apps/portal/src/app/pay/supported-chains/page.mdx (1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
`**/*.{ts,tsx}`: Write idiomatic TypeScript with explicit function declarations ...

**/*.{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
Load heavy dependencies inside async paths to keep initial bundle lean (lazy loading)

📄 Source: CodeRabbit Inference Engine (CLAUDE.md)

List of files the instruction was applied to:

  • apps/portal/src/app/api/og/route.tsx
🧠 Learnings (3)
apps/portal/src/app/pay/page.mdx (1)
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-06-30T10:25:29.488Z
Learning: Surface breaking changes prominently in PR descriptions
apps/portal/src/app/pay/supported-chains/page.mdx (1)
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-06-30T10:25:29.488Z
Learning: Surface breaking changes prominently in PR descriptions
apps/portal/src/app/api/og/route.tsx (9)
Learnt from: CR
PR: thirdweb-dev/js#0
File: .cursor/rules/dashboard.mdc:0-0
Timestamp: 2025-06-30T10:26:04.389Z
Learning: Applies to dashboard/**/components/**/*.{ts,tsx} : Icons come from `lucide-react` or the project-specific `…/icons` exports – never embed raw SVG.
Learnt from: CR
PR: thirdweb-dev/js#0
File: .cursor/rules/dashboard.mdc:0-0
Timestamp: 2025-06-30T10:26:04.389Z
Learning: Applies to dashboard/**/components/**/*.{ts,tsx} : Responsive helpers follow mobile-first (`max-sm`, `md`, `lg`, `xl`).
Learnt from: CR
PR: thirdweb-dev/js#0
File: .cursor/rules/dashboard.mdc:0-0
Timestamp: 2025-06-30T10:26:04.389Z
Learning: Applies to dashboard/**/components/**/*.{ts,tsx} : Spacing utilities (`px-*`, `py-*`, `gap-*`) are preferred over custom margins.
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-06-30T10:25:29.488Z
Learning: Applies to apps/{dashboard,playground-web}/**/*.{tsx,ts} : Use design system tokens (e.g., `bg-card`, `border-border`, `text-muted-foreground`)
Learnt from: CR
PR: thirdweb-dev/js#0
File: .cursor/rules/dashboard.mdc:0-0
Timestamp: 2025-06-30T10:26:04.389Z
Learning: Applies to dashboard/**/*.{ts,tsx} : Use the `container` class with a `max-w-7xl` cap for page width consistency.
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-06-30T10:25:29.488Z
Learning: Applies to apps/{dashboard,playground-web}/**/*.{tsx,ts} : Use `NavLink` for internal navigation with automatic active states in dashboard and playground apps
Learnt from: CR
PR: thirdweb-dev/js#0
File: .cursor/rules/dashboard.mdc:0-0
Timestamp: 2025-06-30T10:26:04.389Z
Learning: Applies to dashboard/**/hooks/**/*.{ts,tsx} : Prefer API routes or server actions to keep tokens secret; the browser only sees relative paths.
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-06-30T10:25:29.488Z
Learning: Surface breaking changes prominently in PR descriptions
Learnt from: MananTank
PR: thirdweb-dev/js#7505
File: apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/webhooks/components/webhook-metrics.tsx:40-40
Timestamp: 2025-07-02T20:04:53.982Z
Learning: The Spinner component imported from "@/components/ui/Spinner/Spinner" in the dashboard accepts a className prop, not a size prop. The correct usage is <Spinner className="size-4" />, not <Spinner size="sm" />. The component defaults to "size-4" if no className is provided.
⏰ Context from checks skipped due to timeout of 90000ms (3)
  • GitHub Check: Size
  • GitHub Check: Lint Packages
  • GitHub Check: Analyze (javascript)
🔇 Additional comments (2)
apps/portal/src/app/pay/page.mdx (1)

7-10: Ensure payments.svg actually exists in /og/icons/
The icon key changed to "payments", which maps to
${BASE_URL}/og/icons/payments.svg at render time.
If the file isn’t present the OG preview will show a broken image. Please confirm the asset landed in the repo or CI-generated bucket.

apps/portal/src/app/pay/supported-chains/page.mdx (1)

5-7: Same missing-asset check for new "payments" icon
Double-check that payments.svg is available; otherwise both this page and /pay will produce broken social previews.

const height = 630;

const iconSize = 300;
const iconSize = 400;
Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

iconSize bumped to 400 px without re-balancing dependent layout math
Increasing only iconSize makes the element 33 % larger but the top/right offsets (below) are now hard-coded numbers unrelated to the new size, so the icon will no longer be vertically centred and may overlap content on smaller canvases. Consider deriving offsets from iconSize to keep proportions stable.

🤖 Prompt for AI Agents
In apps/portal/src/app/api/og/route.tsx at line 12, the iconSize constant was
increased to 400 but the related top and right offset values remain hard-coded
and do not scale with iconSize. To fix this, update the offset calculations to
be proportional to iconSize instead of fixed numbers, ensuring the icon stays
vertically centered and does not overlap content regardless of size changes.

Comment on lines +139 to 141
right: width / 20,
top: height / 2 - iconSize / 1.5,
}}
Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Hard-coded offsets break proportional layout
right: width / 20 and top: height / 2 - iconSize / 1.5 ignore iconSize changes and magic-number the positioning.
Example fix (centres the icon and gives a margin equal to 5 % of canvas width):

-  right: width / 20,
-  top: height / 2 - iconSize / 1.5,
+  right: width * 0.05,
+  top: (height - iconSize) / 2,

This keeps the asset fully visible whatever size you set.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
right: width / 20,
top: height / 2 - iconSize / 1.5,
}}
right: width * 0.05,
top: (height - iconSize) / 2,
}}
🤖 Prompt for AI Agents
In apps/portal/src/app/api/og/route.tsx around lines 139 to 141, the style uses
hard-coded offsets for right and top properties that do not scale proportionally
with iconSize, causing layout issues. Replace these fixed calculations with
expressions that center the icon and apply a margin relative to the canvas
width, such as setting right to 5% of width and top to vertically center the
icon based on iconSize, ensuring the icon remains fully visible and properly
positioned regardless of size changes.

@github-actions
Copy link
Contributor

github-actions bot commented Jul 4, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 63.11 KB (0%) 1.3 s (0%) 506 ms (+71.78% 🔺) 1.8 s
thirdweb (cjs) 352.76 KB (0%) 7.1 s (0%) 2.5 s (+0.1% 🔺) 9.5 s
thirdweb (minimal + tree-shaking) 5.72 KB (0%) 115 ms (0%) 104 ms (+397.83% 🔺) 219 ms
thirdweb/chains (tree-shaking) 530 B (0%) 11 ms (0%) 65 ms (+991.45% 🔺) 75 ms
thirdweb/react (minimal + tree-shaking) 19.59 KB (0%) 392 ms (0%) 96 ms (+101.13% 🔺) 488 ms

@joaquim-verges joaquim-verges merged commit d92ab6f into main Jul 4, 2025
25 checks passed
@joaquim-verges joaquim-verges deleted the portal-images branch July 4, 2025 04:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Portal Involves changes to the Portal (docs) codebase.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants