Add support for 12 and 24 hour time formats (and add radio buttons) #33

Merged
twig merged 8 commits from time-format into main 2025-07-12 20:48:36 +00:00
Owner

Requires #32

Requires #32
twig added 6 commits 2025-07-12 18:44:29 +00:00
refactor: load and save settings from a single object
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/pr/build-and-publish Pipeline was successful
5b4c278b83
feat: add radio buttons and start integrating them into time format setting
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
87a5b99e50
feat: support 12 and 24 hour formats
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/pr/build-and-publish Pipeline was successful
eb49450756
twig 2025-07-12 19:09:11 +00:00
  • added the
    Kind/Feature
    label
  • requested review from sauceyred
sauceyred requested changes 2025-07-12 20:25:50 +00:00
Dismissed
sauceyred left a comment
Owner

Review comments.

Review comments.
@ -48,2 +48,3 @@
<span v-else-if="getDayDifference(date, currentDate) > 1 ">{{ date.toLocaleDateString(undefined) }},</span>
{{ date.toLocaleTimeString(undefined, { timeStyle: "short" }) }}
{{ date.toLocaleTimeString(undefined, { hour12: props.format=="12", timeStyle: "short" }) }}
Owner

Add spaces around ==

Add spaces around `==`
twig marked this conversation as resolved
@ -0,0 +19,4 @@
}>();
// makes an array from 0 to buttonCount - 1
const incidies = Array.from({ length: props.buttonCount }, (_, i) => i)
Owner
`indices`* https://c.tenor.com/7pXIzb8f2rUAAAAd/tenor.gif
twig marked this conversation as resolved
@ -0,0 +98,4 @@
border: .15em solid var(--primary-color);
}
.selected-radio-button-radio {
Owner

Maybe increase contrast between circle, circle border, and background

Maybe increase contrast between circle, circle border, and background
Author
Owner

later

later
twig marked this conversation as resolved
twig added this to the Frontend MVP project 2025-07-12 20:27:14 +00:00
twig removed this from the Frontend MVP project 2025-07-12 20:27:45 +00:00
twig added 2 commits 2025-07-12 20:43:45 +00:00
fix: PR complaints
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/pr/build-and-publish Pipeline was successful
885fc5f906
sauceyred approved these changes 2025-07-12 20:45:56 +00:00
sauceyred left a comment
Owner

Looks good.

Looks good.
twig added 1 commit 2025-07-12 20:48:26 +00:00
fix: move radio buttons to subfolder
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/pr/build-and-publish Pipeline was successful
ci/woodpecker/pull_request_closed/build-and-publish Pipeline was successful
0a8ae5fe31
twig merged commit 13d4369c48 into main 2025-07-12 20:48:36 +00:00
twig deleted branch time-format 2025-07-12 20:48:36 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: gorb/frontend#33
No description provided.