Commit Graph

973 Commits

Author SHA1 Message Date
Haitao Pan
ee70e79f76 fix(dashboard): resolve all module import errors and fix CSS loading
## Module Import Fixes:
- Fix cloud_iac JSON import paths: '../../../../public/_build/cloud_iac_index.json' → '../../../../../public/_build/cloud_iac_index.json'
- Fix docs JSON import paths: '../../public/dl-index/*' and '../../public/_build/*' → '../../../public/*'
- Fix ThemePreferenceCard theme import: '../../../../theme' → '../routes/theme'
- Fix products registry import: '@src/products/registry' → '../../../../modules/products/registry'

## CSS Loading Fix:
- Update tailwind.config.js content paths to include './src/**/*.{js,ts,jsx,tsx,mdx}'
- Ensures Tailwind CSS scans all src/ directory files for class names

Resolves "Module not found" errors and ensures CSS styles are correctly loaded during build.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-11 12:04:29 +08:00
Haitao Pan
aa6e0fe1b2 fix(dashboard): resolve markdown import path in homepage.ts
- Fix markdown import path from '../../lib/markdown' to '../../../lib/markdown'
- Correct relative path from src/lib/cms/content/homepage.ts to src/lib/markdown.ts
- Resolves "Module not found" error during Next.js build

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-11 11:59:29 +08:00
Haitao Pan
c4e4a80b4f fix(dashboard): resolve CMS content source paths in config
- Fix homepage and docs content source root paths from 'cms/content/*' to 'src/lib/cms/content/*'
- Paths are relative to process.cwd() and need the full path from project root
- Resolves ENOENT errors when reading markdown directories

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-11 11:59:19 +08:00
Haitao Pan
cc1f9e3ba2 fix(dashboard): resolve import path errors in extensionRuntime.ts
- Fix AppShellBypass import path from '../../../lib/appShellBypass' to '../appShellBypass'
- Correct relative path from src/lib/cms/extensionRuntime.ts to src/lib/appShellBypass.tsx
- Resolves "Module not found" error during Next.js build

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-11 11:51:04 +08:00
Haitao Pan
2ecc03eafa fix(dashboard): resolve featureToggles import path in homepage.ts
- Fix import path from '../../lib/featureToggles' to '../../../lib/featureToggles'
- Correct relative path from src/lib/cms/content/homepage.ts to src/lib/featureToggles.ts
- Resolves "Module not found" error during Next.js build

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-11 11:23:09 +08:00
shenlan
d9a1e2b7ac refactor(dashboard): adopt src app router layout (#667) 2025-11-11 10:45:37 +08:00
Haitao Pan
44f59293cb feat(account): add database management targets to Makefile
- Add create-db-user: create database user and grant privileges
- Add db-reset: reset entire PostgreSQL cluster (dangerous operation)
- Update help text to document new database management commands

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-10 23:12:07 +08:00
shenlan
1b86870990 Merge pull request #666 from Cloud-Neutral/codex/simplify-dashboard-tab-presentation 2025-11-10 07:59:20 +08:00
shenlan
848080bd6e Simplify open source hero copy 2025-11-10 07:53:00 +08:00
shenlan
7c1f8cca57 Refine homepage hero to minimal Cloud-Neutral layout (#665)
* Refine homepage hero to minimal Cloud-Neutral layout

* Simplify homepage hero layout
2025-11-09 23:37:25 +08:00
shenlan
6fc220d21f Revert "Remove marketing-focused components from dashboards (#663)" (#664)
This reverts commit bbe71df9d2.
2025-11-09 23:27:47 +08:00
shenlan
bbe71df9d2 Remove marketing-focused components from dashboards (#663) 2025-11-09 23:24:00 +08:00
shenlan
89b45d13a9 Remove newsletter sidebar component (#662) 2025-11-09 22:40:59 +08:00
shenlan
65beed5721 refine homepage ecosystem narrative (#661) 2025-11-09 22:38:14 +08:00
shenlan
a79ed64bc3 Fix tenant mail route slug for Next.js build (#660) 2025-11-09 20:54:05 +08:00
shenlan
8bedfb1a8a Fix tenant mail route segment name (#659) 2025-11-09 19:46:40 +08:00
shenlan
88ea7e8920 Merge pull request #658 from Cloud-Neutral/codex/fix-yarn-next-build-error 2025-11-09 18:11:56 +08:00
shenlan
3d057c52dd Disable typed routes to avoid stale validator imports 2025-11-09 18:10:55 +08:00
shenlan
719e164ee3 Keep navbar dropdown open on focus (#657) 2025-11-09 17:53:15 +08:00
shenlan
4ce16713ab Fix navbar dropdown click handling (#656) 2025-11-09 17:34:44 +08:00
shenlan
8b7bb7df1f feat(dashboard): add open source dropdown to navbar (#655) 2025-11-09 17:21:27 +08:00
shenlan
e0aa28ccc1 Fix marketing product routes for Next.js params (#653) 2025-11-09 16:51:47 +08:00
shenlan
3777ba22ca Ensure html2canvas loads only in browser (#652) 2025-11-09 16:34:54 +08:00
shenlan
9aec855a22 fix: lazily load html2canvas in poster export (#651) 2025-11-09 16:15:11 +08:00
shenlan
2d11e439b6 Align dynamic slug names for tenant and product routes (#650) 2025-11-09 15:59:20 +08:00
shenlan
b06cf2de3e feat(dashboard): add marketing product pages (#649) 2025-11-09 15:44:38 +08:00
shenlan
0da7de8cb7 Rename CloudNative Suite to Cloud-Neutral in dashboards (#648) 2025-11-09 10:06:34 +08:00
Haitao Pan
2263707d13 fix(dashboard): resolve @types/react version conflict
- Downgrade @types/react from 19.1.8 → 18.3.26
- Align with @types/react-dom and @testing-library/react
- No build errors, all dependencies compatible

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2025-11-06 11:49:09 +08:00
Haitao Pan
4976ca1efd fix(dashboard): eliminate middleware deprecation warning
- Rename middleware.ts → proxy.ts
- Update to use default proxy export (Next.js 16)

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2025-11-06 11:40:15 +08:00
Haitao Pan
f3d0a7f931 fix(dashboard): resolve npm run build errors
- Fix module path in prebuild script (../../scripts → ../scripts)
- Update API routes to use Promise-based params for Next.js 16
- Install @types/sanitize-html and @types/js-yaml
- Fix component prop naming (loading → isLoading, saving → isSaving, etc.)
- Update VLESS config type definition with missing 'id' property
- Fix TypeScript type conflicts and export declarations

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2025-11-06 11:07:30 +08:00
Haitao Pan
5f82e984b4 fix: update cookies() API for Next.js 16 compatibility
- Updated 6 API route handlers to use await cookies()
- Fixed: auth/session, auth/login, auth/mfa/* endpoints
- Resolves "cookies().get is not a function" errors

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-06 10:35:56 +08:00
Haitao Pan
288a049141 feat(dashboard): add REGION env variable support
- Enable REGION environment variable to control regional config overrides
- Prioritize RUNTIME_ENV and REGION over file-based configuration
- Supports: RUNTIME_ENV=prod|sit and REGION=cn|global|default
- Loads from dashboard/config/runtime-service-config.{env}.yaml
- Fixes configuration loading with Turbopack compatibility

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-06 10:28:35 +08:00
Haitao Pan
b4696470f6 feat(dashboard): upgrade Next.js 14 → 16 with Turbopack support
- Fix @theme module resolution for Turbopack
- Add external image domain config (dl.svc.plus)
- Resolve YAML file module type errors
- Support RUNTIME_ENV env var for config selection
- Optimize next.config.mjs for Next.js 16 compatibility

Closes #upgrade-next16
2025-11-06 10:21:19 +08:00
Haitao Pan
0b3fab7d28 cleanup(auth): remove test/docs files from internal/auth
- Deleted non-essential files from rag-server/account internal/auth:
  - Removed: test files, docs (README, IMPLEMENTATION), cache/client modules
  - Kept: core JWT auth middleware and token_service only
- Simplified to JWT service-to-service authentication
- Claims retain UserID/Email/Roles business info
2025-11-05 22:58:39 +08:00
Haitao Pan
a1e4cc9146 remove: remove internal/auth/mfa_service.go
• Deleted unused mfa_service.go file
• Fixed import in api/api.go for auth package
• Build verified and working

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-05 22:25:15 +08:00
Haitao Pan
3a4f7105c7 update TOKEN_AUTH_SUMMARY.md 2025-11-05 22:16:18 +08:00
Haitao Pan
96e4c8d719 feat(auth): implement rag-server remote auth middleware
Implement complete authentication middleware for rag-server:
- Remote token verification via accounts-service
- 60s TTL cache with background GC
- Gin middleware integration
- Role-based access control
- Zero-trust architecture (no private keys)
- Health check endpoint

Files:
- internal/auth/client.go (350 lines)
- internal/auth/middleware_verify.go (280 lines)
- internal/auth/cache.go (180 lines)
- internal/auth/example_test.go (150 lines)
- internal/auth/README.md (550 lines)
- cmd/xcontrol-server/main.go (updated)
- config/config.go (added AuthCfg)
- config/server.yaml (removed secrets)

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2025-11-05 21:01:20 +08:00
Haitao Pan
8edeb75391 feat(auth): implement dual-layer token authentication with config support
- Add auth.enable configuration field (default: true)
- Add TokenService initialization in account service
- Implement token exchange endpoint (/api/auth/token/exchange)
- Implement token refresh endpoint (/api/auth/token/refresh)
- Protect routes with JWT authentication middleware
- Update configuration structures for all services
- Support accessSecret with configurable expiry times
- Update token management script to handle all token types
- Validate auth configuration consistency across services
2025-11-05 20:11:23 +08:00
Haitao Pan
c1a26852ae feat(test): add test suite for services (build, dry-run, local-test) 2025-11-05 19:42:45 +08:00
Haitao Pan
7ef1f960fb feat(auth): implement token authentication system across services
- Add token service and MFA service to account service
- Implement auth middleware for request validation
- Add token-based auth to dashboard and RAG server
- Update configuration files for auth settings
2025-11-05 19:28:23 +08:00
Haitao Pan
097b88c0a8 fix(auth): resolve panel redirect loops and clean up authentication flow
- Fix middleware redirect path from /auth/login to /login
- Remove duplicate authentication checks from panel routes (index, account, mail)
- Configure public routes: only /, /download, /docs are public
- All other pages including /panel require authentication
- Streamline auth flow: middleware handles auth, pages render directly

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-05 17:22:24 +08:00
Haitao Pan
36dcb53256 update: account/config/sync.yaml 2025-11-05 16:36:08 +08:00
Haitao Pan
9e1112758a feat(dashboard-fresh): migrate and integrate dashboard source
- Add fresh app structure (auth, tenant, mail, insight, docs, panel)
- Include CMS content, API routes, scripts, and config
- Migrate UI components, themes, and extensions to fresh runtime
2025-11-04 18:06:21 +08:00
shenlan
3368bfb4c1 docs: align dashboard plan with fresh deno migration (#644) 2025-11-04 12:57:02 +08:00
Haitao Pan
34edab39de fix(account): add timeout and email validation for verification sending 2025-11-04 09:38:15 +08:00
shenlan
3da17828bb feat: enable mail demo preview and fix extension import (#643) 2025-11-03 07:56:18 +08:00
shenlan
c3e0268a24 Add email verification auth page (#642) 2025-11-02 23:09:51 +08:00
shenlan
e48a20a01d Simplify verification step notice (#641) 2025-11-02 22:43:00 +08:00
shenlan
fda6865f70 Improve registration feedback and verification flow (#640) 2025-11-02 19:34:26 +08:00
shenlan
b8e79a3c38 Keep registration code inputs enabled (#639) 2025-11-02 18:44:34 +08:00