From 505fdf0e62fbd281f019397e7bd967a3315a98f9 Mon Sep 17 00:00:00 2001 From: Nic D Date: Wed, 11 Feb 2026 07:52:07 -0500 Subject: [PATCH 1/4] feat(expense): finalize implementation of S3 in expenses Now able to upload and then view images attached to expenses. Will need to check if further changes need to be made to updating expenses. Minor structural changes here and there. --- .../expense-dialog-attachment-viewer.vue | 45 +++++++++++++++++++ .../components/expense-dialog-list-item.vue | 7 +++ .../timesheets/components/expense-dialog.vue | 3 ++ .../mobile/expense-dialog-form-mobile.vue | 9 +++- .../mobile/shift-list-day-row-mobile.vue | 25 +++++++---- .../timesheets/composables/use-expense-api.ts | 9 +++- .../timesheets/models/expense.models.ts | 5 +++ .../timesheets/services/expense-service.ts | 15 ++++--- src/stores/expense-store.ts | 43 +++++++++++++++--- 9 files changed, 137 insertions(+), 24 deletions(-) create mode 100644 src/modules/timesheets/components/expense-dialog-attachment-viewer.vue diff --git a/src/modules/timesheets/components/expense-dialog-attachment-viewer.vue b/src/modules/timesheets/components/expense-dialog-attachment-viewer.vue new file mode 100644 index 0000000..db7d2f1 --- /dev/null +++ b/src/modules/timesheets/components/expense-dialog-attachment-viewer.vue @@ -0,0 +1,45 @@ + + + \ No newline at end of file diff --git a/src/modules/timesheets/components/expense-dialog-list-item.vue b/src/modules/timesheets/components/expense-dialog-list-item.vue index 0d74415..ba87962 100644 --- a/src/modules/timesheets/components/expense-dialog-list-item.vue +++ b/src/modules/timesheets/components/expense-dialog-list-item.vue @@ -67,6 +67,12 @@ }); } } + + const onClickAttachment = async () => { + expenses_store.isShowingAttachmentDialog = true; + await expenses_store.getAttachmentURL(expense.value.attachment_key); + console.log('image url: ', expenses_store.attachmentURL); + }