Commit Graph

13 Commits

Author SHA1 Message Date
Haitao Pan
cf1ce8a4db fix(release): verify frontend release via homepage metadata 2026-04-13 08:31:06 +08:00
Haitao Pan
d054b35116 Align frontend release contract across www and console domains 2026-04-12 17:55:14 +08:00
Haitao Pan
9a915ae080 feat: integrate openclaw assistant workspace 2026-03-12 12:18:25 +08:00
Haitao Pan
92802a7da6 seo: improve metadata and update observability service link 2026-02-03 22:37:29 +08:00
Haitao Pan
da0f1d864d feat: add Cloudflare Web Analytics comments 2026-02-02 15:34:20 +08:00
Haitao Pan
bcde96bd9d feat: update services page title and description text for improved clarity. 2026-02-01 11:08:29 +08:00
Haitao Pan
ca6da31656 feat: add comprehensive SEO metadata, structured data, a custom 404 page, and SEO audit tooling. 2026-01-29 12:57:22 +08:00
Haitao Pan
ba16745daa fix: resolve eslint issues 2026-01-26 21:48:45 +08:00
google-labs-jules[bot]
32ea4c509a feat: Implement Material 3 Layout with Theme Switcher
- Implemented a new Material 3-inspired layout for the services page, following the user's design reference.
- Added a theme switcher to toggle between the original ("classic") and the new ("material") layouts.
- The theme preference is persisted in `localStorage` using a Zustand store.
- Ensured proper server-side rendering and client-side hydration by creating a custom `useViewStore` hook that prevents hydration mismatches.
- Created new components for the Material 3 layout: `Sidebar`, `Header`, and `Material3Layout`.
- Refactored the main services page (`src/app/services/page.tsx`) to conditionally render either the classic or material layout based on the selected theme.
- Moved the theme switcher to the `Footer` component to make it accessible in both views.
- Added a Playwright test to verify the functionality of the theme switcher.
2026-01-25 11:29:03 +00:00
Haitao Pan
740a595d84 fix: resolve build errors and dependency conflicts 2026-01-23 17:43:43 +08:00
Vercel
5de9abc11e Add Vercel Web Analytics to Next.js
## Vercel Web Analytics Integration Report

### Summary
Successfully installed and configured Vercel Web Analytics for the Next.js App Router project.

### Changes Made

#### 1. Installation
- Installed `@vercel/analytics@^1.6.1` package using npm with `--legacy-peer-deps` flag to handle existing peer dependency conflicts in the project
- Updated `package.json` to include the new dependency
- Updated `yarn.lock` to reflect the new package dependency

#### 2. Code Changes
- **Modified:** `src/app/layout.tsx` (Root Layout File)
  - Added import: `import { Analytics } from '@vercel/analytics/next'`
  - Added `<Analytics />` component inside the `<body>` tag, positioned after `<AppProviders>{children}</AppProviders>`
  - This placement ensures Analytics tracking initializes after the app providers are set up

#### 3. Files Modified
- `src/app/layout.tsx` - Added Analytics import and component
- `package.json` - Added @vercel/analytics dependency
- `yarn.lock` - Updated with new dependency information
- `next-env.d.ts` - Auto-generated Next.js types (no manual changes)

#### 4. Implementation Details
- **Router Type:** App Router (uses `src/app` directory structure)
- **Import Location:** `@vercel/analytics/next` - the Next.js-specific export
- **Component Placement:** Inside the `<body>` tag after AppProviders as recommended
- **Existing Configuration:** Preserved all existing code including Google Analytics and other metadata

### Build Verification
 Build completed successfully
 All 63 static pages generated without errors
 No TypeScript compilation errors introduced by changes

### Notes
- The project uses yarn as its package manager, but npm was used for installation due to corepack permission limitations in the environment. The package.json and yarn.lock have been properly updated.
- Vercel Web Analytics will now automatically track web vitals and user analytics without requiring any additional configuration.
- The Analytics component is non-intrusive and won't affect the existing Google Analytics tracking already in place.
- The build completed successfully, indicating the Analytics component integrates properly with the Next.js app.

### Compatibility
- Next.js version: ^16.0.9
- React version: ^18.2.0
- Vercel Analytics: ^1.6.1

Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com>
2026-01-16 08:48:44 +00:00
Haitao Pan
1b89c72c2e Add GA4 tag, robots.txt, and sitemap 2026-01-14 17:41:08 +08:00
Haitao Pan
aea7db149f git commit -m "chore: split dashboard into standalone repository from XControl" 2025-12-14 22:33:14 +08:00