[PR #72] [MERGED] Sync custom themes and fix mobile theme save #4441

Closed
opened 2026-10-22 04:07:38 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/72
Author: @TheLonelyDevil9
Created: 4/9/2026
Status: ✅ Merged
Merged: 4/10/2026
Merged by: @SpicyMarinara

Base: main ← Head: fix/synced-custom-themes-mobile-save


📝 Commits (1)

  • 020b883 Add synced custom theme support

📊 Changes

18 files changed (+501 additions, -70 deletions)

View changed files

📝 docs/FRONTEND.md (+3 -1)
📝 packages/client/.instructions.md (+3 -2)
📝 packages/client/src/App.tsx (+2 -0)
📝 packages/client/src/components/layout/CustomThemeInjector.tsx (+6 -11)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+90 -49)
➕ packages/client/src/hooks/use-themes.ts (+131 -0)
📝 packages/client/src/stores/ui.store.ts (+20 -4)
📝 packages/server/src/db/migrate.ts (+10 -0)
📝 packages/server/src/db/schema/index.ts (+1 -0)
➕ packages/server/src/db/schema/themes.ts (+14 -0)
📝 packages/server/src/routes/admin.routes.ts (+1 -0)
📝 packages/server/src/routes/backup.routes.ts (+42 -3)
📝 packages/server/src/routes/index.ts (+2 -0)
➕ packages/server/src/routes/themes.routes.ts (+42 -0)
➕ packages/server/src/services/storage/themes.storage.ts (+88 -0)
📝 packages/shared/src/index.ts (+2 -0)
➕ packages/shared/src/schemas/theme.schema.ts (+27 -0)
➕ packages/shared/src/types/theme.ts (+17 -0)

📄 Description

Summary

  • move custom themes from browser-local state to a server-backed synced theme library
  • fix mobile theme save on insecure LAN HTTP by removing direct client UUID generation from theme creation
  • sync the active custom theme across connected devices and preserve themes in profile export/import

Testing

  • pnpm --filter @marinara-engine/client lint
  • pnpm --filter @marinara-engine/server lint
  • pnpm build

Notes

  • client lint still reports pre-existing warnings in unrelated files
  • manual Android/browser verification was not run from this environment

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/72 **Author:** [@TheLonelyDevil9](https://github.com/TheLonelyDevil9) **Created:** 4/9/2026 **Status:** ✅ Merged **Merged:** 4/10/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `main` ← **Head:** `fix/synced-custom-themes-mobile-save` --- ### 📝 Commits (1) - [`020b883`](https://github.com/Pasta-Devs/Marinara-Engine/commit/020b883b631d5eff4a508455e764e8a3c124f1ff) Add synced custom theme support ### 📊 Changes **18 files changed** (+501 additions, -70 deletions) <details> <summary>View changed files</summary> 📝 `docs/FRONTEND.md` (+3 -1) 📝 `packages/client/.instructions.md` (+3 -2) 📝 `packages/client/src/App.tsx` (+2 -0) 📝 `packages/client/src/components/layout/CustomThemeInjector.tsx` (+6 -11) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+90 -49) ➕ `packages/client/src/hooks/use-themes.ts` (+131 -0) 📝 `packages/client/src/stores/ui.store.ts` (+20 -4) 📝 `packages/server/src/db/migrate.ts` (+10 -0) 📝 `packages/server/src/db/schema/index.ts` (+1 -0) ➕ `packages/server/src/db/schema/themes.ts` (+14 -0) 📝 `packages/server/src/routes/admin.routes.ts` (+1 -0) 📝 `packages/server/src/routes/backup.routes.ts` (+42 -3) 📝 `packages/server/src/routes/index.ts` (+2 -0) ➕ `packages/server/src/routes/themes.routes.ts` (+42 -0) ➕ `packages/server/src/services/storage/themes.storage.ts` (+88 -0) 📝 `packages/shared/src/index.ts` (+2 -0) ➕ `packages/shared/src/schemas/theme.schema.ts` (+27 -0) ➕ `packages/shared/src/types/theme.ts` (+17 -0) </details> ### 📄 Description ## Summary - move custom themes from browser-local state to a server-backed synced theme library - fix mobile theme save on insecure LAN HTTP by removing direct client UUID generation from theme creation - sync the active custom theme across connected devices and preserve themes in profile export/import ## Testing - pnpm --filter @marinara-engine/client lint - pnpm --filter @marinara-engine/server lint - pnpm build ## Notes - client lint still reports pre-existing warnings in unrelated files - manual Android/browser verification was not run from this environment --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:07:38 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#4441
No description provided.