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

26 Update frontend for api changes #16

Merged
merged 6 commits into from
Dec 10, 2024

Conversation

francisduvivier
Copy link
Collaborator

@francisduvivier francisduvivier commented Nov 26, 2024

Makes the frontend compatible with badgehub-api changes that were done in preparation for app uploads:
Relates to API pr's:
badgeteam/badgehub-api#35
badgeteam/badgehub-api#34

@francisduvivier francisduvivier changed the title 26 improve type safety for db queries 26 Update frontend for api changes Nov 26, 2024
export const getCreateAppUrl = (slug: ProjectSlug,) => {


return `http://localhost:8081/api/v3/apps/${slug}`
Copy link
Collaborator

Choose a reason for hiding this comment

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

Where are these references to localhost generated from?

Copy link
Collaborator Author

@francisduvivier francisduvivier Nov 30, 2024

Choose a reason for hiding this comment

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

Hmm, that's because I changed the BADGEHUB_API_BASEURL env var locally and to be able to get the new definitions generated with orval. I'll do a batch replace, thanks!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

But that actually also brings me to the point that this should not be hardcoded in the generated files.
I'll check if I can change that.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

OK updated now:
c52220f

@francisduvivier francisduvivier force-pushed the 26-improve-type-safety-for-db-queries branch from 932e17f to 8a90cb3 Compare November 30, 2024 19:41
@francisduvivier francisduvivier merged commit d2dac35 into main Dec 10, 2024
6 checks passed
@francisduvivier francisduvivier deleted the 26-improve-type-safety-for-db-queries branch December 10, 2024 05:21
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