Skip to content

Duplicate a receipt line straight into the edit dialog - #112

Merged
Frognar merged 1 commit into
mainfrom
claude/project-thread-rsvz59
Oct 5, 2026
Merged

Frognar merged 1 commit into
mainfrom
claude/project-thread-rsvz59

Conversation

@Frognar

@Frognar Frognar commented Oct 5, 2026

Copy link
Copy Markdown
Owner

Requested by Frognar · project thread

Before: repeating a line on a receipt meant adding it again and retyping the item, category, amount and description.

After: the edit dialog of a line has a copy button next to "Delete". It opens "Duplicate item" prefilled with that line, so quantity or amount can be changed before saving. Cancelling adds nothing; saving appends the new line to the same receipt.

How: ItemDialog takes an optional Copy line that prefills a new line, and the copy button closes the dialog with the line as its result; Receipt.razor then opens the dialog again in add mode. No API change, the save goes through the existing add-item endpoint and its validation. The button is an icon so the four actions fit on a 360 px wide phone.

Checked: dotnet build with no warnings, dotnet test 172/172, and clicked through on a phone viewport against a local Postgres.

🤖 Generated with Claude Code

https://claude.ai/code/session_016DkYAYEsi4gPN6uX9BfQZa


Generated by Claude Code

The item dialog gets a copy button for an existing line. It closes the dialog
and opens a new one prefilled with that line, so the copy can be adjusted
before saving; cancelling it adds nothing.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016DkYAYEsi4gPN6uX9BfQZa
@Frognar Frognar self-assigned this Oct 5, 2026
@Frognar
Frognar merged commit 938f087 into main Oct 5, 2026
3 checks passed
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