Skip to content

enterprises: smoother finances pictures attaching (fixes #9966)#9975

Merged
dogi merged 10 commits into
masterfrom
9966-optional-receipt-image-1
Jun 18, 2026
Merged

enterprises: smoother finances pictures attaching (fixes #9966)#9975
dogi merged 10 commits into
masterfrom
9966-optional-receipt-image-1

Conversation

@Mutugiii

@Mutugiii Mutugiii commented Jun 5, 2026

Copy link
Copy Markdown
Member

Fixes #9966

Add optional finances & report attachments.
Limited to 2 images.

image image

@Mutugiii Mutugiii changed the title 9966 optional receipt image 1 teams: add optional report attachments (fixes #9966) Jun 5, 2026
@Mutugiii Mutugiii requested a review from Copilot June 5, 2026 19:18
@Mutugiii

Mutugiii commented Jun 5, 2026

Copy link
Copy Markdown
Member Author

@codex review

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for attaching (up to two) optional receipt images to team financial transactions and financial reports, including upload UI, display indicators/previews, and CouchDB attachment handling.

Changes:

  • Introduces a reusable file-upload field type in the generic dialogs form, backed by the existing planet-file-upload component.
  • Adds TeamsAttachmentsService to list/retain/upload receipt image attachments in CouchDB.
  • Updates Teams finances and reports UIs to upload receipt images and display receipt indicators/previews.

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/app/teams/teams-view-finances.scss Styles receipt image link icons in the transactions table.
src/app/teams/teams-view-finances.component.ts Adds receipt image upload handling when creating/updating transactions.
src/app/teams/teams-view-finances.component.html Displays receipt image links/icons per transaction row.
src/app/teams/teams-reports.scss Styles receipt image count indicator on report cards.
src/app/teams/teams-reports.component.ts Adds receipt image upload handling when creating/updating reports.
src/app/teams/teams-reports.component.html Shows receipt image count on report cards.
src/app/teams/teams-reports-detail.scss Adds layout styles for a receipt image grid in report details.
src/app/teams/teams-reports-detail.component.ts Loads receipt image attachment list for report detail display.
src/app/teams/teams-reports-detail.component.html Displays receipt image preview grid with links in report summary view.
src/app/teams/teams-attachments.service.ts New service for filtering/uploading receipt image attachments.
src/app/shared/dialogs/dialogs-form.service.ts Extends dialog field definitions to support file-upload.
src/app/shared/dialogs/dialogs-form.component.ts Wires file upload state changes into the reactive form model.
src/app/shared/dialogs/dialogs-form.component.html Renders planet-file-upload for file-upload dialog fields.
src/app/shared/couchdb.service.ts Adds a helper to fetch attachments as Blob for re-uploading retained files.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/app/teams/teams-view-finances.component.ts
Comment thread src/app/teams/teams-attachments.service.ts
Comment thread src/app/teams/teams-reports.component.html Outdated
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 14 out of 14 changed files in this pull request and generated 2 comments.

Comment thread src/app/shared/dialogs/dialogs-form.component.ts
Comment thread src/app/teams/teams-view-finances.component.html Outdated
@Mutugiii Mutugiii changed the title teams: add optional report attachments (fixes #9966) enterprises: add optional report attachments (fixes #9966) Jun 5, 2026
@dogi dogi added the priority label Jun 18, 2026
@dogi dogi changed the title enterprises: add optional report attachments (fixes #9966) enterprises: smoother report pictures attaching (fixes #9966) Jun 18, 2026
@dogi dogi changed the title enterprises: smoother report pictures attaching (fixes #9966) enterprises: smoother finances pictures attaching (fixes #9966) Jun 18, 2026
@dogi dogi merged commit 8bc5549 into master Jun 18, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Optional Receipt Images to Financial Transactions

3 participants