dsh-group-status: Sidebar Collapsed Group Aggregation Badge

Preface

In the DSH sidebar, when groups are collapsed, session states are also hidden. This makes states like in progress, pending approval, and waiting for review invisible in the overall overview. The dsh-group-status plugin solves this problem by displaying aggregate badges on collapsed folder rows: a yellow dot for pending approval, a spinning icon for in progress, plus two additional icons for scheduled tasks and waiting for review, with numbers included and details visible on hover.

Core Features

The plugin provides the following capabilities:

  1. Aggregate Badge Display: When groups are collapsed, aggregate status icons (in progress, pending approval, completed, scheduled tasks, waiting for review) are displayed on folder rows.
  2. Hover Details: Hover over folder rows to view aggregate status detail lines.
  3. Cross-Plugin Aggregation: Supports cross-plugin state aggregation by consuming status summaries from dsh-later (scheduled tasks) and dsh-gitea-dispatch (waiting for review).
  4. Visual Consistency: Uses the same StateDot component as inline state colors and text for consistent visuals.
  5. i18n & Accessibility: Supports Chinese/English with role="img" and aria-label accessibility features.

Installation & Activation

Install via the DSH command-line tool:

dsh plugin --profile web add dsh-group-status

Restart DSH Web after installation to activate the plugin.

Usage

  1. View Aggregation: Collapse any group with active sessions; aggregate badges (e.g., numbers, spinning icons) will appear after the folder name.
  2. View Details: Hover over the collapsed folder row to display the aggregate status detail line.
  3. State Fallback: After expanding the group, aggregate badges disappear, and sub-rows display their own states.

Notes

  1. Upstream Maintenance: Upstream updates require manual rebase; the plugin vendors upstream source code and uses non-stable public APIs.
  2. Dependency Source: Status icons depend entirely on dsh-later / dsh-gitea-dispatch without self-polling; if these two plugins are not installed, corresponding icons will not appear.
  3. Counting Rules: The scheduled tasks icon counts “sessions with scheduled tasks in the group” rather than accumulating individual task counts.
  4. Feature Scope: Only covers collapsed sidebar state; does not modify the session state machine or inline badge criteria.

Ecosystem & References

This plugin is maintained by dsh-plugin-collection.

  • Plugin Directory: https://www.skillhub.cn/plugins/dsh-plugin-collection/dsh-group-status
  • Source Repository: https://github.com/dsh-plugin-collection/dsh-group-status
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye