Skip to content

[codex] Clarify pre-live user API docs#143

Merged
basit3407 merged 5 commits intomainfrom
codex/prelive-user-api-docs-guidance
Apr 26, 2026
Merged

[codex] Clarify pre-live user API docs#143
basit3407 merged 5 commits intomainfrom
codex/prelive-user-api-docs-guidance

Conversation

@basit3407
Copy link
Copy Markdown
Collaborator

@basit3407 basit3407 commented Apr 22, 2026

Summary

  • add a pre-live warning to the User APIs quickstart so developers see the separate-stack guidance before integrating
  • expand the User API environment notice to call out prelive.quran.com for auth checks and prelive.quranreflect.org for Quran Reflect checks

Why

Pre-live user APIs run on a separate stack. Developers need a clear, high-visibility reminder about which surfaces to use when validating auth-backed data and Quran Reflect data so they do not mix production and pre-live environments.

Developer impact

  • pre-live testing paths are easier to discover from the quickstart and the User API pages themselves
  • the docs explicitly tell developers not to mix production sessions or data with pre-live testing

Validation

  • corepack yarn build
    • runs the repo's normal yarn gen-all && npx docusaurus build flow
    • completed successfully locally on April 22, 2026
    • generated static files in build/
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Apr 22, 2026

Deploying qf-api-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 372d41e
Status: ✅  Deploy successful!
Preview URL: https://7b576521.qf-api-docs.pages.dev
Branch Preview URL: https://codex-prelive-user-api-docs.qf-api-docs.pages.dev

View logs

@basit3407 basit3407 marked this pull request as ready for review April 26, 2026 11:11
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3e33e91f6d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/components/UserRelatedApiEnvironmentNotice/paths.js
…i-docs-guidance

# Conflicts:
#	src/components/UserRelatedApiEnvironmentNotice/paths.js
@basit3407
Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Improves clarity around the “pre-live” User APIs environment by surfacing a prominent warning in the OAuth/OIDC quickstart and expanding the in-page environment notice, while adjusting the environment switcher fallback behavior and tests accordingly.

Changes:

  • Add a high-visibility “Production vs Pre-live” warning section to the User APIs quickstart.
  • Expand UserRelatedApiEnvironmentNotice copy + styling to explicitly call out prelive.quran.com (auth checks) and prelive.quranreflect.org (Quran Reflect checks).
  • Update environment-switcher path fallback logic (and tests) to fall back to the environment intro doc instead of the category page; add coverage for category-to-category switching.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/user-related-env-paths.test.cjs Updates/extends tests for new intro-doc fallback and category mapping behavior.
src/components/UserRelatedApiEnvironmentNotice/styles.module.css Adds layout/typography rules for richer notice body content (paragraphs, lists, links).
src/components/UserRelatedApiEnvironmentNotice/paths.js Switches fallback target to intro docs and refines “needs available doc” checks (excluding category routes).
src/components/UserRelatedApiEnvironmentNotice/index.tsx Expands notice copy for both environments and updates markup to support multi-element body content.
docs/tutorials/oidc/user-apis-quickstart.mdx Adds a pre-live warning section and clarifies “don’t mix environments” guidance.
docs/content_apis_versioned/hadiths-by-ayah.api.mdx Removes trailing whitespace at EOF (generated doc cleanup).
docs/content_apis_versioned/hadith-references-by-ayah.api.mdx Removes trailing whitespace at EOF (generated doc cleanup).
docs/content_apis_versioned/hadith-count-within-range.api.mdx Removes trailing whitespace at EOF (generated doc cleanup).
docs/content_apis_versioned/4.0.0/hadiths-by-ayah.api.mdx Removes trailing whitespace at EOF (generated doc cleanup).
docs/content_apis_versioned/4.0.0/hadith-references-by-ayah.api.mdx Removes trailing whitespace at EOF (generated doc cleanup).
docs/content_apis_versioned/4.0.0/hadith-count-within-range.api.mdx Removes trailing whitespace at EOF (generated doc cleanup).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@basit3407 basit3407 merged commit 4a4e1db into main Apr 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants