Skip to content

Add initial Bitcoin24 SPA core components and docs - #13

Open
dennislee928 wants to merge 30 commits into
bitcoin-model:mainfrom
dennislee928:dev
Open

Add initial Bitcoin24 SPA core components and docs#13
dennislee928 wants to merge 30 commits into
bitcoin-model:mainfrom
dennislee928:dev

Conversation

@dennislee928

Copy link
Copy Markdown

Introduce core layout, chart components, language switcher, input UI, portfolio calculation engine, and UI state management using Zustand. Add initial documentation for development plan, phases, and stages. This sets up the foundation for the Bitcoin24 Next.js SPA, including internationalization and strategy simulation support.

dennislee928 and others added 30 commits October 9, 2025 15:09
Added DEVELOPMENT_PLAN.md detailing the full Next.js SPA development roadmap, technical stack, architecture, data models, UI/UX, i18n, testing, CI/CD, and timeline. Added PHASES.md outlining the project phases, deliverables, and key tasks for each stage. These documents provide a comprehensive guide for the Bitcoin24 SPA project.
Set up a new Next.js single-page application with TypeScript, ESLint, Prettier, Tailwind CSS, and PostCSS. Added initial i18n configuration with English and Traditional Chinese locales, and included relevant configuration files for linting, formatting, and testing. Project structure includes base styles, Tailwind theme extension, and localization support.

已修正的問題(共 13 個):
✅ Matrix 表達式語法錯誤
✅ PowerShell 解析錯誤
✅ 中文字符編碼問題
✅ DEB 套件目錄不存在
✅ Inno Setup 語言檔案不存在
✅ Inno Setup 檔案路徑錯誤
✅ PowerShell 多行語法問題
✅ GitHub Release 被跳過
✅ Chocolatey 服務不可用
✅ DEB 版本號格式錯誤
✅ ISO Volume ID 過長
✅ GitHub Releases 需要 tag
✅ Release 資產上傳失敗
Adds initial layout, locale-aware routing, and an introductory page for the Bitcoin24 SPA. Includes Japanese translations, utility functions for formatting and class merging, and middleware for internationalization support.
Added .npmrc for npm configuration, README.md and SETUP_GUIDE.md for project documentation, components.json for shadcn/ui configuration, and jest.config.js for Jest testing setup. This establishes the foundational configuration and documentation for the bitcoin24-spa project.
Implemented the core data layer for the Bitcoin24 SPA, including calculation engines (BTC price, portfolio, forecast), TypeScript type definitions, Zod validation schemas, Zustand state stores, constants, and custom hooks. Added shadcn/ui-based UI primitives (Button, Card, Input, Label, Select, Slider, Tabs) and unit tests for calculations. Updated dependencies to include Radix UI and related packages. This completes phase 3 (data layer) and prepares for UI component development in the next phase.
Implemented the core data layer for the Bitcoin24 SPA, including calculation engines (BTC price, portfolio, forecast), TypeScript type definitions, Zod validation schemas, Zustand state stores, constants, and custom hooks. Added shadcn/ui-based UI primitives (Button, Card, Input, Label, Select, Slider, Tabs) and unit tests for calculations. Updated dependencies to include Radix UI and related packages. This completes phase 3 (data layer) and prepares for UI component development in the next phase.
Added deployment and phase completion documentation, GitHub Actions CI workflow, and robots.txt for SEO. Enhanced Next.js config with bundle and performance optimizations. Expanded i18n translations for English and Japanese. Improved metadata for SEO in layout.tsx. Added unit and E2E test files for calculations, store, and navigation.
Introduce core layout, chart components, language switcher, input UI, portfolio calculation engine, and UI state management using Zustand. Add initial documentation for development plan, phases, and stages. This sets up the foundation for the Bitcoin24 Next.js SPA, including internationalization and strategy simulation support.

Co-Authored-By: bitcoin-model <177956049+bitcoin-model@users.noreply.github.com>
Co-Authored-By: bitcoin-model <177956049+bitcoin-model@users.noreply.github.com>
Deleted DEVELOPMENT_PLAN.md, PHASES.md, README.md, and STAGES.md from the repository. This cleans up project documentation files, possibly in preparation for restructuring or archiving documentation elsewhere.

