Skip to content

fix: replace organization_billing with organization_plan_details#737

Open
abdelrahman-zaki wants to merge 3 commits into
kinde-oss:mainfrom
abdelrahman-zaki:main
Open

fix: replace organization_billing with organization_plan_details#737
abdelrahman-zaki wants to merge 3 commits into
kinde-oss:mainfrom
abdelrahman-zaki:main

Conversation

@abdelrahman-zaki
Copy link
Copy Markdown
Contributor

@abdelrahman-zaki abdelrahman-zaki commented May 19, 2026

Updated docs to replace organization_billing with organization_plan_details, standardize subnav for Account API examples, and remove Management API portal-link examples across source and generated llms docs.

Summary by CodeRabbit

  • Documentation
    • Refined org and user self-serve portal guidance, clarifying authorized-member self-management and Return URL fallback behavior.
    • Standardized portal-link deep-linking for non-SDK flows: parameter renamed to "subnav" and example section changed to "organization_plan_details".
    • Expanded user self-management subsections (profile, billing, API keys) and updated SDK usage examples and deep-linking guidance for API key management.

Review Change Stack

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 19, 2026

Walkthrough

This PR renames the portal deep-link parameter from sub_nav to subnav, changes the example section value from organization_billing to organization_plan_details, removes the prior Kinde Management API JSON payload examples, and replaces non-SDK deep-link examples with Account API query usage across source docs and generated summaries.

Changes

Self-Serve Portal Navigation Documentation Update

Layer / File(s) Summary
Source MDX documentation updates
src/content/docs/build/self-service-portal/self-serve-portal-for-orgs.mdx, src/content/docs/build/self-service-portal/self-serve-portal-for-users.mdx, src/content/docs/manage-your-apis/add-manage-api-keys/self-serve-api-keys.mdx
Updated frontmatter and intro text; renamed optional portal parameter from sub_nav to subnav; changed example portal section from organization_billing to organization_plan_details; replaced server-side JSON sub_nav examples with Account API query subnav usage and clarified subNav vs subnav casing.
Generated public summaries and help text
public/_llms-txt/build.txt, public/_llms-txt/manage-your-apis.txt, public/llms-full.txt
Propagated the same subnav parameter name, organization_plan_details example, and Account API query-based deep-linking examples into generated public artifacts; removed the Kinde Management API request-body JSON examples.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Poem

🐰 I hopped through docs and changed a name,
swapped JSON for queries — tidy and tame.
From billing to plan, the links now align,
a small nimble fix, neat and concise — fine!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately reflects a significant change across the documentation: replacing the incorrect parameter value organization_billing with the correct organization_plan_details in multiple portal configuration examples.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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 and usage tips.

@abdelrahman-zaki abdelrahman-zaki marked this pull request as ready for review May 19, 2026 08:12
@abdelrahman-zaki abdelrahman-zaki requested a review from a team as a code owner May 19, 2026 08:12
Copy link
Copy Markdown
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

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@public/llms-full.txt`:
- Line 1148: Replace the misspelled word "generting" with "generating" in the
user-facing sentence that reads "dynamically generting the URL (see below)"
inside the docs content (search for that exact phrase to locate the text block
describing SDK vs Management API portal link generation).
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 8c494170-1757-40e6-ba10-6a95aa9f583c

📥 Commits

Reviewing files that changed from the base of the PR and between b3f604c and 2be7519.

📒 Files selected for processing (4)
  • public/_llms-txt/build.txt
  • public/llms-full.txt
  • src/content/docs/build/self-service-portal/self-serve-portal-for-orgs.mdx
  • src/content/docs/build/self-service-portal/self-serve-portal-for-users.mdx

Comment thread public/llms-full.txt Outdated
Copy link
Copy Markdown

@panosatkinde panosatkinde left a comment

Choose a reason for hiding this comment

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

Do we have a place in the documentation where we list all the possible values of the sub_nav parameter?

@panosatkinde
Copy link
Copy Markdown

I now see that we have it here for the Account API case.

For the Management API case, we don't even have the portal links generation in the public documentation here

Copy link
Copy Markdown

@panosatkinde panosatkinde left a comment

Choose a reason for hiding this comment

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

  1. Provide text where you specify that the actual set of valid values for the sub_nav are listed here: https://docs.kinde.com/kinde-apis/frontend/#tag/self-serve-portal/get/account_api/v1/portal_link

  2. Provide text where you mention that both subnav and sub_nav are accepted as the key of the parameter.

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

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
src/content/docs/build/self-service-portal/self-serve-portal-for-orgs.mdx (1)

112-128: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Parameter name is inconsistent between examples (subnav vs sub_nav).

Line 112 documents subnav, but Line 127 still uses sub_nav in the request body example. This inconsistency is likely to mislead implementers and cause invalid requests unless explicitly intentional per endpoint.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/content/docs/build/self-service-portal/self-serve-portal-for-orgs.mdx`
around lines 112 - 128, The docs show inconsistent parameter names for the
portal endpoint: "subnav" in the description but "sub_nav" in the POST
/api/v1/portal/generate_url request body example; update the content so the
parameter name is consistent across the page (choose the actual API parameter
used by POST /api/v1/portal/generate_url and replace all occurrences of the
alternate form), and ensure the example JSON and the prose both use that same
symbol (e.g., use "sub_nav" everywhere or "subnav" everywhere to match the real
endpoint).
♻️ Duplicate comments (2)
public/llms-full.txt (2)

