Commit 9a961d6
feat(committees): add committee dashboard list view and table component (#293)
* feat(committees): add committee dashboard list view and table component
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Manish Dixit <mdixit@linuxfoundation.org>
* fix(committees): address PR #293 reviewer comments
- Remove unused DialogService injection (dashboard + table components)
- Type BFF service methods with shared interfaces instead of any/any[]
- Register missing getPublicCommittees route on router
- Fix leaveGroup to use correct leave endpoint
- Remove duplicate CommitteeJoinApplication model
- Fix camelCase field definitions in dashboard interfaces to snake_case
- Update all field references to snake_case after interface rename
- Fix getPublicCommittees JSDoc to match actual return shape
- Restore join_mode entry in COMMITTEE_SETTINGS_FEATURES
- Remove unused LeadershipRole type
Signed-off-by: Manish Dixit <mdixit@linuxfoundation.org>
* fix(committees): address CodeRabbit review round 2
- Replace nested <a> tags in My Groups cards with <div> + click handler
- Show "All Groups" heading when committees exist (not just myCommittees)
- Scope myCommittees to current project context
- Map public endpoint response to PublicCommittee DTO
- Save/restore bearer token in public committees handler
- Add logger.warning to all catch-block fallbacks in BFF service
- Remove unused RouterLink import from dashboard component
Signed-off-by: Manish Dixit <mdixit@linuxfoundation.org>
* fix(committees): fix getMyCommittees to fetch actual user memberships
The previous implementation passed { my: true } to the query service
which doesn't support that filter, returning all committees instead
of only the user's. Now fetches committee_member records by username
tag (matching the persona-helper pattern) and enriches with committee
details, populating my_role and my_member_uid.
Signed-off-by: Manish Dixit <mdixit@linuxfoundation.org>
* fix(committees): address CR and Copilot issues in dashboard PR
- Restore req.bearerToken in finally block to prevent M2M token leak
- Disable unimplemented Invite and Add Member CTAs with tooltips
- Fix proxyRequest generic type for getCommitteeBudget
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Manish Dixit <mdixit@linuxfoundation.org>
* fix(committees): address Asitha code review on dashboard PR
- Fix leaveGroup to use DELETE method matching upstream API contract
- Fix mailing_list/chat_channel to use plain strings matching upstream schema
- Remove GroupMailingList, GroupChatChannel, ChatPlatform dead types
- Remove public committee endpoint, route, and server.ts mount
- Remove ~1100 lines of unconsumed server endpoints (invites, applications,
votes, resolutions, activity, contributors, deliverables, discussions,
events, campaigns, engagement, budget, documents, surveys)
- Remove N+1 getCommitteeSettings calls from getCommittees/getMyCommittees
- Remove sanitizeUrl from template, fix channels to use plain string bindings
- Remove stopPropagation calls from channel links and join button
- Remove unused inviteToGroup, onAddMember, sanitizeUrl, inviteClick
- Disable Add Member and Invite CTAs with coming-soon tooltips
- Remove all console.error calls from frontend service
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Manish Dixit <mdixit@linuxfoundation.org>
* fix(committees): address remaining Asitha review findings on dashboard PR
- Replace nested ternary with getRoleBadgeClass method (Issue 5)
- Remove unused personaLabel, onCategoryChange, onVotingStatusChange,
onSearch properties/methods (Issue 10)
- Move join/leave logic into table component, remove joinClick output,
remove duplicate ConfirmationService from dashboard (Issues 15, 16)
- Rename /my route to /my-committees (Issue 18)
- Consolidate committeeLabel/committeeLabelPlural to single COMMITTEE_LABEL
constant with .singular/.plural in templates (Issue 19)
- Pass project_uid to getMyCommittees for server-side filtering (Issue 14)
- Add keyboard accessibility to My Groups cards (tabindex, role, keydown)
- Add aria-label to icon-only channel links
- Add logger.warning in getMyCommittees per-committee catch block
- Preserve last successful memberships on /my API failure (use EMPTY)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Manish Dixit <mdixit@linuxfoundation.org>
* fix(committees): remove deriveLeadership and chair/co_chair from Committee interface
Upstream GET /committees/{uid} has no chair/co_chair fields. Leadership
is only available via committee members with role "Chair"/"Vice Chair".
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Manish Dixit <mdixit@linuxfoundation.org>
* fix(committees): remove all chair/co_chair references from update flow
Upstream has no chair/co_chair fields on GET or PUT. Remove leadership
PATCH block from updateCommittee, remove chair/co_chair from
CommitteeUpdateData, and remove unused CommitteeLeadership interface.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Manish Dixit <mdixit@linuxfoundation.org>
* fix(committees): address final review findings on dashboard PR
- Fix operator precedence: wrap (committee.total_members ?? 0) in
parentheses so the number pipe applies to the full expression
- Replace getRoleBadgeClass() method call in template with a pure
RoleBadgeClassPipe to comply with no-function-calls-in-templates rule
- Wire category and voting status dropdown filters to filteredCommittees
signal via toSignal() on form control valueChanges — previously the
dropdowns rendered but their values never reached the filter logic
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Manish Dixit <mdixit@linuxfoundation.org>
* fix(committees): remove delete button from group list table
Committee deletion from the list view is a risky action — it belongs
in the detail view settings, not as a quick action on every row.
Removed delete button, onDeleteCommittee/performDelete methods,
isDeleting signal, ConfirmationService, and ConfirmDialogModule.
Delete option will be added in the Settings tab in a follow-up PR.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Manish Dixit <mdixit@linuxfoundation.org>
* fix(committees): address round 3 review findings on dashboard PR
- Replace BehaviorSubject with WritableSignal for refresh trigger
- Add console.error to silent catchError blocks in CommitteeService
- Make error handling consistent (EMPTY → of([])) in both initializers
- Add standalone: true to RoleBadgeClassPipe
- Restore console.error in dashboard component catchError blocks
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Manish Dixit <mdixit@linuxfoundation.org>
* fix(committees): replace mb- spacing with flex gap in dashboard template
Replace margin-based vertical rhythm (mb-8, mb-6) between page sections
with flex + flex-col + gap-8/gap-6 parent containers per project
styling guidelines.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Manish Dixit <mdixit@linuxfoundation.org>
---------
Signed-off-by: Manish Dixit <mdixit@linuxfoundation.org>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Asitha de Silva <asithade@gmail.com>
Signed-off-by: Rashad <mrashad@contractor.linuxfoundation.org>1 parent 58c0786 commit 9a961d6
10 files changed
Lines changed: 530 additions & 237 deletions
File tree
- apps/lfx-one/src
- app
- modules/committees
- committee-dashboard
- components/committee-table
- server
- controllers
- routes
- services
Lines changed: 122 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
| 13 | + | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
| 39 | + | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | 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 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
65 | 172 | | |
66 | 173 | | |
67 | 174 | | |
| |||
71 | 178 | | |
72 | 179 | | |
73 | 180 | | |
74 | | - | |
| 181 | + | |
75 | 182 | | |
76 | 183 | | |
77 | 184 | | |
| |||
84 | 191 | | |
85 | 192 | | |
86 | 193 | | |
87 | | - | |
| 194 | + | |
88 | 195 | | |
89 | 196 | | |
90 | 197 | | |
| |||
98 | 205 | | |
99 | 206 | | |
100 | 207 | | |
101 | | - | |
102 | | - | |
103 | | - | |
| 208 | + | |
104 | 209 | | |
105 | 210 | | |
106 | 211 | | |
| |||
0 commit comments