Skip to content

feat: Scaffold initial React dashboard app within the website repo#305

Open
vanshika2720 wants to merge 1 commit into
kmesh-net:mainfrom
vanshika2720:feature/dashboard-scaffold
Open

feat: Scaffold initial React dashboard app within the website repo#305
vanshika2720 wants to merge 1 commit into
kmesh-net:mainfrom
vanshika2720:feature/dashboard-scaffold

Conversation

@vanshika2720

Copy link
Copy Markdown

feat(dashboard): scaffold Kmesh dashboard structure inside Docusaurus website

Description

This PR scaffolds the foundational structure for the Kmesh Dashboard directly inside the existing Docusaurus website.

The goal of this change is to establish a native dashboard experience that integrates cleanly with the current website architecture while remaining fully compatible with:

  • Existing Docusaurus theming
  • Website routing
  • Light/dark mode behavior

This PR focuses only on:

  • Dashboard foundation
  • Layout structure
  • Navigation scaffolding

No backend integration or live Kmesh data rendering is introduced yet.


Changes

Dashboard Route Integration

Updated:

docusaurus.config.js

to expose a new:

/dashboard

navigation entry directly in the main website navbar.


Dashboard Layout Component

Added:

src/components/DashboardLayout.js

Features

  • Sidebar navigation layout
  • Collapsible navigation behavior
  • Shared dashboard wrapper for future pages
  • Main content rendering slot
  • Vanilla React implementation
  • No external UI framework dependencies

Dashboard Styling

Added:

src/css/dashboard.css

The styling system is built entirely using native Docusaurus/Infima CSS variables such as:

--ifm-

This ensures:

  • Full light/dark theme compatibility
  • Native Docusaurus visual consistency
  • Minimal styling overhead
  • Easier long-term maintenance

Dashboard Pages

Added initial dashboard route structure under:

src/pages/dashboard/

Pages included

  • index.js
  • topology.js
  • waypoints.js
  • policies.js
  • metrics.js

These pages currently provide:

  • Placeholder content
  • Initial routing structure
  • Future dashboard expansion points

No live mesh integration is included in this stage.


Why this is safe

This PR:

  • Does not modify existing documentation routes
  • Does not introduce backend dependencies
  • Does not add external UI libraries
  • Does not affect existing website rendering behavior

It only introduces isolated dashboard scaffolding and routing structure for future Kmesh dashboard development.


Why this matters

This establishes the foundational infrastructure needed for future Kmesh UI capabilities directly within the existing website ecosystem.

Benefits include:

  • Unified documentation + dashboard experience
  • Native Docusaurus integration
  • Shared theming and navigation
  • Easier future feature expansion
  • Reduced maintenance overhead compared to a separate frontend application

This creates a clean base for future:

  • Mesh topology visualization
  • Waypoint management
  • Policy inspection
  • Metrics dashboards
  • Service observability features

Fixes Issue 1

Sets up the foundational structure for the Kmesh Dashboard:
- Adds /dashboard route to the main navbar
- Creates Dashboard layout with collapsible sidebar and main content area
- Adds placeholder pages for Overview, Topology, Waypoints, Policies, Metrics
- Integrates existing Docusaurus theme tokens for light/dark mode

Signed-off-by: vanshika2720 <pahalvanshikaa@gmail.com>
Copilot AI review requested due to automatic review settings May 17, 2026 08:22
@netlify

netlify Bot commented May 17, 2026

Copy link
Copy Markdown

Deploy Preview for kmesh-net ready!

Name Link
🔨 Latest commit 092395e
🔍 Latest deploy log https://app.netlify.com/projects/kmesh-net/deploys/6a097ad58c1ab70008a22da0
😎 Deploy Preview https://deploy-preview-305--kmesh-net.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@kmesh-bot kmesh-bot requested review from hzxuzhonghu and nlgwcy May 17, 2026 08:22
@kmesh-bot

Copy link
Copy Markdown
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign hzxuzhonghu for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@gemini-code-assist gemini-code-assist 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.

Code Review

This pull request introduces a new Dashboard section to the Kmesh documentation, adding a navigation link in the configuration and implementing a DashboardLayout component with a sidebar. It also includes several placeholder pages for dashboard features like topology, metrics, and policies. Review feedback focuses on ensuring full internationalization (i18n) support by using useBaseUrl for path matching and wrapping text in translation components. Other suggestions include improving accessibility with aria-current attributes and replacing a magic number in the CSS with a more flexible layout approach.

Comment thread src/components/DashboardLayout.js
Comment thread src/components/DashboardLayout.js
Comment thread src/components/DashboardLayout.js
Comment thread src/components/DashboardLayout.js
Comment thread src/components/DashboardLayout.js
Comment thread src/css/dashboard.css
Comment thread src/pages/dashboard/index.js
Comment thread src/pages/dashboard/index.js

Copilot AI 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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants