Skip to content

feat(support): light support dialog on the way to the review, free version only - #3

Merged
lilybarberou merged 7 commits into
mainfrom
feat/support-card
Nov 26, 2026
Merged

lilybarberou merged 7 commits into
mainfrom
feat/support-card

Conversation

@loan-talvat

@loan-talvat loan-talvat commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Support dialog on the way to the review (free version)

After each sort that finishes well, the free version shows a light dialog the first time the photographer goes to the review of that sort. It invites them to follow Pelli on Instagram, or to star the project on GitHub, and offers a clear way to Pelli Instant Plus, which removes it.

Behaviour

  • When: on the first way to the review of a completed sort ("See the selection", or Enter on the result screen). Going back to the review of the same sort goes straight in. The next sort offers the dialog again.
  • Who: free version only, once a Plus status has really arrived (an answer, or a Plus event from the engine). If the status request fails, nothing shows and the app goes on. Hidden with Plus, from a licence or a Pelli account, and it disappears if Plus activates while it is open.
  • Never after a cancelled sort, a failed one, or one where every photo failed. The result screen and the review stay as usual.
  • Content: the look of the Plus dialog (same Modal base, glass panel, violet light, 28 px radius, typography), much lighter. A warm title and one short sentence (free, made by a small team, following us is the best way to help). "Follow @pelli.io on Instagram" is the main button, "Leave a star on GitHub" is secondary, plus a quiet "Not now, see the selection". A footer reads "Don't want to see this again? Get Pelli Instant Plus".
  • Never blocks the review: ×, Escape, a click outside and "Not now" all go on to the review. Instagram or GitHub opens the link in the browser and goes on to the review. The Plus button closes this dialog, goes to the review and opens the Plus dialog on its offer over it.
  • Accessibility: focus starts on the Instagram button and stays inside the dialog. Escape closes it. Enter activates the focused button; the result screen's own Enter shortcut stands aside while the dialog (or any other dialog) is open, so a key never acts twice.
  • Private: nothing is recorded and nothing is sent. No telemetry, no counter.
  • Translated into all 9 languages (fr, en, es, de, it, nl, pl, pt-BR, sv).

Changes from the first version of this PR

  • No card at the end of exports any more, and no export counter or "shown once" logic. Preferences saved by a test build with the old keys still load, and the old keys are dropped on the next save.
  • The inline card on the result screen is replaced by this dialog.

Implementation

  • analysis-store: supportOffered (set by a real end with at least one photo sorted; cleared by the next start, a cancel or an error) and supportOpen.
  • src/lib/support.ts: isSupportVisible (offered, Plus status known, Plus not active).
  • src/store/support.ts: goToReview (the result screen's review action), the dialog's actions (close and go on to the review, open a link, open the Plus dialog with the new support reason) and resultKeyDown (the result screen's Enter, which stands aside for focused controls and open dialogs).
  • plus-store: an answered flag, set only by a successful status answer or a Plus event.
  • src/lib/review/keyboard.ts: resultEnterReviews, built on leftToControl.
  • SupportDialog is rendered by AnalysisScreen.
  • README (EN, FR) and CHANGELOG (Unreleased) updated.

Tests

  • The dialog opens on the first way to the review of a free sort that ended well, not on the second, and comes back after the next sort.
  • It does not open with Plus (licence or account), while the Plus status is unknown, or after a failed status request. It opens once a status answer or a Plus event arrives, and disappears when Plus activates while it is open.
  • It is not offered after a cancelled sort, a failed sort, or one where every photo failed.
  • Every way out (×, Escape, a click outside, "Not now") goes on to the review. Instagram and GitHub open the link and go on to the review.
  • The Plus button opens the Plus dialog on its offer.
  • Keys: Enter on the result screen opens the dialog first and never acts twice while it is open. Enter is left to focused controls and other dialogs. Escape closes the dialog and goes on to the review.

pnpm typecheck and pnpm test pass.

…project

After the third successful export, the export report shows a small card,
once: follow @pelli.io on Instagram first (photographers rarely have a
GitHub account), and in second place a GitHub star ("it's free, and it's
the best way to help us"). Closing the card or opening either link means
it never shows again. It replaces the Pelli line of that report, never a
pop-up, and is hidden with Plus like the other Pelli cards.
openbotgit[bot]

This comment was marked as outdated.

One condition decides whether a run succeeded (no export error, every photo
sent, upload not cancelled); it drives both the export count and the card.
Plus is checked live, so the card disappears if Plus activates while the
report is open. The card is recorded as soon as a report shows it, so
closing the report with Done no longer brings it back. Copy fixes in ES, DE,
IT and NL, and the entry in the changelog.
openbotgit[bot]

This comment was marked as outdated.

@lilybarberou
lilybarberou marked this pull request as ready for review November 26, 2026 13:48
… version only

The card moves from the export report to the result screen of a sort:
shown after each sort that ends well, never after a cancelled or failed
one, hidden with Plus (checked live). Closing it, or opening Instagram
or GitHub, hides it until the next sort. A discreet line opens the Plus
dialog. The export counter and the one-time logic are gone.
@lilybarberou lilybarberou changed the title feat(export): one-time card to follow Pelli on Instagram or star the project feat(support): support card after every completed sort, free version only Nov 26, 2026
openbotgit[bot]

This comment was marked as outdated.

…tatus, skip all-failed sorts

- The result screen's Enter opens the review only from the screen itself:
  a focused control (the card's links, its x, the Plus line) keeps it.
- The card waits for a Plus status that really arrived (an answer or a
  plus event); a failed status request no longer shows it.
- A sort where every photo failed keeps its result and review, without
  the card.
openbotgit[bot]

This comment was marked as outdated.

… inline card

On the first way to the review of a free sort that ended well (Review or
Enter on the result screen), a dialog in the look of the Plus dialog asks
to follow @pelli.io on Instagram, a GitHub star second, with a clear way
to Plus. Every way out (x, Escape, a click outside, Not now, a link) goes
on to the review; the Plus link opens the Plus dialog on its offer.
Focus starts on Instagram and stays in the dialog; Enter belongs to the
focused button. Same guards as before: a confirmed free Plus status, not
after a cancelled or failed sort, nor when every photo failed.
@lilybarberou lilybarberou changed the title feat(support): support card after every completed sort, free version only feat(support): light support dialog on the way to the review, free version only Nov 26, 2026
openbotgit[bot]

This comment was marked as outdated.

…hen Plus activates

- The title is the dialog's ModalHeader, so HeroUI labels the dialog
  with it (aria-labelledby).
- Plus activating while the dialog is open spends it and opens the review
  once, like every other way out; it never comes back for that sort.
openbotgit[bot]

This comment was marked as outdated.

# Conflicts:
#	CHANGELOG.md
@lilybarberou
lilybarberou merged commit 8c76cf4 into main Nov 26, 2026
2 checks passed
@lilybarberou lilybarberou mentioned this pull request Nov 26, 2026
@Synapsr Synapsr deleted a comment from openbotgit Bot Nov 26, 2026
@Synapsr Synapsr deleted a comment from openbotgit Bot Nov 26, 2026
@Synapsr Synapsr deleted a comment from openbotgit Bot Nov 26, 2026
@Synapsr Synapsr deleted a comment from openbotgit Bot Nov 26, 2026
@Synapsr Synapsr deleted a comment from openbotgit Bot Nov 26, 2026
@Synapsr Synapsr deleted a comment from openbotgit Bot Nov 26, 2026
@Synapsr Synapsr deleted a comment from openbotgit Bot Nov 26, 2026
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