Skip to content

feat(plugins): hide upload control on the admin Plugins page#98

Merged
mpge merged 1 commit into
masterfrom
feat/plugins-page-no-upload
Jul 5, 2026
Merged

feat(plugins): hide upload control on the admin Plugins page#98
mpge merged 1 commit into
masterfrom
feat/plugins-page-no-upload

Conversation

@mpge

@mpge mpge commented Jul 5, 2026

Copy link
Copy Markdown
Member

Pairs with escalated#126. The shared admin Plugins page now takes a can_upload prop (default true). Escalated-Phoenix plugins are compiled host modules registered in config — there is no ZIP-upload endpoint — so the controller passes can_upload: false, which hides the Upload button and switches the empty-state copy to "Register a plugin in the host application…".

One-line prop addition to PluginController.index/2; no logic change.

Verification

CI runs the authoritative gate (mix format --check-formatted + mix credo --strict on changed files + mix test). The change is a single map-key addition to an existing multi-line Inertia render call, format-clean and within the 98-col limit.

Escalated plugins here are compiled host modules registered in config, not
uploaded ZIPs, so the shared admin Plugins page's upload flow does not apply.
Pass can_upload: false to the Inertia page (the shared page defaults it to
true for Laravel, whose plugins are uploaded).
@mpge mpge merged commit 971e24a into master Jul 5, 2026
2 checks passed
@mpge mpge deleted the feat/plugins-page-no-upload branch July 5, 2026 15:59
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.

1 participant