-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Route card redesign #35
base: master
Are you sure you want to change the base?
Conversation
deployed preview: https://35.connect-d5y.pages.devWelcome to new-connect! Make sure to:
MobileDesktop |
Can you rebase to get the new preview screenshots? |
15b87fe
to
d9327e0
Compare
d9327e0
to
d6f85fd
Compare
src/components/RouteCard.tsx
Outdated
const subhead = () => `${startTime().format('h:mm A')} to ${endTime().format('h:mm A')}` | ||
const RouteHeader = (props: { route?: RouteSegments }) => { | ||
|
||
const startTime = () => props?.route?.segment_start_times ? dayjs(props.route.segment_start_times[0]) : null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's best not to add new usages of segment_start_times: #53
src/components/RouteCard.tsx
Outdated
const RouteHeader = (props: { route?: RouteSegments }) => { | ||
|
||
const startTime = () => props?.route?.segment_start_times ? dayjs(props.route.segment_start_times[0]) : null | ||
const endTime = () => props?.route?.segment_end_times ? dayjs(props.route.segment_end_times.at(-1)) : null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here with segment_end_times
src/types.d.ts
Outdated
end_lat?: number | ||
end_lng?: number | ||
end_time?: string | ||
fullname: string | ||
end_time: string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this might not exist: #60
src/types.d.ts
Outdated
end_time?: string | ||
fullname: string | ||
end_time: string | ||
fullname?: string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is guaranteed to exist
Reduces from ~8s to ~2s
Linter's failing |
yeah, it's because of the switch from segment_times to create_time. I posted a question for a potential fix on discord. |
Can you fix the merge conflict? |
route card redesign based on David California's Figma