Skip to content

feat: show disk space as a status icon with hover details - #43

Merged
konradmichalik merged 1 commit into
mainfrom
feat/disk-space-status-icon
Sep 7, 2026
Merged

feat: show disk space as a status icon with hover details#43
konradmichalik merged 1 commit into
mainfrom
feat/disk-space-status-icon

Conversation

@konradmichalik

Copy link
Copy Markdown
Contributor

Summary

  • Replace the fixed top-left disk-space text bar on the feature-branch overview page with a small status icon
  • Show usage percentage, free/total space, and the low-space warning as tooltip/aria-label content on hover or keyboard focus instead of always-visible text

Changes

  • `deployer/feature/dist/index/src/Service/TemplateService.php` - `renderDiskSpace()` now renders an icon button colored by disk status (reusing `getDiskSpaceColor()`/`getDiskSpaceStatus()`), with the usage details escaped into `data-tooltip`/`aria-label`; added `getDiskIcon()` for the icon markup
  • `deployer/feature/dist/index/assets/css/style.css` - `.disk-space` repositioned as a fixed small icon instead of a full-width bar; added `.disk-space-icon` styling

Test Plan

  • Deploy the feature-branch index page and confirm the icon shows in the top-left corner
  • Hover and tab-focus the icon and confirm the tooltip shows percentage, free/total GB, and the low-space warning when applicable
  • Confirm icon color matches disk status (green/yellow/red) at different usage levels

@coderabbitai

coderabbitai Bot commented Sep 7, 2026

Copy link
Copy Markdown

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters (2)
  • deployer/feature/dist/index/assets/css/style.css is excluded by !**/dist/**
  • deployer/feature/dist/index/src/Service/TemplateService.php is excluded by !**/dist/**

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Team

Run ID: d351031b-a9ef-4ec1-9c29-92217510efe1

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@konradmichalik
konradmichalik merged commit 1a1d535 into main Sep 7, 2026
2 checks passed
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.

1 participant