Start time grid #62
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "start_time_grid"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR addresses issues #23 #24 #25 and #26 and rearranges the component library
Deployed to https://studentportalen-starttimegrid.branch.dsv.su.se
Design-related to be fixed
Inline modal
Choicebox
Start time grid
Grid keyboard navigation
Not a dealbreaker; can be improved later.
I fixed the other parts, but this should be it's own separate issue, it requires a bit of thought and work. Like selection behavior, once you press Enter to select a slot and the modal opens, should arrow keys continue navigating the grid (closing/moving the modal?) or be trapped in the modal until it's dismissed? Should Escape close the modal and return focus to the grid?
Looks good! Just a tiny detail to update the arrow background color to Sky/20 as well
Use the new Temporal API with one of the available polyfills (temporal-polifyll being the most popular). Having everything as a
stringand using regular expressions or string splitting is not good.@ -0,0 +27,4 @@right: "right-[58px]",};export default function InlineModal({This needs some documentation what it is. Inline and modal are to me opposing concepts. What actually is it? When would I use it compared to a modal dialog and how is it different from just a
<div>?@ -0,0 +38,4 @@return (<div className={clsx(baseClasses, className)} {...props}>{/* Arrow pointing up - uses two layered CSS triangles to create a bordered arrow effect.Everything else is a SVG icon, why not this too? Using a CSS border trick feels like a relic from the past.
Everything is still typed as
stringand continuously parsed to temporal types (that get immediately thrown away). TheuseGroupRoomBookingshould convert the stringly typed JSON object from the API to well-typed data for use in the rest of the system.Taking a
string, converting toPlainDateTime, converting toPlainTime, converting to string, only to then convert back toPlainTimeis not ideal.jare2473 referenced this pull request2026-01-14 15:33:02 +01:00