Skip to content

Conversation

@arcoraven
Copy link
Contributor

@arcoraven arcoraven commented Jun 14, 2025

[Portal] Feature: Reorganize Teams & Accounts section

Notes for the reviewer

This PR reorganizes the account section into a more structured "Teams & Accounts" section with clearer navigation. The changes include:

  • Renamed the main account page to "Teams & Accounts"
  • Restructured the sidebar navigation with dedicated sections for Account, Teams, and Projects
  • Moved team management from billing section to its own dedicated Teams section
  • Added new pages for managing teams and team members with detailed instructions
  • Updated navigation links throughout the account section

How to test

Navigate through the account section to verify all links work correctly and the new team management pages display properly.

Summary by CodeRabbit

  • New Features

    • Introduced new documentation pages for "Manage Teams" and "Manage Team Members," providing step-by-step guidance on team organization, member roles, and management tasks.
  • Documentation

    • Updated the account documentation and sidebar to "Teams & Accounts," reorganizing sections into Account, Teams, Projects, and FAQs.
    • Removed most billing-related links, keeping only "Manage Billing" under Teams.
    • Standardized terminology and improved navigation for account, team, and project management topics.

PR-Codex overview

This PR focuses on enhancing the documentation for managing teams and accounts within the application. It introduces new content for inviting team members, managing teams, and updating sidebar links to reflect these changes.

Detailed summary

  • Deleted page.mdx and manage-team.png files.
  • Added new content for managing team members in manage-team-members/page.mdx.
  • Updated sidebar in sidebar.tsx to reflect "Teams & Accounts" and related links.
  • Introduced new documentation for managing teams in manage-teams/page.mdx.
  • Revised account-related links in page.mdx to include new team management options.

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

@vercel
Copy link

vercel bot commented Jun 14, 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 Jun 14, 2025 6:12am
4 Skipped Deployments
Name Status Preview Comments Updated (UTC)
login ⬜️ Skipped (Inspect) Jun 14, 2025 6:12am
thirdweb_playground ⬜️ Skipped (Inspect) Jun 14, 2025 6:12am
thirdweb-www ⬜️ Skipped (Inspect) Jun 14, 2025 6:12am
wallet-ui ⬜️ Skipped (Inspect) Jun 14, 2025 6:12am

@vercel vercel bot temporarily deployed to Preview – wallet-ui June 14, 2025 05:37 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb-www June 14, 2025 05:37 Inactive
@vercel vercel bot temporarily deployed to Preview – login June 14, 2025 05:37 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground June 14, 2025 05:37 Inactive
@changeset-bot
Copy link

changeset-bot bot commented Jun 14, 2025

⚠️ No Changeset found

Latest commit: d2c587a

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

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jun 14, 2025

Caution

Review failed

The pull request is closed.

