feat(sponsor): add one-time sponsor nudge and install prompt - #61
Merged
Merged
Conversation
Aura is free and maintained by one person; give users a gentle, opt-out way to support it. - install.sh: after install, print the GitHub Sponsors and Pix links and offer to open the sponsor page ([y/N], read from /dev/tty so it works under `curl | bash`). Skipped when AURA_NO_SPONSOR_PROMPT or CI is set, or no terminal is attached. - app: seven days after the first run, show a card in the modal with "Sponsor on GitHub" and "Pix (BRL)" links. The links leave the card up so both can be used; only the × retires it for good. First-run time and dismissal live in state.json; `[sponsor] nudge = false` opts out. - Add .github/FUNDING.yml and list GitHub Sponsors and Pix in SPONSOR.md.
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.
Summary
Aura is free and maintained by one person. This adds a gentle, opt-out way for users to support it.
Installer (
install.sh)Open the sponsor page now? [y/N](default No)./dev/tty, so it works undercurl | bash. With no terminal attached, it only prints the links.AURA_NO_SPONSOR_PROMPTorCIis set. Documented in--help.In-app card
first_runandsponsor_nudge_donelive instate.json. Users upgrading from an older build start their seven days on the first launch after the upgrade.aura config set sponsor.nudge false. It is listed inaura config describe.aura_core::sponsor, takenowas a parameter, and are unit-tested.heart.svgicon. All colors come from theme tokens. Text exists in both the normal and Goblin voices.Other
.github/FUNDING.yml(GitHub Sponsors + Livepix), which turns on the repo's Sponsor button.SPONSOR.mdnow lists GitHub Sponsors and Pix.docs/configuration.md,docs/cli.md,.design/components.md.Testing
cargo fmt --check,cargo clippy --workspace --all-targets -D warnings: cleancargo test --workspace: 333 passedbash -n install.sh; the sponsor prompt function was tested on its own for the skip variables, no terminal, and yes/no/empty answers.