mirror of
https://github.com/rzuasti/oott.git
synced 2026-07-08 19:21:54 +02:00
Backend: notifications now show a plain "-" for an absent name, vendor, or device type (was empty string / "(unknown)" / "Unknown"), via a single UNKNOWN_PLACEHOLDER constant. Frontend: - Empty/unknown values render as an em dash everywhere, centralised in a new Placeholders.emptyValue constant (replaces inline '—' and '(unknown)'). - Route paths moved to a new Routes class, used by the router and every navigation call site. - Device event type modelled as a DeviceEventType enum mirroring the backend (NewDevice/DeviceSeen) instead of bare string comparisons. - Hardcoded EdgeInsets/SizedBox spacing replaced with existing Insets tokens. Tests and formatting updated; all backend and frontend tests pass. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
8 lines
382 B
Dart
8 lines
382 B
Dart
/// Shared placeholders for rendering values in the UI.
|
|
abstract final class Placeholders {
|
|
/// Shown in place of a value that is absent or unknown (e.g. a device with no
|
|
/// hostname, vendor, or determined type). An em dash reads better than a blank
|
|
/// cell. The backend uses a plain hyphen in notifications for the same purpose.
|
|
static const String emptyValue = '—';
|
|
}
|