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

chore!: improve data fetching & proposal form #244

Merged
merged 21 commits into from
May 14, 2024
Merged

Conversation

helmturner
Copy link
Member

@helmturner helmturner commented May 7, 2024

Pull Request Template

This also gets us part of the way toward #239 by creating a pattern for handling fetch errors. Abstracting the patterns in NewProposalFormError would be the next step to closing it.

Description

  • unify/simplify fetching with react-hook-forms + zod validation
  • autogenerate client SDK/validators w/ openapi-zod-client & zodios
  • automatically populate user data from session
  • fix(api-spec): make Authorization token header type string
  • fix(api-spec): add success property to POST /proposals response schema
  • fix(api-spec): clarify proposal types
  • consolidate "Topic", "Project", & "InitiativeData" API models as "Proposal"

Screenshots (if appropriate):

Please review and suggest any further insights, improvements, or modifications needed.

@helmturner helmturner requested a review from zenlex May 7, 2024 21:14
@helmturner helmturner marked this pull request as draft May 8, 2024 18:24
@helmturner helmturner marked this pull request as ready for review May 13, 2024 09:46
@helmturner helmturner enabled auto-merge (rebase) May 13, 2024 09:47
@helmturner helmturner merged commit 2ee4c93 into main May 14, 2024
1 check passed
@helmturner helmturner deleted the chore/data-fetching branch May 14, 2024 01:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants