Monorepo for Tangled tangled.org

web: rework PR discussion filters #4683

Open boltless.me
targeting master from sl/web/pr-comments
Open opened by and assigned to boltless.me
targeting master from sl/web/pr-comments

Reworks how the PR discussion thread filters review comments.

There are two independent filters:

  1. show general (unpinned) comments
  2. show comments pinned to revisions outside the selected range

Silently deciding when to show which is bad and unintuitive, so give filter menu on discussion header with clear filter options.

Defaults based on view:

View General comments Pins outside the selection
Diff, full range shown hidden
Diff, narrowed hidden hidden
Interdiff, all hidden hidden
Interdiff, one change hidden hidden

Both filters reset when the selection changes. A filter button in the discussion header lets user override them, and it's highlighted while either one is on.

Also give clearer highlight for unpinned comments.

Preview:

Image
Commits 0