Skip to content

Add a "collapse thread" comment action - #1388

Open
codeofdusk wants to merge 4 commits into
QuantumBadger:masterfrom
codeofdusk:collapse-thread-action
Open

codeofdusk wants to merge 4 commits into
QuantumBadger:masterfrom
codeofdusk:collapse-thread-action

Conversation

@codeofdusk

@codeofdusk codeofdusk commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Especially in megathreads or other large comment threads, it's often helpful (especially as a screen reader user) to collapse the root of a deep comment tree and move onto the next in one step. Collapsing the level 1 when focused, say, on the level 7 comment of a deep tree functions like a bookmark or tracker of "what I've seen so far". Additionally, the next/previous parent comment toolbar buttons aren't really functional from an accessibility perspective, since you need to change accessibility focus to use them and you sometimes land in unexpected places. This PR:

  • Adds a "collapse thread" action (accessibility/menu/fling), replacing the next/previous parent accessibility actions (the toolbar buttons remain unmodified for sighted users);
  • Hides the previous/next parent buttons from the accessibility tree;
  • Makes the collapse/expand action labelling state-aware.

The new action is much more ergonomic from a TalkBack perspective!

@codeofdusk

Copy link
Copy Markdown
Contributor Author

CC @QuantumBadger.

@albert-tomanek

Copy link
Copy Markdown

Did you manage to access Reddit from your locally compiled app? I'm writing a PR too but Reddit isn;t letting me make a client_id and the one that the official RedReader uses is not public

@codeofdusk

Copy link
Copy Markdown
Contributor Author

@albert-tomanek I have a local branch for testing that injects fake content

@codeofdusk
codeofdusk force-pushed the collapse-thread-action branch from cc0242d to 9d25450 Compare November 13, 2026 04:29
dwicao added a commit to dwicao/RedReader that referenced this pull request Nov 14, 2026
Adds a Collapse Thread action to the comment long-press menu, the comment
tap/long-press actions and fling actions (Settings > Behaviour), which
collapses the outermost ancestor of the comment instead of just one
level. Existing comment context action menu keeps its items, gaining
Collapse Thread for upgraded installs. Self post tap actions now show
Collapse Post.
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