Commit efb80ae
authored
feat(dashboards): add social listening sidebar entry for ed persona (LFXV2-1689) (#792)
* feat(dashboards): add social listening sidebar entry for ed persona (LFXV2-1689)
- refactor metrics items into a local array to enable conditional append
- add social listening entry with pcc deep-link url when foundation uid is present
- hide entry when no foundation is selected to avoid broken deep links
- reading selectedFoundation() inside computed auto-wires reactive updates on foundation switch
Signed-off-by: Audi Young <audi.mycloud@gmail.com>
* fix(dashboards): normalize pcc base url for social listening link (LFXV2-1689)
Signed-off-by: Audi Young <audi.mycloud@gmail.com>
* feat(projects): add bff endpoint for uid to sfid resolution (LFXV2-1689)
- Register GET /api/projects/:uid/sfid route, mounted before documents block to keep the /:uid/<verb> family clustered
- Add ProjectController.getProjectSfid wrapping the existing NATS-backed getProjectSfidByUid helper
- Return { sfid: string | null } with HTTP 200 on lookup failure so callers can hide affordances uniformly
Signed-off-by: Audi Young <audi.mycloud@gmail.com>
* fix(review): validate uid param in getProjectSfid (LFXV2-1689)
- Adopt validateUidParameter (canonical helper per server-helpers.md) to bring getProjectSfid in line with every other /:uid endpoint in this controller
- Closes Important finding from post-commit code review on 04c2708 (defense-in-depth consistency gap)
Signed-off-by: Audi Young <audi.mycloud@gmail.com>
* feat(projects): add client getProjectSfid method (LFXV2-1689)
- add getProjectSfid(uid) on client ProjectService hitting /api/projects/:uid/sfid
- unwrap { sfid } response to string | null at the rxjs layer
- catchError to of(null) so caller hides cleanly on lookup failure
- import map from rxjs alphabetically alongside catchError
Signed-off-by: Audi Young <audi.mycloud@gmail.com>
* fix(review): encode uid and log sfid lookup errors (LFXV2-1689)
- wrap uid in encodeURIComponent on /api/projects/:uid/sfid URL
- console.error before of(null) so silent 401s/5xx surface in console
- aligns with sibling list GETs in project.service.ts that log on failure
Signed-off-by: Audi Young <audi.mycloud@gmail.com>
* feat(projects): expose selectedFoundationSfid on context service (LFXV2-1689)
- add selectedFoundationSfid: Signal<string | null> to ProjectContextService
- initializer mirrors initCanWrite shape via toObservable + switchMap
- short-circuits to of(null) when no foundation selected (no http call)
- switchMap cancels in-flight lookups on foundation switch
Signed-off-by: Audi Young <audi.mycloud@gmail.com>
* fix(dashboards): use foundation sfid for social listening url (LFXV2-1689)
- swap selectedFoundation()?.uid for selectedFoundationSfid() signal
- compose PCC URL with /project/<sfid>/reports/social-listening
- hide sidebar entry until sfid resolves (no broken UUID-based URL)
- no behaviour change to ED gate or sibling Metrics items
Signed-off-by: Audi Young <audi.mycloud@gmail.com>
* fix(project-context): reset sfid while foundation changes (LFXV2-1689)
Signed-off-by: Audi Young <audi.mycloud@gmail.com>
* fix(projects): gate SFID lookup on project access (LFXV2-1689)
Signed-off-by: Audi Young <audi.mycloud@gmail.com>
---------
Signed-off-by: Audi Young <audi.mycloud@gmail.com>1 parent f8a0529 commit efb80ae
5 files changed
Lines changed: 95 additions & 17 deletions
File tree
- apps/lfx-one/src
- app
- layouts/main-layout
- server
- controllers
- routes
Lines changed: 30 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
292 | 321 | | |
293 | 322 | | |
294 | 323 | | |
295 | 324 | | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
| 325 | + | |
310 | 326 | | |
311 | 327 | | |
312 | 328 | | |
| |||
Lines changed: 18 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
44 | 47 | | |
45 | 48 | | |
46 | 49 | | |
| |||
144 | 147 | | |
145 | 148 | | |
146 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
147 | 164 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
50 | 60 | | |
51 | 61 | | |
52 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
135 | 135 | | |
136 | 136 | | |
137 | 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 | + | |
138 | 171 | | |
139 | 172 | | |
140 | 173 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| |||
0 commit comments