Skip to content

Viewer -> Drivers app master - #208

Open
hillelv wants to merge 13 commits into
drivers-app/masterfrom
drivers-app/viewer
Open

hillelv wants to merge 13 commits into
drivers-app/masterfrom
drivers-app/viewer

Conversation

@hillelv

@hillelv hillelv commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@hillelv
hillelv requested a review from karnishein December 2, 2026 17:00
@hillelv hillelv self-assigned this Dec 2, 2026
Comment on lines +30 to +37
{drivingDataArray.map((drivingData, index) => {
if (drivingData.log.match.type !== "test") {
return (
<option key={index} value={index}>
{drivingData.log.match.type +
" " +
drivingData.log.match.number}
</option>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not use .filter here too?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typescript is a lil dum dum and can't understant the type verification in the filter so I'd need to check with the if either way, so I didn't add the redundant filter

Comment thread apps/drivers/frontend/src/App.tsx Outdated
Comment on lines +15 to +16
<Route path={"/view"} element={<Viewer />} />
<Route path={"/add"} element={<Adder />} />

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

your choice, but wouldn't it be more comfortable if both were in the same page?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's separate because one is for the computer with the log post match, and the other is for the drivers' phone when they want to know how well they did. I agree that it'll be comfortable if there was a link from one page to the other, but I'm more focoused on the MVP

Comment on lines +11 to +13
const [drivingData, setDrivingData] = useState<DrivingData | undefined>(
undefined,
);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const [drivingData, setDrivingData] = useState<DrivingData | undefined>(
undefined,
);
const [drivingData, setDrivingData] = useState<DrivingData>();

Pretty sure this does the same thing

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, but it's less informative

@hillelv
hillelv requested a review from karnishein December 3, 2026 18:11

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants