Skip to content

fix: update introduction id in docs sidebar array - #227

Open
C-Schmitz-de wants to merge 1 commit into
SHAURYASANYAL3:mainfrom
C-Schmitz-de:patch-1
Open

fix: update introduction id in docs sidebar array#227
C-Schmitz-de wants to merge 1 commit into
SHAURYASANYAL3:mainfrom
C-Schmitz-de:patch-1

Conversation

@C-Schmitz-de

@C-Schmitz-de C-Schmitz-de commented Jun 27, 2026

Copy link
Copy Markdown

line 129 Replaced the "introduction" string with an empty string in the sidebar array. This ensures the first link correctly targets the base /docs route instead of generating a non-existent /docs/introduction path, preventing 404 errors on direct navigation or page refresh.

Summary by CodeRabbit

  • Bug Fixes
    • Updated the Docs sidebar’s “Getting Started” navigation behavior.
    • The “Introduction” section is no longer linked from that sidebar group.

line 129 Replaced the "introduction" string with an empty string in the sidebar array. This ensures the first link correctly targets the base /docs route instead of generating a non-existent /docs/introduction path, preventing 404 errors on direct navigation or page refresh.
@vercel

vercel Bot commented Jun 27, 2026

Copy link
Copy Markdown

@C-Schmitz-de is attempting to deploy a commit to the shauryasanyal3's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions

Copy link
Copy Markdown
Contributor

Welcome to E-VARA! 🚀 Thank you for your first pull request! We deeply appreciate your contribution to identity intelligence. A maintainer will review your code soon.

@github-actions github-actions Bot added the Area: Frontend 🎨 UI, Components, Pages label Jun 27, 2026
@coderabbitai

coderabbitai Bot commented Jun 27, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

In src/pages/Docs.tsx, the "Getting Started" sidebar section-id mapping array has "introduction" replaced with an empty string "", breaking the sidebar link that scrolls to the Introduction section.

Docs Sidebar Fix

Layer / File(s) Summary
Sidebar section-id mapping
src/pages/Docs.tsx
The id "introduction" in the Getting Started sidebar array is changed to "", causing the sidebar button to target a non-existent element id.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

A bunny hopped left when it should have gone right,
The intro link vanished — oh, what a plight!
An empty string crept where a name used to be,
🐇 One tiny swap and the docs scroll with glee!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
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.
Title check ✅ Passed The title is specific and matches the docs sidebar change, though it slightly understates that the link target was changed to the base docs route.
✨ 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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Caution

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

⚠️ Outside diff range comments (1)
src/pages/Docs.tsx (1)

129-136: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Restore the introduction section id here.

This array now diverges from docSections: the first button renders without a title, never becomes active for the Introduction section, and scrollToSection("") cannot target id="introduction". If the goal is to support /docs, that routing fix needs to happen in the router/link layer, not by breaking the sidebar’s section-id mapping.

Suggested fix
-              {["", "authentication", "adding-identities"].map(
+              {["introduction", "authentication", "adding-identities"].map(
🤖 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/pages/Docs.tsx` around lines 129 - 136, Restore the section-id mapping in
Docs.tsx by replacing the empty string entry in the sidebar array with the
actual introduction id so it matches docSections and the section element target.
Update the button rendering and scrollToSection usage to reference the
Introduction section via its real id, and keep any /docs routing behavior
separate from this sidebar data so active state and titles continue to resolve
correctly.
🤖 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.

Outside diff comments:
In `@src/pages/Docs.tsx`:
- Around line 129-136: Restore the section-id mapping in Docs.tsx by replacing
the empty string entry in the sidebar array with the actual introduction id so
it matches docSections and the section element target. Update the button
rendering and scrollToSection usage to reference the Introduction section via
its real id, and keep any /docs routing behavior separate from this sidebar data
so active state and titles continue to resolve correctly.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 4e336e8e-ded6-4c1b-aa3f-e74a46258770

📥 Commits

Reviewing files that changed from the base of the PR and between 41b0a1e and 804af1f.

📒 Files selected for processing (1)
  • src/pages/Docs.tsx

@C-Schmitz-de C-Schmitz-de changed the title Fix typo in Docs.tsx array initialization fix: update introduction id in docs sidebar array Jun 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Frontend 🎨 UI, Components, Pages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant