Repository navigation
Update the UI - #43
Conversation
|
CodeAnt AI is reviewing your PR. |
📝 WalkthroughWalkthroughChangesLanding Page and Dashboard Routing
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant Visitor
participant LandingPage
participant ReactRouter
participant MainLayout
Visitor->>LandingPage: Selects Launch Dashboard
LandingPage->>ReactRouter: navigate("/dashboard")
ReactRouter->>MainLayout: Renders dashboard route
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
| <button | ||
| onClick={onLaunchDashboard} | ||
| className="font-body-ui font-semibold text-[15px] text-[#060A14] bg-[#FFB020] hover:bg-[#e59b15] border-none rounded-lg px-6.5 py-3 cursor-pointer transition-colors duration-150" | ||
| > | ||
| Launch Dashboard | ||
| </button> | ||
| <a | ||
| href="#how-it-works" | ||
| className="font-body-ui font-semibold text-[15px] text-[#E7EBF3] bg-transparent border border-[#1B2436] hover:bg-[#1B2436]/30 rounded-lg px-6.5 py-3 text-none transition-colors duration-150" | ||
| > |
There was a problem hiding this comment.
px-6.5 is not a value in Tailwind CSS's default spacing scale (which goes px-6 → px-7). The class is silently dropped, so both CTA buttons end up with zero horizontal padding. Use px-7 (1.75rem) or an arbitrary value like px-[26px] instead.
| <button | |
| onClick={onLaunchDashboard} | |
| className="font-body-ui font-semibold text-[15px] text-[#060A14] bg-[#FFB020] hover:bg-[#e59b15] border-none rounded-lg px-6.5 py-3 cursor-pointer transition-colors duration-150" | |
| > | |
| Launch Dashboard | |
| </button> | |
| <a | |
| href="#how-it-works" | |
| className="font-body-ui font-semibold text-[15px] text-[#E7EBF3] bg-transparent border border-[#1B2436] hover:bg-[#1B2436]/30 rounded-lg px-6.5 py-3 text-none transition-colors duration-150" | |
| > | |
| <button | |
| onClick={onLaunchDashboard} | |
| className="font-body-ui font-semibold text-[15px] text-[#060A14] bg-[#FFB020] hover:bg-[#e59b15] border-none rounded-lg px-7 py-3 cursor-pointer transition-colors duration-150" | |
| > | |
| Launch Dashboard | |
| </button> | |
| <a | |
| href="#how-it-works" | |
| className="font-body-ui font-semibold text-[15px] text-[#E7EBF3] bg-transparent border border-[#1B2436] hover:bg-[#1B2436]/30 rounded-lg px-7 py-3 no-underline transition-colors duration-150" | |
| > |
Prompt To Fix With AI
This is a comment left during a code review.
Path: frontend/src/pages/LandingPage.tsx
Line: 193-202
Comment:
`px-6.5` is not a value in Tailwind CSS's default spacing scale (which goes `px-6` → `px-7`). The class is silently dropped, so both CTA buttons end up with zero horizontal padding. Use `px-7` (1.75rem) or an arbitrary value like `px-[26px]` instead.
```suggestion
<button
onClick={onLaunchDashboard}
className="font-body-ui font-semibold text-[15px] text-[#060A14] bg-[#FFB020] hover:bg-[#e59b15] border-none rounded-lg px-7 py-3 cursor-pointer transition-colors duration-150"
>
Launch Dashboard
</button>
<a
href="#how-it-works"
className="font-body-ui font-semibold text-[15px] text-[#E7EBF3] bg-transparent border border-[#1B2436] hover:bg-[#1B2436]/30 rounded-lg px-7 py-3 no-underline transition-colors duration-150"
>
```
How can I resolve this? If you propose a fix, please make it concise.| </button> | ||
| <a | ||
| href="#how-it-works" | ||
| className="font-body-ui font-semibold text-[15px] text-[#E7EBF3] bg-transparent border border-[#1B2436] hover:bg-[#1B2436]/30 rounded-lg px-6.5 py-3 text-none transition-colors duration-150" |
There was a problem hiding this comment.
text-none is not a valid Tailwind utility class, so it produces no CSS. If the intent is to suppress the link underline, the correct class is no-underline (maps to text-decoration: none).
| className="font-body-ui font-semibold text-[15px] text-[#E7EBF3] bg-transparent border border-[#1B2436] hover:bg-[#1B2436]/30 rounded-lg px-6.5 py-3 text-none transition-colors duration-150" | |
| className="font-body-ui font-semibold text-[15px] text-[#E7EBF3] bg-transparent border border-[#1B2436] hover:bg-[#1B2436]/30 rounded-lg px-7 py-3 no-underline transition-colors duration-150" |
Prompt To Fix With AI
This is a comment left during a code review.
Path: frontend/src/pages/LandingPage.tsx
Line: 201
Comment:
`text-none` is not a valid Tailwind utility class, so it produces no CSS. If the intent is to suppress the link underline, the correct class is `no-underline` (maps to `text-decoration: none`).
```suggestion
className="font-body-ui font-semibold text-[15px] text-[#E7EBF3] bg-transparent border border-[#1B2436] hover:bg-[#1B2436]/30 rounded-lg px-7 py-3 no-underline transition-colors duration-150"
```
How can I resolve this? If you propose a fix, please make it concise.| }; | ||
|
|
||
| return ( | ||
| <div className="bg-[#060A14] min-h-screen text-[#E7EBF3] overflow-x-hidden select-none"> |
There was a problem hiding this comment.
select-none on the root element prevents the user from selecting any text on the landing page — including the headline, marketing copy, and footer. This is usually appropriate for interactive app chrome but hurts usability on a marketing page where visitors may want to copy text.
| <div className="bg-[#060A14] min-h-screen text-[#E7EBF3] overflow-x-hidden select-none"> | |
| <div className="bg-[#060A14] min-h-screen text-[#E7EBF3] overflow-x-hidden"> |
Prompt To Fix With AI
This is a comment left during a code review.
Path: frontend/src/pages/LandingPage.tsx
Line: 366
Comment:
`select-none` on the root element prevents the user from selecting any text on the landing page — including the headline, marketing copy, and footer. This is usually appropriate for interactive app chrome but hurts usability on a marketing page where visitors may want to copy text.
```suggestion
<div className="bg-[#060A14] min-h-screen text-[#E7EBF3] overflow-x-hidden">
```
How can I resolve this? If you propose a fix, please make it concise.Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
There was a problem hiding this comment.
Actionable comments posted: 4
🤖 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 `@frontend/src/App.tsx`:
- Around line 17-18: Update the route configuration in App to add redirects for
the legacy paths /space-traffic, /satellites, /debris, /collision-center,
/ai-agents, /mission-planner, and /settings to their corresponding nested
dashboard routes, while preserving the existing landing-page route at /. Ensure
deep links resolve instead of remaining unmatched.
In `@frontend/src/components/layouts/MainLayout.tsx`:
- Line 40: Update the Dashboard navigation item in the MainLayout navigation
configuration to pass the NavLink end behavior for its /dashboard path, so it is
active only on the dashboard index route and not nested /dashboard/* routes.
In `@frontend/src/pages/LandingPage.tsx`:
- Around line 76-83: Update the orbital-dot rendering in the LandingPage
component to honor prefers-reduced-motion: reduce by suppressing
animateTransform or rendering the dots without animation for users who request
reduced motion, while preserving the existing indefinite rotation otherwise.
- Around line 325-340: Update the footer link mappings in LandingPage.tsx so
Product items navigate to `#product`, `#how-it-works`, and `#reliability`
respectively. Replace the placeholder # destinations for Company items with real
destinations, or render unavailable items as non-link elements instead of
anchors.
🪄 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: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: e6e7016a-1653-4439-b2ee-20bbf95e97bc
⛔ Files ignored due to path filters (1)
frontend/package-lock.jsonis excluded by!**/package-lock.json
📒 Files selected for processing (3)
frontend/src/App.tsxfrontend/src/components/layouts/MainLayout.tsxfrontend/src/pages/LandingPage.tsx
| <a href="#" className="font-body-ui text-[13px] text-[#8892A6] hover:text-[#E7EBF3] no-underline transition-colors duration-150"> | ||
| {t} | ||
| </a> | ||
| </div> | ||
| ))} | ||
| </div> | ||
| <div> | ||
| <div className="font-body-ui text-xs text-[#4FE0C8] mb-3.5 font-semibold"> | ||
| COMPANY | ||
| </div> | ||
| {["About", "Careers", "Contact"].map((t) => ( | ||
| <div key={t} className="mb-2"> | ||
| <a href="#" className="font-body-ui text-[13px] text-[#8892A6] hover:text-[#E7EBF3] no-underline transition-colors duration-150"> |
There was a problem hiding this comment.
Suggestion: The footer navigation links are wired to #, so they do not navigate to real destinations and instead jump to the top of the page. This creates broken navigation behavior; point these links to actual section anchors or real routes. [incomplete implementation]
Severity Level: Major ⚠️
⚠️ Footer PRODUCT links jump to top, not sections.
⚠️ Footer COMPANY links currently non-functional placeholders.
⚠️ Navigation inconsistent between header and footer anchors.Steps of Reproduction ✅
1. The landing page footer component is defined in `frontend/src/pages/LandingPage.tsx`
lines 301-351, with the footer container having `id="contact"` and housing product/company
link groups.
2. Within the PRODUCT group at lines 323-331, links like "Overview", "How it works", and
"Reliability" are rendered using `<a href="#" ...>` (e.g. line 327), and similarly the
COMPANY group at lines 334-343 renders "About", "Careers", "Contact" as `<a href="#" ...>`
(e.g. line 339).
3. Earlier in the same file, the top navigation bar at lines 118-147 wires meaningful
anchors (`href="#product"`, `href="#how-it-works"`, `href="#reliability"`,
`href="#contact"`), and corresponding section IDs exist on the Hero, HowItWorks,
Reliability, and Footer sections at lines 170, 235, 282, and 306.
4. When a user reaches the footer on `/` and clicks "Overview" or "How it works" in the
footer, the browser navigates to `#` (top of the document) instead of the intended section
anchors, producing a jump-to-top behavior and leaving footer navigation effectively broken
compared to the correctly wired header links.(Use Cmd/Ctrl + Click for best experience)
Prompt for AI Agent 🤖
This is a comment left during a code review.
**Path:** frontend/src/pages/LandingPage.tsx
**Line:** 327:339
**Comment:**
*Incomplete Implementation: The footer navigation links are wired to `#`, so they do not navigate to real destinations and instead jump to the top of the page. This creates broken navigation behavior; point these links to actual section anchors or real routes.
Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix| }; | ||
|
|
||
| return ( | ||
| <div className="bg-[#060A14] min-h-screen text-[#E7EBF3] overflow-x-hidden select-none"> |
There was a problem hiding this comment.
Suggestion: The landing page root only hides horizontal overflow, but the app’s global stylesheet sets body to overflow: hidden, so this page cannot scroll vertically. Users won’t be able to reach sections below the fold (including footer content and in-page anchor targets). Make the landing root an explicit scroll container (for example full-height with vertical overflow enabled) or scope the global overflow rule away from this route. [css layout issue]
Severity Level: Critical 🚨
❌ Landing page cannot scroll; content below fold inaccessible.
❌ HowItWorks, Reliability, Footer sections unreachable on `/`.
⚠️ In-page anchors (#how-it-works, #contact) never usable.Steps of Reproduction ✅
1. The root route is defined in `frontend/src/App.tsx` at lines 16-18, where `<Route
path="/" element={<LandingPage />} />` maps the `/` URL to the `LandingPage` component.
2. Global base styles in `frontend/src/styles/index.css` lines 14-19 set `body {
background-color: #000000; color: #dfe2eb; overflow: hidden; }`, preventing the document
from scrolling vertically.
3. The `LandingPage` component root container in `frontend/src/pages/LandingPage.tsx` line
366 renders a `<div>` with `min-h-screen` and `overflow-x-hidden` but no `overflow-y`
rule, so it relies on the body for vertical scrolling.
4. When a user navigates to `/` in the running app, the page content (Hero, HowItWorks,
Reliability, Footer at lines 167-371 in `LandingPage.tsx`) extends beyond the viewport,
but the `body` overflow restriction stops vertical scroll, making sections below the fold
and anchor targets (e.g. `#how-it-works`, `#reliability`, `#contact`) unreachable.(Use Cmd/Ctrl + Click for best experience)
Prompt for AI Agent 🤖
This is a comment left during a code review.
**Path:** frontend/src/pages/LandingPage.tsx
**Line:** 366:366
**Comment:**
*Css Layout Issue: The landing page root only hides horizontal overflow, but the app’s global stylesheet sets `body` to `overflow: hidden`, so this page cannot scroll vertically. Users won’t be able to reach sections below the fold (including footer content and in-page anchor targets). Make the landing root an explicit scroll container (for example full-height with vertical overflow enabled) or scope the global overflow rule away from this route.
Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix|
CodeAnt AI finished reviewing your PR. |
… set nav end prop, and add legacy redirects
…ntainer instead of window
…ive window scrolling and standard anchor link targets
|
@ronaksarda, Please attach screenshots of the Landing Page along with your PR. |
|
Adding it! |
|
Done @krishkhinchi ! |
Sorry for taking up a lot of time , was working on multiple things |
|
@ronaksarda No worries at all, and thank you for your contribution to Kepler! We’ve created a few more frontend issues, so if you’d like to keep working on it, feel free to check them out. |
|
Surely @krishkhinchi , this is a really intriguing project |
User description
Description
Created a clean, technical space-themed landing page as the entry point (
/) for Kepler.font-display-lg,font-body-ui, andfont-technical-data).#060A14,#0C1220,#1B2436,#E7EBF3,#8892A6,#4FE0C8,#FFB020)./* Nav */,/* Hero */)./dashboardprefix to ensure clear separation and correct navigation mapping.Related Issue
Fixes #28
Checklist
Screenshots / Screen Recordings
/dashboardand the "Launch Dashboard" navigation links.Breaking Changes
None. The original dashboard page and tabs have been successfully refactored to mount under
/dashboardpaths and compile cleanly.ECSoC26 Submission
ECSoC26-L1– BeginnerECSoC26-L2– IntermediateECSoC26-L3– AdvancedCodeAnt-AI Description
Add a new landing page and move the app under
/dashboardWhat Changed
/dashboardpath, so the public landing page and app interface now live on separate routesImpact
✅ Clearer first visit experience✅ Easier dashboard access from the homepage✅ Cleaner separation between marketing page and app routes💡 Usage Guide
Checking Your Pull Request
Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.
Talking to CodeAnt AI
Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:
This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.
Example
Preserve Org Learnings with CodeAnt
You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:
This helps CodeAnt AI learn and adapt to your team's coding style and standards.
Example
Retrigger review
Ask CodeAnt AI to review the PR again, by typing:
Check Your Repository Health
To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.
Summary by CodeRabbit
New Features
Navigation & Routing
/renders the landing page and dashboard pages live under/dashboard./dashboard/*routes./dashboard.Greptile Summary
This PR introduces a new space-themed landing page at
/and relocates the existing dashboard under/dashboard, with<Navigate>redirects preserving all old routes. The routing restructure inApp.tsxand the nav link updates inMainLayout.tsxare clean and correct.LandingPage.tsx): 417-line new component with an SVG orbital animation, hero, "How it works", reliability stats, and footer. The scroll-triggered nav backdrop now works correctly becausedocument.body.style.overflow = \"auto\"is set on mount, making the body the actual scroll container.App.tsx): Root path now servesLandingPage; all dashboard pages mount under/dashboard; seven legacy redirects handle any bookmarked or linked top-level paths.MainLayout.tsx): AllnavItemspaths updated to the/dashboard/*prefix; theendprop is now correctly applied to the Dashboard entry, preventing it from appearing active on every sub-route.Confidence Score: 5/5
Safe to merge — routing changes are straightforward, legacy redirects are in place, and the landing page is purely additive with no impact on existing dashboard functionality.
The routing restructure and nav updates are mechanically correct. The two findings in the landing page are cosmetic or defensive-quality concerns that do not affect correctness or break any existing behavior.
frontend/src/pages/LandingPage.tsx — orbital animation geometry and body overflow cleanup pattern worth revisiting.
Important Files Changed
/, moves app routes under/dashboard, and adds<Navigate>redirects for all legacy top-level paths — straightforward and correct./dashboard/*prefix;endprop correctly added for the Dashboard entry to prevent permanent active state on all sub-routes.Flowchart
%%{init: {'theme': 'neutral'}}%% flowchart TD Root["/"] --> LP[LandingPage] LP -->|Launch Dashboard CTA| DB["/dashboard"] DB --> DLayout[MainLayout] DLayout --> DIndex["(index) Dashboard"] DLayout --> ST["/dashboard/space-traffic"] DLayout --> SAT["/dashboard/satellites"] DLayout --> DEB["/dashboard/debris"] DLayout --> CC["/dashboard/collision-center"] DLayout --> AI["/dashboard/ai-agents"] DLayout --> MP["/dashboard/mission-planner"] DLayout --> SET["/dashboard/settings"] OldST["/space-traffic"] -->|Navigate redirect| ST OldSAT["/satellites"] -->|Navigate redirect| SAT OldDEB["/debris"] -->|Navigate redirect| DEB OldCC["/collision-center"] -->|Navigate redirect| CC OldAI["/ai-agents"] -->|Navigate redirect| AI OldMP["/mission-planner"] -->|Navigate redirect| MP OldSET["/settings"] -->|Navigate redirect| SET%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%% flowchart TD Root["/"] --> LP[LandingPage] LP -->|Launch Dashboard CTA| DB["/dashboard"] DB --> DLayout[MainLayout] DLayout --> DIndex["(index) Dashboard"] DLayout --> ST["/dashboard/space-traffic"] DLayout --> SAT["/dashboard/satellites"] DLayout --> DEB["/dashboard/debris"] DLayout --> CC["/dashboard/collision-center"] DLayout --> AI["/dashboard/ai-agents"] DLayout --> MP["/dashboard/mission-planner"] DLayout --> SET["/dashboard/settings"] OldST["/space-traffic"] -->|Navigate redirect| ST OldSAT["/satellites"] -->|Navigate redirect| SAT OldDEB["/debris"] -->|Navigate redirect| DEB OldCC["/collision-center"] -->|Navigate redirect| CC OldAI["/ai-agents"] -->|Navigate redirect| AI OldMP["/mission-planner"] -->|Navigate redirect| MP OldSET["/settings"] -->|Navigate redirect| SETReviews (3): Last reviewed commit: "Fix layout scrolling: use dynamic body o..." | Re-trigger Greptile