-
Notifications
You must be signed in to change notification settings - Fork 18
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/cancel reservations #795
base: develop
Are you sure you want to change the base?
Conversation
…ect-schrodinger into feature/library-rooms
…chrodinger into feature/cancel-reservations
a257efe
to
e6492a5
Compare
I've changed the target and this will now be merged to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(regarding the failing tests, I'm not sure what's causing the issue since you did not change those files. does it happen on your local machine too?)
Map<String, String> months = { | ||
'Janeiro': '01', | ||
'Fevereiro': '02', | ||
'Março': '03', | ||
'Abril': '04', | ||
'Maio': '05', | ||
'Junho': '06', | ||
'Julho': '07', | ||
'Agosto': '08', | ||
'Setembro': '09', | ||
'Outubro': '10', | ||
'Novembro': '11', | ||
'Dezembro': '12', | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some git issues here
|
||
Future<bool> cancelReservation(Session session, String id) async { | ||
final url = | ||
// ignore: lines_longer_than_80_chars |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can split the string, no need for this
navLibraryOccupation('biblioteca', faculties: {'feup'}), | ||
navLibraryReservations('reservas', faculties: {'feup'}), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does this need to be here? Isn't this on the same page?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I created a different route for each tab. I am using this for each card's onClick
'/${DrawerItem.navLibraryReservations.title}', | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should clicking the card redirect to reservations?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it has been fixed
late final String hoursStart; | ||
late final String hoursEnd; | ||
late final String weekDay; | ||
late final String day; | ||
late final String month; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefer to use DateTime and display as you wish below. Also, I don't think this needs to be final
…o feature/library-reservations
…oject-schrodinger into feature/cancel-reservations
// TO DO: Implement parsers for all faculties | ||
// and dispatch for different fetchers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This feature is specific to FEUP, it seems, so is there a need to implement parsers for all faculties?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, I removed the comment in #1073
"@library_reservations": {}, | ||
"library_tab_occupation": "Occupation", | ||
"@library_tab_occupation": {}, | ||
"library_tab_reservations": "Reservations", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we think of a better translation, maybe? The original one is "Gabinetes".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just saw that SIGARRA doesn't have a translation for this as well... We can leave it like this!
417c250
to
bd61b50
Compare
Closes #656
Depends on #658 , #1073
Added functionality to cancel library reservations.
Review checklist
whatsnew/whatsnew-pt-PT
changelog.md
with the change