You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a parent ticket to align all format functionality.
IMPORTANT: Additional changes may be asked in the child tickets relevant to that specific item.
In order to keep our projects maintainable, we should aim to stay consistent across implementations. Additional improvements will still be required but those will be done in the future pending some decisions.
Directory structure
Utils to be moved under 'formatters' directory. eg utils/format-share-classes.ts -> utils/formatters/format-share-classes.ts
New Function/s
format{SUBJECT}Section
should accept optional original data and optional draft data
should map and merge the data as necessary to the relevant table state
format{SUBJECT}Api
converts table state to api payload
should return undefined if there are no changes to the data (see offices in corrections - this is so the property will be excluded during json serialization when submitted)
Implementation Refactor
Only if necessary - update usage in playground examples and current filings
Ensure all current tests pass, dev to add additional relevant to the new utils
Dev to ensure they do not introduce new bugs into any current filings (init, save and resume, typecheck, tests, etc should all still work correctly after refactor)
Activity
deetz99 commentedon Oct 16, 2026
Closing as all child tickets have been closed