Skip to content

Disable publishing option for fullstack-stateful-app artifacts#188

Open
StpMax wants to merge 3 commits into
stagingfrom
fix/disable-stateful-artifacts-publishing
Open

Disable publishing option for fullstack-stateful-app artifacts#188
StpMax wants to merge 3 commits into
stagingfrom
fix/disable-stateful-artifacts-publishing

Conversation

@StpMax

@StpMax StpMax commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Description

Block publishing of fullstack-stateful-app artifacts. A stateful fullstack app
keeps server-side state the static publish pipeline can't carry, so a published
copy would be broken/misleading.

How

  • Add a shared publishBlockedReason(a) predicate in artifactKinds.js (single
    source of truth, keyed on artifact type).
  • Render the Publish control visible but disabled with an explanatory tooltip
    (not hidden), across all five publish surfaces:
    • Artifact viewer — main button
    • Artifact viewer — kebab menu (ActionsPopover)
    • Artifacts page — list-mode row menu (RowMenu)
    • Artifacts page — grid-mode card menu (HoverMenu)
    • Working-folder rail toggle
  • Guard the three publish handlers (onPublish, handlePublish,
    onTogglePublish) as defense-in-depth.
  • Leave Unpublish untouched; only the publish direction is blocked.

Screenshots

Type of change

Please delete options that are not relevant.

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ⚡ New feature (non-breaking change which adds functionality)
  • 🚨 Hotfix (non-breaking change which fixes an issue)
  • 📢 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 📄 This change requires a documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have checked my code and corrected any misspellings

@StpMax StpMax requested a review from ea-rus June 18, 2026 08:14
@StpMax StpMax changed the base branch from main to staging June 19, 2026 08:50
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