Skip to content
Merged
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
3 changes: 2 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ node_modules
.next
Dockerfile
docker-compose.yml
README.md
README.md
tests/playwright
52 changes: 52 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Playwright E2E

on:
pull_request:
branches:
- main
workflow_dispatch:

permissions:
contents: read

jobs:
e2e:
name: Run Playwright E2E
runs-on: ubuntu-latest
timeout-minutes: 30

steps:
- name: Checkout code
uses: actions/checkout@v7

- name: Setup Node.js
uses: actions/setup-node@v7
with:
node-version: 22

- name: Setup pnpm
uses: pnpm/action-setup@v6
with:
version: 12

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Install Chromium
run: pnpm exec playwright install --with-deps chromium

- name: Run Playwright tests
run: pnpm test:e2e

- name: Upload report
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v7
with:
name: playwright-report
path: |
tests/playwright/playwright-report
tests/playwright/test-results
retention-days: 14
4 changes: 2 additions & 2 deletions .github/workflows/vitest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Setup pnpm
uses: pnpm/action-setup@v6
with:
version: 9
version: 12

- name: Install dependencies
run: pnpm install --frozen-lockfile
Expand All @@ -54,7 +54,7 @@ jobs:
- name: Setup pnpm
uses: pnpm/action-setup@v6
with:
version: 9
version: 12

- name: Install dependencies
run: pnpm install --frozen-lockfile
Expand Down
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,9 @@ config/.setup_complete
docker-compose.yml

# Commit tests docker-compose
!tests/bats/docker-compose.yml
!tests/bats/docker-compose.yml
!tests/playwright/docker-compose.yml
# Playwright E2E
tests/playwright/.auth/
tests/playwright/test-results/
tests/playwright/playwright-report/
4 changes: 4 additions & 0 deletions Components/UI/Layout/Layout.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
scrollbar-width: none;
}

.mainWrapperWide {
max-width: 2090px;
}

.login {
background-color: #111827;
}
Expand Down
6 changes: 5 additions & 1 deletion Components/UI/Layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ function Layout(props: LayoutProps) {
<>
<Header />
<NavSide />
<div className={classes.mainWrapper}>{props.children}</div>
<div
className={`${classes.mainWrapper} ${router.pathname === '/monitoring' ? classes.mainWrapperWide : ''}`}
>
{props.children}
</div>
<Footer />
</>
);
Expand Down
3 changes: 2 additions & 1 deletion Components/UI/StorageBar/StorageBar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import classes from './StorageBar.module.css';
import { storageLevel } from '~/helpers/functions/storageLevel';

type StorageBarProps = {
storageUsed: number;
Expand All @@ -13,7 +14,7 @@ export default function StorageBar(props: StorageBarProps) {
const percentLabel = rawPercent.toFixed(1);

//Color ramp by fill level
const level = rawPercent >= 90 ? classes.high : rawPercent >= 75 ? classes.mid : classes.low;
const level = classes[storageLevel(rawPercent)];

return (
<div className={classes.barContainer}>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.dashboard {
width: 100%;
max-width: 1100px;
max-width: 2000px;
margin: 0 auto;
padding: 32px 8px 0 8px;
box-sizing: border-box;
Expand All @@ -19,9 +19,45 @@
}

.header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
margin-bottom: 26px;
}

.archivedToggleBtn {
display: inline-flex;
align-items: center;
gap: 6px;
height: 36px;
padding: 0 13px;
flex-shrink: 0;
background: var(--surface-2);
border: 1px solid var(--border-strong);
border-radius: 20px;
color: var(--text-faint);
cursor: pointer;
font-size: 0.8rem;
font-weight: 700;
box-sizing: border-box;
transition:
color 0.2s ease,
border-color 0.2s ease,
background 0.2s ease;
}

.archivedToggleBtn:hover {
color: var(--primary);
border-color: var(--primary);
}

.archivedToggleBtnActive {
color: var(--primary);
border-color: var(--primary);
background: var(--primary-soft);
}

.title {
margin: 0;
font-size: 1.7rem;
Expand Down Expand Up @@ -159,6 +195,7 @@
}

.panel {
min-width: 0;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 16px;
Expand All @@ -183,15 +220,32 @@
}

.panelHint {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
align-items: center;
gap: 6px 16px;
margin-left: auto;
font-size: 0.78rem;
color: var(--text-faint);
}

.legendItem {
display: inline-flex;
align-items: center;
gap: 6px;
white-space: nowrap;
}

.legendLine {
width: 18px;
border-top: 2px dashed;
}

.chartWrapper {
position: relative;
width: 100%;
height: 320px;
height: clamp(320px, calc(100vh - 500px), 720px);
}

.emptyChart {
Expand All @@ -201,6 +255,14 @@
}

/* ---------- Attention panel ---------- */
.attentionPanel {
display: flex;
flex-direction: column;
height: 0;
min-height: 100%;
box-sizing: border-box;
}

.attentionBadge {
display: inline-flex;
align-items: center;
Expand Down Expand Up @@ -235,12 +297,16 @@
display: flex;
flex-direction: column;
gap: 8px;
flex: 1 1 0;
min-height: 0;
margin: 0;
padding: 0;
padding: 0 4px 0 0;
list-style: none;
overflow-y: auto;
}

.attentionItem {
flex-shrink: 0;
display: flex;
align-items: center;
gap: 10px;
Expand Down Expand Up @@ -311,6 +377,16 @@
.panels {
grid-template-columns: 1fr;
}

.attentionPanel {
height: auto;
min-height: 0;
}

.attentionList {
flex: none;
max-height: 360px;
}
}

@media all and (max-width: 560px) {
Expand Down
Loading
Loading