From 9bb4f7a568f19a3a6bed8ef427cc14f7887bf64e Mon Sep 17 00:00:00 2001 From: Dobromir Popov Date: Thu, 29 Feb 2024 11:05:24 +0200 Subject: [PATCH] misc --- _doc/ToDo.md | 23 +++++++++++++++- components/calendar/ShiftComponent.tsx | 4 +++ components/reports/FeedbackForm.js | 38 +++++++++++++------------- prisma/schema.prisma | 1 + 4 files changed, 46 insertions(+), 20 deletions(-) diff --git a/_doc/ToDo.md b/_doc/ToDo.md index 5712e6d..ae6c5fd 100644 --- a/_doc/ToDo.md +++ b/_doc/ToDo.md @@ -165,4 +165,25 @@ fix availability repeat checks -- - да оправя дневните разположения -- да се взимат в предвид повтарящите се разопложения \ No newline at end of file +- да се взимат в предвид повтарящите се разопложения + +-------------------------------------------------------------------- + +График - само седмица + Администратор + вестители - всички - мъж + + + -- форма за обратна връзка + -- моя график + + + -- add publish functionality to shifts + + # caendar/admin + fix the problem where availability info is not present on calendar - can't destinguish between no availability(not active/imported) and changed availability + second add/delete fails + # my calenda + sometimes delete from mycalendar fails + saturday shifts start at 12:00 / dymamic + diff --git a/components/calendar/ShiftComponent.tsx b/components/calendar/ShiftComponent.tsx index be04647..2638fac 100644 --- a/components/calendar/ShiftComponent.tsx +++ b/components/calendar/ShiftComponent.tsx @@ -85,6 +85,8 @@ function ShiftComponent({ shift, onShiftSelect, isSelected, onPublisherSelect, a // if (onPublisherSelect) { // onPublisherSelect(publisher); // } + + common.copyToClipboard(null, publisher.firstName + ' ' + publisher.lastName); } const removeAssignment = async (id) => { @@ -124,6 +126,8 @@ function ShiftComponent({ shift, onShiftSelect, isSelected, onPublisherSelect, a + + return (
diff --git a/components/reports/FeedbackForm.js b/components/reports/FeedbackForm.js index 325778b..ff2e8c5 100644 --- a/components/reports/FeedbackForm.js +++ b/components/reports/FeedbackForm.js @@ -108,28 +108,28 @@ export default function FeedbackForm({ publisherId, onDone }) {
-

Отзив

+

Намерих технически проблем:

- {locations && ( - - )} + + +
{/* Increased bottom margin */} diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 89b22ba..04f1bc5 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -106,6 +106,7 @@ model Publisher { familyHeadId String? // Optional familyHeadId for each family member familyHead Publisher? @relation("FamilyMember", fields: [familyHeadId], references: [id]) familyMembers Publisher[] @relation("FamilyMember") + //alwaysAsFamily Boolean? @default(false) // New field to indicate if the publisher always wants to be assigned with the family type PublisherType @default(Publisher) town String? comments String?