Conversation
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.
Gotta check what's up with the local optional (I'm not sure we can simply drop in the other one)
Other than that good stuff, just one comment
@@ -36,9 +36,9 @@ export interface Place { | |||
export interface Track { | |||
id: string | |||
name: string | |||
accent_color: Optional<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.
Reminder for tomorrow : this should be using the correct optional
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.
I'll leave this to you then 👍
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.
Tracked in #4
@@ -91,3 +91,16 @@ export const generateSchedule = (firebaseApp: FirebaseApp) => (_: Request, respo | |||
response.status(200).send('Yay!') | |||
}) | |||
} | |||
|
|||
const trackFrom = (rawTrack: TrackData & { id: string } | null): Track | 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.
You can use WithId
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.
Problem
There's some outstanding Lint warnings on the code; we also want to get rid of some sketchy variable names on the Android side to map to the Firestore track data, so those snake case fields should be renamed to camel case.
Solution
Address all ESLint warnings (mostly imports); rename the fields for
TrackData
that are in snake_case to camelCase (a corresponding PR is open on squanchy-android)Test(s) added
No tests — yet!
Paired with
Nobody