Skip to content

Open on a drop zone with Try a sample instead of a preloaded logo - #247

Merged
vycdev merged 4 commits into
developfrom
t3/start-screen-dropzone
Nov 30, 2026
Merged

vycdev merged 4 commits into
developfrom
t3/start-screen-dropzone

Conversation

@vycdev

@vycdev vycdev commented Nov 30, 2026 •

Copy link
Copy Markdown
Owner

Kromacut opened by loading its logo as if it were the user's image. A new user saw a colorful K, a full toolbar and 12 adjustment sliders, with nothing saying "start here".

Now a fresh start shows a drop zone in the 2D preview with Choose image and Try a sample. Dragging a file onto it works as before.

  • The sample is the Kromacut logo. It's the maintainer's own image and was already bundled, so nothing new ships and its licensing is clear.
  • Image tools hide while there's no image. That covers brush, eraser, fill, text, picker, crop, download, checkerboard, Choose file and Remove. Undo and Redo stay while there's history.
  • Sessions: a recovered session still reopens the previous image directly. The drop zone never flashes while it's being restored, even when reading the stored session takes longer than startup waits. A stored session that no longer decodes now falls back to the drop zone instead of the logo. The unedited sample isn't kept after a reload, as the starter wasn't before.

Screenshots (1440×900)

Before After
Fresh start, dark
Fresh start, light
After Try a sample, dark —
After Try a sample, light —

The screenshots live on the pr-assets/start-screen-dropzone branch, which only holds these PNGs. It can be deleted after review. "Before" and "after Try a sample" are byte-identical, because the old fresh start was exactly this sample.

Notes

  • Keyboard and input details:

    • Focus moves to Choose image after Remove image, including when the drop zone only appears after recovery finishes. After Try a sample, focus moves to the toolbar's Choose file.
    • Try a sample waits for a file that's still being checked, and a cancelled import no longer blocks it.
    • Only file drags light up the drop zone.
    • The card stays reachable, and its buttons wrap, in short or narrow panes (checked at 320×568 in pt-PT, 844×390 and 568×320).
  • Sample image licensing: I checked the candidates in the repo.

    • tests/assets/rocco__source.png (the kakapo) was added by a contributor with no license or credit note.
    • Naruto is a copyrighted character from a Pinterest pin.
    • The Olympus test photo shows a Raphael cartoon print, with no photographer or license note.
    • The logo is the only image with clear rights.
  • The sample still counts as the starter. It keeps the starter's role in session storage (STARTER_IMAGE_ID), so edits to it recover like before, and an unedited sample is never written.

  • Tokens: only existing tokens and the blue accent are used.

  • Translations: new strings and doc edits (loading-images.md, quick-start.md) are in all 12 languages.

Tests

  • New @smoke spec (tests/e2e/image-start-screen.spec.ts):
    • A fresh start shows the drop zone with no image tools.
    • Try a sample loads 1024×1024, isn't stored, and a reload starts fresh.
    • Choose image, drag-and-drop and Remove image all work.
    • A stored session reopens without the drop zone ever appearing, even when the read outlasts startup's 4 s wait.
    • Focus moves to the right control after Remove image (also during recovery) and after Try a sample.
    • Only file drags highlight the drop zone, and a drop on the card loads.
    • Try a sample works right after Remove image cancels a slow import.
  • Specs that relied on the preloaded logo now load the sample first through tests/e2e/helpers/sampleImage.ts, so their history assumptions stay the same:
    • image-edit-guards
    • image-import-error
    • image-session-recovery
    • image-history-urls
    • dedither
    • printable-feature-preview
  • Session recovery: the starter fallbacks now expect the start screen.
  • Desktop file-open: all 26 tests in desktop-file-open.spec.ts pass.

Council review

Rounds: 4

Delegate Round 1 Round 2 Round 3 Round 4
Claude Opus 5.5 8/10 9/10 9.5/10 9.5/10
GPT-6.2 Sol 8/10 9/10 9/10 9/10
Gemini unavailable unavailable unavailable unavailable

No Gemini model was available in this environment, so the council ran with two members.

Created with Claude Opus 5.5 in Claude Code; translations by Claude Opus 5.5 subagents; council reviews by Claude Opus 5.5 and GPT-6.2 Sol.

vycdev and others added 4 commits November 30, 2026 13:58
A fresh start used to load the Kromacut logo as if it were the user's
image. The 2D preview now shows a drop zone with Choose image and Try a
sample; the sample is the logo, already bundled, so no new asset ships.
While there is no image the 2D image tools hide (Undo/Redo stay while
there is history). A recovered session still reopens directly and the
drop zone never flashes during recovery; a session that no longer
decodes falls back to the drop zone instead of the logo.

Specs that relied on the preloaded logo now load the sample through a
shared helper, and a new @smoke spec covers the start screen.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Treat the stored-session read as pending until it answers, so a read
  slower than startup's 4 s wait never shows the drop zone over an image
  about to be restored (smoke test holds the read past startup).
- Try a sample waits for a file that is still being checked.
- Move focus to Choose image after Remove image, and to Choose file
  after Try a sample, instead of losing it to the page.
- Only file drags light up the drop zone, and moving over the card's
  children keeps the highlight.
- Keep the card reachable and its buttons wrapping in short or narrow
  panes.
- Docs: qualify recovery, say what happens to the sample and that Remove
  image shows the drop zone, in all 12 languages; zh-CN/ja spacing.
- Load the sample in the WebAssembly dedither specs from #245.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Spend the "focus Choose image" request once the start screen used it,
  so switching to 3D and back after Remove image keeps focus on the tab.
- A cancelled import no longer counts as pending, so Try a sample works
  right after Remove image cancels a slow import.
- Smoke tests for both; the cancelled-import test fails without the fix.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The focus request after Remove image is cleared only once the start
screen has taken focus, so it survives when the screen appears later,
e.g. after startup recovery. Smoke test removes an image during a held
recovery and expects Choose image to be focused.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@vycdev
vycdev force-pushed the t3/start-screen-dropzone branch from 2558a80 to 8bdfc30 Compare November 30, 2026 11:58
@vycdev
vycdev merged commit ed3c349 into develop Nov 30, 2026
14 checks passed
vycdev added a commit that referenced this pull request Nov 30, 2026
develop now opens on a drop zone (#247); load the sample the way the
other specs do.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.

1 participant