cortex-react-components 3.2.2 → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-5GFRQ4NR.mjs → chunk-2BKXIIFJ.mjs} +183 -36
- package/dist/{chunk-LQPN7L4Z.mjs → chunk-3DWDGYDG.mjs} +1 -1
- package/dist/{chunk-PTDP7PZK.mjs → chunk-3G7VLQG5.mjs} +1 -1
- package/dist/{chunk-56NFUKPK.mjs → chunk-3K6EVFOW.mjs} +1 -1
- package/dist/{chunk-PFA2P52R.mjs → chunk-3RYHYKVQ.mjs} +1 -1
- package/dist/{chunk-XDV7AVPQ.mjs → chunk-4JSM5VYZ.mjs} +2 -2
- package/dist/{chunk-VMYEV3FG.mjs → chunk-4YRR74Y4.mjs} +1 -1
- package/dist/{chunk-I4MTJN23.mjs → chunk-6A7T3O6T.mjs} +6 -5
- package/dist/{chunk-G46GZ57S.mjs → chunk-6LF4K7ER.mjs} +5 -5
- package/dist/{chunk-2363JAWB.mjs → chunk-6S7EQDLL.mjs} +1 -1
- package/dist/{chunk-ZBCZGWDU.mjs → chunk-7HHLKQE4.mjs} +1 -1
- package/dist/{chunk-YUBPY7L4.mjs → chunk-7LM2P6N3.mjs} +1 -1
- package/dist/{chunk-VMDVXNP5.mjs → chunk-AKMJBGUU.mjs} +16 -16
- package/dist/{chunk-V4I6U2SE.mjs → chunk-AVNBD2X5.mjs} +1 -1
- package/dist/{chunk-2L6AWG6R.mjs → chunk-AZ5MV7NO.mjs} +2 -2
- package/dist/{chunk-YOKF4FEM.mjs → chunk-BMZG77IE.mjs} +1 -1
- package/dist/chunk-BXEALHGJ.mjs +142 -0
- package/dist/{chunk-V6YEUAIH.mjs → chunk-CV7GOXGO.mjs} +2 -2
- package/dist/{chunk-YKX5AGFQ.mjs → chunk-D3AHBPI5.mjs} +1 -1
- package/dist/{chunk-2VF2D4DL.mjs → chunk-DGDELNS3.mjs} +1 -1
- package/dist/{chunk-RJZMTP7J.mjs → chunk-DHB2L7O2.mjs} +1 -1
- package/dist/{chunk-ZED4UNH7.mjs → chunk-DPTILX6A.mjs} +2 -2
- package/dist/{chunk-RQGM66Q4.mjs → chunk-DRLNETNN.mjs} +1 -1
- package/dist/{chunk-673GELPP.mjs → chunk-DVWMM7AI.mjs} +3 -3
- package/dist/{chunk-O633TXQG.mjs → chunk-EEVXIKNB.mjs} +1 -1
- package/dist/{chunk-EQYJUXKZ.mjs → chunk-EGCBZZGV.mjs} +1 -1
- package/dist/{chunk-HK2DQNBU.mjs → chunk-ETV6EEYB.mjs} +4 -4
- package/dist/{chunk-ORWAJNJO.mjs → chunk-F6SQTC6R.mjs} +3 -3
- package/dist/{chunk-25EF7VEC.mjs → chunk-F7JPOQIC.mjs} +1 -1
- package/dist/{chunk-JQNNFILH.mjs → chunk-FWRVXOCU.mjs} +1 -1
- package/dist/{chunk-4YSV633W.mjs → chunk-GAWBCR4S.mjs} +1 -1
- package/dist/{chunk-ZWV2O6CK.mjs → chunk-GR45UN4U.mjs} +3 -3
- package/dist/chunk-GXN5ZNBZ.mjs +135 -0
- package/dist/{chunk-CIFGBEFV.mjs → chunk-HNBHBFLY.mjs} +1 -1
- package/dist/{chunk-USEHRJFR.mjs → chunk-HNVHGBNE.mjs} +1 -1
- package/dist/{chunk-QPO45D6F.mjs → chunk-I2MVZVXE.mjs} +1 -1
- package/dist/chunk-IC4N2KYF.mjs +401 -0
- package/dist/{chunk-QOYK2HBL.mjs → chunk-IM5B557Z.mjs} +19 -19
- package/dist/{chunk-J5ZETWHG.mjs → chunk-IQ67MHAY.mjs} +2 -2
- package/dist/{chunk-UFBLZW2N.mjs → chunk-IWQEM5KO.mjs} +2 -2
- package/dist/{chunk-UJI3Y73K.mjs → chunk-J5GM5CJK.mjs} +3 -3
- package/dist/chunk-JCSRFM37.mjs +595 -0
- package/dist/{chunk-QMFGV3M5.mjs → chunk-JOGVCBYP.mjs} +1 -1
- package/dist/{chunk-K6N5K2A7.mjs → chunk-JWMQOARK.mjs} +4 -4
- package/dist/{chunk-DSVXGGGV.mjs → chunk-K5ZNBHQO.mjs} +1 -1
- package/dist/{chunk-UYUP2DAL.mjs → chunk-KHFPDDTO.mjs} +1 -1
- package/dist/{chunk-CVH5TDS6.mjs → chunk-KJVAS4I7.mjs} +27 -12
- package/dist/{chunk-4PC77ZEN.mjs → chunk-KMGTUNRZ.mjs} +1 -1
- package/dist/{chunk-LVLEZS7Q.mjs → chunk-KYY7BMXI.mjs} +1 -1
- package/dist/{chunk-GDMWNNYC.mjs → chunk-LRMDRQRJ.mjs} +2 -2
- package/dist/{chunk-CIXAM7LW.mjs → chunk-LRTEGIZ7.mjs} +12 -12
- package/dist/{chunk-XGHUG2WQ.mjs → chunk-MDG2I4PB.mjs} +1 -1
- package/dist/{chunk-S27KJUKF.mjs → chunk-N5HTSJLI.mjs} +1 -1
- package/dist/{chunk-MPFWWJYT.mjs → chunk-N5Q2DYUR.mjs} +2 -2
- package/dist/{chunk-3W5H36HK.mjs → chunk-NNH7EC5Z.mjs} +1 -1
- package/dist/{chunk-5Z7JRCOM.mjs → chunk-NSYYRG6A.mjs} +1 -1
- package/dist/{chunk-JD7SR5V3.mjs → chunk-NUAJQK4H.mjs} +64 -8
- package/dist/{chunk-SSF2CAW7.mjs → chunk-OR3XMMEK.mjs} +9 -9
- package/dist/{chunk-RC6YHGVV.mjs → chunk-PE7KJR4A.mjs} +1 -1
- package/dist/{chunk-V2BZ7RE7.mjs → chunk-PLFX66EX.mjs} +1 -1
- package/dist/{chunk-E6M7XAYT.mjs → chunk-Q45EN2QB.mjs} +1 -1
- package/dist/{chunk-22E2TZBE.mjs → chunk-QDO6BAAN.mjs} +13 -5
- package/dist/{chunk-P4P6J2SW.mjs → chunk-QJGBUBSB.mjs} +2 -2
- package/dist/{chunk-TIGSOXUA.mjs → chunk-QJQ66DYZ.mjs} +1 -1
- package/dist/{chunk-ZF2DELZ5.mjs → chunk-QXOHY4AT.mjs} +39 -3
- package/dist/{chunk-NF4JWFAZ.mjs → chunk-RFMER577.mjs} +1 -1
- package/dist/{chunk-PIGOOCU6.mjs → chunk-RNHGLZYP.mjs} +1 -1
- package/dist/{chunk-QUGB53Z3.mjs → chunk-RV4VRLGN.mjs} +1 -1
- package/dist/{chunk-KCPLIAIF.mjs → chunk-SJI6X5DK.mjs} +2 -2
- package/dist/{chunk-B63AROCU.mjs → chunk-SMX6BH2N.mjs} +1 -1
- package/dist/{chunk-L3SZS7PC.mjs → chunk-SNUES6JA.mjs} +1 -1
- package/dist/{chunk-6R3QP53O.mjs → chunk-TZH6L2OH.mjs} +2 -2
- package/dist/{chunk-EJJNYV7C.mjs → chunk-U6ZFUE5O.mjs} +2 -2
- package/dist/{chunk-OPJMXB4K.mjs → chunk-UCK4TW63.mjs} +4 -4
- package/dist/{chunk-HI6QOZHR.mjs → chunk-V6VAVPKH.mjs} +1 -1
- package/dist/{chunk-PRMR24PY.mjs → chunk-WAR2OXXK.mjs} +4 -4
- package/dist/{chunk-4PFDNMLD.mjs → chunk-WEIPDZOJ.mjs} +1 -1
- package/dist/{chunk-TLCSKAWQ.mjs → chunk-WZBXR7J3.mjs} +5 -5
- package/dist/{chunk-FECAR2TE.mjs → chunk-X4GP2O3Y.mjs} +2 -2
- package/dist/{chunk-UNEYYMLL.mjs → chunk-XCZCWSOY.mjs} +2 -2
- package/dist/{chunk-QE3XE3LW.mjs → chunk-Y4KJTMKO.mjs} +1 -1
- package/dist/{chunk-AOSO2JVA.mjs → chunk-YUZYLKBD.mjs} +1 -1
- package/dist/{chunk-YFOEG4PP.mjs → chunk-Z6MYLHDW.mjs} +1 -1
- package/dist/{chunk-TP5AUT7W.mjs → chunk-ZJB7AFL5.mjs} +2 -2
- package/dist/components/AdvancedComponents/AppSidebar.d.ts +1 -1
- package/dist/components/AdvancedComponents/AppSidebar.js +480 -301
- package/dist/components/AdvancedComponents/AppSidebar.mjs +3 -3
- package/dist/components/AdvancedComponents/index.js +480 -301
- package/dist/components/AdvancedComponents/index.mjs +3 -3
- package/dist/components/AdvancedComponents/user-selection.d.ts +1 -1
- package/dist/components/AdvancedComponents/user-selection.js +1 -1
- package/dist/components/AdvancedComponents/user-selection.mjs +1 -1
- package/dist/components/Blocks/Banner.mjs +3 -3
- package/dist/components/Blocks/CallToAction.mjs +3 -3
- package/dist/components/Blocks/CollapsibleArea.mjs +4 -4
- package/dist/components/Blocks/Content.mjs +4 -4
- package/dist/components/Blocks/FeaturesBlock.mjs +3 -3
- package/dist/components/Blocks/RelatedPosts.mjs +4 -4
- package/dist/components/Blocks/RenderBlocks.mjs +6 -6
- package/dist/components/Blocks/ReusableContentBlock.mjs +6 -6
- package/dist/components/Blocks/index.mjs +7 -7
- package/dist/components/Cards/ContentCard.mjs +3 -3
- package/dist/components/Cards/FeatureCard.mjs +3 -3
- package/dist/components/Cards/index.mjs +3 -3
- package/dist/components/Chat/CopilotInterface.d.ts +1 -1
- package/dist/components/Chat/CopilotInterface.js +527 -330
- package/dist/components/Chat/CopilotInterface.mjs +5 -5
- package/dist/components/Chat/chat-session-sidebar.d.ts +1 -1
- package/dist/components/Chat/demo-long-messages.js +527 -330
- package/dist/components/Chat/demo-long-messages.mjs +5 -5
- package/dist/components/Chat/demo-tests.js +527 -330
- package/dist/components/Chat/demo-tests.mjs +5 -5
- package/dist/components/Chat/demo.js +527 -330
- package/dist/components/Chat/demo.mjs +5 -5
- package/dist/components/Chat/example-usage.js +527 -330
- package/dist/components/Chat/example-usage.mjs +6 -6
- package/dist/components/Chat/example-with-vercel-ai.js +527 -330
- package/dist/components/Chat/example-with-vercel-ai.mjs +5 -5
- package/dist/components/Chat/index.js +527 -330
- package/dist/components/Chat/index.mjs +8 -8
- package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.mjs +2 -2
- package/dist/components/DeliveryLead/index.mjs +4 -4
- package/dist/components/DigitalColleagues/Views/TeamsIndexView.d.ts +1 -9
- package/dist/components/DigitalColleagues/Views/TeamsIndexView.js +22 -27
- package/dist/components/DigitalColleagues/Views/TeamsIndexView.mjs +4 -6
- package/dist/components/DigitalColleagues/index.d.ts +0 -18
- package/dist/components/DigitalColleagues/index.js +0 -16754
- package/dist/components/DigitalColleagues/test-data.d.ts +1 -112
- package/dist/components/DigitalColleagues/test-data.js +482 -308
- package/dist/components/DigitalColleagues/test-data.mjs +1 -5
- package/dist/components/{Foundary → Foundry}/AppSidebarLeft.js +3 -3
- package/dist/components/{DigitalColleagues → Foundry}/AppSidebarLeft.mjs +3 -3
- package/dist/components/{Foundary → Foundry}/DashboardHeader.js +2 -2
- package/dist/components/{Foundary → Foundry}/DashboardHeader.mjs +1 -1
- package/dist/components/{Foundary → Foundry}/Knowledge/add-knowledge-modal.js +2 -2
- package/dist/components/{Foundary → Foundry}/Knowledge/add-knowledge-modal.mjs +4 -4
- package/dist/components/{Foundary → Foundry}/Knowledge/add-team-context.js +3 -3
- package/dist/components/{Foundary → Foundry}/Knowledge/add-team-context.mjs +4 -4
- package/dist/components/{Foundary → Foundry}/Knowledge/manage-team-context.js +2 -2
- package/dist/components/{Foundary → Foundry}/Knowledge/manage-team-context.mjs +1 -1
- package/dist/components/{Foundary → Foundry}/LandingMenu.js +2 -2
- package/dist/components/{Foundary → Foundry}/LandingMenu.mjs +1 -1
- package/dist/components/{Foundary → Foundry}/Login.js +2 -2
- package/dist/components/{Foundary → Foundry}/Login.mjs +1 -1
- package/dist/components/{Foundary → Foundry}/MainPage.js +4 -4
- package/dist/components/{DigitalColleagues → Foundry}/MainPage.mjs +9 -9
- package/dist/components/{DigitalColleagues → Foundry}/ManagementSidebar.d.ts +2 -2
- package/dist/components/{Foundary → Foundry}/ManagementSidebar.js +12 -4
- package/dist/components/{DigitalColleagues → Foundry}/ManagementSidebar.mjs +1 -1
- package/dist/components/{Foundary → Foundry}/Pages/dashboardpage.js +1860 -2162
- package/dist/components/{Foundary → Foundry}/Pages/dashboardpage.mjs +42 -41
- package/dist/components/{Foundary → Foundry}/README-document-edit.js +1 -1
- package/dist/components/{Foundary → Foundry}/README-document-edit.mjs +1 -1
- package/dist/components/{Foundary → Foundry}/README-document-preview.js +1 -1
- package/dist/components/{Foundary → Foundry}/README-document-preview.mjs +1 -1
- package/dist/components/{Foundary → Foundry}/RichText/Icons/Bold.js +1 -1
- package/dist/components/{Foundary → Foundry}/RichText/Icons/Bold.mjs +1 -1
- package/dist/components/{Foundary → Foundry}/RichText/Icons/Headings.js +1 -1
- package/dist/components/{Foundary → Foundry}/RichText/Icons/Headings.mjs +1 -1
- package/dist/components/{Foundary → Foundry}/RichText/Icons/Italic.js +1 -1
- package/dist/components/{Foundary → Foundry}/RichText/Icons/Italic.mjs +1 -1
- package/dist/components/{Foundary → Foundry}/RichText/Icons/StrikeThrough.js +1 -1
- package/dist/components/{Foundary → Foundry}/RichText/Icons/StrikeThrough.mjs +1 -1
- package/dist/components/{Foundary → Foundry}/RichText/Icons/Subscript.js +1 -1
- package/dist/components/{Foundary → Foundry}/RichText/Icons/Subscript.mjs +1 -1
- package/dist/components/{Foundary → Foundry}/RichText/Icons/Superscript.js +1 -1
- package/dist/components/{Foundary → Foundry}/RichText/Icons/Superscript.mjs +1 -1
- package/dist/components/{Foundary → Foundry}/RichText/Icons/Underline.js +1 -1
- package/dist/components/{Foundary → Foundry}/RichText/Icons/Underline.mjs +1 -1
- package/dist/components/{Foundary → Foundry}/RichText/components/RawUploadComponent/index.js +2 -2
- package/dist/components/{Foundary → Foundry}/RichText/components/RawUploadComponent/index.mjs +1 -1
- package/dist/components/{Foundary → Foundry}/RichText/index.js +18 -18
- package/dist/components/{Foundary → Foundry}/RichText/index.mjs +12 -12
- package/dist/components/{Foundary → Foundry}/RichText/nodes/image-node.js +4 -4
- package/dist/components/{Foundary → Foundry}/RichText/nodes/image-node.mjs +2 -2
- package/dist/components/{Foundary → Foundry}/RichText/plugins/image-plugin.js +7 -7
- package/dist/components/{Foundary → Foundry}/RichText/plugins/image-plugin.mjs +3 -3
- package/dist/components/{Foundary → Foundry}/RichText/plugins/toolbar-plugin.js +16 -16
- package/dist/components/{Foundary → Foundry}/RichText/plugins/toolbar-plugin.mjs +11 -11
- package/dist/components/{Foundary → Foundry}/SearchableSelect.js +2 -2
- package/dist/components/{DigitalColleagues → Foundry}/SearchableSelect.mjs +1 -1
- package/dist/components/{Foundary → Foundry}/Views/ColleaguesView.d.ts +4 -2
- package/dist/components/{Foundary → Foundry}/Views/ColleaguesView.js +526 -211
- package/dist/components/{Foundary → Foundry}/Views/ColleaguesView.mjs +12 -10
- package/dist/components/Foundry/Views/KnowledgeView.docs.js +2 -0
- package/dist/components/Foundry/Views/KnowledgeView.docs.mjs +7 -0
- package/dist/components/{Foundary → Foundry}/Views/KnowledgeView.js +29 -29
- package/dist/components/{Foundary → Foundry}/Views/KnowledgeView.mjs +21 -21
- package/dist/components/{Foundary → Foundry}/Views/TeamsIndexView.js +9 -8
- package/dist/components/{Foundary → Foundry}/Views/TeamsIndexView.mjs +4 -4
- package/dist/components/{Foundary → Foundry}/Views/index.js +2929 -2050
- package/dist/components/{Foundary → Foundry}/Views/index.mjs +64 -61
- package/dist/components/Foundry/add-colleague-to-team-form.d.ts +10 -0
- package/dist/components/{DigitalColleagues/colleague-type-selection.js → Foundry/add-colleague-to-team-form.js} +156 -91
- package/dist/components/{DigitalColleagues/colleague-card.mjs → Foundry/add-colleague-to-team-form.mjs} +3 -4
- package/dist/components/{.archive → Foundry}/app-card.d.ts +1 -1
- package/dist/components/Foundry/app-card.js +2669 -0
- package/dist/components/{DigitalColleagues/digital-colleague-options.mjs → Foundry/app-card.mjs} +5 -3
- package/dist/components/{Foundary → Foundry}/colleague-card.js +2 -2
- package/dist/components/{Foundary → Foundry}/colleague-card.mjs +1 -1
- package/dist/components/{Foundary → Foundry}/colleague-form.js +4 -4
- package/dist/components/{Foundary → Foundry}/colleague-form.mjs +2 -2
- package/dist/components/{Foundary → Foundry}/colleague-type-selection.js +2 -2
- package/dist/components/{DigitalColleagues → Foundry}/colleague-type-selection.mjs +1 -1
- package/dist/components/Foundry/digital-colleague-selection.d.ts +9 -0
- package/dist/components/{DigitalColleagues/digital-colleague-clone.js → Foundry/digital-colleague-selection.js} +59 -100
- package/dist/components/{DigitalColleagues/digital-colleague-clone.mjs → Foundry/digital-colleague-selection.mjs} +3 -3
- package/dist/components/{Foundary → Foundry}/document-edit.js +20 -20
- package/dist/components/{Foundary → Foundry}/document-edit.mjs +13 -13
- package/dist/components/{Foundary → Foundry}/document-preview-examples.js +24 -24
- package/dist/components/{Foundary → Foundry}/document-preview-examples.mjs +15 -15
- package/dist/components/{Foundary → Foundry}/document-preview.js +22 -22
- package/dist/components/{Foundary → Foundry}/document-preview.mjs +14 -14
- package/dist/components/{Foundary → Foundry}/file-edit.js +20 -20
- package/dist/components/{Foundary → Foundry}/file-edit.mjs +16 -16
- package/dist/components/{Foundary → Foundry}/foundary-clone.js +3 -3
- package/dist/components/{Foundary → Foundry}/foundary-clone.mjs +1 -1
- package/dist/components/{Foundary → Foundry}/foundary-layout.d.ts +3 -3
- package/dist/components/{Foundary → Foundry}/foundary-layout.js +485 -306
- package/dist/components/{Foundary → Foundry}/foundary-layout.mjs +6 -6
- package/dist/components/{Foundary → Foundry}/foundary-options.d.ts +2 -1
- package/dist/components/{Foundary → Foundry}/foundary-options.js +39 -3
- package/dist/components/{Foundary → Foundry}/foundary-options.mjs +1 -1
- package/dist/components/{Foundary → Foundry}/index.d.ts +3 -1
- package/dist/components/{Foundary → Foundry}/index.js +3465 -3267
- package/dist/components/{Foundary → Foundry}/index.mjs +102 -95
- package/dist/components/{Foundary → Foundry}/knowledge-browser.js +24 -24
- package/dist/components/{Foundary → Foundry}/knowledge-browser.mjs +15 -15
- package/dist/components/{Foundary → Foundry}/knowledge-search.js +2 -2
- package/dist/components/{DigitalColleagues → Foundry}/knowledge-search.mjs +1 -1
- package/dist/components/{Foundary → Foundry}/team-form.js +2 -2
- package/dist/components/{Foundary → Foundry}/team-form.mjs +1 -1
- package/dist/components/{Foundary → Foundry}/test-data.js +1 -1
- package/dist/components/{Foundary → Foundry}/test-data.mjs +1 -1
- package/dist/components/{Foundary → Foundry}/types.d.ts +26 -0
- package/dist/components/{Foundary → Foundry}/types.js +1 -1
- package/dist/components/HeaderFooter/Header.mjs +1 -1
- package/dist/components/HeaderFooter/SectionHeading.mjs +4 -4
- package/dist/components/HeaderFooter/index.mjs +11 -11
- package/dist/components/Heros/DashboardHero/DashboardHero.js +5 -4
- package/dist/components/Heros/DashboardHero/DashboardHero.mjs +2 -2
- package/dist/components/Heros/DashboardHero/index.js +5 -4
- package/dist/components/Heros/DashboardHero/index.mjs +2 -2
- package/dist/components/Heros/HighImpact/index.mjs +4 -4
- package/dist/components/Heros/LowImpact/index.mjs +4 -4
- package/dist/components/Heros/MediumImpact/index.mjs +4 -4
- package/dist/components/Heros/PostHero/index.mjs +3 -3
- package/dist/components/Heros/RenderHero.mjs +7 -7
- package/dist/components/Heros/index.js +5 -4
- package/dist/components/Heros/index.mjs +14 -14
- package/dist/components/Layouts/OutputHeaderFooter.mjs +4 -4
- package/dist/components/Layouts/Print.mjs +8 -8
- package/dist/components/Layouts/SlideShow.mjs +9 -9
- package/dist/components/Layouts/index.mjs +13 -13
- package/dist/components/Menus/SidebarLeft.mjs +3 -3
- package/dist/components/Menus/SidebarLeftMulti.mjs +3 -3
- package/dist/components/Menus/SidebarRight.mjs +3 -3
- package/dist/components/Menus/index.mjs +5 -5
- package/dist/components/Payload/RichText/index.mjs +3 -3
- package/dist/components/Payload/RichText/serialize.mjs +3 -3
- package/dist/components/Payload/index.mjs +3 -3
- package/dist/components/Projects/AddEpicModal.d.ts +1 -1
- package/dist/components/Projects/AddSprintModal.d.ts +1 -1
- package/dist/components/Projects/AddTaskModal.d.ts +1 -1
- package/dist/components/Projects/EpicFilter.d.ts +6 -2
- package/dist/components/Projects/EpicFilter.js +6 -6
- package/dist/components/Projects/EpicFilter.mjs +6 -6
- package/dist/components/Projects/EpicsView.d.ts +12 -2
- package/dist/components/Projects/EpicsView.js +3980 -736
- package/dist/components/Projects/EpicsView.mjs +46 -4
- package/dist/components/Projects/FileView.d.ts +1 -1
- package/dist/components/Projects/FileView.js +24 -23
- package/dist/components/Projects/FileView.mjs +20 -20
- package/dist/components/Projects/GanttView.d.ts +13 -0
- package/dist/components/{DigitalColleagues/colleague-card.js → Projects/GanttView.js} +559 -260
- package/dist/components/Projects/GanttView.mjs +20 -0
- package/dist/components/Projects/KanbanBoardView.d.ts +1 -1
- package/dist/components/Projects/KanbanBoardView.js +25 -24
- package/dist/components/Projects/KanbanBoardView.mjs +26 -26
- package/dist/components/Projects/KanbanColumn.d.ts +1 -1
- package/dist/components/Projects/PlanningView.d.ts +1 -1
- package/dist/components/Projects/PlanningView.js +5 -4
- package/dist/components/Projects/PlanningView.mjs +3 -3
- package/dist/components/Projects/ProjectPage.d.ts +3 -3
- package/dist/components/Projects/ProjectPage.js +1744 -983
- package/dist/components/Projects/ProjectPage.mjs +39 -38
- package/dist/components/Projects/ProjectView.d.ts +2 -2
- package/dist/components/Projects/ProjectView.js +1227 -662
- package/dist/components/Projects/ProjectView.mjs +34 -33
- package/dist/components/Projects/ProjectsIndexView.d.ts +1 -1
- package/dist/components/Projects/ProjectsIndexView.js +5 -4
- package/dist/components/Projects/ProjectsIndexView.mjs +4 -4
- package/dist/components/Projects/SprintBoardView.d.ts +4 -1
- package/dist/components/Projects/SprintBoardView.js +271 -129
- package/dist/components/Projects/SprintBoardView.mjs +26 -26
- package/dist/components/Projects/TaskCard.d.ts +1 -1
- package/dist/components/Projects/TaskDetailsModal.d.ts +1 -1
- package/dist/components/Projects/TaskDetailsModal.js +20 -20
- package/dist/components/Projects/TaskDetailsModal.mjs +20 -20
- package/dist/components/Projects/TaskSidebar.d.ts +1 -1
- package/dist/components/Projects/TaskSidebar.js +2 -2
- package/dist/components/Projects/TaskSidebar.mjs +2 -2
- package/dist/components/Projects/TasksView.d.ts +1 -1
- package/dist/components/Projects/TasksView.js +5 -4
- package/dist/components/Projects/TasksView.mjs +3 -3
- package/dist/components/Projects/business-unit-switcher.d.ts +1 -1
- package/dist/components/Projects/business-units.d.ts +1 -1
- package/dist/components/Projects/file-list.d.ts +1 -1
- package/dist/components/Projects/file-list.js +19 -19
- package/dist/components/Projects/file-list.mjs +17 -17
- package/dist/components/Projects/index.js +557 -250
- package/dist/components/Projects/index.mjs +35 -35
- package/dist/components/Projects/project-card.d.ts +1 -1
- package/dist/components/Projects/project-form.d.ts +1 -1
- package/dist/components/Projects/team-card.d.ts +1 -1
- package/dist/components/Projects/team-switcher-bar.d.ts +1 -1
- package/dist/components/Projects/test-data.d.ts +448 -29
- package/dist/components/dc-temp/dashboard-integration-example.js +497 -325
- package/dist/components/dc-temp/dashboard-integration-example.mjs +6 -6
- package/dist/components/dc-temp/index.d.ts +3 -3
- package/dist/components/dc-temp/index.js +3773 -3007
- package/dist/components/dc-temp/index.mjs +35 -33
- package/dist/components/dc-temp/mock-data.d.ts +2 -2
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +3337 -3100
- package/dist/components/index.mjs +163 -157
- package/dist/components/ui/index.mjs +9 -9
- package/dist/components/ui/sidebar.mjs +2 -2
- package/dist/decorators/Intranet.css +54 -14
- package/dist/decorators/Intranet.mjs +99 -99
- package/dist/globals.css +54 -14
- package/dist/hooks/use-local-storage.d.ts +2 -1
- package/dist/hooks/use-local-storage.js +5 -4
- package/dist/hooks/use-local-storage.mjs +1 -1
- package/dist/index.js +3345 -3108
- package/dist/index.mjs +174 -168
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/pages/Blog.mjs +12 -12
- package/dist/pages/Documentation.mjs +9 -9
- package/dist/pages/IndexPage.mjs +17 -17
- package/dist/pages/Intranet.mjs +3 -3
- package/dist/pages/LandingPage.mjs +111 -111
- package/dist/pages/Page.mjs +16 -16
- package/dist/pages/Publish.mjs +100 -100
- package/dist/pages/Website.mjs +19 -19
- package/dist/sections/AboutSection.mjs +5 -5
- package/dist/sections/BlogDetail.mjs +4 -4
- package/dist/sections/BlogList.mjs +5 -5
- package/dist/sections/BlogListSection.mjs +5 -5
- package/dist/sections/ContactSection.mjs +5 -5
- package/dist/sections/PageSections.mjs +109 -109
- package/dist/sections/PricingSection.mjs +5 -5
- package/dist/sections/ServiceDetail.mjs +4 -4
- package/dist/sections/ServiceDetailSection.mjs +4 -4
- package/dist/sections/ServiceSection.mjs +100 -100
- package/dist/sections/form/index.mjs +2 -2
- package/dist/sections/index.mjs +109 -109
- package/package.json +5 -2
- package/dist/chunk-5MMSWFVA.mjs +0 -364
- package/dist/chunk-7TDXZ32Q.mjs +0 -197
- package/dist/chunk-APXXTGT4.mjs +0 -424
- package/dist/chunk-BZENEU5C.mjs +0 -160
- package/dist/chunk-CNQTT5P3.mjs +0 -276
- package/dist/chunk-CQKCEXF2.mjs +0 -82
- package/dist/chunk-EKQB7NJA.mjs +0 -194
- package/dist/chunk-G4WW3ZTX.mjs +0 -1063
- package/dist/chunk-G7SFQSC7.mjs +0 -306
- package/dist/chunk-IWG2URAU.mjs +0 -74
- package/dist/chunk-IWSATDRG.mjs +0 -118
- package/dist/chunk-JRNDRMIC.mjs +0 -73
- package/dist/chunk-K2C4VMGF.mjs +0 -121
- package/dist/chunk-M6ELOAGS.mjs +0 -136
- package/dist/chunk-NAUBZM7P.mjs +0 -183
- package/dist/chunk-NHDPHK6D.mjs +0 -72
- package/dist/chunk-R5MJWISX.mjs +0 -194
- package/dist/chunk-RKYMAFRJ.mjs +0 -92
- package/dist/chunk-SZBUXY6L.mjs +0 -121
- package/dist/chunk-UHOCECJY.mjs +0 -365
- package/dist/chunk-VY6L37RQ.mjs +0 -103
- package/dist/chunk-X6UI73UN.mjs +0 -262
- package/dist/components/DigitalColleagues/AppSidebarLeft.js +0 -3407
- package/dist/components/DigitalColleagues/DashboardHeader.js +0 -2756
- package/dist/components/DigitalColleagues/DashboardHeader.mjs +0 -15
- package/dist/components/DigitalColleagues/DigitalColleageusLayout.d.ts +0 -28
- package/dist/components/DigitalColleagues/DigitalColleageusLayout.js +0 -4417
- package/dist/components/DigitalColleagues/DigitalColleageusLayout.mjs +0 -31
- package/dist/components/DigitalColleagues/MainPage.js +0 -4080
- package/dist/components/DigitalColleagues/ManagementSidebar.js +0 -99
- package/dist/components/DigitalColleagues/Pages/dashboardpage.d.ts +0 -18
- package/dist/components/DigitalColleagues/Pages/dashboardpage.js +0 -8514
- package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +0 -78
- package/dist/components/DigitalColleagues/README-document-edit.js +0 -2
- package/dist/components/DigitalColleagues/README-document-edit.mjs +0 -7
- package/dist/components/DigitalColleagues/README-document-preview.js +0 -2
- package/dist/components/DigitalColleagues/README-document-preview.mjs +0 -7
- package/dist/components/DigitalColleagues/SearchableSelect.js +0 -2745
- package/dist/components/DigitalColleagues/Views/ColleaguesView.d.ts +0 -14
- package/dist/components/DigitalColleagues/Views/ColleaguesView.js +0 -3795
- package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +0 -28
- package/dist/components/DigitalColleagues/Views/KnowledgeView.d.ts +0 -11
- package/dist/components/DigitalColleagues/Views/KnowledgeView.docs.js +0 -2
- package/dist/components/DigitalColleagues/Views/KnowledgeView.docs.mjs +0 -7
- package/dist/components/DigitalColleagues/Views/KnowledgeView.js +0 -3935
- package/dist/components/DigitalColleagues/Views/KnowledgeView.mjs +0 -26
- package/dist/components/DigitalColleagues/Views/index.js +0 -12284
- package/dist/components/DigitalColleagues/Views/index.mjs +0 -114
- package/dist/components/DigitalColleagues/colleague-form.d.ts +0 -14
- package/dist/components/DigitalColleagues/colleague-form.js +0 -3086
- package/dist/components/DigitalColleagues/colleague-form.mjs +0 -22
- package/dist/components/DigitalColleagues/digital-colleague-clone.d.ts +0 -9
- package/dist/components/DigitalColleagues/digital-colleague-options.d.ts +0 -7
- package/dist/components/DigitalColleagues/digital-colleague-options.js +0 -2697
- package/dist/components/DigitalColleagues/document-edit.d.ts +0 -10
- package/dist/components/DigitalColleagues/document-edit.js +0 -3112
- package/dist/components/DigitalColleagues/document-edit.mjs +0 -20
- package/dist/components/DigitalColleagues/document-preview-examples.js +0 -3433
- package/dist/components/DigitalColleagues/document-preview-examples.mjs +0 -151
- package/dist/components/DigitalColleagues/document-preview.d.ts +0 -18
- package/dist/components/DigitalColleagues/document-preview.js +0 -3296
- package/dist/components/DigitalColleagues/document-preview.mjs +0 -21
- package/dist/components/DigitalColleagues/index.mjs +0 -200
- package/dist/components/DigitalColleagues/knowledge-browser.d.ts +0 -13
- package/dist/components/DigitalColleagues/knowledge-browser.js +0 -3581
- package/dist/components/DigitalColleagues/knowledge-browser.mjs +0 -23
- package/dist/components/DigitalColleagues/knowledge-search.d.ts +0 -12
- package/dist/components/DigitalColleagues/knowledge-search.js +0 -2819
- package/dist/components/DigitalColleagues/team-form.d.ts +0 -24
- package/dist/components/DigitalColleagues/team-form.js +0 -2836
- package/dist/components/DigitalColleagues/team-form.mjs +0 -20
- package/dist/components/DigitalColleagues/types.d.ts +0 -289
- package/dist/components/DigitalColleagues/types.js +0 -18
- package/dist/components/Foundary/AppSidebarLeft.css +0 -917
- package/dist/components/Foundary/AppSidebarLeft.d.ts +0 -47
- package/dist/components/Foundary/AppSidebarLeft.mjs +0 -23
- package/dist/components/Foundary/DashboardHeader.css +0 -917
- package/dist/components/Foundary/DashboardHeader.d.ts +0 -8
- package/dist/components/Foundary/MainPage.css +0 -917
- package/dist/components/Foundary/MainPage.d.ts +0 -3
- package/dist/components/Foundary/MainPage.mjs +0 -46
- package/dist/components/Foundary/ManagementSidebar.d.ts +0 -8
- package/dist/components/Foundary/ManagementSidebar.mjs +0 -9
- package/dist/components/Foundary/Pages/dashboardpage.css +0 -917
- package/dist/components/Foundary/SearchableSelect.css +0 -917
- package/dist/components/Foundary/SearchableSelect.d.ts +0 -16
- package/dist/components/Foundary/SearchableSelect.mjs +0 -16
- package/dist/components/Foundary/Views/ColleaguesView.css +0 -917
- package/dist/components/Foundary/Views/KnowledgeView.css +0 -917
- package/dist/components/Foundary/Views/KnowledgeView.docs.js +0 -2
- package/dist/components/Foundary/Views/KnowledgeView.docs.mjs +0 -7
- package/dist/components/Foundary/Views/index.css +0 -917
- package/dist/components/Foundary/Views/index.d.ts +0 -7
- package/dist/components/Foundary/colleague-card.d.ts +0 -12
- package/dist/components/Foundary/colleague-form.css +0 -917
- package/dist/components/Foundary/colleague-type-selection.css +0 -917
- package/dist/components/Foundary/colleague-type-selection.d.ts +0 -7
- package/dist/components/Foundary/colleague-type-selection.mjs +0 -16
- package/dist/components/Foundary/document-edit.css +0 -917
- package/dist/components/Foundary/document-preview-examples.css +0 -917
- package/dist/components/Foundary/document-preview-examples.d.ts +0 -12
- package/dist/components/Foundary/document-preview.css +0 -917
- package/dist/components/Foundary/index.css +0 -917
- package/dist/components/Foundary/knowledge-browser.css +0 -917
- package/dist/components/Foundary/knowledge-search.css +0 -917
- package/dist/components/Foundary/knowledge-search.mjs +0 -20
- package/dist/components/Foundary/team-form.css +0 -917
- package/dist/{chunk-AEFGMCK3.mjs → chunk-D5KV6INF.mjs} +3 -3
- package/dist/{chunk-SNG6OKEL.mjs → chunk-FTVOJKVA.mjs} +3 -3
- package/dist/{chunk-OT2SSFKS.mjs → chunk-GSG52WU5.mjs} +3 -3
- /package/dist/components/{DigitalColleagues → Foundry}/AppSidebarLeft.css +0 -0
- /package/dist/components/{DigitalColleagues → Foundry}/AppSidebarLeft.d.ts +0 -0
- /package/dist/components/{DigitalColleagues → Foundry}/DashboardHeader.css +0 -0
- /package/dist/components/{DigitalColleagues → Foundry}/DashboardHeader.d.ts +0 -0
- /package/dist/components/{Foundary → Foundry}/Knowledge/add-knowledge-modal.css +0 -0
- /package/dist/components/{Foundary → Foundry}/Knowledge/add-knowledge-modal.d.ts +0 -0
- /package/dist/components/{Foundary → Foundry}/Knowledge/add-team-context.css +0 -0
- /package/dist/components/{Foundary → Foundry}/Knowledge/add-team-context.d.ts +0 -0
- /package/dist/components/{Foundary → Foundry}/Knowledge/manage-team-context.css +0 -0
- /package/dist/components/{Foundary → Foundry}/Knowledge/manage-team-context.d.ts +0 -0
- /package/dist/components/{Foundary → Foundry}/LandingMenu.css +0 -0
- /package/dist/components/{Foundary → Foundry}/LandingMenu.d.ts +0 -0
- /package/dist/components/{Foundary → Foundry}/Login.css +0 -0
- /package/dist/components/{Foundary → Foundry}/Login.d.ts +0 -0
- /package/dist/components/{DigitalColleagues → Foundry}/MainPage.css +0 -0
- /package/dist/components/{DigitalColleagues → Foundry}/MainPage.d.ts +0 -0
- /package/dist/components/{DigitalColleagues → Foundry}/Pages/dashboardpage.css +0 -0
- /package/dist/components/{Foundary → Foundry}/Pages/dashboardpage.d.ts +0 -0
- /package/dist/components/{Foundary → Foundry}/RichText/Icons/Bold.d.ts +0 -0
- /package/dist/components/{Foundary → Foundry}/RichText/Icons/Headings.d.ts +0 -0
- /package/dist/components/{Foundary → Foundry}/RichText/Icons/Italic.d.ts +0 -0
- /package/dist/components/{Foundary → Foundry}/RichText/Icons/StrikeThrough.d.ts +0 -0
- /package/dist/components/{Foundary → Foundry}/RichText/Icons/Subscript.d.ts +0 -0
- /package/dist/components/{Foundary → Foundry}/RichText/Icons/Superscript.d.ts +0 -0
- /package/dist/components/{Foundary → Foundry}/RichText/Icons/Underline.d.ts +0 -0
- /package/dist/components/{DigitalColleagues/Views → Foundry/RichText/components/RawUploadComponent}/index.css +0 -0
- /package/dist/components/{Foundary → Foundry}/RichText/components/RawUploadComponent/index.d.ts +0 -0
- /package/dist/components/{DigitalColleagues → Foundry/RichText}/index.css +0 -0
- /package/dist/components/{Foundary → Foundry}/RichText/index.d.ts +0 -0
- /package/dist/components/{Foundary → Foundry}/RichText/nodes/image-node.css +0 -0
- /package/dist/components/{Foundary → Foundry}/RichText/nodes/image-node.d.ts +0 -0
- /package/dist/components/{Foundary → Foundry}/RichText/plugins/image-plugin.css +0 -0
- /package/dist/components/{Foundary → Foundry}/RichText/plugins/image-plugin.d.ts +0 -0
- /package/dist/components/{Foundary → Foundry}/RichText/plugins/toolbar-plugin.css +0 -0
- /package/dist/components/{Foundary → Foundry}/RichText/plugins/toolbar-plugin.d.ts +0 -0
- /package/dist/components/{DigitalColleagues → Foundry}/SearchableSelect.css +0 -0
- /package/dist/components/{DigitalColleagues → Foundry}/SearchableSelect.d.ts +0 -0
- /package/dist/components/{DigitalColleagues → Foundry}/Views/ColleaguesView.css +0 -0
- /package/dist/components/{DigitalColleagues → Foundry}/Views/KnowledgeView.css +0 -0
- /package/dist/components/{Foundary → Foundry}/Views/KnowledgeView.d.ts +0 -0
- /package/dist/components/{Foundary → Foundry}/Views/TeamsIndexView.css +0 -0
- /package/dist/components/{Foundary → Foundry}/Views/TeamsIndexView.d.ts +0 -0
- /package/dist/components/{Foundary/RichText/components/RawUploadComponent → Foundry/Views}/index.css +0 -0
- /package/dist/components/{DigitalColleagues → Foundry}/Views/index.d.ts +0 -0
- /package/dist/components/{DigitalColleagues/DigitalColleageusLayout.css → Foundry/add-colleague-to-team-form.css} +0 -0
- /package/dist/components/{DigitalColleagues/colleague-card.css → Foundry/app-card.css} +0 -0
- /package/dist/components/{Foundary → Foundry}/colleague-card.css +0 -0
- /package/dist/components/{DigitalColleagues → Foundry}/colleague-card.d.ts +0 -0
- /package/dist/components/{DigitalColleagues → Foundry}/colleague-form.css +0 -0
- /package/dist/components/{Foundary → Foundry}/colleague-form.d.ts +0 -0
- /package/dist/components/{DigitalColleagues → Foundry}/colleague-type-selection.css +0 -0
- /package/dist/components/{DigitalColleagues → Foundry}/colleague-type-selection.d.ts +0 -0
- /package/dist/components/{DigitalColleagues/digital-colleague-clone.css → Foundry/digital-colleague-selection.css} +0 -0
- /package/dist/components/{DigitalColleagues → Foundry}/document-edit.css +0 -0
- /package/dist/components/{Foundary → Foundry}/document-edit.d.ts +0 -0
- /package/dist/components/{DigitalColleagues → Foundry}/document-preview-examples.css +0 -0
- /package/dist/components/{DigitalColleagues → Foundry}/document-preview-examples.d.ts +0 -0
- /package/dist/components/{DigitalColleagues → Foundry}/document-preview.css +0 -0
- /package/dist/components/{Foundary → Foundry}/document-preview.d.ts +0 -0
- /package/dist/components/{Foundary → Foundry}/file-edit.css +0 -0
- /package/dist/components/{Foundary → Foundry}/file-edit.d.ts +0 -0
- /package/dist/components/{Foundary → Foundry}/foundary-clone.css +0 -0
- /package/dist/components/{Foundary → Foundry}/foundary-clone.d.ts +0 -0
- /package/dist/components/{Foundary → Foundry}/foundary-layout.css +0 -0
- /package/dist/components/{Foundary → Foundry}/foundary-options.css +0 -0
- /package/dist/components/{Foundary/RichText → Foundry}/index.css +0 -0
- /package/dist/components/{DigitalColleagues → Foundry}/knowledge-browser.css +0 -0
- /package/dist/components/{Foundary → Foundry}/knowledge-browser.d.ts +0 -0
- /package/dist/components/{DigitalColleagues → Foundry}/knowledge-search.css +0 -0
- /package/dist/components/{Foundary → Foundry}/knowledge-search.d.ts +0 -0
- /package/dist/components/{DigitalColleagues → Foundry}/team-form.css +0 -0
- /package/dist/components/{Foundary → Foundry}/team-form.d.ts +0 -0
- /package/dist/components/{Foundary → Foundry}/test-data.d.ts +0 -0
- /package/dist/components/{DigitalColleagues/digital-colleague-options.css → Projects/GanttView.css} +0 -0
|
@@ -0,0 +1,595 @@
|
|
|
1
|
+
import {
|
|
2
|
+
TaskCard
|
|
3
|
+
} from "./chunk-WSU6ULOG.mjs";
|
|
4
|
+
import {
|
|
5
|
+
TaskDetailsModal
|
|
6
|
+
} from "./chunk-N5Q2DYUR.mjs";
|
|
7
|
+
import {
|
|
8
|
+
AddTaskModal
|
|
9
|
+
} from "./chunk-C3CKYJ2F.mjs";
|
|
10
|
+
import {
|
|
11
|
+
AddEpicModal
|
|
12
|
+
} from "./chunk-UDCOG2XL.mjs";
|
|
13
|
+
import {
|
|
14
|
+
DashboardHero
|
|
15
|
+
} from "./chunk-I2MVZVXE.mjs";
|
|
16
|
+
import {
|
|
17
|
+
extractId
|
|
18
|
+
} from "./chunk-Y6HQV3VB.mjs";
|
|
19
|
+
import {
|
|
20
|
+
Textarea
|
|
21
|
+
} from "./chunk-4UJUWE3A.mjs";
|
|
22
|
+
import {
|
|
23
|
+
Badge
|
|
24
|
+
} from "./chunk-BG5JSVXF.mjs";
|
|
25
|
+
import {
|
|
26
|
+
Card
|
|
27
|
+
} from "./chunk-EQHAE4MP.mjs";
|
|
28
|
+
import {
|
|
29
|
+
Input
|
|
30
|
+
} from "./chunk-YMZ2OUK6.mjs";
|
|
31
|
+
import {
|
|
32
|
+
Button
|
|
33
|
+
} from "./chunk-I6LSWXZW.mjs";
|
|
34
|
+
import {
|
|
35
|
+
useLocalStorage
|
|
36
|
+
} from "./chunk-6A7T3O6T.mjs";
|
|
37
|
+
|
|
38
|
+
// src/components/Projects/EpicsView.tsx
|
|
39
|
+
import { useState, useRef, useEffect } from "react";
|
|
40
|
+
import { Plus, Move, Edit2, Trash2, Check, X, Layers } from "lucide-react";
|
|
41
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
42
|
+
var EpicsView = ({
|
|
43
|
+
projectId,
|
|
44
|
+
tasks,
|
|
45
|
+
epics,
|
|
46
|
+
sprints,
|
|
47
|
+
colleagues = [],
|
|
48
|
+
onUpdateTask,
|
|
49
|
+
onTaskClick,
|
|
50
|
+
onAddTaskToEpic,
|
|
51
|
+
onAddEpic,
|
|
52
|
+
onUpdateEpic,
|
|
53
|
+
onDeleteEpic,
|
|
54
|
+
onDeleteTask,
|
|
55
|
+
onAddComment,
|
|
56
|
+
onUploadFile,
|
|
57
|
+
onDeleteFile,
|
|
58
|
+
onFileUpdate
|
|
59
|
+
}) => {
|
|
60
|
+
const [availableEpics, setAvailableEpics] = useState(epics);
|
|
61
|
+
const [availableTasks, setAvailableTasks] = useState(tasks);
|
|
62
|
+
const [draggedTask, setDraggedTask] = useState(null);
|
|
63
|
+
const [editingEpic, setEditingEpic] = useState(null);
|
|
64
|
+
const [editForm, setEditForm] = useState({});
|
|
65
|
+
const [heroHeight, setHeroHeight] = useState(0);
|
|
66
|
+
const [isAddEpicModalOpen, setIsAddEpicModalOpen] = useState(false);
|
|
67
|
+
const [isAddTaskModalOpen, setIsAddTaskModalOpen] = useState(false);
|
|
68
|
+
const [addTaskEpic, setAddTaskEpic] = useState(null);
|
|
69
|
+
const [selectedTask, setSelectedTask] = useState(null);
|
|
70
|
+
const [selectedEpicIds, setSelectedEpicIds] = useLocalStorage(
|
|
71
|
+
`epicsView_selectedEpics${projectId ? `_${projectId}` : ""}`,
|
|
72
|
+
[]
|
|
73
|
+
);
|
|
74
|
+
const [isEpicSelectorOpen, setIsEpicSelectorOpen] = useState(false);
|
|
75
|
+
const heroRef = useRef(null);
|
|
76
|
+
const containerRef = useRef(null);
|
|
77
|
+
useEffect(() => {
|
|
78
|
+
setAvailableEpics(epics);
|
|
79
|
+
const validIds = new Set(epics.map((e) => e.id.toString()));
|
|
80
|
+
setSelectedEpicIds((prev) => prev.filter((id) => validIds.has(id)));
|
|
81
|
+
}, [epics]);
|
|
82
|
+
useEffect(() => {
|
|
83
|
+
setAvailableTasks(tasks);
|
|
84
|
+
if (selectedTask) {
|
|
85
|
+
setSelectedTask(tasks.find((t) => t.id === selectedTask.id) || null);
|
|
86
|
+
}
|
|
87
|
+
}, [tasks]);
|
|
88
|
+
useEffect(() => {
|
|
89
|
+
const measureHeroHeight = () => {
|
|
90
|
+
if (heroRef.current) {
|
|
91
|
+
setHeroHeight(heroRef.current.offsetHeight);
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
measureHeroHeight();
|
|
95
|
+
const resizeObserver = new ResizeObserver(measureHeroHeight);
|
|
96
|
+
if (heroRef.current) {
|
|
97
|
+
resizeObserver.observe(heroRef.current);
|
|
98
|
+
}
|
|
99
|
+
const handleStorageChange = () => {
|
|
100
|
+
setTimeout(measureHeroHeight, 100);
|
|
101
|
+
};
|
|
102
|
+
window.addEventListener("storage", handleStorageChange);
|
|
103
|
+
return () => {
|
|
104
|
+
resizeObserver.disconnect();
|
|
105
|
+
window.removeEventListener("storage", handleStorageChange);
|
|
106
|
+
};
|
|
107
|
+
}, []);
|
|
108
|
+
useEffect(() => {
|
|
109
|
+
const timer = setTimeout(() => {
|
|
110
|
+
if (heroRef.current) {
|
|
111
|
+
setHeroHeight(heroRef.current.offsetHeight);
|
|
112
|
+
}
|
|
113
|
+
}, 300);
|
|
114
|
+
return () => clearTimeout(timer);
|
|
115
|
+
}, [editingEpic]);
|
|
116
|
+
const visibleEpics = selectedEpicIds.length === 0 ? availableEpics : availableEpics.filter((e) => selectedEpicIds.includes(e.id.toString()));
|
|
117
|
+
const toggleEpicView = (epicId) => {
|
|
118
|
+
setSelectedEpicIds(
|
|
119
|
+
(prev) => prev.includes(epicId) ? prev.filter((id) => id !== epicId) : [...prev, epicId]
|
|
120
|
+
);
|
|
121
|
+
};
|
|
122
|
+
const handleDragStart = (task) => {
|
|
123
|
+
setDraggedTask(task);
|
|
124
|
+
};
|
|
125
|
+
const handleDragOver = (e) => {
|
|
126
|
+
e.preventDefault();
|
|
127
|
+
};
|
|
128
|
+
const handleDrop = (e, epicId) => {
|
|
129
|
+
e.preventDefault();
|
|
130
|
+
if (draggedTask && extractId(draggedTask.epic).toString() !== epicId) {
|
|
131
|
+
onUpdateTask(draggedTask.id.toString(), { epic: Number(epicId) });
|
|
132
|
+
setAvailableTasks(
|
|
133
|
+
(prev) => prev.map((t) => t.id === draggedTask.id ? { ...t, epic: Number(epicId) } : t)
|
|
134
|
+
);
|
|
135
|
+
setDraggedTask(null);
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
const getTasksByEpic = (epicId) => {
|
|
139
|
+
return availableTasks.filter((task) => extractId(task.epic).toString() === epicId);
|
|
140
|
+
};
|
|
141
|
+
const handleTaskClick = (task) => {
|
|
142
|
+
setSelectedTask(task);
|
|
143
|
+
onTaskClick?.(task);
|
|
144
|
+
};
|
|
145
|
+
const handleUpdateTask = async (taskId, updates) => {
|
|
146
|
+
setAvailableTasks(
|
|
147
|
+
(prev) => prev.map((t) => t.id === Number(taskId) ? { ...t, ...updates } : t)
|
|
148
|
+
);
|
|
149
|
+
if (selectedTask?.id === Number(taskId)) {
|
|
150
|
+
setSelectedTask((prev) => prev ? { ...prev, ...updates } : null);
|
|
151
|
+
}
|
|
152
|
+
await onUpdateTask(taskId, updates);
|
|
153
|
+
};
|
|
154
|
+
const handleDeleteTask = async (taskId) => {
|
|
155
|
+
setAvailableTasks((prev) => prev.filter((t) => t.id !== Number(taskId)));
|
|
156
|
+
if (selectedTask?.id === Number(taskId)) {
|
|
157
|
+
setSelectedTask(null);
|
|
158
|
+
}
|
|
159
|
+
await onDeleteTask?.(taskId);
|
|
160
|
+
};
|
|
161
|
+
const handleRemoveFromEpic = (task) => {
|
|
162
|
+
onUpdateTask(task.id.toString(), { epic: null });
|
|
163
|
+
setAvailableTasks(
|
|
164
|
+
(prev) => prev.map((t) => t.id === task.id ? { ...t, epic: null } : t)
|
|
165
|
+
);
|
|
166
|
+
};
|
|
167
|
+
const handleEditEpic = (epic) => {
|
|
168
|
+
setEditingEpic(epic.id.toString());
|
|
169
|
+
setEditForm({
|
|
170
|
+
name: epic.name,
|
|
171
|
+
description: epic.description,
|
|
172
|
+
confidence: epic.confidence,
|
|
173
|
+
phase: epic.phase
|
|
174
|
+
});
|
|
175
|
+
};
|
|
176
|
+
const handleSaveEdit = async () => {
|
|
177
|
+
if (editingEpic && editForm.name) {
|
|
178
|
+
await onUpdateEpic(editingEpic.toString(), editForm);
|
|
179
|
+
setAvailableEpics(
|
|
180
|
+
(prev) => prev.map(
|
|
181
|
+
(epic) => epic.id.toString() === editingEpic ? { ...epic, ...editForm } : epic
|
|
182
|
+
)
|
|
183
|
+
);
|
|
184
|
+
setEditingEpic(null);
|
|
185
|
+
setEditForm({});
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
const handleCancelEdit = () => {
|
|
189
|
+
setEditingEpic(null);
|
|
190
|
+
setEditForm({});
|
|
191
|
+
};
|
|
192
|
+
const handleDeleteEpic = async (epicId) => {
|
|
193
|
+
if (window.confirm(
|
|
194
|
+
"Are you sure you want to delete this epic? This will also delete all associated tasks."
|
|
195
|
+
)) {
|
|
196
|
+
await onDeleteEpic(epicId);
|
|
197
|
+
setAvailableEpics((prev) => prev.filter((epic) => epic.id.toString() !== epicId));
|
|
198
|
+
setSelectedEpicIds((prev) => prev.filter((id) => id !== epicId));
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
const getPhaseLabel = (phase) => {
|
|
202
|
+
const phases = {
|
|
203
|
+
1: "Planning",
|
|
204
|
+
2: "Development",
|
|
205
|
+
3: "Testing",
|
|
206
|
+
4: "Review",
|
|
207
|
+
5: "Deployment",
|
|
208
|
+
6: "Monitoring",
|
|
209
|
+
7: "Optimization",
|
|
210
|
+
8: "Maintenance",
|
|
211
|
+
9: "Complete"
|
|
212
|
+
};
|
|
213
|
+
return phases[phase] || `Phase ${phase}`;
|
|
214
|
+
};
|
|
215
|
+
const getConfidenceColor = (confidence) => {
|
|
216
|
+
switch (confidence) {
|
|
217
|
+
case "high":
|
|
218
|
+
return "bg-success/10 text-success";
|
|
219
|
+
case "medium":
|
|
220
|
+
return "bg-warning/10 text-warning";
|
|
221
|
+
case "low":
|
|
222
|
+
return "bg-destructive/10 text-destructive";
|
|
223
|
+
default:
|
|
224
|
+
return "bg-muted text-muted-foreground";
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
228
|
+
/* @__PURE__ */ jsxs("div", { ref: containerRef, className: "h-full flex flex-col px-2 md:px-4 py-4", children: [
|
|
229
|
+
/* @__PURE__ */ jsx("div", { ref: heroRef, className: "flex-shrink-0", children: /* @__PURE__ */ jsx(
|
|
230
|
+
DashboardHero,
|
|
231
|
+
{
|
|
232
|
+
title: "Epic Planning",
|
|
233
|
+
description: "Organize and manage your project epics, track progress, and assign tasks.",
|
|
234
|
+
gradient: "bg-gradient-to-r from-rose-600 via-pink-600 to-fuchsia-600",
|
|
235
|
+
primaryAction: {
|
|
236
|
+
label: "Add epic",
|
|
237
|
+
onClick: () => setIsAddEpicModalOpen(true)
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
) }),
|
|
241
|
+
/* @__PURE__ */ jsx("div", { className: "flex-1 min-h-0 mt-8", children: /* @__PURE__ */ jsxs(
|
|
242
|
+
"div",
|
|
243
|
+
{
|
|
244
|
+
className: "h-full overflow-y-auto no-scrollbar",
|
|
245
|
+
style: {
|
|
246
|
+
height: heroHeight > 0 ? `calc(100vh - ${heroHeight + 120}px)` : "calc(100vh - 12rem)"
|
|
247
|
+
},
|
|
248
|
+
children: [
|
|
249
|
+
/* @__PURE__ */ jsxs("div", { className: "mb-4", children: [
|
|
250
|
+
/* @__PURE__ */ jsx(Card, { className: "p-3 bg-card shadow-sm", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
251
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
252
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
253
|
+
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-foreground text-sm", children: "Epics" }),
|
|
254
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: selectedEpicIds.length === 0 ? "All showing" : `${selectedEpicIds.length}/${availableEpics.length} selected` })
|
|
255
|
+
] }),
|
|
256
|
+
selectedEpicIds.length > 0 && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
257
|
+
/* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children: "Viewing:" }),
|
|
258
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-1", children: visibleEpics.map((epic) => /* @__PURE__ */ jsxs(
|
|
259
|
+
"div",
|
|
260
|
+
{
|
|
261
|
+
className: "flex items-center gap-1 bg-primary/10 text-primary px-2 py-0.5 rounded text-xs",
|
|
262
|
+
children: [
|
|
263
|
+
/* @__PURE__ */ jsx("div", { className: `w-2 h-2 rounded-full ${epic.color}` }),
|
|
264
|
+
/* @__PURE__ */ jsx("span", { className: "max-w-[80px] truncate", children: epic.name }),
|
|
265
|
+
/* @__PURE__ */ jsx(
|
|
266
|
+
"button",
|
|
267
|
+
{
|
|
268
|
+
onClick: () => toggleEpicView(epic.id.toString()),
|
|
269
|
+
className: "ml-0.5 hover:bg-primary/20 h-8 rounded p-0.5",
|
|
270
|
+
children: /* @__PURE__ */ jsx(X, { className: "h-4 w-4" })
|
|
271
|
+
}
|
|
272
|
+
)
|
|
273
|
+
]
|
|
274
|
+
},
|
|
275
|
+
epic.id
|
|
276
|
+
)) })
|
|
277
|
+
] })
|
|
278
|
+
] }),
|
|
279
|
+
/* @__PURE__ */ jsxs(
|
|
280
|
+
Button,
|
|
281
|
+
{
|
|
282
|
+
onClick: () => setIsEpicSelectorOpen(!isEpicSelectorOpen),
|
|
283
|
+
variant: "outline",
|
|
284
|
+
size: "sm",
|
|
285
|
+
className: "gap-1",
|
|
286
|
+
children: [
|
|
287
|
+
/* @__PURE__ */ jsx(Layers, { className: "h-3 w-3" }),
|
|
288
|
+
isEpicSelectorOpen ? "Close" : "Select"
|
|
289
|
+
]
|
|
290
|
+
}
|
|
291
|
+
)
|
|
292
|
+
] }) }),
|
|
293
|
+
isEpicSelectorOpen && /* @__PURE__ */ jsx(
|
|
294
|
+
"div",
|
|
295
|
+
{
|
|
296
|
+
className: "fixed inset-0 bg-black/20 z-[5]",
|
|
297
|
+
onClick: () => setIsEpicSelectorOpen(false)
|
|
298
|
+
}
|
|
299
|
+
),
|
|
300
|
+
/* @__PURE__ */ jsx(
|
|
301
|
+
"div",
|
|
302
|
+
{
|
|
303
|
+
className: `fixed top-0 right-0 h-full w-80 bg-background border-l shadow-xl z-10 transition-all duration-300 ease-in-out ${isEpicSelectorOpen ? "translate-x-0 opacity-100 visible" : "translate-x-full opacity-0 invisible"}`,
|
|
304
|
+
children: /* @__PURE__ */ jsxs(Card, { className: "h-full rounded-none border-0 flex flex-col", children: [
|
|
305
|
+
/* @__PURE__ */ jsxs("div", { className: "p-4 border-b bg-muted/30 flex-shrink-0", children: [
|
|
306
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
307
|
+
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-foreground text-base", children: "Select Epics" }),
|
|
308
|
+
/* @__PURE__ */ jsx(
|
|
309
|
+
Button,
|
|
310
|
+
{
|
|
311
|
+
variant: "ghost",
|
|
312
|
+
size: "sm",
|
|
313
|
+
onClick: () => setIsEpicSelectorOpen(false),
|
|
314
|
+
className: "h-8 w-8 p-0",
|
|
315
|
+
children: /* @__PURE__ */ jsx(X, { className: "h-4 w-4" })
|
|
316
|
+
}
|
|
317
|
+
)
|
|
318
|
+
] }),
|
|
319
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground mt-1", children: "Filter which epics to display. Select none to show all." })
|
|
320
|
+
] }),
|
|
321
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-col flex-1 p-4 min-h-0", children: /* @__PURE__ */ jsx("div", { className: "space-y-2 flex-1 overflow-y-auto no-scrollbar", children: availableEpics.length > 0 ? availableEpics.map((epic) => {
|
|
322
|
+
const isSelected = selectedEpicIds.includes(epic.id.toString());
|
|
323
|
+
const taskCount = availableTasks.filter(
|
|
324
|
+
(t) => extractId(t.epic) === epic.id
|
|
325
|
+
).length;
|
|
326
|
+
return /* @__PURE__ */ jsxs(
|
|
327
|
+
"div",
|
|
328
|
+
{
|
|
329
|
+
className: `p-3 rounded-lg border transition-all ${isSelected ? "bg-primary/10 border-primary/30 ring-1 ring-primary/20" : "bg-card border-border"}`,
|
|
330
|
+
children: [
|
|
331
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
332
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 flex-1 min-w-0", children: [
|
|
333
|
+
/* @__PURE__ */ jsx("div", { className: `w-3 h-3 rounded-full flex-shrink-0 ${epic.color}` }),
|
|
334
|
+
/* @__PURE__ */ jsx("p", { className: "font-medium text-sm text-foreground truncate", children: epic.name })
|
|
335
|
+
] }),
|
|
336
|
+
/* @__PURE__ */ jsx("div", { className: "ml-2 flex items-center gap-1", children: /* @__PURE__ */ jsx(Badge, { variant: "secondary", className: "text-xs", children: taskCount }) })
|
|
337
|
+
] }),
|
|
338
|
+
/* @__PURE__ */ jsx(
|
|
339
|
+
Button,
|
|
340
|
+
{
|
|
341
|
+
variant: isSelected ? "default" : "outline",
|
|
342
|
+
size: "sm",
|
|
343
|
+
className: "w-full mt-2 text-xs h-7",
|
|
344
|
+
onClick: () => toggleEpicView(epic.id.toString()),
|
|
345
|
+
children: isSelected ? "Deselect" : "Select"
|
|
346
|
+
}
|
|
347
|
+
)
|
|
348
|
+
]
|
|
349
|
+
},
|
|
350
|
+
epic.id
|
|
351
|
+
);
|
|
352
|
+
}) : /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground text-center py-8", children: "No epics yet. Add one to get started." }) }) })
|
|
353
|
+
] })
|
|
354
|
+
}
|
|
355
|
+
)
|
|
356
|
+
] }),
|
|
357
|
+
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 2xl:grid-cols-6 gap-3 auto-rows-max", children: visibleEpics.map((epic) => {
|
|
358
|
+
const epicTasks = getTasksByEpic(epic.id.toString());
|
|
359
|
+
const totalPoints = epicTasks.reduce(
|
|
360
|
+
(sum, task) => sum + (task.storyPoints || 0),
|
|
361
|
+
0
|
|
362
|
+
);
|
|
363
|
+
return /* @__PURE__ */ jsxs(
|
|
364
|
+
Card,
|
|
365
|
+
{
|
|
366
|
+
className: "flex flex-col bg-card shadow-sm",
|
|
367
|
+
style: { maxHeight: "420px" },
|
|
368
|
+
onDragOver: handleDragOver,
|
|
369
|
+
onDrop: (e) => handleDrop(e, epic.id.toString()),
|
|
370
|
+
children: [
|
|
371
|
+
/* @__PURE__ */ jsx("div", { className: "p-3 border-b border-border flex-shrink-0", children: editingEpic === epic.id.toString() ? (
|
|
372
|
+
/* Edit Mode */
|
|
373
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
|
|
374
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
375
|
+
/* @__PURE__ */ jsx(
|
|
376
|
+
Input,
|
|
377
|
+
{
|
|
378
|
+
value: editForm.name || "",
|
|
379
|
+
onChange: (e) => setEditForm({ ...editForm, name: e.target.value }),
|
|
380
|
+
placeholder: "Epic name",
|
|
381
|
+
className: "font-semibold text-sm"
|
|
382
|
+
}
|
|
383
|
+
),
|
|
384
|
+
/* @__PURE__ */ jsxs("div", { className: "flex gap-1 ml-2", children: [
|
|
385
|
+
/* @__PURE__ */ jsx(
|
|
386
|
+
Button,
|
|
387
|
+
{
|
|
388
|
+
size: "sm",
|
|
389
|
+
variant: "ghost",
|
|
390
|
+
onClick: handleSaveEdit,
|
|
391
|
+
className: "p-1 h-7 w-7",
|
|
392
|
+
children: /* @__PURE__ */ jsx(Check, { className: "h-3 w-3" })
|
|
393
|
+
}
|
|
394
|
+
),
|
|
395
|
+
/* @__PURE__ */ jsx(
|
|
396
|
+
Button,
|
|
397
|
+
{
|
|
398
|
+
size: "sm",
|
|
399
|
+
variant: "ghost",
|
|
400
|
+
onClick: handleCancelEdit,
|
|
401
|
+
className: "p-1 h-7 w-7",
|
|
402
|
+
children: /* @__PURE__ */ jsx(X, { className: "h-3 w-3" })
|
|
403
|
+
}
|
|
404
|
+
)
|
|
405
|
+
] })
|
|
406
|
+
] }),
|
|
407
|
+
/* @__PURE__ */ jsx(
|
|
408
|
+
Textarea,
|
|
409
|
+
{
|
|
410
|
+
value: editForm.description || "",
|
|
411
|
+
onChange: (e) => setEditForm({ ...editForm, description: e.target.value }),
|
|
412
|
+
placeholder: "Epic description",
|
|
413
|
+
className: "text-xs min-h-[50px]"
|
|
414
|
+
}
|
|
415
|
+
),
|
|
416
|
+
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-2", children: [
|
|
417
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
418
|
+
/* @__PURE__ */ jsx("label", { className: "text-xs text-muted-foreground", children: "Confidence" }),
|
|
419
|
+
/* @__PURE__ */ jsxs(
|
|
420
|
+
"select",
|
|
421
|
+
{
|
|
422
|
+
value: editForm.confidence || epic.confidence,
|
|
423
|
+
onChange: (e) => setEditForm({
|
|
424
|
+
...editForm,
|
|
425
|
+
confidence: e.target.value
|
|
426
|
+
}),
|
|
427
|
+
className: "flex h-7 w-full rounded-md border border-input bg-background px-2 py-1 text-xs ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
428
|
+
children: [
|
|
429
|
+
/* @__PURE__ */ jsx("option", { value: "low", children: "Low" }),
|
|
430
|
+
/* @__PURE__ */ jsx("option", { value: "medium", children: "Medium" }),
|
|
431
|
+
/* @__PURE__ */ jsx("option", { value: "high", children: "High" })
|
|
432
|
+
]
|
|
433
|
+
}
|
|
434
|
+
)
|
|
435
|
+
] }),
|
|
436
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
437
|
+
/* @__PURE__ */ jsx("label", { className: "text-xs text-muted-foreground", children: "Phase" }),
|
|
438
|
+
/* @__PURE__ */ jsx(
|
|
439
|
+
"select",
|
|
440
|
+
{
|
|
441
|
+
value: editForm.phase?.toString() || epic.phase.toString(),
|
|
442
|
+
onChange: (e) => setEditForm({ ...editForm, phase: parseInt(e.target.value) }),
|
|
443
|
+
className: "flex h-7 w-full rounded-md border border-input bg-background px-2 py-1 text-xs ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
444
|
+
children: [1, 2, 3, 4, 5, 6, 7, 8, 9].map((phase) => /* @__PURE__ */ jsxs("option", { value: phase.toString(), children: [
|
|
445
|
+
"Phase ",
|
|
446
|
+
phase
|
|
447
|
+
] }, phase))
|
|
448
|
+
}
|
|
449
|
+
)
|
|
450
|
+
] })
|
|
451
|
+
] })
|
|
452
|
+
] })
|
|
453
|
+
) : (
|
|
454
|
+
/* Display Mode */
|
|
455
|
+
/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
456
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5 mb-1.5", children: [
|
|
457
|
+
/* @__PURE__ */ jsx("div", { className: `w-3 h-3 rounded-full flex-shrink-0 ${epic.color}` }),
|
|
458
|
+
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-foreground text-sm select-none flex-1 truncate", children: epic.name }),
|
|
459
|
+
/* @__PURE__ */ jsxs("div", { className: "flex gap-0.5", children: [
|
|
460
|
+
/* @__PURE__ */ jsx(
|
|
461
|
+
Button,
|
|
462
|
+
{
|
|
463
|
+
size: "sm",
|
|
464
|
+
variant: "ghost",
|
|
465
|
+
onClick: () => handleEditEpic(epic),
|
|
466
|
+
className: "p-1 h-6 w-6",
|
|
467
|
+
children: /* @__PURE__ */ jsx(Edit2, { className: "h-3 w-3" })
|
|
468
|
+
}
|
|
469
|
+
),
|
|
470
|
+
/* @__PURE__ */ jsx(
|
|
471
|
+
Button,
|
|
472
|
+
{
|
|
473
|
+
size: "sm",
|
|
474
|
+
variant: "ghost",
|
|
475
|
+
onClick: () => handleDeleteEpic(epic.id.toString()),
|
|
476
|
+
className: "p-1 h-6 w-6 hover:bg-destructive/10 hover:text-destructive",
|
|
477
|
+
children: /* @__PURE__ */ jsx(Trash2, { className: "h-3 w-3" })
|
|
478
|
+
}
|
|
479
|
+
)
|
|
480
|
+
] })
|
|
481
|
+
] }),
|
|
482
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-1 mb-2", children: [
|
|
483
|
+
/* @__PURE__ */ jsx(Badge, { className: `text-xs px-1.5 py-0 ${getConfidenceColor(epic.confidence)}`, children: epic.confidence }),
|
|
484
|
+
/* @__PURE__ */ jsx(Badge, { variant: "outline", className: "text-xs px-1.5 py-0", children: getPhaseLabel(epic.phase) }),
|
|
485
|
+
/* @__PURE__ */ jsxs(Badge, { variant: "secondary", className: "text-xs px-1.5 py-0 bg-muted text-muted-foreground", children: [
|
|
486
|
+
epicTasks.length,
|
|
487
|
+
"t \xB7 ",
|
|
488
|
+
totalPoints,
|
|
489
|
+
"pt"
|
|
490
|
+
] })
|
|
491
|
+
] }),
|
|
492
|
+
epic.description && /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground mb-2 select-none line-clamp-2", children: epic.description }),
|
|
493
|
+
/* @__PURE__ */ jsxs(
|
|
494
|
+
Button,
|
|
495
|
+
{
|
|
496
|
+
onClick: () => {
|
|
497
|
+
setIsAddTaskModalOpen(true);
|
|
498
|
+
setAddTaskEpic(epic);
|
|
499
|
+
},
|
|
500
|
+
variant: "outline",
|
|
501
|
+
size: "sm",
|
|
502
|
+
className: "w-full gap-1 h-7 text-xs",
|
|
503
|
+
children: [
|
|
504
|
+
/* @__PURE__ */ jsx(Plus, { className: "h-3 w-3" }),
|
|
505
|
+
"Add Task"
|
|
506
|
+
]
|
|
507
|
+
}
|
|
508
|
+
)
|
|
509
|
+
] })
|
|
510
|
+
) }),
|
|
511
|
+
/* @__PURE__ */ jsx("div", { className: "flex-1 p-2 overflow-y-auto no-scrollbar min-h-0", children: /* @__PURE__ */ jsx(
|
|
512
|
+
"div",
|
|
513
|
+
{
|
|
514
|
+
className: `space-y-2 min-h-[80px] border-2 border-dashed rounded p-2 transition-colors ${draggedTask ? "border-primary bg-primary/10" : "border-border"}`,
|
|
515
|
+
children: epicTasks.length === 0 ? /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center justify-center h-16 text-muted-foreground", children: [
|
|
516
|
+
/* @__PURE__ */ jsx(Move, { className: "h-5 w-5 mb-1" }),
|
|
517
|
+
/* @__PURE__ */ jsx("span", { className: "text-xs select-none", children: "Drop tasks here" })
|
|
518
|
+
] }) : epicTasks.map((task) => /* @__PURE__ */ jsxs("div", { className: "relative group", children: [
|
|
519
|
+
/* @__PURE__ */ jsx(
|
|
520
|
+
TaskCard,
|
|
521
|
+
{
|
|
522
|
+
task,
|
|
523
|
+
epic,
|
|
524
|
+
onDragStart: handleDragStart,
|
|
525
|
+
onTaskClick: handleTaskClick,
|
|
526
|
+
isCompact: true
|
|
527
|
+
}
|
|
528
|
+
),
|
|
529
|
+
/* @__PURE__ */ jsx(
|
|
530
|
+
"button",
|
|
531
|
+
{
|
|
532
|
+
onClick: (e) => {
|
|
533
|
+
e.stopPropagation();
|
|
534
|
+
handleRemoveFromEpic(task);
|
|
535
|
+
},
|
|
536
|
+
title: "Remove from epic",
|
|
537
|
+
className: "absolute top-1 right-1 opacity-0 group-hover:opacity-100 transition-opacity bg-background/80 hover:bg-destructive/10 hover:text-destructive rounded p-0.5",
|
|
538
|
+
children: /* @__PURE__ */ jsx(X, { className: "h-3 w-3" })
|
|
539
|
+
}
|
|
540
|
+
)
|
|
541
|
+
] }, task.id))
|
|
542
|
+
}
|
|
543
|
+
) })
|
|
544
|
+
]
|
|
545
|
+
},
|
|
546
|
+
epic.id
|
|
547
|
+
);
|
|
548
|
+
}) })
|
|
549
|
+
]
|
|
550
|
+
}
|
|
551
|
+
) })
|
|
552
|
+
] }),
|
|
553
|
+
/* @__PURE__ */ jsx(
|
|
554
|
+
AddEpicModal,
|
|
555
|
+
{
|
|
556
|
+
isOpen: isAddEpicModalOpen,
|
|
557
|
+
onClose: () => setIsAddEpicModalOpen(false),
|
|
558
|
+
onAddEpic
|
|
559
|
+
}
|
|
560
|
+
),
|
|
561
|
+
/* @__PURE__ */ jsx(
|
|
562
|
+
AddTaskModal,
|
|
563
|
+
{
|
|
564
|
+
isOpen: isAddTaskModalOpen,
|
|
565
|
+
onClose: () => setIsAddTaskModalOpen(false),
|
|
566
|
+
onAddTask: onAddTaskToEpic,
|
|
567
|
+
assignees: [],
|
|
568
|
+
epics: [],
|
|
569
|
+
defaultEpicId: addTaskEpic?.id.toString() || "",
|
|
570
|
+
sprints
|
|
571
|
+
}
|
|
572
|
+
),
|
|
573
|
+
selectedTask && /* @__PURE__ */ jsx(
|
|
574
|
+
TaskDetailsModal,
|
|
575
|
+
{
|
|
576
|
+
isOpen: !!selectedTask,
|
|
577
|
+
onClose: () => setSelectedTask(null),
|
|
578
|
+
initialTask: selectedTask,
|
|
579
|
+
epics: availableEpics,
|
|
580
|
+
sprints,
|
|
581
|
+
onUpdateTask: handleUpdateTask,
|
|
582
|
+
onDeleteTask: handleDeleteTask,
|
|
583
|
+
onAddComment,
|
|
584
|
+
colleagues,
|
|
585
|
+
onUploadFile,
|
|
586
|
+
onDeleteFile,
|
|
587
|
+
onFileUpdate
|
|
588
|
+
}
|
|
589
|
+
)
|
|
590
|
+
] });
|
|
591
|
+
};
|
|
592
|
+
|
|
593
|
+
export {
|
|
594
|
+
EpicsView
|
|
595
|
+
};
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|
import {
|
|
5
5
|
AddKnowledgeModal
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HNBHBFLY.mjs";
|
|
7
7
|
import {
|
|
8
8
|
ManageTeamContextModal
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-F7JPOQIC.mjs";
|
|
10
10
|
import {
|
|
11
11
|
KnowledgeBrowser
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-QJGBUBSB.mjs";
|
|
13
13
|
import {
|
|
14
14
|
DropdownMenu,
|
|
15
15
|
DropdownMenuContent,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
Button
|
|
21
21
|
} from "./chunk-I6LSWXZW.mjs";
|
|
22
22
|
|
|
23
|
-
// src/components/
|
|
23
|
+
// src/components/Foundry/Views/KnowledgeView.tsx
|
|
24
24
|
import { useEffect, useState } from "react";
|
|
25
25
|
import { ChevronDown, Loader2 } from "lucide-react";
|
|
26
26
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
TooltipTrigger
|
|
9
9
|
} from "./chunk-EN2UUKLU.mjs";
|
|
10
10
|
|
|
11
|
-
// src/components/
|
|
11
|
+
// src/components/Foundry/RichText/components/RawUploadComponent/index.tsx
|
|
12
12
|
import { File } from "@payloadcms/ui";
|
|
13
13
|
import { useCallback, useEffect, useState } from "react";
|
|
14
14
|
import { useLexicalComposerContext } from "@payloadcms/richtext-lexical/lexical/react/LexicalComposerContext";
|