Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,5 @@ src/scaffolding.config
.claude/skills/impeccable/
.claude/agents/impeccable-*.md
.claude/settings.local.json
# Impeccable: regenerable cache of docs/DESIGN.md; docs/DESIGN.md is the source
.impeccable/design.json
204 changes: 204 additions & 0 deletions docs/DESIGN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,204 @@
---
name: ServicePulse
description: Operations console for NServiceBus systems. Problems first, calm otherwise.
colors:
brand: "#00a3c4"
canvas: "#f2f6f7"
surface: "#ffffff"
danger: "#ce4844"
trial: "#b22222"
chrome: "#1a1a1a"
chrome-ink: "#b4bcbd"
chrome-ink-muted: "#8a9496"
chrome-ink-active: "#ffffff"
chrome-hover: "#262a2b"
chrome-active: "#2f3537"
chrome-divider: "#2c3132"
typography:
body:
fontFamily: "Helvetica Neue, Helvetica, Arial, sans-serif"
fontSize: "14px"
fontWeight: 400
lineHeight: 1.43
nav-item:
fontFamily: "Helvetica Neue, Helvetica, Arial, sans-serif"
fontSize: "15px"
fontWeight: 400
lineHeight: 1.3
nav-item-active:
fontFamily: "Helvetica Neue, Helvetica, Arial, sans-serif"
fontSize: "15px"
fontWeight: 600
lineHeight: 1.3
nav-group-label:
fontFamily: "Helvetica Neue, Helvetica, Arial, sans-serif"
fontSize: "12px"
fontWeight: 700
lineHeight: 1.4
letterSpacing: "0.08em"
page-title:
fontFamily: "Helvetica Neue, Helvetica, Arial, sans-serif"
fontSize: "30px"
fontWeight: 700
lineHeight: 1.2
rounded:
sm: "6px"
spacing:
xs: "4px"
sm: "8px"
md: "12px"
lg: "20px"
sidebar: "248px"
sidebar-collapsed: "64px"
components:
sidebar:
backgroundColor: "{colors.chrome}"
textColor: "{colors.chrome-ink}"
width: "{spacing.sidebar}"
sidebar-item:
textColor: "{colors.chrome-ink}"
typography: "{typography.nav-item}"
rounded: "{rounded.sm}"
padding: "8px 12px"
height: "40px"
sidebar-item-hover:
backgroundColor: "{colors.chrome-hover}"
textColor: "{colors.chrome-ink-active}"
sidebar-item-active:
backgroundColor: "{colors.chrome-active}"
textColor: "{colors.chrome-ink-active}"
typography: "{typography.nav-item-active}"
sidebar-group-label:
textColor: "{colors.chrome-ink-muted}"
typography: "{typography.nav-group-label}"
padding: "0 12px"
count-badge:
backgroundColor: "{colors.danger}"
textColor: "{colors.surface}"
trial-license-bar:
backgroundColor: "{colors.trial}"
textColor: "{colors.surface}"
padding: "6px 16px"
---

# Design System: ServicePulse

This document describes the ServicePulse design system. The values above are mirrored as CSS custom properties in `src/Frontend/src/assets/tokens.css` (`colors.chrome` is `--sp-chrome`, and so on); change both in the same pull request. It is written to be read by people and by any tool, and does not depend on a particular one.

## Overview

ServicePulse is an operations console. People open it mostly when something is wrong in production, or while developing to understand how their system behaves ([product](PRODUCT.md)). The design follows from that:

- **Problems first.** What is broken and needs action is visible before anything else: counts and warnings sit next to the area they belong to, in the navigation itself.
- **Calm when healthy.** A healthy system shows no decoration: no "all good" banners, no colour without meaning.
- **The existing look is kept.** Dark application chrome, a light canvas for content, the teal brand mark. Changes improve structure, legibility and accessibility rather than restyle.

**Key characteristics:**

- Dark left sidebar holds all navigation; content sits on a light canvas.
- Colour carries state (danger, warning, trial), never decoration.
- One typeface family, sized for dense, scannable lists.

## Colors

A restrained palette: neutral chrome and canvas, the brand teal, and state colours.

### Primary

- **Brand teal** (`#00a3c4`): the ServicePulse mark, the icon of the active navigation item, and the "Updates available" link in the sidebar. On the dark chrome it reaches 5.8:1.

### Neutral

- **Chrome** (`#1a1a1a`): sidebar background.
- **Chrome ink** (`#b4bcbd`): sidebar item text, 9.0:1 on chrome.
- **Chrome ink, muted** (`#8a9496`): sidebar group labels, 5.6:1 on chrome.
- **Chrome hover** (`#262a2b`) and **chrome active** (`#2f3537`): item backgrounds for hover and for the current area; active text is white (12.5:1).
- **Chrome divider** (`#2c3132`): separates the sidebar's bottom items.
- **Canvas** (`#f2f6f7`): page background behind content. **Surface** (`#ffffff`): panels and lists.

### State

- **Danger** (`#ce4844`): count badges for things that need action (failed messages, failing custom checks, unhealthy heartbeats).
- **Trial** (`#b22222`): the trial-license bar, white text at 6.7:1.

### Named rules

**The Meaning Rule.** A colour other than the neutrals always means a state or the current location. Status is never shown by colour alone: a count, a word or an icon carries it too.

**The Contrast Rule.** Text meets WCAG 2.2 AA: 4.5:1 for normal text, 3:1 for large text and for icons that carry meaning.

## Typography

**Body font:** Helvetica Neue (with Helvetica, Arial, sans-serif).

**Character:** neutral and compact; the content (endpoint names, exception types, counts) is the voice.

- **Body:** 14px, line height 1.43.
- **Navigation items:** 15px regular; the current area is 600 weight.
- **Navigation group labels:** 12px bold uppercase, tracked 0.08em.
- **Page title:** 30px bold.

## Layout

**Desktop-first, landscape.** Desktop is the main target ([product](PRODUCT.md)) and desktop viewports are wider than they are tall, so horizontal space is cheap and vertical space is scarce. Navigation therefore lives in a left sidebar and there is no top navigation bar, so the height goes to content. A footer appears only when there is license information to show, and then only under the content column, never under the sidebar.

- **Sidebar:** 248px wide. Collapsible to a 64px icon rail; the choice is remembered per browser.
- **Content:** fills the remaining width and scrolls on its own; the sidebar stays in place.
- **Small screens (below 768px):** a slim top bar with a menu button and the logo; the sidebar opens as a drawer over the content, moves focus into itself and closes on Escape, on the close button, on the backdrop or after navigating.
- Every task stays usable on tablets and phones; the page itself must not force a minimum width.

## Elevation & Depth

Flat. Regions are separated by colour (dark chrome against a light canvas) and by 1px dividers, not by shadows.

## Shapes

Small, consistent rounding: 6px on navigation items and controls. Count badges are pills.

## Components

### Sidebar

The single place for navigation. Top to bottom:

1. The ServicePulse logo, linking to the dashboard, and the collapse control.
2. **Dashboard.**
3. Groups, each with a label: **Recoverability** (Failed Messages, Heartbeats, Custom Checks), **Monitoring** (Monitoring), **Auditing** (All Messages), **Platform** (Platform health, Events).
4. A bottom block, separated by a divider: platform update status ("Updates available", linking to Platform health, shown only when an update exists; "Integrated ServicePulse" in integrated mode), then **Usage**, **Configuration**, **Feedback** and the signed-in user.

Items the user is not permitted to use, or capabilities that are not configured, are not shown; a group with no items is not shown either.

### Sidebar item

Icon (18px) and label in one row, 40px high, 6px rounding. States: default (chrome ink), hover (chrome hover background, white text), current area (chrome active background, white 600-weight text, teal icon), keyboard focus (2px teal outline). Labels are always present for assistive technology; in the collapsed rail they are visually hidden, not removed.

### Count badge and warning mark

A danger-coloured pill with a number sits at the end of an item when that area has something needing action. A warning triangle marks degraded or misconfigured areas (Platform health, Configuration, Usage). In the collapsed rail both move to the icon's top-right corner.

### Footer

Carries license information only: for a trial license, a trial-colour bar "<license type> license, non-production use only" linking to the license page. With any other license there is no footer. It sits below the current view in the content column and never spans the sidebar.

## Do's and Don'ts

**Do:**

- Put a count or warning next to the navigation item it belongs to.
- Keep text labels on every navigation item, also for screen readers when visually collapsed.
- Use the shared tokens (`tokens.css`) for colours, sizes and rounding in new styles.
- Name components by role ("sidebar item", "count badge"), not by a library's class names.
- Build views from the shared components in `src/Frontend/src/components`; do not add Bootstrap component classes or `data-bs-*` attributes (see the [UI guideline](guidelines/ui.md)).

**Don't:**

- Add a top navigation bar or a permanent footer; they take vertical space from content.
- Use brand teal for text on the light canvas or on white: it reaches only 2.7–3.0:1 there.
- Show healthy status as decoration.

### Known gaps

- **Brand teal on light backgrounds.** Links, tabs and primary buttons inside pages still use `#00a3c4` on white or canvas, which fails AA for text (2.7–3.0:1). Outside the scope of the shell change; needs a darker interactive teal.
- **Page-level tabs** (e.g. Failed Messages' five tabs) still sit inside pages. Moving them into the sidebar as sub-items is a follow-up.
- **Page content on small screens** is usable but not yet designed for narrow widths.
- **User menu** still relies on Bootstrap's dropdown until Bootstrap is removed.
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ ServicePulse is the web operations console of the Particular Service Platform. I
## Architecture and design

- [Product](PRODUCT.md) — who ServicePulse is for, the situations it is used in, and what it must do
- [Design system](DESIGN.md) — how the UI looks and behaves, the layout rules, and the tokens mirrored in `src/Frontend/src/assets/tokens.css`
- [Platform topology](platform-topology.md) — how ServicePulse models ServiceControl instances and which ones it calls directly
- [Platform health page](frontend/platform-health-page.md) — how Platform health derives its rows and severity
- [Custom checks page](frontend/custom-checks-page.md) — how internal platform custom checks relate to other views
Expand Down
2 changes: 1 addition & 1 deletion docs/frontend/platform-health-page.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ npx vitest run test/mocks/platform-health-state.spec.ts
| `src/Frontend/src/resources/PlatformHealth.ts` | Page-specific response/row types |
| `src/Frontend/test/mocks/platform-health-state.ts` | Runtime mock topology and custom-check controls |
| `src/Frontend/src/components/platformhealth/PlatformHealthMenuItem.vue` | Navigation severity and tooltip behavior |
| `src/Frontend/src/components/PageFooter.vue` | Aggregate platform update status in the footer |
| `src/Frontend/src/components/platformhealth/PlatformUpdatesMenuItem.vue` | Aggregate platform update status in the sidebar |

## Troubleshooting

Expand Down
2 changes: 1 addition & 1 deletion docs/frontend/testing-basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const setupComplete = (async () => {
Run focused Vitest specs from `src/Frontend`:

```bash
npx vitest run src/components/PageFooter.spec.ts
npx vitest run src/components/platformhealth/PlatformUpdatesMenuItem.spec.ts
npx vitest run test/specs/platformcapabilities/monitoring-capability-card.spec.ts
npx vitest run test/specs/platformcapabilities/recoverability-capability-card.spec.ts
npx vitest run src/views/PlatformHealthView.spec.ts
Expand Down
14 changes: 9 additions & 5 deletions src/Frontend/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script setup lang="ts">
import { computed, watch } from "vue";
import { RouterView, useRoute } from "vue-router";
import AppSidebar from "./components/AppSidebar.vue";
import PageFooter from "./components/PageFooter.vue";
import PageHeader from "./components/PageHeader.vue";
import "bootstrap";
import LicenseNotifications from "@/components/LicenseNotifications.vue";
import BackendChecksNotifications from "@/components/BackendChecksNotifications.vue";
Expand Down Expand Up @@ -49,13 +49,17 @@ watch(

<template>
<template v-if="shouldShowApp">
<page-header v-if="shouldShowFullLayout" />
<div v-if="shouldShowFullLayout" class="container-fluid" id="main-content">
<RouterView />
<div v-if="shouldShowFullLayout" class="app-shell">
<AppSidebar />
<div class="app-view">
<main class="container-fluid" id="main-content">
<RouterView />
</main>
<page-footer />
</div>
</div>
<RouterView v-else />
<LicenseNotifications v-if="shouldShowFullLayout" />
<BackendChecksNotifications v-if="shouldShowFullLayout" />
<page-footer v-if="shouldShowFullLayout" />
</template>
</template>
106 changes: 8 additions & 98 deletions src/Frontend/src/assets/footer.css
Original file line number Diff line number Diff line change
@@ -1,107 +1,17 @@
footer {
color: #bcc6c2;
flex: none;
font-size: 14px;
font-weight: normal;
margin-top: 100px;
text-align: left;
text-align: center;
width: 100%;
background-color: #fff;
position: fixed;
bottom: 0;
border-top: 1px solid #ddd;
box-shadow: 0px -10px 16px #f2f6f7;
padding-top: 7px;
z-index: 999; /* this needs to fight with vue-highlight-code which forces z-index to 700 */
}

footer .row {
display: flex;
justify-content: space-between;
}

footer span {
padding-left: 0;
padding-right: 32px;
}

footer span.connected-status {
color: #000;
padding-right: 0;
}

footer span.newscversion {
padding-right: 0;
}

.versionnumber,
footer span.monitoring-connected,
footer span.monitoring-connected span {
padding-right: 0;
}

.footer .container {
width: 100%;
}

footer span {
color: #777f7f;
display: inline-block;
padding: 0 8px;
}

footer a {
font-weight: normal;
}

footer a:hover {
font-weight: normal;
}

@media (max-width: 1550px) {
footer {
font-size: 12px;
}
}

.connectivity-status div,
.connectivity-status span,
.connectivity-status span span {
display: inline-block;
color: #777f7f;
}

.connectivity-status i,
.connectivity-status div.pa-connection-success,
.connectivity-status div.pa-connection-failed {
width: 10px;
height: 10px;
border-radius: 50%;
}

.connectivity-status .connection-failed {
color: #ce4844;
}

.connectivity-status .pa-connection-failed {
background: #ce4844;
}

.connectivity-status .pa-connection-success {
background: #00c468;
}

.connectivity-status .secondary {
display: none;
}

@media (min-width: 960px) {
.connectivity-status .secondary {
display: inline-block;
}
.trialLicenseBar {
padding: 6px 16px;
background-color: var(--sp-trial);
color: white;
}

.trialLicenseBar {
background-color: firebrick;
.trialLicenseBar a {
color: white;
text-decoration: underline;
text-underline-offset: 2px;
}
13 changes: 0 additions & 13 deletions src/Frontend/src/assets/header-menu-item.css

This file was deleted.

Loading
Loading