docs: activity log — frontend v2.8.70 (in-shell settings/addresses, central theme + dark mode)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -869,4 +869,34 @@ Files: telegram-seller-shop-view.tsx, telegram-template-detail-view.tsx.
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
### 2026-06-03 — frontend v2.8.70 — in-shell settings + addresses, central theme + dark mode
|
||||||
|
|
||||||
|
**In-shell account screens (were opening the web dashboard):**
|
||||||
|
- تنظیمات عمومی → telegram-settings-view.tsx: name/email/bio edit form via
|
||||||
|
updateUserProfile; session refresh on save.
|
||||||
|
- آدرسهای تحویل → telegram-addresses-view.tsx: full address CRUD (list / add /
|
||||||
|
edit / delete / set-primary) on the addresses API + use-telegram-addresses SWR hook.
|
||||||
|
- Account rows switched from href→onClick; new overlay states 'settings'/'addresses'
|
||||||
|
in the shell. (Passkey stays web — WebAuthn limitation.)
|
||||||
|
|
||||||
|
**Theme overhaul — Mini App now uses the CENTRAL web-app theme:**
|
||||||
|
- constants.ts: TG_PALETTE_LIGHT / TG_PALETTE_DARK derived from
|
||||||
|
src/theme/theme-config.ts (primary green, grey ramp, status colors) instead of
|
||||||
|
the ad-hoc cream/saffron palette; font stack aligned with AMANEH_FONT
|
||||||
|
(IBM Plex Sans / Vazirmatn).
|
||||||
|
- telegram-shell-css.ts: emits both palettes; `.tg-shell--dark` flips every token —
|
||||||
|
components keep the same CSS-var names.
|
||||||
|
- use-telegram-theme hook: auto (follow Telegram colorScheme) | light | dark,
|
||||||
|
persisted in localStorage; syncs Telegram native header/background colors.
|
||||||
|
- Theme toggle row (auto/light/dark) added to the account tab.
|
||||||
|
- Hero headers (account / seller-shop / welcome banner / unlinked) use new
|
||||||
|
--header-bg/--header-fg/--header-fg-muted vars so they stay legible in both modes.
|
||||||
|
- Removed the inline themeParams background/text override in getTelegramShellStyle
|
||||||
|
that forced a navy shell under light components on dark-mode Telegram clients
|
||||||
|
(the bad bg/font the user reported).
|
||||||
|
**Verification:** tsc + eslint clean (one pre-existing no-constant-condition
|
||||||
|
warning in telegram-webapp.ts, untouched).
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
<!-- Add new entries above this line. Newest at top. -->
|
<!-- Add new entries above this line. Newest at top. -->
|
||||||
|
|||||||
Reference in New Issue
Block a user