Co-Authored-By: bitcoin-model <177956049+bitcoin-model@users.noreply.github.com>
Updated Link components in IntroPage and Navigation to use 'as any' type assertion for the href prop. This change addresses type compatibility issues with Next.js Link component.

Co-Authored-By: bitcoin-model <177956049+bitcoin-model@users.noreply.github.com>
Refactored locale handling in page and layout components to use setRequestLocale for static rendering support. Updated i18n request config to retrieve locale using getRequestLocale. Also moved viewport configuration to a separate export in layout.tsx for better Next.js compatibility.

Co-Authored-By: bitcoin-model <177956049+bitcoin-model@users.noreply.github.com>
Co-Authored-By: bitcoin-model <177956049+bitcoin-model@users.noreply.github.com>
Co-Authored-By: bitcoin-model <177956049+bitcoin-model@users.noreply.github.com>
Added Cloudflare deployment fix guide, development plan, and initial dashboard setup including Tailwind CSS configuration, global styles, and basic Next.js pages for the dashboard. This sets up the foundation for further dashboard development and deployment.

Co-Authored-By: bitcoin-model <177956049+bitcoin-model@users.noreply.github.com>
Updated DEVELOPMENT_PLAN.md, PHASES.md, and STAGES.md to include both Traditional Chinese and English sections, providing bilingual titles, overviews, and terminology. This improves accessibility for both Chinese and English readers and clarifies the structure and content of the project documentation. Also deleted the redundant 'DEVELOPMENT_PLAN copy.md' file.

Co-Authored-By: bitcoin-model <177956049+bitcoin-model@users.noreply.github.com>
Added bilingual documentation summaries and deployment guides: BILINGUAL-UPDATE-SUMMARY.md, CLOUDFLARE-PAGES-FIX.md, and DEPLOYMENT-SUCCESS-CHECKLIST.md. Updated PHASES.md and STAGES.md to include bilingual content and clearer structure. Added next.config.fixed.js with static export settings for successful Cloudflare Pages deployment.

Co-Authored-By: bitcoin-model <177956049+bitcoin-model@users.noreply.github.com>
Co-Authored-By: bitcoin-model <177956049+bitcoin-model@users.noreply.github.com>
Added missing `locale` property to i18n request config to resolve React hydration errors and next-intl warnings. Cleaned up next.config.js comments and clarified static export settings for Cloudflare Pages. Added detailed documentation: FINAL-FIX-GUIDE.md and RUNTIME-ERRORS-FIX.md, outlining the root cause, solution, and verification steps for runtime errors and deployment issues.

Co-Authored-By: bitcoin-model <177956049+bitcoin-model@users.noreply.github.com>
Added Cloudflare Pages redirect rules in public/_redirects to ensure the root path and /index.html redirect to /zh-TW. Updated src/middleware.ts to set 'zh-TW' as the default locale and refined the matcher for internationalized routes. Added documentation for deployment fixes and hydration error analysis.

Co-Authored-By: bitcoin-model <177956049+bitcoin-model@users.noreply.github.com>
Moved the import of globals.css from the root layout to the [locale]/layout.tsx file to ensure proper CSS bundling and loading in static export mode. Removed metadata and CSS import from root layout, and added documentation explaining the issue and solution. This resolves styling issues when deploying to static hosts like Cloudflare Pages.

Co-Authored-By: bitcoin-model <177956049+bitcoin-model@users.noreply.github.com>
Co-Authored-By: bitcoin-model <177956049+bitcoin-model@users.noreply.github.com>
Added a comprehensive README.md detailing features, setup, usage, and project structure for Bitcoin24. Included FINAL-DEPLOYMENT-FIX.md documenting the critical CSS deployment fix and troubleshooting steps for static export styling issues.

Co-Authored-By: bitcoin-model <177956049+bitcoin-model@users.noreply.github.com>
Moved documentation files into a unified 'Documents' directory for better organization. Updated next.config.js to transpile 'next-intl' for improved CSS handling. Enhanced the locale layout by adjusting global CSS import, adding favicon and theme color meta tags, and improving layout classes for consistent styling.

Co-Authored-By: bitcoin-model <177956049+bitcoin-model@users.noreply.github.com>
Co-Authored-By: bitcoin-model <177956049+bitcoin-model@users.noreply.github.com>
Co-Authored-By: bitcoin-model <177956049+bitcoin-model@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant