Skip to content

chore!: improve data fetching & proposal form - #244

Merged
helmturner merged 21 commits into
mainfrom
chore/data-fetching
May 14, 2024
Merged

helmturner merged 21 commits into
mainfrom
chore/data-fetching

Conversation

@helmturner

@helmturner helmturner commented May 7, 2024

Copy link
Copy Markdown
Member

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 force-pushed the chore/data-fetching branch from f60bd42 to c48c40c Compare May 13, 2024 08:51
@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
@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