Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.
TypeScript albumsexif-extractiongeocodinglive-photomotion-photophoto-galleryphoto-sharingwebgl-viewer
fix(cloud): address review findings in theme and local setup
Timothy Yin9b925446a50e
diff --git a/apps/cloud/README.md b/apps/cloud/README.mdindex 0ebee4a2..0f014d8a 100644--- a/apps/cloud/README.md+++ b/apps/cloud/README.md@@ -54,7 +54,9 @@ Open `http://localhost:3001/signin`. The setup command creates missing app-local`[email protected]` account, a workspace, a Free subscription and anunpublished sample site. Read the generated password in`apps/cloud/.data/local-account.json`. Re-running setup applies new migrations-without resetting existing credentials, edited site settings or other local data.+and synchronizes the local account password with that credentials file without+resetting edited site settings or other local data. If the credentials file is+missing, setup generates a new password and updates the existing local account.Existing `.env` values are preserved; ensure `NUXT_PLATFORM_PORTAL_ORIGIN` is`http://localhost:3001` and session/platform secrets contain at least 32 characters.Restart the development server after changing `.env`.diff --git a/apps/cloud/app/assets/cloud.css b/apps/cloud/app/assets/cloud.cssindex 46c1dfbe..5d6ff8a8 100644--- a/apps/cloud/app/assets/cloud.css+++ b/apps/cloud/app/assets/cloud.css@@ -2799,16 +2799,6 @@ a.cf-domain-address:hover {}}-/* Nuxt UI text utilities share names with background-oriented theme colors. */-.cf-cloud-body .text-muted,-.cf-cloud-body .text-dimmed {- color: var(--muted-foreground);-}-.cf-cloud-body .text-default,-.cf-cloud-body .text-toned,-.cf-cloud-body .text-highlighted {- color: var(--foreground);-}.cf-site-page-header {border-bottom: 0;padding: 20px;diff --git a/apps/cloud/i18n/locales/en.json b/apps/cloud/i18n/locales/en.jsonindex 1dbd57ff..6be621ba 100644--- a/apps/cloud/i18n/locales/en.json+++ b/apps/cloud/i18n/locales/en.json@@ -718,7 +718,6 @@"return_superseded": "Payment confirmed. Your current plan is controlled by another entitlement; contact support if you need help."},"dashboard": {- "manageGallery": "Manage site","workspaceOverview": "Workspace overview","workspaceHelp": "Your galleries, resources and next steps in one place.","resources": "Workspace resources",diff --git a/apps/cloud/i18n/locales/zh-Hans.json b/apps/cloud/i18n/locales/zh-Hans.jsonindex 69553d9d..612fc94f 100644--- a/apps/cloud/i18n/locales/zh-Hans.json+++ b/apps/cloud/i18n/locales/zh-Hans.json@@ -718,7 +718,6 @@"return_superseded": "付款已确认,当前套餐由其他授权管理。如需帮助,请联系客服。"},"dashboard": {- "manageGallery": "管理站点","workspaceOverview": "工作区概览","workspaceHelp": "在这里查看站点、资源用量与下一步操作。","resources": "工作区资源",diff --git a/design-qa.md b/design-qa.mdindex abfd84ba..f2b40d18 100644--- a/design-qa.md+++ b/design-qa.md@@ -4,7 +4,10 @@ Date: 2026-10-29 (Asia/Hong_Kong)## Visual truth and scope-- Approved reference: `C:/Users/timothy/.codex/generated_images/01a182fb-0bd7-7ac2-a376-ea46471eb8de/exec-1d1a67d2-23b7-4272-8944-5a6874ef77fc.png`.+- Approved direction: the generated 1672 × 941 px workspace concept shared in+ the design discussion: graphite surfaces, restrained amber accents, compact+ controls, and a composition for one to three sites. The concept image is not+ included in this repository; the implementation criteria are recorded below.- Scope: implement the approved overall direction in the existing production app,keep the user's request for restrained controls and one-site composition, andestablish a reusable Cloud/Admin foundation. This is not a static mock clone.diff --git a/packages/saas-ui/app/assets/main.css b/packages/saas-ui/app/assets/main.cssindex 7f43f1f4..d9238e1b 100644--- a/packages/saas-ui/app/assets/main.css+++ b/packages/saas-ui/app/assets/main.css@@ -1,7 +1,7 @@@import 'tailwindcss';@import '@nuxt/ui';@import './tokens.css';-@import './primitives.css';+@import './primitives.css' layer(components);@import './shell.css';@source '../components';@@ -14,7 +14,6 @@--color-background: var(--background);--color-foreground: var(--foreground);--color-card: var(--card);- --color-muted: var(--muted);--color-muted-foreground: var(--muted-foreground);--color-primary: var(--primary);--color-primary-foreground: var(--primary-foreground);diff --git a/scripts/setup-cloud-local.mjs b/scripts/setup-cloud-local.mjsindex 91604564..6aef49de 100644--- a/scripts/setup-cloud-local.mjs+++ b/scripts/setup-cloud-local.mjs@@ -93,7 +93,7 @@ try {db.prepare(`INSERT INTO platform_accounts(account_id,provider_id,user_id,password,created_at,updated_at)SELECT CAST(id AS TEXT),'credential',id,?,?,? FROM platform_users WHERE email=?- ON CONFLICT(provider_id,account_id) DO NOTHING`)+ ON CONFLICT(provider_id,account_id) DO UPDATE SET password=excluded.password,updated_at=excluded.updated_at`).bind(password, now, now, credentials.email),db.prepare(`INSERT INTO platform_workspaces(name,owner_user_id,created_at)diff --git a/tests/cloud-local-seed.test.ts b/tests/cloud-local-seed.test.tsnew file mode 100644index 00000000..83304c80--- /dev/null+++ b/tests/cloud-local-seed.test.ts@@ -0,0 +1,38 @@+import assert from 'node:assert/strict'+import { readFileSync } from 'node:fs'+import test from 'node:test'+import Database from 'better-sqlite3'++test('Local account seeding synchronizes regenerated credentials without replacing the account', () => {+ const source = readFileSync('scripts/setup-cloud-local.mjs', 'utf8')+ const sql = source.match(/`(INSERT INTO platform_accounts[^`]+)`/)?.[1]+ assert.ok(sql)+ const db = new Database(':memory:')+ try {+ db.exec(`+ CREATE TABLE platform_users(id INTEGER PRIMARY KEY, email TEXT UNIQUE);+ CREATE TABLE platform_accounts(+ id INTEGER PRIMARY KEY, account_id TEXT, provider_id TEXT,+ user_id INTEGER, password TEXT, created_at INTEGER, updated_at INTEGER,+ UNIQUE(provider_id, account_id)+ );+ INSERT INTO platform_users VALUES(1, '[email protected]');+ `)+ const seed = db.prepare(sql)+ seed.run('original-hash', 10, 10, '[email protected]')+ seed.run('regenerated-hash', 20, 20, '[email protected]')+ assert.deepEqual(db.prepare('SELECT * FROM platform_accounts').all(), [+ {+ id: 1,+ account_id: '1',+ provider_id: 'credential',+ user_id: 1,+ password: 'regenerated-hash',+ created_at: 10,+ updated_at: 20,+ },+ ])+ } finally {+ db.close()+ }+})