fix(programmer): resolve profile names in monitor help chips

Pass profileNames Map<String, String> from MonitorTab down to
ProgrammerMonitorCard and HelpPanel; use profileNames[id] ?? id
at all help-chip and help-edge row render sites so full names
display instead of raw UUIDs.

Co-Authored-By: claude-flow <ruv@ruv.net>
This commit is contained in:
2026-09-27 22:43:28 +08:00
parent 7beb8e8713
commit e24083356f
3 changed files with 16 additions and 7 deletions
@@ -16,7 +16,9 @@ final _dateFmt = DateFormat('EEE, MMM d');
/// displayed day is independent of the parent; the family provider is
/// re-watched whenever the day changes.
class HelpPanel extends ConsumerStatefulWidget {
const HelpPanel({super.key});
const HelpPanel({super.key, this.profileNames = const {}});
final Map<String, String> profileNames;
@override
ConsumerState<HelpPanel> createState() => _HelpPanelState();
@@ -125,8 +127,9 @@ class _HelpPanelState extends ConsumerState<HelpPanel> {
separatorBuilder: (_, _) => const Divider(height: 1),
itemBuilder: (context, i) {
final e = edges[i];
final helperName = e.helperId;
final assigneeName = e.assigneeId;
final names = widget.profileNames;
final helperName = names[e.helperId] ?? e.helperId;
final assigneeName = names[e.assigneeId] ?? e.assigneeId;
final timeStr = TimeOfDay.fromDateTime(e.at).format(context);
return Padding(
padding: const EdgeInsets.symmetric(vertical: 6),