Commit 8b2114e
authored
* feat(meetings): replace link extraction with attachment API (LFXV2-743)
Replace the existing implementation where links are extracted from meeting
descriptions with the attachment API that supports link-type attachments.
Changes:
- Remove extractUrlsWithDomains usage and importantLinks signals from
meeting-join and meeting-card components
- Update templates to display both file and link attachments uniformly
- Add saveLinkAttachments() method to create link attachments from
important_links FormArray
- Add populateExistingLinks() to load existing links when editing
- Add deleteLinkAttachment() handler for tracking link deletions
- Update saveLinkAttachments() to only create new links (without uid)
- Fix icon alignment with consistent w-8 width for both file and link icons
Benefits:
- Eliminates duplicate link display from extracted URLs and attachments
- Provides consistent CRUD operations for all meeting resources
- Links persist as structured data with proper tracking
Generated with [Claude Code](https://claude.ai/code)
Signed-off-by: Asitha de Silva <[email protected]>
* fix(meetings): improve type safety and fix attachment logic
- Add ImportantLinkFormValue interface for form-specific link data
- Replace any types with proper TypeScript interfaces
- Fix pending deletions logic to clear on completion without failures
- Fix attachment view/download buttons to check type instead of link field
LFXV2-743
Generated with [Claude Code](https://claude.ai/code)
Signed-off-by: Asitha de Silva <[email protected]>
---------
Signed-off-by: Asitha de Silva <[email protected]>
1 parent 9979d5d commit 8b2114e
File tree
13 files changed
+351
-274
lines changed- apps/lfx-one/src
- app
- modules
- meetings/meeting-join
- project
- committees/components/upcoming-committee-meeting
- dashboard/project-dashboard
- meetings/components
- meeting-manage
- meeting-resources-summary
- server
- controllers
- services
13 files changed
+351
-274
lines changedLines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
| 240 | + | |
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
249 | 253 | | |
250 | 254 | | |
251 | 255 | | |
| |||
Lines changed: 1 addition & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 21 | + | |
31 | 22 | | |
32 | 23 | | |
33 | 24 | | |
| |||
78 | 69 | | |
79 | 70 | | |
80 | 71 | | |
81 | | - | |
82 | 72 | | |
83 | 73 | | |
84 | 74 | | |
| |||
103 | 93 | | |
104 | 94 | | |
105 | 95 | | |
106 | | - | |
107 | 96 | | |
108 | 97 | | |
109 | 98 | | |
| |||
268 | 257 | | |
269 | 258 | | |
270 | 259 | | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | 260 | | |
286 | 261 | | |
287 | 262 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
| 186 | + | |
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
245 | | - | |
| 245 | + | |
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
| |||
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
58 | 59 | | |
59 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
60 | 63 | | |
61 | 64 | | |
62 | 65 | | |
| |||
114 | 117 | | |
115 | 118 | | |
116 | 119 | | |
| 120 | + | |
117 | 121 | | |
118 | | - | |
| 122 | + | |
| 123 | + | |
119 | 124 | | |
120 | 125 | | |
121 | 126 | | |
| |||
0 commit comments