Repository navigation
show hint to publish - #194
Closed
reynaldichernando wants to merge 1 commit into
Closed
reynaldichernando wants to merge 1 commit into
reynaldichernando wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
🟡 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

https://builder-publish-onboarding-pkye.puter.site
https://puter.com/app/builder-publish-onboarding-pkye
this only shows up for those who never published