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/issue vouchers #16

Merged
merged 21 commits into from
Nov 6, 2023
Merged

Feature/issue vouchers #16

merged 21 commits into from
Nov 6, 2023

Conversation

A-Guldborg
Copy link
Contributor

@A-Guldborg A-Guldborg commented Oct 5, 2023

Closes #4

This PR adds a UI for generating vouchers.

This uses a repository pattern to abstract the data layer.
Uses Snackbars to indicate errors
Uses info from logged-in account as requester and voucher-prefix.
Adds validation to the MudForm element to enable/disable submit button.

To-do list:

  • How to center div 🫠 (And other styling things...)
  • Check user permissions to determine access to page
  • Would be cool to have a copy-to-clipboard on the resulting vouchers

@A-Guldborg A-Guldborg force-pushed the feature/issue-vouchers branch from 681556f to 2d458b0 Compare October 12, 2023 14:24
@A-Guldborg A-Guldborg changed the base branch from develop to main October 12, 2023 14:24
@A-Guldborg A-Guldborg requested a review from duckth October 12, 2023 16:51
@A-Guldborg A-Guldborg self-assigned this Oct 12, 2023
@A-Guldborg A-Guldborg marked this pull request as ready for review October 12, 2023 16:51
@A-Guldborg A-Guldborg requested a review from TTA777 October 12, 2023 17:44
Copy link
Member

@TTA777 TTA777 left a comment

Choose a reason for hiding this comment

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

First batch of comments away

Shifty.App/Components/Voucher.razor Outdated Show resolved Hide resolved
Shifty.App/Pages/IssueVoucher.razor Outdated Show resolved Hide resolved
Shifty.App/Program.cs Outdated Show resolved Hide resolved
Shifty.App/Components/Voucher.razor Outdated Show resolved Hide resolved
Shifty.App/Components/Voucher.razor Outdated Show resolved Hide resolved
Shifty.App/Shared/NavMenu.razor Outdated Show resolved Hide resolved
Shifty.App/Repositories/IVoucherRepository.cs Outdated Show resolved Hide resolved
Shifty.App/Repositories/VoucherRepository.cs Outdated Show resolved Hide resolved
Shifty.App/Services/IProductService.cs Outdated Show resolved Hide resolved
Shifty.App/Services/IVoucherService.cs Outdated Show resolved Hide resolved
@A-Guldborg A-Guldborg requested a review from TTA777 October 26, 2023 18:30
@A-Guldborg A-Guldborg force-pushed the feature/issue-vouchers branch from 686ac63 to a2128a6 Compare November 2, 2023 15:24
TTA777
TTA777 previously approved these changes Nov 2, 2023
Copy link
Member

@TTA777 TTA777 left a comment

Choose a reason for hiding this comment

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

lgtm

@A-Guldborg
Copy link
Contributor Author

@marfavi will you review at least my last commit, as I have implemented your two UX suggestions as discussed:

A counter showing how many letters I have written´
A searchable dropdown for the products

Copy link
Member

@marfavi marfavi left a comment

Choose a reason for hiding this comment

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

Accepting. If any usability issues arise in the future, I will make sure to create a separate issue :)

@A-Guldborg A-Guldborg merged commit dcc9fe6 into main Nov 6, 2023
2 checks passed
@A-Guldborg A-Guldborg deleted the feature/issue-vouchers branch November 6, 2023 00:11
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.

Create UI for issuing vouchers
5 participants