#23 - collective editing vacation days #26

Merged
Baakoma merged 11 commits from #23-collective-editing-vacation-days into main 2022-01-24 11:28:00 +01:00
Baakoma commented 2022-01-24 10:31:28 +01:00 (Migrated from github.com)

It should close #23
Also I created something like global "year period scope". You can select specific year period if you want to see data for 2021, 2022, etc. The choice is stored in the session.

image

It should close #23 Also I created something like global "year period scope". You can select specific year period if you want to see data for 2021, 2022, etc. The choice is stored in the session. ![image](https://user-images.githubusercontent.com/16743001/150755886-1154ab2d-223e-497e-bc7d-60e29792aa70.png)
krzysztofrewak (Migrated from github.com) requested changes 2022-01-24 10:49:42 +01:00
krzysztofrewak (Migrated from github.com) commented 2022-01-24 10:46:45 +01:00

Could you inject session via DI?

Could you inject session via DI?
@@ -6,15 +6,15 @@ namespace Toby\Providers;
krzysztofrewak (Migrated from github.com) commented 2022-01-24 10:49:23 +01:00

TBH I would move these to some separate ObserverServiceProvider.

TBH I would move these to some separate `ObserverServiceProvider`.
krzysztofrewak (Migrated from github.com) commented 2022-01-24 10:48:45 +01:00

Do we need that field? Nullable days indicate the same, I think.

Do we need that field? Nullable `days` indicate the same, I think.
@@ -0,0 +163,4 @@
items: data.items.map(item => ({
id: item.id,
days: item.hasVacation ? item.days : null,
})),
krzysztofrewak (Migrated from github.com) commented 2022-01-24 10:46:20 +01:00
                    })).sort((a, b) => a.name.toLowerCase().localeCompare(b.name.toLowerCase())),
```suggestion })).sort((a, b) => a.name.toLowerCase().localeCompare(b.name.toLowerCase())), ```
krzysztofrewak (Migrated from github.com) commented 2022-01-24 10:47:43 +01:00

Or maybe just soirt it on backend?

Or maybe just soirt it on backend?
EwelinaLasowy (Migrated from github.com) reviewed 2022-01-24 11:09:59 +01:00
@@ -0,0 +163,4 @@
items: data.items.map(item => ({
id: item.id,
days: item.hasVacation ? item.days : null,
})),
EwelinaLasowy (Migrated from github.com) commented 2022-01-24 11:09:59 +01:00

I've created issue for that - link.

I've created issue for that - [link]( https://github.com/blumilksoftware/toby/issues/27).
krzysztofrewak (Migrated from github.com) approved these changes 2022-01-24 11:25:30 +01:00
EwelinaLasowy (Migrated from github.com) approved these changes 2022-01-24 11:27:40 +01:00
Sign in to join this conversation.