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

Change the 'Reserve' button text to the standard and move the notice about material ordered from other libraries to the MaterialAvailabilityTextParagraph. #854

Merged
merged 5 commits into from
Apr 16, 2024

Conversation

kasperbirch1
Copy link
Contributor

@kasperbirch1 kasperbirch1 commented Jan 15, 2024

Link to issue

https://reload.atlassian.net/browse/DDFSOEG-528

Description

This PR enhances the user experience by providing a more streamlined interface, while still effectively notifying the user when the material is ordered from an another library.

In this revision, I have incorporated a useEffect hook within the UserListItems component. This modification ensures that the default branch and interest period, as specified in the ModalReservationFormSelect, are consistently used as the values transmitted with the request.

Screenshot of the result

Skaermoptagelse.2024-04-03.kl.13.59.37.mov

@kasperbirch1 kasperbirch1 force-pushed the fix-overbygningsmateriale-2024 branch 7 times, most recently from 9deea60 to 90c5d21 Compare January 16, 2024 09:30
Copy link
Contributor

@spaceo spaceo left a comment

Choose a reason for hiding this comment

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

I don't understand what the fix you did what it consists of it what it solves.
I wrote some comments that are related to code style/practise.
Also I think that the ReservationModalBody has too much logic inside of the comopnent. It would be nice to på the saveReservation handler and state in an external hook

src/components/reservation/ReservationModalBody.tsx Outdated Show resolved Hide resolved
src/components/reservation/ReservationModalBody.tsx Outdated Show resolved Hide resolved
src/components/reservation/UserListItems.tsx Outdated Show resolved Hide resolved
@kasperbirch1 kasperbirch1 force-pushed the fix-overbygningsmateriale-2024 branch from 90c5d21 to 2fab8ad Compare January 16, 2024 10:18
@kasperg kasperg changed the base branch from release/2024-4-0 to release/2024-6-0 January 23, 2024 08:03
Base automatically changed from release/2024-6-0 to develop February 6, 2024 16:17
@kasperg kasperg changed the base branch from develop to release/2024-9-0 February 7, 2024 09:13
@kasperbirch1 kasperbirch1 force-pushed the fix-overbygningsmateriale-2024 branch from 2fab8ad to 40f5360 Compare February 9, 2024 07:02
Base automatically changed from release/2024-9-0 to develop February 20, 2024 16:49
@kasperg kasperg changed the base branch from develop to release/2024-9-0-1 February 20, 2024 17:09
Base automatically changed from release/2024-9-0-1 to develop February 27, 2024 09:10
@kasperg kasperg changed the base branch from develop to release/form-sprint-9 March 12, 2024 10:42
Base automatically changed from release/form-sprint-9 to develop April 2, 2024 12:12
@kasperg kasperg changed the base branch from develop to release/form-sprint-10 April 2, 2024 12:46
@kasperg
Copy link
Contributor

kasperg commented Apr 2, 2024

This has been lingering for quite a while now. I am assigning this to you @kasperbirch1 so you can figure out what is needed to move this along.

@kasperbirch1 kasperbirch1 force-pushed the fix-overbygningsmateriale-2024 branch 2 times, most recently from 016bf5b to acff10d Compare April 3, 2024 11:43
…about material ordered from other libraries to the `MaterialAvailabilityTextParagraph`.

This will give the user a more streamlined experience while still notifying the user that the material is ordered from another library.
@kasperbirch1 kasperbirch1 force-pushed the fix-overbygningsmateriale-2024 branch from acff10d to 5d38f24 Compare April 3, 2024 11:54
@kasperbirch1 kasperbirch1 requested a review from spaceo April 3, 2024 11:59
@kasperbirch1
Copy link
Contributor Author

@spaceo now it finally works 👍

https://reload.atlassian.net/browse/DDFNEXT-82

@kasperbirch1 kasperbirch1 removed their assignment Apr 3, 2024
Copy link
Contributor

@spaceo spaceo left a comment

Choose a reason for hiding this comment

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

Please look at my comments

@spaceo spaceo removed their assignment Apr 8, 2024
Base automatically changed from release/form-sprint-10 to develop April 8, 2024 13:36
@kasperbirch1 kasperbirch1 force-pushed the fix-overbygningsmateriale-2024 branch from 0e73838 to 5658543 Compare April 8, 2024 14:45
@kasperbirch1 kasperbirch1 requested a review from spaceo April 10, 2024 07:58
Copy link
Contributor

@spaceo spaceo left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@spaceo spaceo removed their assignment Apr 15, 2024
@kasperbirch1 kasperbirch1 force-pushed the fix-overbygningsmateriale-2024 branch from 161cf51 to 66d9353 Compare April 15, 2024 09:26
@kasperbirch1 kasperbirch1 force-pushed the fix-overbygningsmateriale-2024 branch from 66d9353 to f854c63 Compare April 15, 2024 09:28
@kasperg kasperg changed the base branch from develop to release/hermod-sprint-12 April 16, 2024 07:51
@kasperbirch1 kasperbirch1 merged commit bdfe2b9 into release/hermod-sprint-12 Apr 16, 2024
20 checks passed
@kasperbirch1 kasperbirch1 deleted the fix-overbygningsmateriale-2024 branch April 16, 2024 09:47
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