Skip to content

Unify extension viewing and inline editing - #407

Merged
admdly merged 15 commits into
mainfrom
codex/extensions-workspace
Nov 5, 2026
Merged

admdly merged 15 commits into
mainfrom
codex/extensions-workspace

Conversation

@admdly

@admdly admdly commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Use one permission-aware /extension/:id page for visitors and owners. Owners get inline section editing, separate release management, local drafts, and Published / Pending previews (Pending opens by default). Everyone else sees published content only. Update callers and mutation endpoints directly and remove the separate account view/edit routes.

Share the header, Overview sidebar, README, and release rendering. Retain the metadata icons, infer source hosts from URLs, and derive the latest version/download automatically. The editor follows the current manifest contract for author attribution, package icon paths, string licenses, and per-release compatibility constraints. Additional PHP restrictions are optional. Draft submission preserves unrelated fields and detects concurrent changes. Release edits update the overview’s compatibility; simple minimums use readable labels, and separate author attribution appears when it differs from the developer in the header.

Editing depends on the API-verified owner profile, not cookie role flags or a moderator-readable record. Personalized HTML, including error responses, is private and not cached; public API data stays cached. Release ordering follows the API’s SemVer precedence, with historical free-form tags after versioned releases.

API dependencies FOSSBilling/api#295 and FOSSBilling/api#296 are merged and deployed.

Public overview:
Public extension overview

Owner overview:
Owner extension overview

Owner releases:
Owner release management

Unify owner previews and section editing with local drafts, pending submission updates, a compact overview sidebar, and separate release management. Detect source hosts from URLs and derive the latest version from releases.

Uses the pending-revision replacement endpoint added in FOSSBilling/api commit 5c903d9.
Share the overview sidebar, metadata icons, section navigation, and release list across public and owner views. Simplify the public header around the latest version and download action, and remove the redundant release card and legacy details components.
Render one extension URL with owner editing and pending previews or published content according to live API permissions. Update callers and mutation routes directly, keep personalized HTML private, and share the header and content rendering.

Remove duplicate views and fix README HTML escaping in draft configuration. Validate ownership and cache behavior with regression tests and local role checks; all 334 tests, type checks, formatting, API generation, and production build pass.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://codex-extensions-workspace-extensions.fossbilling.workers.dev (commit 7306bf6)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://d9ce138c-extensions.fossbilling.workers.dev 7306bf6 2026-11-05T19:07:26.743Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://0a801523-extensions.fossbilling.workers.dev 102583a 2026-11-05T16:37:58.182Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://0b7d52c0-extensions.fossbilling.workers.dev 9071b4f 2026-11-05T16:26:11.637Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://17e6ca72-extensions.fossbilling.workers.dev 1347ff7 2026-11-05T16:17:13.524Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://c5d17bd7-extensions.fossbilling.workers.dev 39be694 2026-11-05T12:56:40.737Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://d5c34ad6-extensions.fossbilling.workers.dev 5c1ddab 2026-11-04T07:53:31.776Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://de7f7d71-extensions.fossbilling.workers.dev a981146 2026-11-04T07:33:51.745Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://59f4d6ee-extensions.fossbilling.workers.dev 2974667 2026-11-04T06:28:52.599Z Visit the dashboard ↗

Preserve inline editing and pending updates while adopting author attribution, package icon paths, string licenses, and opaque release requirements. Add merge regression coverage and screenshots for review.
Comment thread src/scripts/extension-workspace.ts Fixed
@admdly
admdly marked this pull request as ready for review November 4, 2026 07:38
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-11-04T07:42:40.280050Z a981146 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

All reported issues were addressed across 49 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

Comment thread src/lib/extension-draft.ts Resolved
Comment thread src/scripts/extension-workspace.ts Resolved
Comment thread test/extension-draft.test.ts Resolved
Comment thread src/lib/releases.ts Resolved
Comment thread src/components/RequirementsFields.astro Resolved
Comment thread src/components/OwnerExtensionView.astro Resolved
Comment thread src/components/OwnerExtensionView.astro Resolved
Comment thread src/scripts/extension-workspace.ts Resolved
Derive the Pending view URL from the browser location instead of a DOM or response-provided navigation target. Keep the submission response limited to success or error data.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

All reported issues were addressed across 4 files (changes from recent commits).

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

Comment thread test/extension-draft-submit.test.ts Resolved
Comment thread src/scripts/extension-workspace.ts Resolved

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

0 issues found across 13 files (changes from recent commits).

Requires human review: Auto-approval blocked by 24 unresolved issues from previous reviews.

Turn on auto-fix | Re-trigger cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

All reported issues were addressed across 17 files (changes from recent commits).

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

Comment thread src/lib/extension-draft.ts Resolved

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

All reported issues were addressed across 8 files (changes from recent commits).

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

0 issues found across 2 files (changes from recent commits).

Requires human review: Auto-approval blocked by 1 unresolved issue from previous reviews.

Turn on auto-fix | Re-trigger cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

0 issues found across 6 files (changes from recent commits).

Requires human review: Permission-aware /extension/:id unification removes CDN caching and changes the public API contract; caching/access-control tradeoffs and unverified dismissed findings (release ordering, pending metadata, field limits) need human sign-off.

Turn on auto-fix | Re-trigger cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

0 issues found across 4 files (changes from recent commits).

Requires human review: Unified /extension/:id page removes CDN caching and changes the public API contract; the delta only renames comments and dismissed findings remain unresolved, so caching/auth-privacy/contract tradeoffs need human sign-off.

Turn on auto-fix | Re-trigger cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

0 issues found across 11 files (changes from recent commits).

Requires human review: This rewrite unifies public/owner extension pages, but it removes CDN caching, changes the public API contract, and leaves several dismissed findings unverified; those operational, contract, and correctness tradeoffs need human sign-off.

Turn on auto-fix | Re-trigger cubic

@admdly
admdly merged commit 9cea37a into main Nov 5, 2026
8 checks passed
@admdly
admdly deleted the codex/extensions-workspace branch November 5, 2026 20:01
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