Skip to content

Commit

Permalink
Group view: only cluster by leading tags
Browse files Browse the repository at this point in the history
  • Loading branch information
edemaine committed Nov 21, 2023
1 parent c5b370a commit f4c6e09
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ To see every change with descriptions aimed at developers, see
As a continuously updated web app, Coauthor uses dates
instead of version numbers.

## 2023-11-21

* Only cluster by leading tags in the sort order, so if you click to sort by
e.g. Updated then there's no longer awkward clustering by repeated tags.

## 2023-11-17

* Fix scrolling to a message when clicking on it in table of contents
Expand Down
5 changes: 3 additions & 2 deletions client/group.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,9 @@ export Group = React.memo ({group, groupData}) ->
for sort in sortBy
if sort.key.startsWith 'tag.'
clusterBy.push sort.key[4..]
#else
# primarySort ?= sort
else
break
#primarySort ?= sort
clusterBy = null unless clusterBy.length
clusterBy
#{clusterBy, primarySort}
Expand Down

0 comments on commit f4c6e09

Please sign in to comment.