Skip to content

docs: generalize upload file event descriptions#11619

Merged
web-padawan merged 1 commit intomainfrom
docs/generalize-upload-file-event-descriptions
Apr 29, 2026
Merged

docs: generalize upload file event descriptions#11619
web-padawan merged 1 commit intomainfrom
docs/generalize-upload-file-event-descriptions

Conversation

@web-padawan
Copy link
Copy Markdown
Member

Summary

Follow-up to #11604, addressing this review comment.

The file-abort, file-retry, and file-start events on <vaadin-upload-file> are listened to by both <vaadin-upload> and <vaadin-upload-file-list> (which forwards the call to its linked UploadManager). The previous descriptions only mentioned <vaadin-upload>, which is incomplete.

This PR generalizes the descriptions to focus on the request intent rather than naming a specific listener. For example:

  • Before: Fired when the abort button is pressed. Listened by vaadin-upload, which aborts the upload in progress and removes the file from the list.
  • After: Fired when the abort button is pressed to request aborting the upload of this file.

All four documentation surfaces are updated in lockstep:

  • @fires (one-line class-level) in vaadin-upload-file.js
  • @event (multi-line) JSDoc blocks in vaadin-upload-file.js
  • @fires in vaadin-upload-file.d.ts
  • Short UploadFile{Retry,Start,Abort}Event type alias descriptions in vaadin-upload-file.d.ts

Test plan

  • yarn lint and yarn lint:types pass
  • CEM output for <vaadin-upload-file> shows the generalized descriptions for file-abort, file-retry, file-start

🤖 Generated with Claude Code

The `file-abort`, `file-retry`, and `file-start` events on
`<vaadin-upload-file>` are listened to by both `<vaadin-upload>` and
`<vaadin-upload-file-list>` (which forwards to its linked `UploadManager`).
The previous descriptions only mentioned `<vaadin-upload>`, which is
incomplete.

Generalize the descriptions to focus on the request intent rather than
naming a specific listener, e.g. "Fired when the abort button is pressed
to request aborting the upload of this file." Update both `@fires` (one-line
class-level) and `@event` (multi-line) JSDoc annotations in `.js` and
`.d.ts`, plus the short `UploadFile*Event` type alias descriptions in `.d.ts`,
so all four documentation surfaces stay consistent.

Follow-up to #11604, addressing
#11604 (comment).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@sonarqubecloud
Copy link
Copy Markdown

@web-padawan web-padawan merged commit d1cc912 into main Apr 29, 2026
10 checks passed
@web-padawan web-padawan deleted the docs/generalize-upload-file-event-descriptions branch April 29, 2026 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants