fix(ui): mobile viewport, scrollable popovers, and actor labels

- Set viewport-fit=cover and disable user scaling for mobile PWA feel
- Wrap assignee/project popover lists in scrollable containers
- Remove rounded-t-sm from stacked chart bars for cleaner rendering
- Prevent filter bar icons from shrinking on narrow screens
- Show "Board" instead of raw user IDs in activity feeds and toasts
- Surface server error message in health API failures

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Forgotten
2026-02-23 19:44:02 -06:00
parent 85c0b9a3dc
commit d2f9ade30c
8 changed files with 107 additions and 109 deletions

View File

@@ -39,18 +39,6 @@ function truncate(text: string, max: number): string {
return text.slice(0, max - 1) + "\u2026";
}
function looksLikeUuid(value: string): boolean {
return /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(value);
}
function titleCase(value: string): string {
return value
.split(" ")
.filter((part) => part.length > 0)
.map((part) => part[0]!.toUpperCase() + part.slice(1))
.join(" ");
}
function resolveActorLabel(
queryClient: QueryClient,
companyId: string,
@@ -62,8 +50,7 @@ function resolveActorLabel(
}
if (actorType === "system") return "System";
if (actorType === "user" && actorId) {
if (looksLikeUuid(actorId)) return `User ${shortId(actorId)}`;
return titleCase(actorId.replace(/[_-]+/g, " "));
return "Board";
}
return "Someone";
}