Skip to content

Conversation

@Dahly96
Copy link
Contributor

@Dahly96 Dahly96 commented Jan 5, 2026

Closes https://github.com/AtB-AS/kundevendt/issues/22456

Added FormFactor, OperatorId and OperatorName tot he farecontract. Also moved FormFactor from the app to utils

@Dahly96 Dahly96 requested a review from rosvik January 5, 2026 13:41
@Dahly96 Dahly96 self-assigned this Jan 5, 2026
@Dahly96 Dahly96 changed the title feat: added formfactor, operatorid and operatorname to the farecontract feat: added formfactor and operatorid to the farecontract Jan 6, 2026

export const FormFactorSchema = z.enum(
Object.values(FormFactor) as [FormFactor, ...FormFactor[]],
);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just realised that the generated FormFactor in mobility-types_v2.ts is the one that should be used around the app. So on second thoughts, we shouldn't export FormFactor and FormFactorSchema here after all.

@Dahly96 Dahly96 merged commit 9223f9d into main Jan 8, 2026
1 check passed
@Dahly96 Dahly96 deleted the magnus/newAttributesFareContractType branch January 8, 2026 14:17
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.

4 participants