refactor(board): remove theme column from Board table#47
refactor(board): remove theme column from Board table#47ryota-murakami merged 3 commits intomainfrom
Conversation
Theme is now managed globally via Sidebar ThemeToggle (Redux), not per-board. This removes the unused board-specific theme feature. Changes: - Add migration to drop theme column, constraint, and update trigger - Remove themeSchema and updateThemeFormSchema from validations - Remove updateBoardThemeAction from board actions - Remove unused Theme type from types.ts - Update related tests and regenerate database types
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📝 WalkthroughWalkthroughThis PR removes board theming end-to-end: theme UI and logic are deleted from the create form and stories, theme parameters and actions are removed from server code and validations, the theme column/constraint is dropped via migration and seed data updated, and related tests and types are removed or adjusted. Changes
Sequence Diagram(s)sequenceDiagram
rect rgba(220,230,241,0.5)
participant User
participant UI as CreateBoardForm
participant Server as createBoard action
participant DB as Database
end
User->>UI: fill name + submit
UI->>Server: POST createBoard(name)
Server->>DB: INSERT board(name, settings, ...)
DB-->>Server: insert result (board id)
Server-->>UI: redirect / return success
UI-->>User: navigate to new board
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🤖 Morph Preview TestPreview URL: https://gitbox-31v46vez8-laststance.vercel.app AI SummaryIssues:
Verified:
Notes:
RecordingAutomated testing by Morph |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #47 +/- ##
==========================================
- Coverage 75.03% 74.72% -0.31%
==========================================
Files 119 119
Lines 3825 3779 -46
Branches 990 981 -9
==========================================
- Hits 2870 2824 -46
Misses 939 939
Partials 16 16 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Theme column was dropped from board table in migration 20260204000000_drop_board_theme.sql, but seed.sql and E2E tests still referenced it, causing CI failures. Changes: - Remove theme column from board INSERT statements in seed.sql - Remove theme selection tests from create-board.spec.ts (9 tests)
🤖 Morph Preview TestPreview URL: https://gitbox-8szodvycm-laststance.vercel.app AI SummaryIssues:
Verified:
Notes:
RecordingAutomated testing by Morph |
🧪 E2E Coverage Report (Sharded: 12 parallel jobs)
📊 Full report available in workflow artifacts |


Summary
Changes
Database
20260204000000_drop_board_theme.sqlマイグレーションを追加check_theme制約を削除create_default_board()トリガー関数を更新themeカラムを削除Application Code
themeSchema,updateThemeFormSchemaをvalidations/board.tsから削除updateBoardThemeAction,UpdateBoardThemeStateをboard.tsから削除Theme型をtypes.tsから削除database.types.tsを再生成Tests
board-theme.test.tsを削除board.test.tsからtheme関連テストを削除CreateBoardForm.test.tsxからtheme関連テストを削除Test plan
Summary by CodeRabbit
Removed Features
Documentation
Chores