From 54a3b214694774af5a6077fbd14ffeb0ffc3e06a Mon Sep 17 00:00:00 2001 From: Gregor Vostrak Date: Fri, 25 Oct 2024 16:46:55 +0200 Subject: [PATCH 1/3] move time entry mass updates to ui package and remove its dependencies --- .../Common/Project/ProjectTable.vue | 2 + .../Common/TimeEntry/TimeEntryCreateModal.vue | 5 + resources/js/Components/TimeTracker.vue | 2 + resources/js/Pages/Projects.vue | 2 + resources/js/Pages/ReportingDetailed.vue | 27 ++- resources/js/Pages/Time.vue | 29 +++- .../ui/src/Project/ProjectCreateModal.vue | 4 +- .../src/TimeEntry/TimeEntryAggregateRow.vue | 3 + .../src/TimeEntry/TimeEntryGroupedTable.vue | 3 + .../src}/TimeEntry/TimeEntryMassActionRow.vue | 35 +++- .../TimeEntry/TimeEntryMassUpdateModal.vue | 158 +++++++----------- .../ui/src/TimeEntry/TimeEntryRow.vue | 2 + .../src/TimeTracker/TimeTrackerControls.vue | 12 +- .../TimeTrackerProjectTaskDropdown.vue | 2 + resources/js/packages/ui/src/index.ts | 2 + resources/js/utils/useTimeEntries.ts | 3 +- 16 files changed, 172 insertions(+), 119 deletions(-) rename resources/js/{Components/Common => packages/ui/src}/TimeEntry/TimeEntryMassActionRow.vue (72%) rename resources/js/{Components/Common => packages/ui/src}/TimeEntry/TimeEntryMassUpdateModal.vue (63%) diff --git a/resources/js/Components/Common/Project/ProjectTable.vue b/resources/js/Components/Common/Project/ProjectTable.vue index 3470deb7..b84965e4 100644 --- a/resources/js/Components/Common/Project/ProjectTable.vue +++ b/resources/js/Components/Common/Project/ProjectTable.vue @@ -39,6 +39,7 @@ const { clients } = storeToRefs(useClientsStore()); const gridTemplate = computed(() => { return `grid-template-columns: minmax(300px, 1fr) minmax(150px, auto) minmax(140px, auto) minmax(130px, auto) ${props.showBillableRate ? 'minmax(130px, auto)' : ''} minmax(120px, auto) 80px;`; }); +import { isAllowedToPerformPremiumAction } from '@/utils/billing';