mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 19:09:41 +08:00
Self-service /profile page (account info, icon/image avatar, sign out) implementing the profile half of #553. Contributed by @IliaAvdeev. Integration performed during merge onto current dev: - Migrate ProfileLink and the profile page off the removed AUTH_ENABLED build-time export to runtime auth status (auth.ts was refactored on dev by #577). ProfileLink reads the full status via fetchAuthStatus (it needs username/avatar, which the useAuthStatus hook does not expose); the page gates on status.enabled. - Resolve en/zh locale conflicts as a union of dev and PR keys. - Honor EXIF orientation in createImageBitmap so the primary decode path matches the <img> fallback. - Drop an unreachable AUTH_ENABLED render guard in the profile page. Verified locally: tsc, eslint, ruff, web node tests (142), pytest tests/multi_user (81 passed). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>