From 9595e30910d6183aecff22d14fb0425076261209 Mon Sep 17 00:00:00 2001 From: Alexander Trost Date: Tue, 3 Dec 2024 23:24:19 +0100 Subject: [PATCH] feat: improve colleague info page and set jobs user props logic Signed-off-by: Alexander Trost --- app/components/documents/DocumentList.vue | 429 +++++---- app/components/documents/DocumentView.vue | 10 +- .../jobs/colleagues/ColleagueInfoPopover.vue | 9 +- .../jobs/colleagues/ColleagueName.vue | 16 + .../jobs/colleagues/ColleagueSetLabels.vue | 51 +- .../jobs/colleagues/ColleagueSetName.vue | 130 +++ .../jobs/colleagues/ColleagueSetNote.vue | 122 +++ .../jobs/colleagues/ColleaguesList.vue | 238 +++-- .../colleagues/info/ColleagueActivityFeed.vue | 6 +- .../jobs/colleagues/info/ColleagueInfo.vue | 3 +- .../conduct/ConductCreateOrUpdateModal.vue | 1 + app/components/jobs/conduct/ConductList.vue | 1 + .../jobs/timeclock/TimeclockList.vue | 1 + app/components/livemap/MapUserMarker.vue | 5 +- .../mailer/ThreadCreateOrUpdateModal.vue | 67 +- app/composables/grpcws/errors.ts | 8 +- app/pages/jobs/colleagues/[id]/info.vue | 146 +--- app/store/completor.ts | 1 + app/store/mailer.ts | 57 +- .../proto/resources/centrum/dispatches.pb.go | 243 +++--- gen/go/proto/resources/centrum/general.go | 4 +- gen/go/proto/resources/centrum/general.pb.go | 72 +- gen/go/proto/resources/centrum/units.pb.go | 298 +++---- gen/go/proto/resources/jobs/colleagues.pb.go | 357 +++++--- .../resources/jobs/colleagues.pb.validate.go | 181 ++++ gen/go/proto/resources/livemap/livemap.pb.go | 120 +-- gen/go/proto/resources/users/users.go | 17 + gen/go/proto/services/centrum/centrum.pb.go | 824 +++++++++--------- .../centrum/centrummanager/dispatches.go | 6 +- .../services/centrum/centrummanager/loader.go | 18 +- .../services/centrum/centrummanager/tables.go | 1 + .../services/centrum/centrummanager/units.go | 16 + .../services/centrum/centrummanager/users.go | 23 +- .../centrum/centrumstate/disponents.go | 6 +- gen/go/proto/services/centrum/dispatches.go | 8 + gen/go/proto/services/centrum/units.go | 17 +- gen/go/proto/services/jobs/colleagues.go | 241 ++++- gen/go/proto/services/jobs/conduct.go | 2 + gen/go/proto/services/jobs/errors/errors.go | 1 + gen/go/proto/services/jobs/jobs.pb.go | 368 ++++---- .../proto/services/jobs/jobs.pb.validate.go | 30 + gen/go/proto/services/jobs/jobs_grpc.pb.go | 8 +- gen/go/proto/services/jobs/service_perms.go | 4 +- gen/go/proto/services/jobs/timeclock.go | 8 + gen/grpc-api.md | 44 +- gen/ts/resources/centrum/dispatches.ts | 16 +- gen/ts/resources/centrum/general.ts | 16 +- gen/ts/resources/centrum/units.ts | 44 +- gen/ts/resources/jobs/colleagues.ts | 116 ++- gen/ts/resources/livemap/livemap.ts | 17 +- gen/ts/services/centrum/centrum.ts | 16 +- gen/ts/services/jobs/jobs.client.ts | 8 +- gen/ts/services/jobs/jobs.ts | 46 +- i18n/locales/en/en.json | 7 +- pkg/discord/commands/absent.go | 7 +- pkg/tracker/manager.go | 8 + pkg/tracker/tracker.go | 7 +- proto/resources/centrum/dispatches.proto | 3 +- proto/resources/centrum/general.proto | 4 +- proto/resources/centrum/units.proto | 8 +- proto/resources/jobs/colleagues.proto | 11 +- proto/resources/livemap/livemap.proto | 3 +- proto/services/centrum/centrum.proto | 4 +- proto/services/jobs/jobs.proto | 7 +- .../fivenet/model/fivenet_jobs_user_props.go | 2 + .../fivenet/table/fivenet_jobs_user_props.go | 10 +- .../1733141938_documents_workflow.up.sql | 2 +- .../1733257965_jobs_user_props_name.down.sql | 1 + .../1733257965_jobs_user_props_name.up.sql | 6 + 69 files changed, 2884 insertions(+), 1703 deletions(-) create mode 100644 app/components/jobs/colleagues/ColleagueName.vue create mode 100644 app/components/jobs/colleagues/ColleagueSetName.vue create mode 100644 app/components/jobs/colleagues/ColleagueSetNote.vue create mode 100644 query/migrations/1733257965_jobs_user_props_name.down.sql create mode 100644 query/migrations/1733257965_jobs_user_props_name.up.sql diff --git a/app/components/documents/DocumentList.vue b/app/components/documents/DocumentList.vue index 5db8f0a57..8b6e48bc4 100644 --- a/app/components/documents/DocumentList.vue +++ b/app/components/documents/DocumentList.vue @@ -127,236 +127,223 @@ defineShortcuts({