Feature: checkout frontend#91
Open
martin0024 wants to merge 12 commits into
Open
Conversation
805c49f to
a96bcbc
Compare
Contributor
Author
|
note: tests are failing because i introduced a new |
Jxl-s
requested changes
Jun 8, 2026
| Availability sent | ||
| </h2> | ||
| <p className="mt-1 text-sm text-muted-foreground"> | ||
| We've emailed {clientName} the {matchCount} matching{" "} |
Contributor
There was a problem hiding this comment.
The failed test isn't from a new npm package; it's from the linter telling you you should replace We've with We've
Suggested change
| We've emailed {clientName} the {matchCount} matching{" "} | |
| We've emailed {clientName} the {matchCount} matching{" "} |
| clientSlots: TimeSlot[]; | ||
| initialCoachSlots: TimeSlot[]; | ||
| }) { | ||
| const window = React.useMemo(() => deriveWindow(clientSlots), [clientSlots]); |
Contributor
There was a problem hiding this comment.
You should name the window variable something else; it can be confusing with the window global that the browser provides
Comment on lines
+30
to
+40
| function formatWindow(slot: TimeSlot): string { | ||
| const start = new Date(slot.start); | ||
| const end = new Date(slot.end); | ||
| return `${formatTime(start)} – ${formatTime(end)}`; | ||
| } | ||
|
|
||
| function formatBookable(slot: TimeSlot): string { | ||
| const start = new Date(slot.start); | ||
| const end = new Date(slot.end); | ||
| return `${formatTime(start)} – ${formatTime(end)}`; | ||
| } |
Contributor
There was a problem hiding this comment.
These two functions have the exact same body; it could be avoided
Comment on lines
+1
to
+2
| import Link from "next/link"; | ||
| import { Button } from "@/components/ui/button"; |
Contributor
There was a problem hiding this comment.
Linter gives some warning about these being unused, remove them
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #69
Overview
Implemented the checkout flow (for private lessons and programs)
WIP on subscriptions and calendar
Screenshots / Screencasts
Checklist