-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: shift system #94
Closed
Changes from all commits
Commits
Show all changes
89 commits
Select commit
Hold shift + click to select a range
7f5cd13
feat: added the shifts extension.
Theophile-Madet becd445
Added Qodana
Theophile-Madet a736f05
Revert "Added Qodana"
Theophile-Madet c9d6606
feat: shifts schema WIP
Theophile-Madet 54fc6ba
Added the option to specify the field type when creation O2M relations.
Theophile-Madet 4950243
Added example shift data and a link in the menu.
Theophile-Madet c3a29df
Added a simple shift overview page for a user.
Theophile-Madet 2353da4
Added assignments to shift examples.
Theophile-Madet aa74a57
Updated the shift schema to represent shift templates and occurences.
Theophile-Madet ab49528
fix: run postinstall on shifts extension
jofmi ff98262
WIP shifts
Theophile-Madet 4264fe8
First draft of calculating shift occurences.
Theophile-Madet b3d6e5c
Draft for shift cards.
Theophile-Madet 00d3e2f
WIP Shift user type
Theophile-Madet ec7ec3b
WIP displaying assigments.
Theophile-Madet cb68350
Improved assignment display.
Theophile-Madet aaa061d
WIP user <-> skills
Theophile-Madet 870468f
Display skills on the shifts page.
Theophile-Madet fd01131
Fixed shift calendar.
Theophile-Madet 6033744
Typing improvements.
Theophile-Madet 5c4b18c
Added shift logs and score calculation.
Theophile-Madet 9e0f8af
Show last logs on the my shifts page.
Theophile-Madet 01a7581
WIP calendar view with FullCalendar.
Theophile-Madet dd8a867
Improved calendar display.
Theophile-Madet ea58023
First draft for a shift detail page.
Theophile-Madet 473052d
Moved the assignment list to a separate component.
Theophile-Madet 84cf3b6
Removed the license file.
Theophile-Madet f8c6f3e
Avoid "await" calls in setup scripts, instead let the calls load in t…
Theophile-Madet 44eddd6
Moved all components to a shifts/ subfolder.
Theophile-Madet 854883a
In the shift calendar, use navigateTo instead of a raw URL in order t…
Theophile-Madet ac38036
Renamed types from Collectivo* to Shifts* and added them to Collectiv…
Theophile-Madet 70bbfb4
Cleaned up shift examples.
Theophile-Madet 742c1c4
WIP show required skills on shift page.
Theophile-Madet 6ea5068
WIP show required skills on shift page.
Theophile-Madet 54002b5
Show slot names and required skills on shift page.
Theophile-Madet 24ceff5
Added assignee name to slots in shifts detail page.
Theophile-Madet 5e6bb47
Fixed missing icons after rebase from main repo.
Theophile-Madet cce62cc
Fixed assignments on my_shifts page.
Theophile-Madet 67d4048
Show assignments on occurrence cards.
Theophile-Madet 2f3982f
Improved logs display on my_shifts page.
Theophile-Madet b347fbe
Added status fields for shifts, slots and assignments. Updated fronte…
Theophile-Madet e6b1d71
WIP directus flow shift cycle start.
Theophile-Madet d2e6c4a
Added automatic removal of points when a shift cycle starts.
Theophile-Madet 424f776
First draft for assignment page.
Theophile-Madet f03a104
Added assignment editing.
Theophile-Madet 0c51967
Formatting fix.
Theophile-Madet 630186d
Moved assignment edit to a modal.
Theophile-Madet d8fa2e3
Fixed typing errors on the shift page.
Theophile-Madet c1b7136
WIP assignment creation.
Theophile-Madet ab09b88
Improvements to assignment creation.
Theophile-Madet b6a30b1
Added memberships as dependency (temporarilly, to be removed later)
Theophile-Madet 5dbecc3
Added system-uicons library for the shifts calendar.
Theophile-Madet 87ae849
Fixed assignments showing as current when the next occurrence is not …
Theophile-Madet 57443a2
Show tooltip on slot card when it's not possible to assign yourself.
Theophile-Madet b17686f
Update shift page after an assignment has been created.
Theophile-Madet f92ebcf
WIP assignment edition improvement :
Theophile-Madet ba1a653
Updated AssignmentCreateModal.vue : check if at least one occurrence …
Theophile-Madet 4feabe1
Merged AssignmentEditModal.vue and AssignmentCreateModal.vue.
Theophile-Madet a0e4ee4
Split the shifts.ts into shifts and assignments.
Theophile-Madet 218a542
WIP
Theophile-Madet 08e9489
Finished assignment creation & update fixes.
Theophile-Madet 98fe857
Merge branch 'shifts' of https://github.com/Theophile-Madet/collectiv…
jofmi f71d2c1
Merge branch 'main' into shifts
jofmi c238c9e
feat: improve ux
jofmi 84097b0
Merge branch 'main' into shifts
jofmi e1a41f3
feat: improve shift ux
jofmi 75688b0
feat: add shift description
jofmi cee386a
feat: finalize shift card
jofmi 7648dd4
feat: add absences
jofmi f9e7016
fix: translation config
jofmi 74def25
fix: absence logic
jofmi 97afd1f
feat: cycle logic based on last log
jofmi bf356ba
feat: cycle break logic
jofmi 08b2c5e
feat: improve activity feed
jofmi e554761
feat: use DB SUM for score
jofmi 9c0523f
feat: direct signup form
jofmi 56a1f0e
feat: add simple signup form
jofmi 5be4755
feat: load slots
jofmi 0c5c6c4
feat: improve signup form
jofmi 0077c2b
feat: fix date generation
jofmi 49cdf4f
fix: include starting date
jofmi 8abc6ef
fix: reload assignment modal
jofmi adc1806
fix: date and rrule mistakes
jofmi 313a285
feat: include absences
jofmi 15a0bd9
clean: testing code
jofmi 8557040
Merge remote-tracking branch 'theo/shifts' into shifts
jofmi 2825e03
fix: types
jofmi c02b2f6
fix: shifts example data
jofmi 3963a51
lint
jofmi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"editor.formatOnSave": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export default defineI18nConfig(() => ({ | ||
missingWarn: false, | ||
silentTranslationWarn: true, | ||
translationWarn: false, | ||
fallbackWarn: false, | ||
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice generalisation :) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
type types = "error" | "success" | "warn" | "info"; | ||
type colors = "red" | "green" | "yellow" | "blue"; | ||
|
||
const defaultTitles = { | ||
error: "Error", | ||
success: "Success", | ||
warn: "Warning", | ||
info: "Info", | ||
}; | ||
|
||
const defaultDescriptions = { | ||
error: "An error occurred", | ||
success: "Operation successful", | ||
warn: "", | ||
info: "", | ||
}; | ||
|
||
const defaultColors: { [index: string]: colors } = { | ||
error: "red", | ||
success: "green", | ||
warn: "yellow", | ||
info: "blue", | ||
}; | ||
|
||
const defaultIcons = { | ||
error: "i-heroicons-exclamation-triangle", | ||
success: "i-heroicons-check", | ||
warn: "i-heroicons-exclamation-triangle", | ||
info: "i-heroicons-information-circle", | ||
}; | ||
|
||
export function showCollectivoToast(options: { | ||
type?: types; | ||
title?: string; | ||
description?: any; | ||
icon?: string; | ||
color?: colors; | ||
}) { | ||
const toast = useToast(); | ||
const type = options.type ?? "info"; | ||
|
||
toast.add({ | ||
title: options.title ?? defaultTitles[type], | ||
description: options.description ?? defaultDescriptions[type], | ||
icon: options.icon ?? defaultIcons[type], | ||
color: options.color ?? defaultColors[type], | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,8 @@ export default defineNuxtConfig({ | |
public: { | ||
debug: false, | ||
collectivoUrl: process.env.COLLECTIVO_URL || "http://localhost:3000", | ||
collectivoContactEmail: | ||
process.env.COLLECTIVO_CONTACT_EMAIL || "[email protected]", | ||
authService: process.env.COLLECTIVO_AUTH_SERVICE || "keycloak", | ||
keycloakUrl: process.env.KEYCLOAK_URL || "http://keycloak:8080", | ||
keycloakRealm: process.env.KEYCLOAK_REALM || "collectivo", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Robert Martin from "Clean Code" is very, errr, assertive about removing code instead of commenting it out 😛
https://www.informit.com/articles/article.aspx?p=1334908
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 have the same opinion :)