Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edit expense dialog #10875

Merged
merged 13 commits into from
Jan 7, 2025
Merged

Edit expense dialog #10875

merged 13 commits into from
Jan 7, 2025

Conversation

gustavlrsn
Copy link
Member

@gustavlrsn gustavlrsn commented Dec 19, 2024

For opencollective/opencollective#7683

Description

Inline edit expense flow (bundled together with the new expense submission flow preview feature flag).

Does not include editing the expense type (will show a button to go to the legacy edit flow).

Followups

Screenshots

Screenshot 2024-12-19 at 14 48 28 Screenshot 2024-12-19 at 14 48 58 Screenshot 2024-12-19 at 14 48 42 image

Copy link

vercel bot commented Dec 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
opencollective-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 7, 2025 10:45am
opencollective-styleguide ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 7, 2025 10:45am

@gustavlrsn gustavlrsn force-pushed the feat/edit-expense branch 3 times, most recently from e7eb035 to 8e3cceb Compare December 19, 2024 12:54
@gustavlrsn gustavlrsn requested a review from hdiniz December 19, 2024 14:00
url: !startOptions.current.duplicateExpense ? ei.url : null,
attachment: ei.url,
url: ei.url, // !startOptions.current.duplicateExpense ? ei.url : null,
// url: !startOptions.current.duplicateExpense ? ei.url : null,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This may result in users submitting duplicated expenses with the same attachments urls, I think we should require a new upload for a new expense.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, fixed this (and also kept only the attachment field here, which is the one used by the form components)

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