-
Notifications
You must be signed in to change notification settings - Fork 4
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
TASK-362 Use excel spreadsheet to import and export shifts #291
Conversation
Test summaryRun details
View run in Cypress Dashboard ➡️ Flakiness
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
9194fa3
to
d3d24fd
Compare
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.
Jakieś zmiany do wprowadzenia obgadane z @Qwebeck
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.
Mam kilka uwag :)
src/components/schedule-page/import-buttons/hooks/use-schedule-converter.ts
Outdated
Show resolved
Hide resolved
src/components/schedule-page/import-buttons/hooks/use-schedule-converter.ts
Outdated
Show resolved
Hide resolved
src/components/schedule-page/import-buttons/hooks/use-schedule-converter.ts
Outdated
Show resolved
Hide resolved
} | ||
|
||
private parseShiftCode(shiftRow: string[], name: string): string { | ||
if (shiftRow[1]) { |
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.
Te wszystkie indeksy do stałej.
#człowiekstała
Proponuję umieścić je w enumie, tak żeby nazwa kolumny odpowiadała jej indeksowi :)
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.
wymyśliłam , że tabloica będzie bezpieczniejsza, niż enum
zweryfikujcie
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.
Oki, może być, ale moim zdaniem enum lepszy :)
} | ||
|
||
private parseShiftTo(shiftRow: string[], name: string): number { | ||
if (shiftRow[3]) { |
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.
To musimy obgadać
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.
co konkretnie?
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.
W złym miejscu dałem ten komentarz. Chodzi o to, że dzień zaczyna się od 7 i żadna zmiana nie może jej przecinać np. nie może być zmiany 5-12, ale to już nie w tym PR.
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.
Zarequestuj jak poprawisz uwagi od chłopaków
d3d24fd
to
1bd4923
Compare
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.
Świetna robota zią :)
* TASK-321 Introduce workers' teams (#293) * TASK-362 Use excel spreadsheet to import and export shifts (#291) * TASK-408 Add information about worker team to management table (#298) * TASK-408 Adds information about worker group to managament table and allows to change worker group * Fixes z-index * Adds groups sotring * TASK-411 Export with worker groups (#299) * Change error folding section display (#308) * Fix corrupted schedule test case (#310) * TASK-330 Track app version and store it presistently (#273) * TASK-327 Use worker shifts from state (#264) * TASK-394 New free shifts (#304) * TASK-410 Not working switch between actual and base versions & TASK-420 always same default group in worker drawer (#312) * TASK-423 sticky month header (#314) * TASK-416 Sort workers in groups && TASK-406 Display worker markers on schedule (#309) * TASK-409 Show import bug messages for all import buttons (#307) * TASK-423 Remove background of schedule's header (#315) * First push <3 * Done?. * Ready for review. * Ready for review. * Unreal changes. * Removed comments, reverted to develop styling. * Epic changes. * HEIGHT FIXED. Co-authored-by: Tomasz Pęcak <[email protected]> * TASK-422 Fixes export of worker calendar (#313) * TASK-425 disables edit buttons (#318) * TASK-386 Enhance comprehensibility of error messages (#302) * Add mapping to uid for employee info contractType and workerGroup keys (#311) * Add bunch of prerelease fixes (#321) * TASK-419 Style non-working shifts consistently (#316) * TASK-412 Bug: drawer button does not stick bottom (#325) * TASK-386 Enhance comprehensibility of error messages (follow-up) (#326) * Fix shift types that was not defined (#327) * Fix cell input (#328) * Fix onBlur when no value provided (#329) * Fix logs from shifts (#331) * Fix work norm calculation for not working shifts (#332) Co-authored-by: Bohdan <[email protected]> Co-authored-by: Paulina <[email protected]> Co-authored-by: Tomasz Pęcak <[email protected]> Co-authored-by: Maciej Bielech <[email protected]> Co-authored-by: Jan Ślażyński <[email protected]> Co-authored-by: Ehevi <[email protected]> Co-authored-by: Szymon Fugas <[email protected]>
## [1.0.2](v1.0.1...v1.0.2) (2021-03-26) ### Performance Improvements * **App:** Release v2.0.0 ([#323](#323)) ([cdc701d](cdc701d)), closes [#293](#293) [#291](#291) [#298](#298) [#299](#299) [#308](#308) [#310](#310) [#273](#273) [#264](#264) [#304](#304) [#312](#312) [#314](#314) [#309](#309) [#307](#307) [#315](#315) [#313](#313) [#318](#318) [#302](#302) [#311](#311) [#321](#321) [#316](#316) [#325](#325) [#326](#326) [#327](#327) [#328](#328) [#329](#329) [#331](#331) [#332](#332)
## [1.0.2](v1.0.1...v1.0.2) (2021-03-26) ### Performance Improvements * **App:** Release v2.0.0 ([#323](#323)) ([cdc701d](cdc701d)), closes [#293](#293) [#291](#291) [#298](#298) [#299](#299) [#308](#308) [#310](#310) [#273](#273) [#264](#264) [#304](#304) [#312](#312) [#314](#314) [#309](#309) [#307](#307) [#315](#315) [#313](#313) [#318](#318) [#302](#302) [#311](#311) [#321](#321) [#316](#316) [#325](#325) [#326](#326) [#327](#327) [#328](#328) [#329](#329) [#331](#331) [#332](#332)
* TASK-321 Introduce workers' teams (#293) * TASK-362 Use excel spreadsheet to import and export shifts (#291) * TASK-408 Add information about worker team to management table (#298) * TASK-408 Adds information about worker group to managament table and allows to change worker group * Fixes z-index * Adds groups sotring * TASK-411 Export with worker groups (#299) * Change error folding section display (#308) * Fix corrupted schedule test case (#310) * TASK-330 Track app version and store it presistently (#273) * TASK-327 Use worker shifts from state (#264) * TASK-394 New free shifts (#304) * TASK-410 Not working switch between actual and base versions & TASK-420 always same default group in worker drawer (#312) * TASK-423 sticky month header (#314) * TASK-416 Sort workers in groups && TASK-406 Display worker markers on schedule (#309) * TASK-409 Show import bug messages for all import buttons (#307) * TASK-423 Remove background of schedule's header (#315) * First push <3 * Done?. * Ready for review. * Ready for review. * Unreal changes. * Removed comments, reverted to develop styling. * Epic changes. * HEIGHT FIXED. Co-authored-by: Tomasz Pęcak <[email protected]> * TASK-422 Fixes export of worker calendar (#313) * TASK-425 disables edit buttons (#318) * TASK-386 Enhance comprehensibility of error messages (#302) * Add mapping to uid for employee info contractType and workerGroup keys (#311) * Add bunch of prerelease fixes (#321) * TASK-419 Style non-working shifts consistently (#316) * TASK-412 Bug: drawer button does not stick bottom (#325) * TASK-386 Enhance comprehensibility of error messages (follow-up) (#326) * Fix shift types that was not defined (#327) * Fix cell input (#328) * Fix onBlur when no value provided (#329) * Fix logs from shifts (#331) * Fix work norm calculation for not working shifts (#332) Co-authored-by: Bohdan <[email protected]> Co-authored-by: Paulina <[email protected]> Co-authored-by: Tomasz Pęcak <[email protected]> Co-authored-by: Maciej Bielech <[email protected]> Co-authored-by: Jan Ślażyński <[email protected]> Co-authored-by: Ehevi <[email protected]> Co-authored-by: Szymon Fugas <[email protected]>
## [1.0.2](v1.0.1...v1.0.2) (2021-03-26) ### Performance Improvements * **App:** Release v2.0.0 ([#323](#323)) ([cdc701d](cdc701d)), closes [#293](#293) [#291](#291) [#298](#298) [#299](#299) [#308](#308) [#310](#310) [#273](#273) [#264](#264) [#304](#304) [#312](#312) [#314](#314) [#309](#309) [#307](#307) [#315](#315) [#313](#313) [#318](#318) [#302](#302) [#311](#311) [#321](#321) [#316](#316) [#325](#325) [#326](#326) [#327](#327) [#328](#328) [#329](#329) [#331](#331) [#332](#332) * **App:** Release v2.0.0 ([#333](#333)) ([230ae80](230ae80)), closes [#293](#293) [#291](#291) [#298](#298) [#299](#299) [#308](#308) [#310](#310) [#273](#273) [#264](#264) [#304](#304) [#312](#312) [#314](#314) [#309](#309) [#307](#307) [#315](#315) [#313](#313) [#318](#318) [#302](#302) [#311](#311) [#321](#321) [#316](#316) [#325](#325) [#326](#326) [#327](#327) [#328](#328) [#329](#329) [#331](#331) [#332](#332)
Nie mam pomysłu na nazwę jako, że wszystkie dobre są już zajęte xd
PS, defaultowe wartości sprawdźcie.
Jeśli chodzi o testy, to powinnam czekać na refaktor, jak chyba wszystkie inne PR?
Jak mnie nie będzie na stand-upie, to mnie obudźcie. Idę spać.