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

Feature: Add confirmation modal before sending receipt #1324

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

magnusbrecke
Copy link

Co-authored-by shailesh shadacharan shsha001@outlook.com

Description

Added a confirmation modal that a user has to confirm before sending through the receipt. The user confirms that the amount put into the online receipt is the exact same as the amount on the original receipt.

Result

Before

Skjermopptak.2025-03-05.kl.20.31.39.mov

After

modalfilm.mov

If you've made visual changes, please check the boxes below and include images showing the changes. Descriptions are appreciated.

  • Changes look good with different viewports (mobile, tablet, etc.).
  • Changes look good with slower Internet connections.

Testing

  • I have thoroughly tested my changes.

Resolves ABA-1327

Copy link

linear bot commented Mar 5, 2025

Copy link
Member

@eikhr eikhr left a comment

Choose a reason for hiding this comment

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

Seems like cypress is failing

<ModalContent>
<ModalBody>
<p className="mb-3 mt-8 text-center">
Ved å godkjenne bekrefter jeg at beløpet stemmer med kvitteringen
Copy link
Member

Choose a reason for hiding this comment

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

Would be cool if this said the actual amount you have entered in the form

Copy link
Contributor

Choose a reason for hiding this comment

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

no

Copy link
Member

Choose a reason for hiding this comment

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

😠

Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@ShaileshS1702
Copy link
Contributor

Seems like cypress is failing

no

@norbye
Copy link
Member

norbye commented Mar 6, 2025

Big ➕ on @eikhr 's comment about displaying the sum in the confirmation.

Also curious; have you considered not using a modal for this, but rather adding a confirmation section under the buttons so that the user could still scroll up and check what's written on the receipts as well? Not saying it has to be done this way, just saying that it might be something to consider

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.

4 participants