From 524e505353930f317f1dfd52dcf34110e247df83 Mon Sep 17 00:00:00 2001 From: Johannes Millan Date: Wed, 3 Jun 2026 19:04:36 +0200 Subject: [PATCH] fix(onboarding): harden sync setup dismissal Mark sync-based onboarding dismissal as fully complete so the hint tour does not restart on the next boot. Guard the sync setup CTA while the dialog is loading or open, cover the async races in tests, and move the onboarding z-index to a design token. --- docs/styling-guide.md | 23 +++++----- ...onboarding-preset-selection.component.html | 2 +- ...onboarding-preset-selection.component.scss | 2 +- ...oarding-preset-selection.component.spec.ts | 42 +++++++++++++++++-- .../onboarding-preset-selection.component.ts | 26 ++++++++++-- src/assets/i18n/en.json | 2 +- src/styles/_css-variables.scss | 1 + 7 files changed, 77 insertions(+), 21 deletions(-) diff --git a/docs/styling-guide.md b/docs/styling-guide.md index fa4972b1ae..4586bd0c55 100644 --- a/docs/styling-guide.md +++ b/docs/styling-guide.md @@ -120,17 +120,18 @@ Quickest adoption — add the `.focus-ring` utility class from `util.scss`, whic ## Z-Index Layers -| Variable | Value | Purpose | -| ----------------------- | ----- | ------------------------ | -| `--z-check-done` | 11 | Task done checkbox | -| `--z-main-header` | 12 | Main header | -| `--z-task-title-focus` | 32 | Focused task title | -| `--z-mobile-bottom-nav` | 50 | Mobile bottom navigation | -| `--z-side-nav` | 60 | Side navigation | -| `--z-backdrop` | 222 | Backdrop overlay | -| `--z-add-task-bar` | 999 | Add task bar | -| `--z-search-bar` | 999 | Search bar | -| `--z-tour` | 1001 | Tour overlay | +| Variable | Value | Purpose | +| ------------------------ | ----- | ------------------------ | +| `--z-check-done` | 11 | Task done checkbox | +| `--z-main-header` | 12 | Main header | +| `--z-task-title-focus` | 32 | Focused task title | +| `--z-mobile-bottom-nav` | 50 | Mobile bottom navigation | +| `--z-side-nav` | 60 | Side navigation | +| `--z-backdrop` | 222 | Backdrop overlay | +| `--z-add-task-bar` | 999 | Add task bar | +| `--z-search-bar` | 999 | Search bar | +| `--z-onboarding-presets` | 999 | Onboarding preset screen | +| `--z-tour` | 1001 | Tour overlay | ## Layout Variables diff --git a/src/app/features/onboarding/onboarding-preset-selection.component.html b/src/app/features/onboarding/onboarding-preset-selection.component.html index b2c76775ef..af31617427 100644 --- a/src/app/features/onboarding/onboarding-preset-selection.component.html +++ b/src/app/features/onboarding/onboarding-preset-selection.component.html @@ -33,7 +33,7 @@