Commit 52ded8f
authored
feat(meetings): improve file upload and v1/v2 migration refactor (#204)
* feat(meetings): improve file upload validation and file types
- Add user-friendly error messages for unsupported file types
- Add getMimeTypeDisplayName() to convert MIME types to extensions
- Add getAcceptedFileTypesDisplay() for categorized file types
- Add support for SVG, CSV, RTF, and legacy markdown MIME types
- Add legacy MIME types for images and Office documents
- Add isFileTypeAllowed() with extension-based fallback validation
- Fix validation for files with empty or generic MIME types
LFXV2-894
Generated with [Claude Code](https://claude.ai/code)
Signed-off-by: Asitha de Silva <[email protected]>
* fix(meetings): improve file type validation with extension fallback
- Add optional filename parameter to getMimeTypeDisplayName for fallback
- Fix extension detection bug for files without extensions
- Derive MAX_FILE_SIZE_MB from MAX_FILE_SIZE_BYTES to prevent drift
- Increase max file size from 10MB to 100MB
- Remove redundant empty string check in MIME type validation
LFXV2-894
Signed-off-by: Asitha de Silva <[email protected]>
* refactor(meetings): move v1/v2 migration to server-side transformation
LFXV2-899
- Add server-side transformation utilities (transformV1MeetingToV2, transformV1SummaryToV2)
- Remove v1 fallback logic from UI components (meeting-card, dashboard-meeting-card, meeting-join)
- Remove unnecessary computed signals (meetingIdentifier, formatV1SummaryContent)
- Remove v1 legacy fields from Meeting and PastMeetingSummary interfaces
- Server now detects v1 status internally using UUID format check
- Fix meeting sorting when occurrences array is empty
🤖 Generated with [Claude Code](https://claude.ai/code)
Signed-off-by: Asitha de Silva <[email protected]>
* refactor(meetings): remove unnecessary summaryUid computed signal
Remove initSummaryUid wrapper and use this.summary()?.uid directly
in the two places it was used (openSummaryModal guard and data).
LFXV2-899
🤖 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 85298c3 commit 52ded8f
File tree
18 files changed
+780
-394
lines changed- apps/lfx-one/src
- app
- modules
- dashboards/components/dashboard-meeting-card
- meetings
- components
- meeting-card
- meeting-resources-summary
- meeting-join
- meetings-dashboard
- server
- controllers
- helpers
- services
18 files changed
+780
-394
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
Lines changed: 8 additions & 37 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | 54 | | |
56 | 55 | | |
57 | | - | |
58 | | - | |
59 | 56 | | |
60 | | - | |
61 | 57 | | |
62 | 58 | | |
63 | 59 | | |
64 | | - | |
65 | 60 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
71 | 65 | | |
72 | 66 | | |
73 | 67 | | |
74 | 68 | | |
75 | 69 | | |
76 | 70 | | |
77 | 71 | | |
78 | | - | |
79 | | - | |
80 | 72 | | |
81 | 73 | | |
82 | 74 | | |
| |||
223 | 215 | | |
224 | 216 | | |
225 | 217 | | |
226 | | - | |
227 | 218 | | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
| 219 | + | |
233 | 220 | | |
234 | 221 | | |
235 | | - | |
236 | 222 | | |
237 | 223 | | |
238 | 224 | | |
239 | 225 | | |
240 | | - | |
241 | | - | |
242 | | - | |
| 226 | + | |
243 | 227 | | |
244 | 228 | | |
245 | 229 | | |
246 | | - | |
247 | 230 | | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
| 231 | + | |
259 | 232 | | |
260 | 233 | | |
261 | | - | |
262 | 234 | | |
263 | 235 | | |
264 | 236 | | |
265 | | - | |
266 | 237 | | |
267 | 238 | | |
268 | 239 | | |
| |||
274 | 245 | | |
275 | 246 | | |
276 | 247 | | |
277 | | - | |
| 248 | + | |
278 | 249 | | |
279 | 250 | | |
280 | 251 | | |
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | | - | |
| 220 | + | |
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
268 | | - | |
| 268 | + | |
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
| |||
Lines changed: 14 additions & 95 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | 110 | | |
112 | 111 | | |
113 | 112 | | |
| |||
132 | 131 | | |
133 | 132 | | |
134 | 133 | | |
135 | | - | |
136 | 134 | | |
137 | 135 | | |
138 | 136 | | |
| |||
142 | 140 | | |
143 | 141 | | |
144 | 142 | | |
145 | | - | |
146 | 143 | | |
147 | 144 | | |
148 | 145 | | |
149 | | - | |
150 | 146 | | |
151 | 147 | | |
152 | 148 | | |
| |||
155 | 151 | | |
156 | 152 | | |
157 | 153 | | |
158 | | - | |
| 154 | + | |
159 | 155 | | |
160 | 156 | | |
161 | 157 | | |
| |||
243 | 239 | | |
244 | 240 | | |
245 | 241 | | |
246 | | - | |
247 | | - | |
| 242 | + | |
248 | 243 | | |
249 | 244 | | |
250 | 245 | | |
| |||
306 | 301 | | |
307 | 302 | | |
308 | 303 | | |
309 | | - | |
| 304 | + | |
310 | 305 | | |
311 | 306 | | |
312 | 307 | | |
| |||
318 | 313 | | |
319 | 314 | | |
320 | 315 | | |
321 | | - | |
322 | | - | |
| 316 | + | |
| 317 | + | |
323 | 318 | | |
324 | 319 | | |
325 | 320 | | |
| |||
484 | 479 | | |
485 | 480 | | |
486 | 481 | | |
487 | | - | |
| 482 | + | |
488 | 483 | | |
489 | 484 | | |
490 | 485 | | |
| |||
493 | 488 | | |
494 | 489 | | |
495 | 490 | | |
496 | | - | |
| 491 | + | |
497 | 492 | | |
498 | 493 | | |
499 | 494 | | |
| |||
505 | 500 | | |
506 | 501 | | |
507 | 502 | | |
508 | | - | |
| 503 | + | |
509 | 504 | | |
510 | 505 | | |
511 | 506 | | |
| |||
685 | 680 | | |
686 | 681 | | |
687 | 682 | | |
688 | | - | |
689 | 683 | | |
690 | 684 | | |
691 | 685 | | |
692 | | - | |
693 | | - | |
694 | | - | |
695 | | - | |
696 | | - | |
697 | | - | |
698 | | - | |
699 | | - | |
700 | | - | |
701 | | - | |
702 | | - | |
703 | | - | |
704 | | - | |
705 | | - | |
706 | | - | |
707 | | - | |
708 | | - | |
709 | | - | |
710 | | - | |
711 | | - | |
712 | | - | |
713 | | - | |
714 | | - | |
715 | | - | |
716 | | - | |
717 | | - | |
718 | | - | |
719 | | - | |
720 | | - | |
721 | | - | |
722 | | - | |
723 | | - | |
724 | | - | |
725 | | - | |
726 | | - | |
727 | | - | |
728 | | - | |
729 | | - | |
730 | | - | |
731 | | - | |
732 | | - | |
733 | | - | |
734 | | - | |
735 | | - | |
736 | | - | |
737 | | - | |
738 | | - | |
739 | | - | |
740 | | - | |
741 | | - | |
742 | | - | |
743 | | - | |
744 | | - | |
745 | | - | |
746 | | - | |
| 686 | + | |
| 687 | + | |
747 | 688 | | |
748 | 689 | | |
749 | 690 | | |
| |||
755 | 696 | | |
756 | 697 | | |
757 | 698 | | |
758 | | - | |
759 | 699 | | |
760 | 700 | | |
761 | 701 | | |
762 | 702 | | |
763 | | - | |
764 | 703 | | |
765 | 704 | | |
766 | 705 | | |
767 | | - | |
768 | 706 | | |
769 | 707 | | |
770 | 708 | | |
| |||
776 | 714 | | |
777 | 715 | | |
778 | 716 | | |
779 | | - | |
| 717 | + | |
780 | 718 | | |
781 | 719 | | |
782 | 720 | | |
783 | | - | |
784 | 721 | | |
785 | 722 | | |
786 | 723 | | |
787 | 724 | | |
788 | | - | |
789 | | - | |
790 | | - | |
| 725 | + | |
791 | 726 | | |
792 | 727 | | |
793 | 728 | | |
794 | | - | |
795 | 729 | | |
796 | 730 | | |
797 | 731 | | |
798 | 732 | | |
799 | | - | |
800 | | - | |
801 | | - | |
| 733 | + | |
802 | 734 | | |
803 | 735 | | |
804 | 736 | | |
805 | | - | |
806 | 737 | | |
807 | 738 | | |
808 | | - | |
809 | | - | |
810 | | - | |
811 | | - | |
812 | | - | |
813 | | - | |
814 | | - | |
815 | | - | |
816 | | - | |
817 | | - | |
818 | | - | |
819 | | - | |
| 739 | + | |
820 | 740 | | |
821 | 741 | | |
822 | 742 | | |
823 | | - | |
824 | 743 | | |
825 | 744 | | |
826 | 745 | | |
| |||
0 commit comments