Skip to content
This repository was archived by the owner on Mar 27, 2026. It is now read-only.

feat: add metadata mapping helpers and preference upload examples#524

Merged
michaelfarrell76 merged 3 commits intomainfrom
pr/additive-helpers
Feb 25, 2026
Merged

feat: add metadata mapping helpers and preference upload examples#524
michaelfarrell76 merged 3 commits intomainfrom
pr/additive-helpers

Conversation

@michaelfarrell76
Copy link
Copy Markdown
Member

Summary

  • Add MetadataMapping and ColumnMetadataMap io-ts codecs for mapping CSV columns to preference store metadata keys
  • Add getPreferenceMetadataFromRow helper that extracts metadata key/value pairs from a CSV row based on the column-to-metadata mapping
  • Add example CSV files for preference upload testing (examples/pm-test/)

Related Issues

Test plan

  • 5 unit tests for getPreferenceMetadataFromRow: full extraction, empty values, missing columns, no matches, empty mapping
  • TypeScript compilation passes
  • ESLint passes

Made with Cursor

- Add MetadataMapping and ColumnMetadataMap codecs for mapping CSV
  columns to preference store metadata keys
- Add getPreferenceMetadataFromRow helper to extract metadata values
  from CSV rows using the column-to-metadata mapping
- Export new helper from preference-management index
- Add example CSV files for preference upload testing

Ref: PIK-166
Co-authored-by: Cursor <cursoragent@cursor.com>
@linear
Copy link
Copy Markdown

linear bot commented Feb 25, 2026

@michaelfarrell76 michaelfarrell76 requested review from a team and eligrey February 25, 2026 07:16
@michaelfarrell76 michaelfarrell76 merged commit cb19d47 into main Feb 25, 2026
11 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants