Repository navigation
feat(support): light support dialog on the way to the review, free version only - #3
Merged
Merged
Conversation
…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.
loan-talvat
force-pushed
the
feat/support-card
branch
from
November 24, 2026 10:23
88cea86 to
1741628
Compare
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.
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.
…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.
… 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.
…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.
# Conflicts: # CHANGELOG.md
Merged
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.
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
Changes from the first version of this PR
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) andsupportOpen.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 newsupportreason) andresultKeyDown(the result screen's Enter, which stands aside for focused controls and open dialogs).plus-store: anansweredflag, set only by a successful status answer or a Plus event.src/lib/review/keyboard.ts:resultEnterReviews, built onleftToControl.SupportDialogis rendered byAnalysisScreen.Tests
pnpm typecheckandpnpm testpass.