Skip to content

frontend: UI Improvements for the Catalog view

Phuedx requested to merge work/phuedx/T377826 into main

This MR fixes sorting by the "Start date" field and the weight of the font in the table headers.

Sorting by the "Start date" field

The field is named start_date internally and not date. Further, the field was stored as a string in ISO 8601 format but being compared using mathematical operators. However, because other parts of the app expect the *_date fields to be strings, we make the fewest possible changes to get date sorting working now and will make the treat the fields consistently in a follow-up commit.

Changes:

  • Convert the start_date string field to a Date object while setting up the component
  • Sort numerically when sorting the field
  • Actually use getFormattedDate() to render the start_date field
  • Simplify getFormattedDate() by deferring to Date.toLocaleDateString()

Weight of the font in the table headers

The *::after,*::before { font-weight: normal } rule added in 23c8ce26 was overriding the font-weight rules in Codex. The rule has been removed.


Bug: T377826

Edited by Phuedx

Merge request reports