Collapse a long attachment list

Open
#653 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
74/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
javascript, react
Domain
frontend

Research direction

Start with frontend/src/components/AttachmentStrip.jsx, then inspect how the reading pane and conversation cards render it. Identify the attachment state and responsive styles before changing the row threshold, toggle, and download action. Done means long lists collapse by default, “Show all (N)” expands them, risky files remain visible or called out, and desktop and phone layouts both work.

Written by the indexing model from the issue text.

Description

enhancement

Split out of #640, whose image classification part is fixed in 9fbab03.

An email with many attachments fills the reading pane with chips before the body starts. The attachment strip (frontend/src/components/AttachmentStrip.jsx, shared by the reading pane and conversation cards since #635) should collapse a long list:

  • A toggle on the "N attachments" row, and collapsed by default above a threshold (for example more than two rows of chips), with "Show all (N)" to expand.
  • "Download all" stays reachable while the list is collapsed.
  • Files flagged as risky (blocked or warned) stay visible or are called out, so a dangerous file isn't hidden behind the toggle.
  • Works in both the reading pane and conversation cards, on desktop and phone widths.
Dominant language
JavaScript
Stars
518
Forks
50
Avg merge
4d 45m
Merged PRs (30d)
43

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from maathimself/mailflow

All issues in maathimself/mailflow

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.