Commit 7324fc4
authored
feat: dashboard signals, profile integrations, top nav, empty states, delete modal (#52)
* feat(profile): move signals feed from dashboard to profile page
Signals (Slack, GitHub, JIRA) are user-scoped not workspace-scoped,
so the profile page is their natural home.
- profile.ts: inject SignalService, add signals state + filter/markRead/archive methods
- profile.html: add signals section below profile cards with source/status filter pills,
search bar, signal-board, and styled empty state
- profile.css: signals section styles — dark-theme filter pills, divider, empty state card
- dashboard.ts: remove SignalService, SignalBoard, SearchBar imports and all signal state/methods
- dashboard.html: remove signals section; update hero copy to link users to Profile for signals
- dashboard.css: add .hero-link style for the inline Profile link in hero copy
Ref Sentinent-AI/Sentinent#36
* feat(profile): move integrations (Slack/GitHub/Jira) to profile page
Integrations are account-level connections, not workspace content,
so the profile page is their natural home.
- WorkspaceIntegrationsComponent: add @input() inputWorkspaceId + ngOnChanges
so the component reloads when the workspace selection changes when
embedded outside the router (e.g. profile page)
- profile.ts: inject WorkspaceService, load workspaces, expose
selectedWorkspaceId + selectWorkspace() for workspace switcher
- profile.html: add integrations section below profile cards — embeds
<app-workspace-integrations> with workspace selector dropdown (shown
only when user has more than one workspace); empty state if no workspaces
- profile.css: integrations section styles, workspace selector dropdown
- dashboard.ts/html: revert signals-move (signals stay on dashboard);
restore original hero copy
- workspace-details.html: replace Integrations nav link with a
'Integrations →' link that routes to /profile
Ref Sentinent-AI/Sentinent#36
* feat(nav): add persistent top nav bar with unread signal badge
Create AppNavComponent — a fixed dark nav bar shared across all
auth'd pages (dashboard, profile, workspace detail).
- app-nav: Sentinent logo (links /dashboard), Dashboard + Profile
links with routerLinkActive highlight, unread signal badge on
Profile (polls every 60s), Logout button
- dashboard: remove inline brand/profile-btn/logout-btn; add
padding-top: 56px to offset fixed nav
- profile: remove 'Back to dashboard' button (nav replaces it);
add padding-top offset
- workspace-details: add <app-nav>; update padding-top; shorten
'Back to Dashboard' label to '← Dashboard'
Ref Sentinent-AI/Sentinent#36
* feat(dashboard): show unread signal count badge on workspace cards
After signals load, compute a workspaceId→unreadCount map from the
already-fetched signal list (no extra API call). Each workspace card
now shows a dark pill badge (e.g. '3 unread') when there are unread
signals for that workspace, giving users at-a-glance triage from the
dashboard.
Ref Sentinent-AI/Sentinent#36
* feat(signals): replace filter pills with source tabs + unread toggle
Signal filtering is now client-side on an already-fetched full list,
so switching tabs is instant with no extra network calls.
- Source tabs (All / Slack / GitHub / JIRA) each show a live count
badge; active tab gets an underline indicator
- 'Unread only' toggle replaces the old status filter pill — one click
to focus, one click to clear
- allSignals holds the full status-filtered list; signals is the
tab-filtered view; applyFilters() recomputes on tab switch without
re-fetching
Ref Sentinent-AI/Sentinent#36
* feat(ux): contextual empty states for signals and decisions
- Signals: two distinct empty states depending on context
- 'No signals yet' with icon + 'Connect integrations' CTA when
allSignals is empty (no tools connected)
- 'All caught up' with check icon when integrations are connected
but the active tab/filter returns nothing; message adapts to
sourceTab and showUnreadOnly flag
- Decision list: replace bare text with structured empty state
(icon, heading, sub-copy, 'Create your first decision' CTA button)
- CSS: empty-icon, empty-cta, caught-up/no-integrations variants1 parent 15e05ce commit 7324fc4
15 files changed
Lines changed: 682 additions & 101 deletions
File tree
- src/app/components
- dashboard
- decision-list
- profile
- workspace-integrations
- workspace/workspace-details
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
0 commit comments