Skip to content

[PROFILE-007] Persist multiple profile target languages - #58

Merged
chev0004 merged 3 commits into
developfrom
feat/profile-007
Jun 17, 2026
Merged

[PROFILE-007] Persist multiple profile target languages#58
chev0004 merged 3 commits into
developfrom
feat/profile-007

Conversation

@chev0004

@chev0004 chev0004 commented Jun 17, 2026

Copy link
Copy Markdown
Owner

Outline

Summary

Persists profile target language arrays in a normalized table and uses them when loading profile editor data, discovery cards, and account exports. Existing single-language profile rows are backfilled and remain as a fallback for compatibility.


Changes & Enhancements

  • Type of Change:
    • Feature
    • Bugfix
    • Refactor
    • Chore
  • Changes:
    • Profile data:
      • Add profile_target_languages schema and migration with ordered rows, unique constraints, and legacy backfill.
      • Update profile and onboarding saves to persist the full target-language list.
    • Profile reads:
      • Load persisted target languages for the profile editor, discovery mapping, and account export with legacy-column fallback.

Page / App Changes

Affected Next.js Routes (Local):

  • /[lang]/profile
  • /api/profile
  • /api/onboarding
  • /api/account/export
Before (Screenshot)
After (Screenshot)

Component / Storybook Changes

Affected Storybook Components (Local):

Before (Screenshot)
After (Screenshot)

Not Doing


Other (Remarks)


Checklists

  • Code is well-documented (comments, JSDoc, etc.).
  • Existing comments were updated as needed.
  • No out-of-scope changes are included.
  • Write TODO comments where future work is required.
  • Removed unnecessary debug code (e.g., console.log, debugger).
  • Self-reviewed and tested locally.

@chev0004 chev0004 self-assigned this Jun 17, 2026
@chev0004
chev0004 merged commit 3e3418a into develop Jun 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant