Skip to content

feat(Alert, ConnectionStatus): add condensed view support#151

Merged
garrity-miepub merged 5 commits intomainfrom
feature/condensed-view-status-indicators
Mar 28, 2026
Merged

feat(Alert, ConnectionStatus): add condensed view support#151
garrity-miepub merged 5 commits intomainfrom
feature/condensed-view-status-indicators

Conversation

@garrity-miepub
Copy link
Copy Markdown
Contributor

@garrity-miepub garrity-miepub commented Mar 27, 2026

Condensed View: Status Indicators & Badges

Adds data-slot attributes and condensed CSS rules for:

Alert

  • data-slot on alert container, title, description, dismiss button
  • Condensed: reduced padding, smaller icon positioning, tighter text
  • Preserves pr-10 override for dismissible alerts

ConnectionStatus

  • data-slot on all 4 sub-components (overlay, update overlay, badge, bar)
  • Condensed: smaller overlay cards, compact badges, thinner bar
  • Fixed: logoUrl default changed from broken path to undefined; appName default changed to 'App'

ServiceBadge

  • data-slot on ServiceBadge (span/a/button paths), remove button, ServiceBadgeGroup, ServiceTagCloudBadges, SelectedServicesBadges, DOTBadge
  • Condensed: tighter padding, smaller text, square corners, reduced group gaps

All rules in src/styles/condensed-view.css using body.condensed [data-slot='x'] pattern with !important (required for Tailwind 4 @layer utilities specificity).

Add data-slot attributes to Alert, AlertTitle, AlertDescription, and
dismiss button. Add condensed CSS rules for tighter padding, smaller
text, repositioned icon, and compact dismiss button.
Copilot AI review requested due to automatic review settings March 27, 2026 23:49
@garrity-miepub garrity-miepub marked this pull request as ready for review March 27, 2026 23:49
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Mar 27, 2026

Deploying ui with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3faebb1
Status: ✅  Deploy successful!
Preview URL: https://c67b2f68.ui-6d0.pages.dev
Branch Preview URL: https://feature-condensed-view-statu.ui-6d0.pages.dev

View logs

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds condensed-density support for the Alert component by introducing data-slot styling hooks and condensed CSS overrides, aligning Alert with the repo’s existing condensed-mode approach.

Changes:

  • Add data-slot attributes to Alert, AlertTitle, AlertDescription, and the dismiss button.
  • Add condensed-mode CSS rules for Alert spacing/typography/icon/dismiss button sizing and positioning.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
src/styles/condensed-view.css Introduces condensed-mode overrides targeting new Alert data-slot hooks.
src/components/Alert/Alert.tsx Adds data-slot attributes to enable condensed-mode styling.
Comments suppressed due to low confidence (1)

src/components/Alert/Alert.tsx:82

  • data-slot="alert" is set before {...props} is spread, so a consumer-provided data-slot in props will override it and break condensed-mode styling hooks that target [data-slot='alert']. Consider spreading {...props} earlier (or explicitly omitting/overriding data-slot from props) to keep the slot stable.
      <div
        ref={ref}
        role="alert"
        data-slot="alert"
        className={cn(
          alertVariants({ variant }),
          React.isValidElement(icon) && 'pl-11',
          dismissible && 'pr-10',
          className
        )}
        {...props}
      >

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

…efault

Add data-slot attributes to ConnectionStatusOverlay, UpdateAvailableOverlay,
ConnectionStatusBadge, and ConnectionStatusBar. Add condensed CSS rules for
compact cards, tighter badge pill, and thinner status bar.

Fix UpdateAvailableOverlay defaulting logoUrl to a non-existent asset path
which caused 404s in Storybook — now defaults to undefined so the inline
SVG fallback renders instead.
@garrity-miepub garrity-miepub force-pushed the feature/condensed-view-status-indicators branch from 2e0a97c to 8311f1b Compare March 28, 2026 00:21
Copilot AI review requested due to automatic review settings March 28, 2026 00:21
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- Use p + p selectors for margin-top in overlay content paragraphs
- Add svg.h-12 selector for UpdateAvailableOverlay SVG fallback icon
- Change appName default from 'BlueHive' to 'App' (generic library)
@garrity-miepub garrity-miepub changed the title feat(Alert): add condensed view support feat(Alert, ConnectionStatus): add condensed view support Mar 28, 2026
Add data-slot attributes to ServiceBadge (all 3 render paths), remove
button, ServiceBadgeGroup, ServiceTagCloudBadges, SelectedServicesBadges,
and DOTBadge. Add condensed CSS rules for tighter padding, smaller text,
square corners, and reduced gap in group containers.
Copilot AI review requested due to automatic review settings March 28, 2026 00:45
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@garrity-miepub garrity-miepub merged commit 319bb85 into main Mar 28, 2026
14 checks passed
@garrity-miepub garrity-miepub deleted the feature/condensed-view-status-indicators branch March 28, 2026 00:58
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.

2 participants