Skip to content

fix(den): retire empty starter plugins wherever plugins are listed - #5770

Merged
benjaminshafii merged 2 commits into
devfrom
feature/retire-empty-starter-plugins
Oct 7, 2026
Merged

benjaminshafii merged 2 commits into
devfrom
feature/retire-empty-starter-plugins

Conversation

@reachjalil

Copy link
Copy Markdown
Member

What is this about?

Older organizations no longer see the empty example plugins (PDF Viewer, Legal, …) on Manage › Plugins or in My Library.

What problem does it solve?

#5431 stopped seeding the name-only starter plugins and retires leftover copies, but only when something lists the organization's marketplaces. Manage › Plugins and My Library never do, so an admin of an older organization who opens Plugins first still sees "PDF Viewer · Nothing inside yet".

What was the situation before?

Retirement ran only inside GET /v1/marketplaces. GET /v1/plugins and GET /v1/me/library listed the untouched placeholders as active plugins. #5589 also removed the unit tests that covered retirement, so nothing exercised it.

How is this implemented?

  • ee/apps/den-api/src/routes/org/plugin-system/store.ts: retireEmptyStarterPlugins runs the existing retirement whenever plugins or a member's plugin access are listed. When nothing is left to retire, it costs two indexed reads and no transaction.
  • evals/worlds/den-retired-starter-plugins.ts: an older organization whose starter marketplace still holds empty PDF Viewer and Legal plugins, seeded by the system, plus a Sales starter someone filled in with a skill.
  • evals/specs/den-retired-starter-plugins.e2e.test.ts: the admin opens Plugins, and a member opens My Library.

What else changed?

none

Release note

Manage › Plugins and My Library no longer show the empty example plugins in organizations created before they were removed.

Evidence

evals/specs/den-retired-starter-plugins.e2e.test.ts — before: an older organization's Plugins page lists PDF Viewer and Legal with nothing inside; after: opening Plugins retires them, Sales stays for the admin and in Maya's My Library, and a reload keeps them gone.

Manage > Plugins and My Library now run the same retirement as the
marketplace list, so an older organization never shows the empty PDF
Viewer or Legal examples. Adds a journey that seeds those starters and
opens both pages.

Signed-off-by: Jalil <reachjalil@gmail.com>
@vercel

vercel Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
openwork-app Ready Ready Preview Oct 7, 2026 9:22pm UTC
openwork-den Ready Ready Preview Oct 7, 2026 9:22pm UTC
openwork-diagnostics Ready Ready Preview Oct 7, 2026 9:22pm UTC
openwork-landing Ready Ready Preview, v0 Oct 7, 2026 9:22pm UTC

@github-actions

github-actions Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

OpenWork evidence

Status Commit Preview Updated
🟢 Ready · evidence passed d97a821 Open preview 2026-10-07 21:29:16 UTC

Run details · Open the preview to inspect evidence and sandbox options.

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warden clearance. Complete security and confidentiality review of d97a821b0eebe7aedfb71054b84b1d6d0d6fa28f found no high or medium security findings and no confidentiality findings. Any new push dismisses this approval. Analysis run

@diff-warden

diff-warden Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Warden: approved

No high or medium security findings and no confidentiality findings.

Reviewed d97a821b0eeb · Warden run · Updates after every Warden run.

This branch was successfully deployed

6 active deployments
Evidence / PR 5770 — d97a821b Deployed Oct 7, 2026 by github-actions[bot]
Preview – openwork-landing — d97a821b Deployed Oct 7, 2026 by vercel[bot]
Preview – openwork-den — d97a821b Deployed Oct 7, 2026 by vercel[bot]
Preview – openwork-app — d97a821b Deployed Oct 7, 2026 by vercel[bot]
Preview – openwork-diagnostics — d97a821b Deployed Oct 7, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants