Skip to content

Show picture dialog after selecting picture - #2600

Open
hahn-kev-bot wants to merge 3 commits into
developfrom
picture-capture-draft
Open

Show picture dialog after selecting picture#2600
hahn-kev-bot wants to merge 3 commits into
developfrom
picture-capture-draft

Conversation

@hahn-kev-bot

@hahn-kev-bot hahn-kev-bot commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

After taking a picture or selecting an image the dialog shows up:
image


AI summary

Summary

  • Buffer newly selected/captured pictures as local in-memory previews and delay upload/create until the Add Picture dialog Submit button.
  • Add an Add Picture mode to EditPictureDialog with awaitable submit, submit loading state, and hidden Download/Delete actions for drafts.
  • Add Storybook coverage proving the field remains unchanged until Submit, then renders the uploaded picture.
  • Extract the new Add Picture message into viewer locale catalogs.

Test plan

  • pnpm check from frontend/viewer — 0 errors; existing ffmpeg-worker overwrite warning remains.
  • pnpm test:storybook pictures-editor from frontend/viewer — 10 passed across Chromium and Firefox.

@coderabbitai

coderabbitai Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Next included review available in 33 minutes.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 1a752d94-2973-4546-a89e-bcdef1401f50

📥 Commits

Reviewing files that changed from the base of the PR and between 49f6fb9 and 2337f32.

📒 Files selected for processing (14)
  • frontend/viewer/src/lib/entry-editor/field-editors/EditPictureDialog.svelte
  • frontend/viewer/src/lib/entry-editor/field-editors/PicturesEditor.svelte
  • frontend/viewer/src/lib/entry-editor/field-editors/image-service.svelte.ts
  • frontend/viewer/src/locales/en.po
  • frontend/viewer/src/locales/es.po
  • frontend/viewer/src/locales/fr.po
  • frontend/viewer/src/locales/id.po
  • frontend/viewer/src/locales/ko.po
  • frontend/viewer/src/locales/ms.po
  • frontend/viewer/src/locales/sw.po
  • frontend/viewer/src/locales/vi.po
  • frontend/viewer/src/stories/editor/fields/pictures-editor.stories.svelte
  • frontend/viewer/tests/ui/sense-pictures-touch.test.ts
  • frontend/viewer/tests/ui/sense-pictures.test.ts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added the 💻 FW Lite issues related to the fw lite application, not miniLcm or crdt related label Aug 25, 2026
@hahn-kev
hahn-kev requested a review from rmunn August 25, 2026 08:45
@argos-ci

argos-ci Bot commented Aug 25, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
default (Inspect) ✅ No changes detected - Aug 27, 2026, 5:30 AM
e2e (Inspect) ✅ No changes detected - Aug 27, 2026, 5:37 AM

@hahn-kev hahn-kev changed the title Buffer new pictures until submit Show picture dialog after selecting picture Aug 27, 2026
hahn-kev and others added 2 commits August 27, 2026 10:23
Adding a picture now opens the "Add Picture" dialog on an in-memory
draft; the picture is only uploaded/created (and rendered in the field)
once Submit is clicked. Update the tests that still assumed the old
immediate-render flow to click Submit after uploading.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
registerLocalPreview mints an object URL per draft/replace and only
revoked them at dispose(), so blob URLs piled up across a session of
adding pictures. Add releaseLocalPreview(uri) (a no-op for real
mediaUris) and free the draft's preview whenever it's superseded or
discarded — on a new create, when switching to editing an existing
picture, and on replace — bounding live previews to one at a time.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

💻 FW Lite issues related to the fw lite application, not miniLcm or crdt related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants