fix(store,audit,workspace): usertest low-findings tail (0.72.1)
Some checks failed
Security / Security check (push) Failing after 1s
Some checks failed
Security / Security check (push) Failing after 1s
- Store hero: 'TODAY' badge only for an operator-accepted story; the rotating compiled-in fallback deck now says 'FEATURED' (no false freshness claim). Policy as a top-level function with unit tests. - Audit filter chips: standard label typography instead of mono — mono stays reserved for paths and identifiers. - DE chain wording: 'Hash-Kette geprüft' as the one confirmation term (audit header now matches the doctor pill); 'intakt' stays the state headline. EN was already consistent. - Workspace switcher: contrast bump for the sealed-area 'stopped' label. Signed-off-by: flemming-it <stefan.a.flemming@googlemail.com>
This commit is contained in:
parent
6152c80c84
commit
ae8fdcc762
12 changed files with 69 additions and 9 deletions
|
|
@ -3207,6 +3207,13 @@ class _ScreenshotPlaceholder extends StatelessWidget {
|
|||
/// not abstract platform philosophy. Architecture education
|
||||
/// (sandbox model, hash-chained audit, air-gap posture) lives
|
||||
/// on the dedicated Welcome page, not in the store carousel.
|
||||
/// Whether the hero deck may wear the date-bound "TODAY" badge.
|
||||
/// Only a single, operator-accepted story qualifies — the
|
||||
/// compiled-in fallback deck rotates unchanged across sessions
|
||||
/// and must not claim freshness ("FEATURED" instead). Top-level
|
||||
/// so the policy stays unit-testable.
|
||||
bool storeDeckIsAcceptedToday(int totalCount) => totalCount == 1;
|
||||
|
||||
const List<TodayStoryData> _kFallbackTodayStories = <TodayStoryData>[
|
||||
TodayStoryData(
|
||||
badgeEn: 'MCP',
|
||||
|
|
@ -3433,7 +3440,12 @@ class _StoreTodayHero extends StatelessWidget {
|
|||
runSpacing: 4,
|
||||
crossAxisAlignment: WrapCrossAlignment.center,
|
||||
children: [
|
||||
ChainPill(label: l.storeTodayBadge, tone: ChainPillTone.accent),
|
||||
ChainPill(
|
||||
label: storeDeckIsAcceptedToday(totalCount)
|
||||
? l.storeTodayBadge
|
||||
: l.storeFeaturedBadge,
|
||||
tone: ChainPillTone.accent,
|
||||
),
|
||||
Text(
|
||||
badge,
|
||||
style: theme.textTheme.labelSmall?.copyWith(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue