-
Notifications
You must be signed in to change notification settings - Fork 620
[TOOL-2801] Insight Playground: Use OpenAPIV3 types #5804
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
[TOOL-2801] Insight Playground: Use OpenAPIV3 types #5804
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
size-limit report 📦
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5804 +/- ##
=======================================
Coverage 53.34% 53.34%
=======================================
Files 1101 1101
Lines 59124 59124
Branches 4825 4824 -1
=======================================
Hits 31541 31541
Misses 26864 26864
Partials 719 719
*This pull request uses carry forward flags. Click here to find out more. |
Merge activity
|
## Problem solved
Short description of the bug fixed or feature added
<!-- start pr-codex -->
---
## PR-Codex overview
This PR introduces the `openapi-types` package and updates the handling of OpenAPI specifications in the dashboard application. It enhances type safety and flexibility in managing API parameters and responses.
### Detailed summary
- Added `openapi-types` dependency.
- Updated `blueprintSpec` to use `OpenAPIV3.Document`.
- Modified parameter handling in `BlueprintPlaygroundUI` to filter and process OpenAPI parameters.
- Enhanced type definitions for `BlueprintParameter` using `OpenAPIV3.ParameterObject`.
- Updated rendering logic in `BlueprintCard` to handle optional descriptions and titles.
- Refactored utility functions to align with new OpenAPI types.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
9174ffa to
216f069
Compare
## Problem solved
Short description of the bug fixed or feature added
<!-- start pr-codex -->
---
## PR-Codex overview
This PR focuses on enhancing the handling of OpenAPI specifications within the codebase, improving type definitions, and refining the UI components to accommodate optional fields and better manage parameters.
### Detailed summary
- Added `openapi-types` dependency in `package.json`.
- Updated `blueprintSpec` to use optional chaining for safer access.
- Modified `BlueprintCard` to handle optional `description` and `title`.
- Changed `BlueprintParameter` type to use `OpenAPIV3.ParameterObject`.
- Enhanced `BlueprintPlaygroundUI` to filter and manage parameters more effectively.
- Updated parameter handling in forms to leverage new schema definitions.
- Refined UI components to conditionally render descriptions and titles.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
216f069 to
d7d9415
Compare

Problem solved
Short description of the bug fixed or feature added
PR-Codex overview
This PR introduces updates to the
dashboardapplication, primarily focusing on integratingopenapi-types, enhancing type safety, and refining the handling of blueprint specifications and parameters.Detailed summary
openapi-typestopackage.json.supportedChainIdsto use optional chaining.BlueprintCardto safely accessdescriptionandtitle.BlueprintParameterandBlueprintPathMetadatatypes to useOpenAPIV3types.fetchBlueprintSpecto accommodate new types.BlueprintPlaygroundUIfor better filtering and defaults.blueprint-playground.stories.tsxto reflect new parameter schemas.