Skip to content

[P0-3] Dashboard-Widgets auf MintYColors migrieren (PR #10 abschließen) #29

Description

@Toqsick

Kontext

Aus docs/design/implementierungsplan-admin-hub-v0.8.5.md (Phase P0, blockierend für v0.7.2). Tracker: #10. Anleitung: docs/design/theme-extension-migration.md Abschnitt 3.

Scope

  • lib/widgets/memory_status.dart: Hardcodes → colors.chartCpu/chartRam, Magic Number cpuLoad < 1 → MintYThresholds.cpuLoadCritical, Colors.red → colors.statusDanger
  • lib/widgets/disk_space.dart: 89 → MintYThresholds.diskUsageWarningPercent, Colors.red → statusDanger, Grau → chartDisk
  • lib/widgets/single_bar_chart.dart: Mutations-Hack entfernen (final-Feld wird in build() mutiert) → MintYColors.chartTrack
  • Neu: test/mint_y_tokens_test.dart (Token-Werte, copyWith/lerp, Thresholds 89/1.0)

Constraints

  • lib/layouts/mint_y.dart nicht anfassen (Übergangsphase); nichts in lib/widgets/hermes/
  • Keine Behavior-Changes, reiner Token-Swap (Ausnahme: Mutations-Hack)

Akzeptanzkriterien

  • flutter analyze sauber, Tests grün
  • Golden-Baseline unverändert bzw. bewusst aktualisiert
  • Vorher prüfen: 88-%-Disk-Anzeige amber statt rot (visuelle Baseline §4.2) — greift der 89-%-Schwellwert noch?

Aufwand: 1 d | Phase: P0 → v0.7.2 | Referenz: #10, #11, design-audit-inconsistencies.md

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions