Repository navigation
fix: move organization ID to API keys section description with copy button (#1952) - #2102
Conversation
|
Warning Review limit reached
More reviews will be available in 59 minutes and 23 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (5)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning Billing warning: we have not been able to collect payment for this subscription for more than 72 hours. Please update the payment method or pay any pending invoices in Billing to avoid service interruption. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
larryro
left a comment
There was a problem hiding this comment.
Desk Review — #1952: move Organization ID to the API keys section with a copy button
Verdict: ✅ READY TO MERGE
Reviewed the full implementation on tale/xs79ea2kq360b8jv2ms7c69jp5896w1q (not just the diff lines), two-round fan-out, plus ran the project's UI tests locally.
CI
All required checks pass (gh pr checks): Type check, Lint, Format, Knip, Unit, UI, Browser, Build platform, Smoke test, and all 16 Playwright (platform) shards + Playwright (web/docs), CodeRabbit, Opengrep. No red, no pending. Skipped jobs are fork-PR/container-only guards (expected).
Tests run locally
bunx vitest --run --config vitest.ui.config.ts organization-settings copyable-field settings-section → 25/25 passed.
What I verified
- Correctness:
organizationIdcomes fromRoute.useParams().id, the same identifierApiKeysTablealready consumes on this route — a TanStack path param, guaranteed defined when the route matches. Full ID rendered (no truncation),title={value}for overflow, copies the raw string. - No HTML/hydration hazard: the new JSX
description(nesteddiv/span) renders insideDescription, which is deliberately a<div>(not<p>), so nested block elements are legal.SettingsSection.descriptionis typedReactNode. - Elegance: clean removal of the old
SettingsRow+ unusedCopyableFieldimport; the layout comment was updated to match; reuses the sharedCopyableText.CopyableFieldis still used elsewhere (member-add-dialog, webdav, slack-setup) — not orphaned. - i18n: removed
organizationIdDescription/copyOrganizationIdfrom en/de/fr with zero remaining references anywhere in the repo; retainedorganization.organizationId(used as the label) is present in all three locales. de-CH/global are sparse override files and correctly untouched. - Issue resolution: org ID no longer in Organization settings; now shown in the API keys (REST) section description with a working copy affordance — both halves of the acceptance criteria met.
Non-blocking observations
- The org ID display moves from an
orgSettings-gated page to adeveloperSettings-gated page, so visibility re-scopes to developers — this is the explicit intent of the issue, not a regression. - No dedicated unit assertion on the new org-ID text/copy in
rest.tsx. The render path is exercised by the passingsettings-depth.spec.tse2e (navigates toapi/rest, asserts the section mounts), so this is a minor coverage nicety, not a blocker.
Nothing blocks merge.
Summary
Resolves #1952.
Moves the organization ID out of Organization settings and surfaces it in the API keys section description, where it's most relevant (it's what callers reference when authenticating against the API), with a copy button.
Changes
SettingsRow(and now-unusedCopyableFieldimport) fromorganization-settings.tsx.api/rest.tsx, rendered with the sharedCopyableTextcopy affordance.organizationIdDescription/copyOrganizationIdi18n keys from en/de/fr.Acceptance criteria
Verification
tsc --noEmit✅oxlint --type-aware(changed files) ✅oxfmt --check(changed files) ✅vitestui config, organization-settings) ✅