1148-1148: ⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Typo still present: generting should be generating.

The typo "dynamically generting the URL" was flagged in a previous review but remains uncorrected in line 1148.

✏️ Proposed fix
- This can also be used as a fallback URL if you decide to use the SDK method of dynamically generting the URL (see below).
+ This can also be used as a fallback URL if you decide to use the SDK method of dynamically generating the URL (see below).
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@public/llms-full.txt` at line 1148, Fix the typo in the documentation phrase
"dynamically generting the URL" by replacing "generting" with "generating" so
the sentence reads "dynamically generating the URL"; update the occurrence of
that exact string in the text (near the SDK method description and the sentence
referencing the fallback URL) to ensure consistency.

1148-1148: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Inconsistent parameter names between Account API and Management API examples.

Same issue as in the organization portal section: the "Optional parameters" list documents subnav, but the Management API request body example uses "sub_nav": "profile". Please ensure both APIs are documented with their correct parameter names.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@public/llms-full.txt` at line 1148, The Account API example documents
optional param `subnav` while the Management API request body uses `sub_nav`
(and both mention `return_url`), so verify the actual parameter names used by
each endpoint (/account_api/v1/portal_link and POST /api/v1/portal/generate_url)
and make them consistent in the docs: update the "Optional parameters" list and
the Management API JSON example so both use the correct, matching keys (e.g.,
`subnav` vs `sub_nav` and `return_url`) and ensure the examples reference the
same parameter names developers should send.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@public/llms-full.txt`:
- Line 1139: The docs show inconsistent parameter names: change the "Optional
parameters" list and examples so they explicitly state the naming
conventions—SDK/JS helpers use camelCase (e.g., subNav / subnav in PortalLink or
client SDK examples) while the Management API payload uses snake_case
(`sub_nav`); update the "Optional parameters" bullet to show both variants and
ensure the POST /api/v1/portal/generate_url request body example uses `sub_nav`
(snake_case) and add a short note referencing SDK usage (PortalLink / fetch
example) to avoid confusion.

---

Outside diff comments:
In `@src/content/docs/build/self-service-portal/self-serve-portal-for-orgs.mdx`:
- Around line 112-128: The docs show inconsistent parameter names for the portal
endpoint: "subnav" in the description but "sub_nav" in the POST
/api/v1/portal/generate_url request body example; update the content so the
parameter name is consistent across the page (choose the actual API parameter
used by POST /api/v1/portal/generate_url and replace all occurrences of the
alternate form), and ensure the example JSON and the prose both use that same
symbol (e.g., use "sub_nav" everywhere or "subnav" everywhere to match the real
endpoint).

---

Duplicate comments:
In `@public/llms-full.txt`:
- Line 1148: Fix the typo in the documentation phrase "dynamically generting the
URL" by replacing "generting" with "generating" so the sentence reads
"dynamically generating the URL"; update the occurrence of that exact string in
the text (near the SDK method description and the sentence referencing the
fallback URL) to ensure consistency.
- Line 1148: The Account API example documents optional param `subnav` while the
Management API request body uses `sub_nav` (and both mention `return_url`), so
verify the actual parameter names used by each endpoint
(/account_api/v1/portal_link and POST /api/v1/portal/generate_url) and make them
consistent in the docs: update the "Optional parameters" list and the Management
API JSON example so both use the correct, matching keys (e.g., `subnav` vs
`sub_nav` and `return_url`) and ensure the examples reference the same parameter
names developers should send.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 3b400da2-2c0a-4676-81b9-9c31840199b1

📥 Commits

Reviewing files that changed from the base of the PR and between 2be7519 and c46e8f7.

📒 Files selected for processing (4)
  • public/_llms-txt/build.txt
  • public/llms-full.txt
  • src/content/docs/build/self-service-portal/self-serve-portal-for-orgs.mdx
  • src/content/docs/build/self-service-portal/self-serve-portal-for-users.mdx
✅ Files skipped from review due to trivial changes (1)
  • src/content/docs/build/self-service-portal/self-serve-portal-for-users.mdx

Comment thread public/llms-full.txt Outdated
Copy link
Copy Markdown

@panosatkinde panosatkinde left a comment

Choose a reason for hiding this comment

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

I see that the public/_llms-txt/build.txt still refers to sub_nav.

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.

2 participants