Skip to content
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

[Feature] Add tacktracker zip download capability #34

Merged
merged 6 commits into from
Nov 16, 2024
Merged

Conversation

benjamsf
Copy link
Member

What Does This PR Do

UI changes for pvarki/docker-rasenmaeher-integration#115

Why

Need ability to choose TAKTracker zip, as for android taktracker wants this specific type of zipp
Depends on takrmapi change on this

@benjamsf benjamsf added the enhancement New feature or request label Nov 15, 2024
@benjamsf benjamsf self-assigned this Nov 15, 2024
@benjamsf
Copy link
Member Author

Tested

Copy link

@thejhh thejhh left a comment

Choose a reason for hiding this comment

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

I guess this is fine. Some questions added.

const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {
const upperCaseValue = e.target.value.toUpperCase();
void formik.setFieldValue("code", upperCaseValue);
// Set shouldValidate to false to avoid returning a Promise
void setFieldValue("code", upperCaseValue, false);
Copy link

Choose a reason for hiding this comment

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

What's the meaning of void here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ignoring the promise. No async operation there so I think there's nothig that could fail here

tracker: 2, // Tracker package
};

const fileIndex = osToFileIndex[os];
Copy link

Choose a reason for hiding this comment

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

This could be using a helper function which uses a switch case for safer implementation.

Although since the input value comes from the pre-defined options it doesn't matter that much.

@benjamsf benjamsf merged commit f7a0707 into main Nov 16, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants