Skip to content

Value formats#329

Closed
alaric-rd wants to merge 11 commits intomainfrom
value-formats
Closed

Value formats#329
alaric-rd wants to merge 11 commits intomainfrom
value-formats

Conversation

@alaric-rd
Copy link
Contributor

@alaric-rd alaric-rd commented Sep 25, 2025

Herein is work to give the UI a way to select formats for columns that need them.

  • An extra step ("format picking"), which can be omitted when no selected fields have types that need formats.
  • The type guesser is used to highlight formats that match the supplied data.
  • The request handler that sets field mappings can also set formats, so it can be used to provide a single form letting the user set both - or be used in two separate steps, as is done in the reference templates.
  • The "basic" prototype has been updated to incorporate the new step.

The playwright tests are failing with a timeout - I can't run them locally so I'm not sure what they're upset about; adding an extra step to processes they click through, resulting in some expected button never turning up, might well be the problem. Guidance welcome!

Copy link
Contributor

@rossjones rossjones left a comment

Choose a reason for hiding this comment

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

Couple of suggestions, but I think it's looking good. Not sure whether the formats page should show all of the fields as it gets a bit cluttered and hard to see the actual thing I need to do on the page for sheets like the pensions sample.

Still to do:

 - Skip the format selection step if it's not needed
 - Improve text on the format selection step
 - Use guessed types to preselect formats if we can
Includes a few bug fixes to the guesser!
…safe" and "maybe" options

"Safe" options are valid for EVERY value in the column.
"Maybe" options are valid for SOME values in the column (but not every).

The frontend needs update to reflect this distinction, only showing
safe/maybe options (rather than ALL options as currently).
@simonwo
Copy link
Member

simonwo commented Oct 30, 2025

Is the PR done with now?

@alaric-rd
Copy link
Contributor Author

Yes, sorry!

@alaric-rd alaric-rd closed this Oct 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants