Skip to content

Conversation

@MananTank
Copy link
Member

@MananTank MananTank commented Dec 19, 2024

Problem solved

Short description of the bug fixed or feature added


PR-Codex overview

This PR introduces updates to the dashboard application, primarily focusing on integrating openapi-types, enhancing type safety, and refining the handling of blueprint specifications and parameters.

Detailed summary

  • Added openapi-types to package.json.
  • Updated handling of supportedChainIds to use optional chaining.
  • Enhanced BlueprintCard to safely access description and title.
  • Changed BlueprintParameter and BlueprintPathMetadata types to use OpenAPIV3 types.
  • Modified fetchBlueprintSpec to accommodate new types.
  • Adjusted parameter handling in BlueprintPlaygroundUI for better filtering and defaults.
  • Updated story metadata in blueprint-playground.stories.tsx to reflect new parameter schemas.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@vercel
Copy link

vercel bot commented Dec 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 19, 2024 9:34pm
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 19, 2024 9:34pm
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 19, 2024 9:34pm
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 19, 2024 9:34pm

@changeset-bot
Copy link

changeset-bot bot commented Dec 19, 2024

⚠️ No Changeset found

Latest commit: d7d9415

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@linear
Copy link

linear bot commented Dec 19, 2024

@MananTank MananTank marked this pull request as ready for review December 19, 2024 17:10
@MananTank MananTank requested review from a team and jakubkrehel as code owners December 19, 2024 17:10
@github-actions github-actions bot added the Dashboard Involves changes to the Dashboard. label Dec 19, 2024
Copy link
Member Author

MananTank commented Dec 19, 2024


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge-queue - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

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.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 19, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 45.02 KB (0%) 901 ms (0%) 3.5 s (+44.11% 🔺) 4.4 s
thirdweb (cjs) 110.76 KB (0%) 2.3 s (0%) 6.1 s (+3.23% 🔺) 8.3 s
thirdweb (minimal + tree-shaking) 5.58 KB (0%) 112 ms (0%) 348 ms (-10.81% 🔽) 460 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 176 ms (+14.61% 🔺) 186 ms
thirdweb/react (minimal + tree-shaking) 19.1 KB (0%) 383 ms (0%) 828 ms (+24.04% 🔺) 1.3 s

@codecov
Copy link

codecov bot commented Dec 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 53.34%. Comparing base (b2a52d9) to head (d7d9415).
Report is 3 commits behind head on main.

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           
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from b2a52d9
packages 50.56% <ø> (ø)

*This pull request uses carry forward flags. Click here to find out more.

@MananTank MananTank changed the title [TOOL-2800] Use OpenAPIV3 types in Insight Playground [TOOL-2801] Use OpenAPIV3 types in Insight Playground Dec 19, 2024
@linear
Copy link

linear bot commented Dec 19, 2024

@MananTank MananTank changed the title [TOOL-2801] Use OpenAPIV3 types in Insight Playground [TOOL-2801] Insight Playground: Use OpenAPIV3 types Dec 19, 2024
@graphite-app
Copy link
Contributor

graphite-app bot commented Dec 19, 2024

Merge activity

MananTank added a commit that referenced this pull request Dec 19, 2024
## 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 -->
@MananTank MananTank force-pushed the 12-19-_tool-2800_use_openapiv3_types_in_insight_playground branch from 9174ffa to 216f069 Compare December 19, 2024 20:59
## 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 -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dashboard Involves changes to the Dashboard.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants