Skip to content

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

Merged
merged 10 commits into from
Apr 27, 2025

Conversation

SkyeYoung
Copy link
Member

@SkyeYoung SkyeYoung commented Apr 27, 2025

Please answer these questions before submitting a pull request, or your PR will get closed.

Why submit this pull request?

  • Bugfix
  • New feature provided
  • Improve performance
  • Backport patches

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.

CleanShot 2025-04-27 at 16 55 46@2x

image

CleanShot 2025-04-27 at 16 13 35@2x

@SkyeYoung SkyeYoung changed the title chore: add routeFileIgnorePrefix, rm useless css import feat: protos page, FileUploadTextarea component Apr 27, 2025
@SkyeYoung SkyeYoung marked this pull request as ready for review April 27, 2025 08:01
Copy link

@Copilot Copilot AI left a 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';
Copy link
Member

Choose a reason for hiding this comment

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

sort import

Copy link
Member Author

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.

@SkyeYoung SkyeYoung requested review from bzp2010 and LiteSun April 27, 2025 08:58
@SkyeYoung SkyeYoung merged commit 33ed7db into apache:dev/next Apr 27, 2025
@SkyeYoung SkyeYoung deleted the young/feat/protos branch April 27, 2025 09:04
This was referenced Apr 27, 2025
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