Skip to content

show hint to publish - #194

Closed
reynaldichernando wants to merge 1 commit into
mainfrom
publish-onboarding
Closed

reynaldichernando wants to merge 1 commit into
mainfrom
publish-onboarding

Conversation

@reynaldichernando

@reynaldichernando reynaldichernando commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Copilot AI 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.

🟡 Changes recommended

A moderate active issue remains because deleting previously published projects can reset the publish history and incorrectly show the first-time publisher hint again.

1 open issue
What changed in this PR

Adds a one-time post-build Publish onboarding hint for users who have not published a project, integrating the hint with build, project, preview, and publishing lifecycles while adding analytics, styling, and automated coverage.

Changes:

  • Added delayed hint display, persistence, dismissal, positioning, accessibility, and analytics behavior.
  • Integrated hint visibility with builds, project switches, preview teardown, publishing state, and Publish panel opening.
  • Added styling, focused behavioral tests, updated publish test fixtures, and standard test-suite integration.
File Description
vite.config.js Loads the Publish hint module after the existing Publish UI module.
src/​js/​ui.js Integrates hint dismissal and panel opening with Publish UI state and tracks Publish source analytics.
src/​js/​publish-hint.js Implements the delayed one-time Publish onboarding hint, including persistence, positioning, dismissal, accessibility, and analytics behavior.
src/​js/​helpers.js Hides the Publish hint when a new build begins.
src/​js/​app.js Starts the hint after eligible successful builds and closes it during project switches.
src/​css/​styles.css Adds shared hint bubble, Publish highlighting, animation, and theme-specific styling.
scripts/​test-published-workers.mjs Updates the Publish test sandbox with panel-source state.
scripts/​test-publish-switch-race.mjs Updates the Publish switch-race test sandbox with panel-source state.
scripts/​test-publish-rollback.mjs Updates the Publish rollback test sandbox with panel-source state.
scripts/​test-publish-hint.mjs Adds behavioral and wiring tests for Publish hint lifecycle, interaction, layout, storage, and integration.
scripts/​test-publish-drain-writes.mjs Updates the Publish drain-writes test sandbox with panel-source state.
scripts/​test-publish-analytics.mjs Updates the Publish analytics test sandbox with panel-source state.
package.json Adds the Publish hint test to the standard test suite and exposes it as a focused test command.

Review effort: Lite

Comment thread src/js/app.js Resolved
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