-
Notifications
You must be signed in to change notification settings - Fork 543
[TOOL-3942] Playground: Fix slow dev server - generate insight sidebar links with script #6631
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
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. |
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6631 +/- ##
=======================================
Coverage 54.97% 54.97%
=======================================
Files 888 888
Lines 55752 55752
Branches 3817 3817
=======================================
Hits 30652 30652
Misses 25005 25005
Partials 95 95
🚀 New features to boost your workflow:
|
size-limit report 📦
|
// This file is auto-generated by the update-insight-blueprints script | ||
import type { MinimalBlueprintSpec } from "./utils"; | ||
|
||
export const insightBlueprints: MinimalBlueprintSpec[] = [ |
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.
we can't generate these from the downloaded files? would be generated when running the script i guess
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.
yes, This file is auto generated when running the script
Merge activity
|
…r links with script (#6631) <!-- ## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes" If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000): ## Notes for the reviewer Anything important to call out? Be sure to also clarify these in your comments. ## How to test Unit tests, playground, etc. --> <!-- start pr-codex --> --- ## PR-Codex overview This PR introduces a new script for managing insight blueprints, updates the `getSidebarLinks` function to use pre-fetched blueprints, and modifies the `Page` component to display these blueprints. It also refines the utility functions for fetching blueprint data. ### Detailed summary - Added `update-insight-blueprints` script in `package.json`. - Created `insightBlueprints.ts` to store auto-generated blueprint data. - Updated `getSidebarLinks` to use `insightBlueprints` instead of fetching blueprints dynamically. - Modified `Page` component to render blueprints from `insightBlueprints`. - Enhanced utility functions in `utils.ts` for fetching blueprint data. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
a066c4a
to
9e8fd89
Compare
PR-Codex overview
This PR focuses on enhancing the
playground-web
application by adding a script for updating insight blueprints and refactoring the way sidebar links are fetched and displayed.Detailed summary
package.json
to add a new script:update-insight-blueprints
.updateInsightBlueprints.ts
to generateinsightBlueprints.ts
from fetched blueprints.getSidebarLinks
to useinsightBlueprints
instead of fetching them dynamically.Page
component to utilizeinsightBlueprints
for rendering.utils.ts
for fetching blueprints and their specifications.insightBlueprints.ts
with a predefined structure for insight blueprints.