Open
Conversation
Backend: new GET /creatable-types (cached) and POST /create endpoints that introspect the projspec registry and call Project.create(). Frontend: searchable type picker dialog launched via a "+" button in the sidebar header, the command palette, or a directory context menu. Already-detected types are filtered out. Success triggers a re-scan and a toast notification. Requires projspec >0.2.0 for the updated Project.create() API. Bumps jupyter-projspec version to 0.3.0. Made-with: Cursor
Member
|
0.3.0 is out |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GET /creatable-types(cached) andPOST /createendpoints that introspect the projspec registry and callProject.create()projspec >0.2.0for the updatedProject.create()APIFiles changed
jupyter_projspec/routes.py— newCreatableTypesRouteHandler,CreateRouteHandler, caching logicsrc/types.ts,src/api.ts— new interfaces andfetchCreatableTypes(),createProject()wrapperssrc/components/CreateProjectDialog.tsx— new searchable type picker componentsrc/components/ProjspecPanelComponent.tsx,src/widgets/ProjspecPanel.ts— "+" button,refreshScan()src/index.ts— command registration, palette, context menu, post-create refresh + notificationsrc/widgets/ProjspecChipsWidget.ts—refreshScan()for post-create updatestyle/base.css— create button and dialog stylingpackage.json,pyproject.toml— version bump to 0.3.0, projspec >0.2.0Dependencies
Requires an unreleased version of projspec (>0.2.0) for
Project.create() -> list[str]. See fsspec/projspec#73 for the release request.