Skip to content

Conversation

@whoAbhishekSah
Copy link
Member

Migrate org edit screen to Connect RPC

Replace swagger API call with Connect RPC + TanStack Query in organization edit form.

Changes:

  • Replace api.frontierServiceUpdateOrganization() with useMutation(FrontierServiceQueries.updateOrganization)
  • Add proper error handling for Connect RPC responses
  • Maintain existing form validation and UI behavior

@vercel
Copy link

vercel bot commented Oct 13, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
frontier Ready Ready Preview Comment Oct 13, 2025 8:55am

@coveralls
Copy link

coveralls commented Oct 13, 2025

Pull Request Test Coverage Report for Build 18460394609

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 37.071%

Totals Coverage Status
Change from base Build 18458028989: 0.0%
Covered Lines: 14590
Relevant Lines: 39357

💛 - Coveralls

async function onSubmit(data: OrgUpdateSchema) {
try {
const payload: Frontierv1Beta1OrganizationRequestBody = {
const payload = {
Copy link
Member

@rsbh rsbh Oct 13, 2025

Choose a reason for hiding this comment

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

use create method with protobuf and updateOrganizationRequestSchema to create payload.
Instead of relying on the TS type for build-time safety, we will get runtime safety with protobuf.
And we already have protobuf loaded, so let's use that.

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.

4 participants