"""

Walkthrough

The changes reorganize the account-related documentation and sidebar navigation in the portal application. The account section is now titled "Teams & Accounts," with content and navigation split into new subsections for accounts, teams, projects, and FAQs. Two new documentation pages, "Manage Teams" and "Manage Team Members," were introduced.

Changes

File(s) Change Summary
apps/portal/src/app/account/page.mdx Retitled to "Teams & Accounts", reorganized sections, removed billing, added teams/projects/FAQs sections.
apps/portal/src/app/account/sidebar.tsx Sidebar restructured: renamed, nested groups for Account/Teams, removed Billing, added new links for teams.
apps/portal/src/app/account/teams/manage-team-members/page.mdx New documentation page: instructions for managing team members, roles, and invitations.
apps/portal/src/app/account/teams/manage-teams/page.mdx New documentation page: instructions for team management, ownership transfer, and deletion workflow.
apps/portal/src/app/account/billing/manage-team/page.mdx Deleted obsolete team management billing documentation page.

Sequence Diagram(s)

sequenceDiagram
    User->>Portal Sidebar: Navigate to "Teams & Accounts"
    Portal Sidebar->>User: Show nested sections (Account, Teams, Projects, FAQs)
    User->>Teams Section: Select "Manage Teams" or "Manage Team Members"
    Teams Section->>Documentation Page: Display relevant instructions and UI
Loading

Possibly related PRs


📜 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 ef1f1c7 and d2c587a.

⛔ Files ignored due to path filters (1)
  • apps/portal/src/app/account/teams/assets/manage-team.png is excluded by !**/*.png
📒 Files selected for processing (5)
  • apps/portal/src/app/account/billing/manage-team/page.mdx (0 hunks)
  • apps/portal/src/app/account/page.mdx (1 hunks)
  • apps/portal/src/app/account/sidebar.tsx (1 hunks)
  • apps/portal/src/app/account/teams/manage-team-members/page.mdx (1 hunks)
  • apps/portal/src/app/account/teams/manage-teams/page.mdx (1 hunks)
✨ 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.

@github-actions github-actions bot added the Portal Involves changes to the Portal (docs) codebase. label Jun 14, 2025
@arcoraven arcoraven marked this pull request as ready for review June 14, 2025 05:37
@arcoraven arcoraven requested review from a team as code owners June 14, 2025 05:37
Copy link
Contributor Author


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 Jun 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.58%. Comparing base (94e2cbc) to head (d2c587a).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7341   +/-   ##
=======================================
  Coverage   55.58%   55.58%           
=======================================
  Files         909      909           
  Lines       58683    58683           
  Branches     4158     4158           
=======================================
  Hits        32617    32617           
  Misses      25959    25959           
  Partials      107      107           
Flag Coverage Δ
packages 55.58% <ø> (ø)
🚀 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: 1

🧹 Nitpick comments (3)
apps/portal/src/app/account/page.mdx (1)

20-21: Minor duplication – heading + bullet are identical.

Having “## FAQs” immediately followed by “- FAQs” is a bit redundant.
Consider either renaming the bullet (e.g. “Common questions”) or dropping it and linking the heading directly.

🧰 Tools
🪛 LanguageTool

[duplication] ~20-~20: Possible typo: you repeated a word.
Context: ...account/api-keys/transfer-projects) ## FAQs - FAQs

(ENGLISH_WORD_REPEAT_RULE)

apps/portal/src/app/account/teams/manage-team-members/page.mdx (2)

15-16: Typo: “Setting” → “Settings”.

-<Step title="Navigate to Setting > Members">
+<Step title="Navigate to Settings > Members">

22-23: Role naming consistency.

Earlier you capitalise roles (“Member”, “Owner”).
Consider matching that here: “…assign a Member or Owner role.”

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 94e2cbc and ef1f1c7.

⛔ Files ignored due to path filters (1)
  • apps/portal/src/app/account/teams/assets/manage-team.png is excluded by !**/*.png
📒 Files selected for processing (4)
  • apps/portal/src/app/account/page.mdx (1 hunks)
  • apps/portal/src/app/account/sidebar.tsx (1 hunks)
  • apps/portal/src/app/account/teams/manage-team-members/page.mdx (1 hunks)
  • apps/portal/src/app/account/teams/manage-teams/page.mdx (1 hunks)
🧰 Additional context used
🪛 LanguageTool
apps/portal/src/app/account/page.mdx

[grammar] ~7-~7: This phrase is duplicated. You should probably use “Teams Manage” only once.
Context: ...k Accounts](/account/link-accounts) ## Teams - Manage Teams - [Manage Team Members](/account/teams/manage-tea...

(PHRASE_REPETITION)


[duplication] ~20-~20: Possible typo: you repeated a word.
Context: ...account/api-keys/transfer-projects) ## FAQs - FAQs

(ENGLISH_WORD_REPEAT_RULE)

⏰ Context from checks skipped due to timeout of 90000ms (8)
  • GitHub Check: Lint Packages
  • GitHub Check: E2E Tests (pnpm, esbuild)
  • GitHub Check: E2E Tests (pnpm, webpack)
  • GitHub Check: E2E Tests (pnpm, vite)
  • GitHub Check: Size
  • GitHub Check: Unit Tests
  • GitHub Check: Build Packages
  • GitHub Check: Analyze (javascript)
🔇 Additional comments (3)
apps/portal/src/app/account/page.mdx (1)

11-18:

✅ Verification successful

Slug/path still references “api-keys” although the UI now calls it “Projects.”

All links under the new Projects heading still point to /account/api-keys/....
If the route has also been renamed to /account/projects, these links will 404.

If the route was renamed, update the doc (and sidebar) accordingly.


🏁 Script executed:

#!/bin/bash
# Verify whether `/account/api-keys` is still the canonical route
rg --heading --line-number "/account/api-keys" | head -n 20

Length of output: 951


No changes needed—routes remain /account/api-keys

I’ve confirmed that /account/api-keys is still the canonical route (see redirects, header, engine pages, etc.), so the “Projects” heading simply reflects a UI label change and all links will continue to resolve correctly.

apps/portal/src/app/account/teams/manage-teams/page.mdx (1)

30-38: Clear, actionable steps – looks good.

The transfer-ownership flow is concise and matches the UI. No issues spotted.

apps/portal/src/app/account/sidebar.tsx (1)

5-19: Renaming & regrouping look correct.

The new top-level label and nested Account group align with the MDX changes. 👍

Comment on lines 20 to 36
{
name: "Teams",
links: [
{
name: "Upgrade Plan",
href: `${accountSlug}/billing/upgrade-plan`,
name: "Manage Teams",
href: `${accountSlug}/teams/manage-teams`,
},
{
name: "Manage Team",
href: `${accountSlug}/billing/manage-team`,
name: "Manage Team Members",
href: `${accountSlug}/teams/manage-team-members`,
},
],
},
Copy link
Contributor

Choose a reason for hiding this comment

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

💡 Verification agent

🧩 Analysis chain

Verify that no orphaned “Billing” links remain elsewhere.

We dropped the Billing section here; ensure there are no stale links in other docs/components.


🏁 Script executed:

#!/bin/bash
# Search for leftover /account/billing routes
rg --heading --line-number "/account/billing" || true

Length of output: 727


Remove Remaining “Billing” Links

We’ve removed the Billing section from the account sidebar, but there are still hard-coded references elsewhere. Please update or remove these stale links:

  • apps/portal/src/app/account/faq/page.mdx: line 73
    [Manage Billing](/account/billing/manage-billing)
  • apps/dashboard/src/app/(app)/team/[team_slug]/(team)/~/settings/billing/components/PlanInfoCard.tsx: line 218
    href="https://portal.thirdweb.com/account/billing/manage-billing"
  • apps/dashboard/src/app/(app)/login/onboarding/LinkWalletPrompt/LinkWalletPrompt.tsx: line 76
    href="https://portal.thirdweb.com/account/billing/account-info"
🤖 Prompt for AI Agents
In apps/portal/src/app/account/sidebar.tsx lines 20 to 32, the Billing section
was removed from the sidebar, but there are still hard-coded Billing links
elsewhere in the codebase. Locate and update or remove these stale Billing links
in the specified files: apps/portal/src/app/account/faq/page.mdx at line 73,
apps/dashboard/src/app/(app)/team/[team_slug]/(team)/~/settings/billing/components/PlanInfoCard.tsx
at line 218, and
apps/dashboard/src/app/(app)/login/onboarding/LinkWalletPrompt/LinkWalletPrompt.tsx
at line 76. Ensure these links no longer reference the removed Billing routes or
update them to valid paths.

@github-actions
Copy link
Contributor

github-actions bot commented Jun 14, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 62.44 KB (0%) 1.3 s (0%) 365 ms (+12.53% 🔺) 1.7 s
thirdweb (cjs) 350.62 KB (0%) 7.1 s (0%) 2.5 s (-0.88% 🔽) 9.5 s
thirdweb (minimal + tree-shaking) 5.7 KB (0%) 114 ms (0%) 111 ms (+532.12% 🔺) 225 ms
thirdweb/chains (tree-shaking) 531 B (0%) 11 ms (0%) 42 ms (+478.66% 🔺) 52 ms
thirdweb/react (minimal + tree-shaking) 19.59 KB (0%) 392 ms (0%) 129 ms (+142.65% 🔺) 521 ms

@arcoraven arcoraven force-pushed the ph/06-14-chore_update_team_account_docs_for_team_management branch from ef1f1c7 to d2c587a Compare June 14, 2025 06:04
@arcoraven arcoraven added the merge-queue Adds the pull request to Graphite's merge queue. label Jun 14, 2025
@vercel vercel bot temporarily deployed to Preview – wallet-ui June 14, 2025 06:04 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground June 14, 2025 06:04 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb-www June 14, 2025 06:04 Inactive
@vercel vercel bot temporarily deployed to Preview – login June 14, 2025 06:04 Inactive
Copy link
Contributor Author

Merge activity

  • Jun 14, 6:04 AM UTC: The merge label 'merge-queue' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.

@arcoraven arcoraven merged commit e43afa1 into main Jun 14, 2025
18 of 20 checks passed
@arcoraven arcoraven deleted the ph/06-14-chore_update_team_account_docs_for_team_management branch June 14, 2025 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-queue Adds the pull request to Graphite's merge queue. Portal Involves changes to the Portal (docs) codebase.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants