Refactor API calls in hooks to use generated functions and improve type safety#6
Merged
moutonjeremy merged 2 commits intomainfrom Mar 14, 2026
Merged
Refactor API calls in hooks to use generated functions and improve type safety#6moutonjeremy merged 2 commits intomainfrom
moutonjeremy merged 2 commits intomainfrom
Conversation
…pe safety - Updated `use-search` hooks to replace direct API calls with generated functions for document and database searches. - Refactored `use-space-order` to utilize generated user update function for space order updates. - Modified `use-space-permissions` to use generated functions for listing and managing space permissions. - Changed `use-spaces` to use generated functions for fetching, creating, updating, and deleting spaces. - Updated `use-users` to replace API calls with generated user listing function. - Refactored `use-versions` to utilize generated functions for version management. - Changed `use-webhooks` to use generated functions for managing webhooks and their deliveries. - Updated `LanguageContext` to disable eslint rule for component exports. - Refactored `DatabaseDocumentPage` and `DocumentPage` to improve type safety and remove unnecessary type assertions. - Updated `DrawingPage` to use the generated model for space type. - Improved error handling in `LoginPage` and `RegisterPage` to use more specific error types.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
use-searchhooks to replace direct API calls with generated functions for document and database searches.use-space-orderto utilize generated user update function for space order updates.use-space-permissionsto use generated functions for listing and managing space permissions.use-spacesto use generated functions for fetching, creating, updating, and deleting spaces.use-usersto replace API calls with generated user listing function.use-versionsto utilize generated functions for version management.use-webhooksto use generated functions for managing webhooks and their deliveries.LanguageContextto disable eslint rule for component exports.DatabaseDocumentPageandDocumentPageto improve type safety and remove unnecessary type assertions.DrawingPageto use the generated model for space type.LoginPageandRegisterPageto use more specific error types.