accounts/dashboard
Haitao Pan b011884ba5 feat: update Navbar to hide on dynamic product routes
### Task Completed:
1.  **Language Component Already Extracted**
   - LanguageToggle component is already in `src/components/LanguageToggle.tsx`
   - Uses global `useLanguage` hook from LanguageProvider
   - Already a shared component that can be reused anywhere

2.  **Updated Navbar to Hide on Dynamic Routes**
   - Modified `src/components/Navbar.tsx` to hide on `/xstream`, `/xcloudflow`, `/xscopehub`
   - Updated `isHiddenRoute` check to include these dynamic routes
   - Navbar automatically hides when visiting these product pages

### Changes:
**File: src/components/Navbar.tsx**
- Extended the hidden route list to include:
  - `/xstream` - XStream product page
  - `/xcloudflow` - XCloudFlow product page
  - `/xscopehub` - XScopeHub product page
- Existing hidden routes: `/login`, `/register`

### Result:
-  Navbar is hidden on all product landing pages
-  Language component remains globally accessible and shared
-  No code duplication - LanguageToggle is reusable
-  Clean separation of concerns

### Usage:
Any component can import and use the shared Language component:
```typescript
import LanguageToggle from '@/components/LanguageToggle'
```

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-11 14:10:18 +08:00
..
docs refactor(config): modernize to ES Module format 2025-11-11 12:26:04 +08:00
public fix(dashboard): resolve all module import errors and fix CSS loading 2025-11-11 12:04:29 +08:00
scripts refactor(dashboard): adopt src app router layout (#667) 2025-11-11 10:45:37 +08:00
src feat: update Navbar to hide on dynamic product routes 2025-11-11 14:10:18 +08:00
tests refactor(dashboard): adopt src app router layout (#667) 2025-11-11 10:45:37 +08:00
types Revert "feat: add markdown content pipeline (#547)" (#548) 2025-10-17 15:44:26 +08:00
.config_summary.txt refactor(config): modernize to ES Module format 2025-11-11 12:26:04 +08:00
.eslintrc.json Move dashboard frontend out of ui namespace (#538) 2025-10-17 12:36:27 +08:00
.gitignore Add dashboard UI tests and CI coverage (#556) 2025-10-17 16:52:28 +08:00
.nvmrc Move dashboard frontend out of ui namespace (#538) 2025-10-17 12:36:27 +08:00
.yarnrc.yml fix(dashboard): resolve all module import errors and fix CSS loading 2025-11-11 12:04:29 +08:00
Dockerfile Move dashboard frontend out of ui namespace (#538) 2025-10-17 12:36:27 +08:00
Makefile Ensure dashboard dev target installs dependencies (#558) 2025-10-17 16:57:34 +08:00
next-env.d.ts fix(dashboard): resolve all module import errors and fix CSS loading 2025-11-11 12:04:29 +08:00
next.config.mjs refactor(dashboard): adopt src app router layout (#667) 2025-11-11 10:45:37 +08:00
package-lock.json fix(dashboard): resolve @types/react version conflict 2025-11-06 11:49:09 +08:00
package.json refactor(dashboard): adopt src app router layout (#667) 2025-11-11 10:45:37 +08:00
postcss.config.js refactor(config): modernize to ES Module format 2025-11-11 12:26:04 +08:00
start.sh Move dashboard frontend out of ui namespace (#538) 2025-10-17 12:36:27 +08:00
tailwind.config.js refactor(config): modernize to ES Module format 2025-11-11 12:26:04 +08:00
test-esm.js refactor(config): modernize to ES Module format 2025-11-11 12:26:04 +08:00
tsconfig.json refactor(dashboard): adopt src app router layout (#667) 2025-11-11 10:45:37 +08:00
yarn.lock feat(dashboard): add marketing product pages (#649) 2025-11-09 15:44:38 +08:00