Skip to content

fix: move organization ID to API keys section description with copy button (#1952) - #2102

Merged
larryro merged 1 commit into
mainfrom
tale/xs79ea2kq360b8jv2ms7c69jp5896w1q
Jun 24, 2026
Merged

larryro merged 1 commit into
mainfrom
tale/xs79ea2kq360b8jv2ms7c69jp5896w1q

Conversation

@larryro

@larryro larryro commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

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

  • Removed the read-only "Organization ID" SettingsRow (and now-unused CopyableField import) from organization-settings.tsx.
  • Added the org ID to the API keys (REST) section description in api/rest.tsx, rendered with the shared CopyableText copy affordance.
  • Removed the now-unused organizationIdDescription / copyOrganizationId i18n keys from en/de/fr.

Acceptance criteria

  • Org ID no longer appears in org settings.
  • Org ID appears in the API keys section description, copyable.

Verification

  • tsc --noEmit ✅
  • oxlint --type-aware (changed files) ✅
  • oxfmt --check (changed files) ✅
  • UI tests (vitest ui config, organization-settings) ✅

@coderabbitai

coderabbitai Bot commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@larryro, we couldn't start this review because you've reached your PR review rate limit.

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 @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 971f541e-7a21-454b-a555-ff1a665ffcd4

📥 Commits

Reviewing files that changed from the base of the PR and between 6b90e78 and b34e1d6.

📒 Files selected for processing (5)
  • services/platform/app/features/settings/organization/components/organization-settings.tsx
  • services/platform/app/routes/dashboard/$id/settings/api/rest.tsx
  • services/platform/messages/de.json
  • services/platform/messages/en.json
  • services/platform/messages/fr.json
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch tale/xs79ea2kq360b8jv2ms7c69jp5896w1q

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.

❤️ Share

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

@larryro larryro left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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: organizationId comes from Route.useParams().id, the same identifier ApiKeysTable already 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 (nested div/span) renders inside Description, which is deliberately a <div> (not <p>), so nested block elements are legal. SettingsSection.description is typed ReactNode.
  • Elegance: clean removal of the old SettingsRow + unused CopyableField import; the layout comment was updated to match; reuses the shared CopyableText. CopyableField is still used elsewhere (member-add-dialog, webdav, slack-setup) — not orphaned.
  • i18n: removed organizationIdDescription / copyOrganizationId from en/de/fr with zero remaining references anywhere in the repo; retained organization.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

  1. The org ID display moves from an orgSettings-gated page to a developerSettings-gated page, so visibility re-scopes to developers — this is the explicit intent of the issue, not a regression.
  2. No dedicated unit assertion on the new org-ID text/copy in rest.tsx. The render path is exercised by the passing settings-depth.spec.ts e2e (navigates to api/rest, asserts the section mounts), so this is a minor coverage nicety, not a blocker.

Nothing blocks merge.

@larryro
larryro merged commit 072b53a into main Jun 24, 2026
67 of 68 checks passed
@larryro
larryro deleted the tale/xs79ea2kq360b8jv2ms7c69jp5896w1q branch June 24, 2026 08:55
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.

Improvement: Move the organization ID to the API keys section description with a copy button

1 participant