feat: update project version, enhance PluginApiClient options, and add new extension point interfaces#2
Merged
Conversation
…d new extension point interfaces
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.
This pull request bumps the package version, fixes a broken CD publish step, tweaks
PluginApiClientto support pages with no current project, and adds two new full-page extension points.CI/CD:
npmto the 11.x line instead ofnpm@latest— npm 12.0.0 has a packaging bug wherelibnpmpublishrequiressigstorebut the published tarball is missing it, crashingnpm publish --provenancewith "Cannot find module 'sigstore'" (see npm/cli#9722).Release:
package.jsonversion from0.1.0to0.3.0.PluginApiClientchanges:projectIdis now optional onPluginApiClientOptions, defaulting to"", so the client can be constructed for admin/global-scope pages that have no current project (callers must not calllistTasks/getTask/getProject/listMembersin that case).listTasksnow defaultspage_sizeto the host's max (200) instead of leaving it unset (which fell back to the host's default of 20), matching how most callers use it — an unfiltered "get the project's tasks" lookup.listTasksandlistMemberswere updated to match the host API's actual response envelope ({ items: [...] }for tasks, a bare array for members) instead of the previously assumed{ tasks: [...] }/{ members: [...] }shapes.New extension points:
project.page— a full-bleed page routed from a nav item the plugin registers in the project sidebar, for plugin features that deserve their own page rather than a settings tab (e.g. a project-wide time-tracking view).admin.page— a full-bleed page routed from a nav item in the admin sidebar, gated behind theusers.writeglobal permission, for cross-project/instance-wide plugin views (e.g. total logged time across all projects). Its injectedapiclient has noprojectId.ProjectPagePropsandAdminPagePropsfromsrc/index.tsand added both to theExtensionPointPropsunion.