mirror of
1
Fork 0
forgejo/web_src/css
Litchi Pi dc7f5d6b84 feat(ui): create a comment aggregator to reduce noise in issues (#6523)
Closes: https://codeberg.org/forgejo/forgejo/issues/6042
Continuation of: https://codeberg.org/forgejo/forgejo/pulls/6284
Replaces: https://codeberg.org/forgejo/forgejo/pulls/6285
Context: https://codeberg.org/forgejo/forgejo/pulls/6284#issuecomment-2518599

Create a new type of comment: `CommentTypeAggregator`

Replaces the grouping of labels and review request in a single place: the comment aggregator

The whole list of comments is "scanned", if they can get aggregated (diff of time < 60secs, same poster, open / close issue, add / del labels, add /del review req), they are added to the aggregator.
Once needed, the list of all the aggregated comments are replaced with a single aggregated comment containing all the data required.

In templates, have a specific HTML rendering part for the comment aggregator, reuse the same rendering as with the other types of comments.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6523
Reviewed-by: 0ko <0ko@noreply.codeberg.org>
Reviewed-by: Otto <otto@codeberg.org>
Co-authored-by: Litchi Pi <litchi.pi@proton.me>
Co-committed-by: Litchi Pi <litchi.pi@proton.me>
2025-03-05 17:24:51 +00:00
..
chroma [Port] gitea#30014: Various code view improvements 2024-03-28 16:43:14 +01:00
codemirror Remove EasyMDE focus outline on text (#25328) 2023-06-18 04:10:07 +00:00
editor Remove tab key handling in markdown editor, add toolbar buttons instead, re #4072 #4142 (#4263) 2024-06-30 13:03:32 +00:00
features fix(ui): prevent overflow of branch selector in commit graph 2025-01-19 21:50:12 +01:00
markup Fix margin above headline in rendered org-mode (#4076) 2024-06-11 03:34:21 +00:00
modules Make switch larger on touchscreen devices (#6546) 2025-01-13 17:28:36 +00:00
repo Fix minor misalignment (#6541) 2025-01-13 08:27:42 +00:00
shared Forbid deprecated `break-word` in CSS (#30934) 2024-05-12 20:03:10 +02:00
standalone Add toasts to UI (#25449) 2023-06-27 02:45:24 +00:00
themes ui: update styling of comment headers and role labels (#6816) 2025-02-07 01:07:16 +00:00
actions.css Add support for workflow_dispatch (#3334) 2024-06-28 05:17:11 +00:00
admin.css User details page (#26713) 2023-08-31 11:21:18 +02:00
base.css fix(ui): force all repo tab buttons to be the same height 2025-03-05 04:01:02 +00:00
dashboard.css feat(ui): welcome screen for user dashboard (#7030) 2025-02-23 08:41:31 +00:00
explore.css [Port] gitea#29982 Introduce `.secondary-nav` and handle `.page-content` spacing universally 2024-03-28 16:43:09 +01:00
font_i18n.css Fix `@font-face` overrides (#24855) 2023-05-24 01:48:51 +00:00
form.css Rework user profile settings 2024-12-30 16:42:58 +01:00
helpers.css Merge pull request 'Replace `gt-word-break` with `tw-break-anywhere`' (#4102) from 0ko/forgejo:ui-replace-gt-word-break into forgejo 2024-06-11 10:39:03 +00:00
home.css [BRANDING] Add Forgejo light, dark, and auto themes 2024-02-05 16:02:13 +01:00
index.css ui: switch redesign (#6459) 2025-01-05 18:46:47 +00:00
install.css UI improvements to optional sections in installation page (#4062) 2024-06-07 17:57:54 +00:00
org.css Remove unneccessary uses of `word-break: break-all` (#31637) 2024-07-22 15:50:57 +02:00
repo.css feat(ui): create a comment aggregator to reduce noise in issues (#6523) 2025-03-05 17:24:51 +00:00
review.css fix(ui): put buttons in a single row on mobile 2024-11-25 18:43:09 +05:00
user.css Rework user profile settings 2024-12-30 16:42:58 +01:00