-
Notifications
You must be signed in to change notification settings - Fork 551
feat: protos page, FileUploadTextarea component #3001
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements the new protos pages and a FileUploadTextarea component to support upcoming feature work. Key changes include:
- Adding new routes and pages for the protos list, detail, and creation.
- Extending the schema types and request constants to support protos.
- Introducing the FileUploadTextarea component for file upload handling in forms.
Reviewed Changes
Copilot reviewed 19 out of 22 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
src/types/schema/apisix/index.ts | Includes new A6Proto type and spreads it into the A6 object. |
src/types/schema/apisix/common.ts | Introduces Timestamp and Info schemas for common metadata. |
src/routes/protos/*.tsx | Implements new protos listing, detail, and add routes. |
src/routeTree.gen.ts | Updates route definitions to integrate the new protos routes. |
src/config/req.ts | Adds interceptor logic to normalize empty list responses. |
src/components/form/FileUploadTextarea.tsx | Introduces a new file upload textarea component with file error handling. |
Other files | Minor updates (e.g., removal of unused imports, nav route update). |
Files not reviewed (3)
- package.json: Language not supported
- pnpm-lock.yaml: Language not supported
- src/locales/en/common.json: Language not supported
Comments suppressed due to low confidence (1)
src/routeTree.gen.ts:161
- [nitpick] There is a slight inconsistency in the use of trailing slashes for protos routes (e.g., '/protos' vs '/protos/'). Consider standardizing these definitions across FileRoutesByFullPath and FileRoutesById to avoid potential routing ambiguities.
'/protos/': {
@@ -0,0 +1,69 @@ | |||
import { useEffect } from 'react'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sort import
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are no relevant rules, and add them to the subsequent PR.
Please answer these questions before submitting a pull request, or your PR will get closed.
Why submit this pull request?
What changes will this PR take into?
Part of #3000.
Because I need FileUploadTextarea component in next PRs. Also add protos detail page, list page for testing.