Skip to content

fix(web): give a decline with files the typed words as its reason - #190

Closed
TheGreatAxios wants to merge 1 commit into
mainfrom
cl-12150-send-a-decline-that-includes-a-file-as-the-persons-feedback
Closed

TheGreatAxios wants to merge 1 commit into
mainfrom
cl-12150-send-a-decline-that-includes-a-file-as-the-persons-feedback

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

When an approval card is open and the person sends text with files, the decline now carries the typed words as its reason and the files follow on their own. Before, it declined with no reason and sent the text with the files, so the coordinator was told the person left no feedback. A send with no words keeps the bare decline, and a send with no card open is unchanged.

Fixes CL-12150.

Verification

A throwaway check of sendFiles wiring through deliverWithOpenApproval, deleted afterwards:

Card open, send Before After
Text plus file decline with no reason, then files with the text decline with the text as reason, then files with no text
File only bare decline, then files unchanged
No card open files with text unchanged

bun run lint, format:check, typecheck and test (290 pass) pass.

@linear-code

linear-code Bot commented Nov 5, 2026

Copy link
Copy Markdown

CL-12150

Comment on lines +1120 to +1122
decline: async (approvalId: string) =>
(await deliverMail(text, true, declineWith(approvalId))) &&
deliverFiles(""),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P3 · Removing a file during the decline does not stop it from uploading

Files are now uploaded only after the decline request finishes. Until then the attachment chips stay on screen, and their remove buttons do not appear to be disabled while sending. deliverFiles was created when the send started, so it uploads the file list from that moment. A file the person removes during the decline is still uploaded.

Open card, type text, attach two files, press send, then remove one file before the decline returns. Both files are uploaded.

Resolve this comment. Triage will not finish while it is open.

A send with files while an approval card was open declined it with no
reason and sent the words with the files, so the coordinator was told the
person left no feedback. The words now go as the decline's reason and the
files follow on their own; a send with no words keeps the bare decline.
@TheGreatAxios
TheGreatAxios force-pushed the cl-12150-send-a-decline-that-includes-a-file-as-the-persons-feedback branch from 4f42353 to a4fcb37 Compare November 5, 2026 02:39
@TheGreatAxios TheGreatAxios changed the title fix(web): send a decline with files with the typed words as its reason fix(web): give a decline with files the typed words as its reason Nov 5, 2026
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.

1 participant