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
|
@@ -32,14 +32,14 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
32
32
|
));
|
|
33
33
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
34
34
|
|
|
35
|
-
// src/components/
|
|
35
|
+
// src/components/Foundry/Views/ColleaguesView.tsx
|
|
36
36
|
var ColleaguesView_exports = {};
|
|
37
37
|
__export(ColleaguesView_exports, {
|
|
38
38
|
default: () => ColleaguesView
|
|
39
39
|
});
|
|
40
40
|
module.exports = __toCommonJS(ColleaguesView_exports);
|
|
41
|
-
var
|
|
42
|
-
var
|
|
41
|
+
var import_react17 = require("react");
|
|
42
|
+
var import_lucide_react13 = require("lucide-react");
|
|
43
43
|
|
|
44
44
|
// src/utils/cn.ts
|
|
45
45
|
var import_clsx = require("clsx");
|
|
@@ -2960,7 +2960,7 @@ function NavigationTabs({
|
|
|
2960
2960
|
);
|
|
2961
2961
|
}
|
|
2962
2962
|
|
|
2963
|
-
// src/components/
|
|
2963
|
+
// src/components/Foundry/colleague-card.tsx
|
|
2964
2964
|
var import_react2 = require("react");
|
|
2965
2965
|
var import_lucide_react3 = require("lucide-react");
|
|
2966
2966
|
|
|
@@ -3022,7 +3022,7 @@ function Badge({ className, variant, ...props }) {
|
|
|
3022
3022
|
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: cn(badgeVariants({ variant }), className), ...props });
|
|
3023
3023
|
}
|
|
3024
3024
|
|
|
3025
|
-
// src/components/
|
|
3025
|
+
// src/components/Foundry/colleague-card.tsx
|
|
3026
3026
|
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
3027
3027
|
function ColleagueCard({
|
|
3028
3028
|
colleague,
|
|
@@ -3139,7 +3139,7 @@ function ColleagueCard({
|
|
|
3139
3139
|
] });
|
|
3140
3140
|
}
|
|
3141
3141
|
|
|
3142
|
-
// src/components/
|
|
3142
|
+
// src/components/Foundry/colleague-form.tsx
|
|
3143
3143
|
var import_react4 = require("react");
|
|
3144
3144
|
var import_lucide_react5 = require("lucide-react");
|
|
3145
3145
|
|
|
@@ -3174,7 +3174,7 @@ var Textarea = React8.forwardRef(
|
|
|
3174
3174
|
);
|
|
3175
3175
|
Textarea.displayName = "Textarea";
|
|
3176
3176
|
|
|
3177
|
-
// src/components/
|
|
3177
|
+
// src/components/Foundry/knowledge-search.tsx
|
|
3178
3178
|
var import_react3 = require("react");
|
|
3179
3179
|
var import_lucide_react4 = require("lucide-react");
|
|
3180
3180
|
|
|
@@ -3213,7 +3213,7 @@ var ScrollBar = React9.forwardRef(({ className, orientation = "vertical", ...pro
|
|
|
3213
3213
|
));
|
|
3214
3214
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
3215
3215
|
|
|
3216
|
-
// src/components/
|
|
3216
|
+
// src/components/Foundry/knowledge-search.tsx
|
|
3217
3217
|
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
3218
3218
|
function KnowledgeSearch({
|
|
3219
3219
|
selectedDocuments,
|
|
@@ -3331,7 +3331,7 @@ function KnowledgeSearch({
|
|
|
3331
3331
|
] });
|
|
3332
3332
|
}
|
|
3333
3333
|
|
|
3334
|
-
// src/components/
|
|
3334
|
+
// src/components/Foundry/colleague-form.tsx
|
|
3335
3335
|
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
3336
3336
|
function ColleagueForm({
|
|
3337
3337
|
colleague,
|
|
@@ -3796,7 +3796,7 @@ function UserSelection({
|
|
|
3796
3796
|
}
|
|
3797
3797
|
)
|
|
3798
3798
|
] }) }) }) }) }),
|
|
3799
|
-
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "container grid gap-4 md:grid-cols-2 lg:grid-cols-3", children: filteredUsers.map((user) => {
|
|
3799
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "container grid gap-4 md:grid-cols-2 lg:grid-cols-3 mt-4", children: filteredUsers.map((user) => {
|
|
3800
3800
|
if (!user || !user.id) return null;
|
|
3801
3801
|
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
3802
3802
|
import_react6.motion.div,
|
|
@@ -3843,7 +3843,7 @@ function UserSelection({
|
|
|
3843
3843
|
) }) });
|
|
3844
3844
|
}
|
|
3845
3845
|
|
|
3846
|
-
// src/components/
|
|
3846
|
+
// src/components/Foundry/foundary-clone.tsx
|
|
3847
3847
|
var import_react7 = require("react");
|
|
3848
3848
|
var import_lucide_react7 = require("lucide-react");
|
|
3849
3849
|
var import_react8 = require("motion/react");
|
|
@@ -3927,7 +3927,7 @@ function DigitalColleagueClone({
|
|
|
3927
3927
|
}
|
|
3928
3928
|
)
|
|
3929
3929
|
] }) }) }),
|
|
3930
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "grid gap-4 md:grid-cols-2 lg:grid-cols-3", children: filteredColleagues.map((colleague) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
3930
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "grid gap-4 md:grid-cols-2 lg:grid-cols-3 mt-4", children: filteredColleagues.map((colleague) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
3931
3931
|
import_react8.motion.div,
|
|
3932
3932
|
{
|
|
3933
3933
|
layout: true,
|
|
@@ -3997,17 +3997,37 @@ function DigitalColleagueClone({
|
|
|
3997
3997
|
) }) });
|
|
3998
3998
|
}
|
|
3999
3999
|
|
|
4000
|
-
// src/components/
|
|
4000
|
+
// src/components/Foundry/digital-colleague-selection.tsx
|
|
4001
|
+
var import_react9 = require("react");
|
|
4001
4002
|
var import_lucide_react8 = require("lucide-react");
|
|
4002
|
-
var
|
|
4003
|
+
var import_react10 = require("motion/react");
|
|
4003
4004
|
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
4004
|
-
function
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
onCancel
|
|
4005
|
+
function DigitalColleagueSelection({
|
|
4006
|
+
digitalColleagues,
|
|
4007
|
+
onColleagueSelect,
|
|
4008
|
+
onCancel,
|
|
4009
|
+
selectedColleagueId
|
|
4008
4010
|
}) {
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
+
const [searchTerm, setSearchTerm] = (0, import_react9.useState)("");
|
|
4012
|
+
const [statusFilter, setStatusFilter] = (0, import_react9.useState)("all");
|
|
4013
|
+
const filteredColleagues = (0, import_react9.useMemo)(() => {
|
|
4014
|
+
return digitalColleagues.filter((colleague) => {
|
|
4015
|
+
const matchesSearch = colleague?.name.toLowerCase().includes(searchTerm.toLowerCase()) || colleague.jobDescription?.toLowerCase().includes(searchTerm.toLowerCase()) || colleague.workInstructions?.toLowerCase().includes(searchTerm.toLowerCase());
|
|
4016
|
+
return matchesSearch;
|
|
4017
|
+
});
|
|
4018
|
+
}, [digitalColleagues, searchTerm, statusFilter]);
|
|
4019
|
+
const handleColleagueSelect = (colleague) => {
|
|
4020
|
+
onColleagueSelect(colleague);
|
|
4021
|
+
};
|
|
4022
|
+
const formatDate = (date) => {
|
|
4023
|
+
return new Intl.DateTimeFormat("en-US", {
|
|
4024
|
+
month: "short",
|
|
4025
|
+
day: "numeric",
|
|
4026
|
+
year: "numeric"
|
|
4027
|
+
}).format(date);
|
|
4028
|
+
};
|
|
4029
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "px-2 md:px-4 py-4 space-y-6", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react10.AnimatePresence, { mode: "wait", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
4030
|
+
import_react10.motion.div,
|
|
4011
4031
|
{
|
|
4012
4032
|
initial: { opacity: 0, y: 10 },
|
|
4013
4033
|
animate: { opacity: 1, y: 0 },
|
|
@@ -4020,75 +4040,283 @@ function ColleagueTypeSelection({
|
|
|
4020
4040
|
"Back"
|
|
4021
4041
|
] }),
|
|
4022
4042
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { children: [
|
|
4023
|
-
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("h1", { className: "text-3xl font-bold", children: "Add Colleague" }),
|
|
4024
|
-
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "text-muted-foreground", children: "
|
|
4043
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("h1", { className: "text-3xl font-bold", children: "Add Existing Digital Colleague" }),
|
|
4044
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "text-muted-foreground", children: "Select a digital colleague to add to your team" })
|
|
4025
4045
|
] })
|
|
4026
4046
|
] }),
|
|
4027
|
-
/* @__PURE__ */ (0, import_jsx_runtime18.
|
|
4047
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(CardContent, { className: "pt-6", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "flex flex-col md:flex-row gap-4", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "relative", children: [
|
|
4048
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react8.Search, { className: "absolute left-3 top-3 h-4 w-4 text-muted-foreground" }),
|
|
4028
4049
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
4029
|
-
|
|
4050
|
+
Input,
|
|
4051
|
+
{
|
|
4052
|
+
placeholder: "Search by name, job description, or capabilities...",
|
|
4053
|
+
value: searchTerm,
|
|
4054
|
+
onChange: (e) => setSearchTerm(e.target.value),
|
|
4055
|
+
className: "pl-9"
|
|
4056
|
+
}
|
|
4057
|
+
)
|
|
4058
|
+
] }) }) }) }) }),
|
|
4059
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "space-y-4 mt-4", children: filteredColleagues.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(CardContent, { className: "pt-6 text-center", children: [
|
|
4060
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react8.Bot, { className: "h-12 w-12 mx-auto mb-4 text-muted-foreground" }),
|
|
4061
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "text-lg font-medium mb-2", children: "No digital colleagues found" }),
|
|
4062
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "text-muted-foreground", children: searchTerm ? "Try adjusting your search criteria" : "No digital colleagues available to add" })
|
|
4063
|
+
] }) }) : /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "grid gap-4 md:grid-cols-2 lg:grid-cols-3", children: filteredColleagues.map((colleague) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
4064
|
+
import_react10.motion.div,
|
|
4065
|
+
{
|
|
4066
|
+
initial: { opacity: 0, y: 20 },
|
|
4067
|
+
animate: { opacity: 1, y: 0 },
|
|
4068
|
+
exit: { opacity: 0, y: -20 },
|
|
4069
|
+
transition: { duration: 0.2 },
|
|
4070
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
4071
|
+
Card,
|
|
4072
|
+
{
|
|
4073
|
+
className: "cursor-pointer transition-all hover:shadow-lg hover:border-primary/50",
|
|
4074
|
+
onClick: () => handleColleagueSelect(colleague),
|
|
4075
|
+
children: [
|
|
4076
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(CardHeader, { className: "pb-3", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "flex items-start justify-between", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex items-center gap-3 flex-1 min-w-0", children: [
|
|
4077
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Avatar, { className: "h-12 w-12 flex-shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(AvatarFallback, { className: "bg-purple-100", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react8.Bot, { className: "h-6 w-6 text-purple-600" }) }) }),
|
|
4078
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex-1 min-w-0 overflow-hidden", children: [
|
|
4079
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(CardTitle, { className: "text-base truncate", children: colleague?.name }),
|
|
4080
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "text-sm text-muted-foreground truncate", children: colleague.jobDescription || "Digital Colleague" })
|
|
4081
|
+
] })
|
|
4082
|
+
] }) }) }),
|
|
4083
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(CardContent, { className: "space-y-3", children: [
|
|
4084
|
+
colleague.model && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex items-center gap-2 text-sm", children: [
|
|
4085
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react8.Bot, { className: "h-4 w-4 text-muted-foreground" }),
|
|
4086
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "text-muted-foreground truncate", children: typeof colleague.model === "object" ? colleague.model.name : colleague.model })
|
|
4087
|
+
] }),
|
|
4088
|
+
colleague.capabilities && colleague.capabilities.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex flex-wrap gap-1", children: [
|
|
4089
|
+
colleague.capabilities.slice(0, 3).map((cap, index) => {
|
|
4090
|
+
const capName = typeof cap === "object" && cap.value && typeof cap.value === "object" && "name" in cap.value ? String(cap.value.name) : "Capability";
|
|
4091
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Badge, { variant: "secondary", className: "text-xs", children: capName }, index);
|
|
4092
|
+
}),
|
|
4093
|
+
colleague.capabilities.length > 3 && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(Badge, { variant: "outline", className: "text-xs", children: [
|
|
4094
|
+
"+",
|
|
4095
|
+
colleague.capabilities.length - 3
|
|
4096
|
+
] })
|
|
4097
|
+
] }),
|
|
4098
|
+
colleague.workInstructions && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "text-sm text-muted-foreground line-clamp-2", children: colleague.workInstructions }),
|
|
4099
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "pt-2", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(Button, { className: "w-full", variant: "outline", size: "sm", children: [
|
|
4100
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react8.UserPlus, { className: "h-4 w-4 mr-2" }),
|
|
4101
|
+
"Add to Team"
|
|
4102
|
+
] }) })
|
|
4103
|
+
] })
|
|
4104
|
+
]
|
|
4105
|
+
}
|
|
4106
|
+
)
|
|
4107
|
+
},
|
|
4108
|
+
colleague.id
|
|
4109
|
+
)) }) })
|
|
4110
|
+
]
|
|
4111
|
+
},
|
|
4112
|
+
"colleague-selection"
|
|
4113
|
+
) }) });
|
|
4114
|
+
}
|
|
4115
|
+
|
|
4116
|
+
// src/components/Foundry/add-colleague-to-team-form.tsx
|
|
4117
|
+
var import_lucide_react9 = require("lucide-react");
|
|
4118
|
+
var import_react11 = require("motion/react");
|
|
4119
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
4120
|
+
function AddColleagueToTeamForm({
|
|
4121
|
+
colleague,
|
|
4122
|
+
team,
|
|
4123
|
+
onSave,
|
|
4124
|
+
onCancel,
|
|
4125
|
+
isLoading = false
|
|
4126
|
+
}) {
|
|
4127
|
+
const handleSubmit = (e) => {
|
|
4128
|
+
e.preventDefault();
|
|
4129
|
+
onSave(colleague, team.id);
|
|
4130
|
+
};
|
|
4131
|
+
const isColleagueAlreadyMember = () => {
|
|
4132
|
+
if (!team.members) return false;
|
|
4133
|
+
return team.members.some(
|
|
4134
|
+
(member) => member.relationTo === "digital-colleagues" && (typeof member.value === "number" && member.value === colleague.id || typeof member.value === "object" && member.value.id === colleague.id)
|
|
4135
|
+
);
|
|
4136
|
+
};
|
|
4137
|
+
const alreadyMember = isColleagueAlreadyMember();
|
|
4138
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "px-2 md:px-4 py-4 space-y-6", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_react11.AnimatePresence, { mode: "wait", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
|
|
4139
|
+
import_react11.motion.div,
|
|
4140
|
+
{
|
|
4141
|
+
initial: { opacity: 0, y: 10 },
|
|
4142
|
+
animate: { opacity: 1, y: 0 },
|
|
4143
|
+
exit: { opacity: 0, y: -10 },
|
|
4144
|
+
transition: { duration: 0.2 },
|
|
4145
|
+
children: [
|
|
4146
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex items-center gap-4 mb-6", children: [
|
|
4147
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(Button, { variant: "ghost", onClick: onCancel, className: "gap-2", children: [
|
|
4148
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react9.ChevronLeft, { className: "h-4 w-4" }),
|
|
4149
|
+
"Back"
|
|
4150
|
+
] }),
|
|
4151
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { children: [
|
|
4152
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("h1", { className: "text-3xl font-bold", children: "Add to Team" }),
|
|
4153
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("p", { className: "text-muted-foreground", children: "Confirm adding this digital colleague to your team" })
|
|
4154
|
+
] })
|
|
4155
|
+
] }),
|
|
4156
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("form", { onSubmit: handleSubmit, className: "space-y-6", children: [
|
|
4157
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(Card, { children: [
|
|
4158
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(CardHeader, {}),
|
|
4159
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(CardContent, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex items-start gap-4", children: [
|
|
4160
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Avatar, { className: "h-16 w-16", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(AvatarFallback, { className: "bg-purple-100", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react9.Bot, { className: "h-8 w-8 text-purple-600" }) }) }),
|
|
4161
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex-1 space-y-2", children: [
|
|
4162
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("h3", { className: "text-xl font-semibold", children: colleague.name }),
|
|
4163
|
+
colleague.jobDescription && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("p", { className: "text-sm text-muted-foreground", children: colleague.jobDescription }),
|
|
4164
|
+
colleague.model && /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex items-center gap-2 text-sm", children: [
|
|
4165
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react9.Bot, { className: "h-4 w-4 text-muted-foreground" }),
|
|
4166
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "text-muted-foreground", children: typeof colleague.model === "object" ? colleague.model.name : colleague.model })
|
|
4167
|
+
] }),
|
|
4168
|
+
colleague.capabilities && colleague.capabilities.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex flex-wrap gap-1 mt-2", children: [
|
|
4169
|
+
colleague.capabilities.slice(0, 5).map((cap, index) => {
|
|
4170
|
+
const capName = typeof cap === "object" && cap.value && typeof cap.value === "object" && "name" in cap.value ? String(cap.value.name) : "Capability";
|
|
4171
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Badge, { variant: "secondary", className: "text-xs", children: capName }, index);
|
|
4172
|
+
}),
|
|
4173
|
+
colleague.capabilities.length > 5 && /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(Badge, { variant: "outline", className: "text-xs", children: [
|
|
4174
|
+
"+",
|
|
4175
|
+
colleague.capabilities.length - 5,
|
|
4176
|
+
" more"
|
|
4177
|
+
] })
|
|
4178
|
+
] })
|
|
4179
|
+
] })
|
|
4180
|
+
] }) })
|
|
4181
|
+
] }),
|
|
4182
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(Card, { children: [
|
|
4183
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(CardHeader, { children: [
|
|
4184
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(CardTitle, { className: "text-lg", children: "Team" }),
|
|
4185
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("p", { className: "text-sm text-muted-foreground", children: "This colleague will be added to the following team" })
|
|
4186
|
+
] }),
|
|
4187
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(CardContent, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "p-4 border rounded-lg bg-primary/5 border-primary", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex items-start gap-3", children: [
|
|
4188
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "flex-shrink-0 mt-1", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "h-10 w-10 rounded-full bg-blue-100 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react9.Users, { className: "h-5 w-5 text-blue-600" }) }) }),
|
|
4189
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex-1", children: [
|
|
4190
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
4191
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("h3", { className: "text-base font-semibold", children: team.name }),
|
|
4192
|
+
alreadyMember && /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(Badge, { variant: "secondary", className: "text-xs", children: [
|
|
4193
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react9.Check, { className: "h-3 w-3 mr-1" }),
|
|
4194
|
+
"Already a member"
|
|
4195
|
+
] })
|
|
4196
|
+
] }),
|
|
4197
|
+
team.description && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("p", { className: "text-sm text-muted-foreground mt-1", children: team.description }),
|
|
4198
|
+
team.members && team.members.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("p", { className: "text-xs text-muted-foreground mt-2", children: [
|
|
4199
|
+
team.members.length,
|
|
4200
|
+
" current member",
|
|
4201
|
+
team.members.length !== 1 ? "s" : ""
|
|
4202
|
+
] })
|
|
4203
|
+
] })
|
|
4204
|
+
] }) }) })
|
|
4205
|
+
] }),
|
|
4206
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex items-center justify-end gap-3", children: [
|
|
4207
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Button, { type: "button", variant: "outline", onClick: onCancel, disabled: isLoading, children: "Cancel" }),
|
|
4208
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
|
|
4209
|
+
Button,
|
|
4210
|
+
{
|
|
4211
|
+
type: "submit",
|
|
4212
|
+
disabled: isLoading || alreadyMember,
|
|
4213
|
+
className: "gap-2",
|
|
4214
|
+
children: [
|
|
4215
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react9.Users, { className: "h-4 w-4" }),
|
|
4216
|
+
alreadyMember ? "Already in Team" : "Add to Team"
|
|
4217
|
+
]
|
|
4218
|
+
}
|
|
4219
|
+
)
|
|
4220
|
+
] })
|
|
4221
|
+
] })
|
|
4222
|
+
]
|
|
4223
|
+
},
|
|
4224
|
+
"add-colleague-to-team"
|
|
4225
|
+
) }) });
|
|
4226
|
+
}
|
|
4227
|
+
|
|
4228
|
+
// src/components/Foundry/colleague-type-selection.tsx
|
|
4229
|
+
var import_lucide_react10 = require("lucide-react");
|
|
4230
|
+
var import_react12 = require("motion/react");
|
|
4231
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
4232
|
+
function ColleagueTypeSelection({
|
|
4233
|
+
onSelectHuman,
|
|
4234
|
+
onSelectDigital,
|
|
4235
|
+
onCancel
|
|
4236
|
+
}) {
|
|
4237
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "px-2 md:px-4 py-4 space-y-6", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react12.AnimatePresence, { mode: "wait", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
4238
|
+
import_react12.motion.div,
|
|
4239
|
+
{
|
|
4240
|
+
initial: { opacity: 0, y: 10 },
|
|
4241
|
+
animate: { opacity: 1, y: 0 },
|
|
4242
|
+
exit: { opacity: 0, y: -10 },
|
|
4243
|
+
transition: { duration: 0.2 },
|
|
4244
|
+
children: [
|
|
4245
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex items-center gap-4 mb-6", children: [
|
|
4246
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(Button, { variant: "ghost", onClick: onCancel, className: "gap-2", children: [
|
|
4247
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react10.ChevronLeft, { className: "h-4 w-4" }),
|
|
4248
|
+
"Back"
|
|
4249
|
+
] }),
|
|
4250
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { children: [
|
|
4251
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("h1", { className: "text-3xl font-bold", children: "Add Colleague" }),
|
|
4252
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { className: "text-muted-foreground", children: "Choose the type of colleague to add" })
|
|
4253
|
+
] })
|
|
4254
|
+
] }),
|
|
4255
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "grid gap-6 md:grid-cols-2 max-w-4xl mx-auto", children: [
|
|
4256
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
4257
|
+
import_react12.motion.div,
|
|
4030
4258
|
{
|
|
4031
4259
|
whileHover: { scale: 1.02 },
|
|
4032
4260
|
whileTap: { scale: 0.98 },
|
|
4033
4261
|
transition: { type: "spring", stiffness: 300, damping: 20 },
|
|
4034
|
-
children: /* @__PURE__ */ (0,
|
|
4262
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
4035
4263
|
Card,
|
|
4036
4264
|
{
|
|
4037
4265
|
className: "cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",
|
|
4038
4266
|
onClick: onSelectHuman,
|
|
4039
4267
|
children: [
|
|
4040
|
-
/* @__PURE__ */ (0,
|
|
4041
|
-
/* @__PURE__ */ (0,
|
|
4042
|
-
/* @__PURE__ */ (0,
|
|
4268
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(CardHeader, { className: "text-center pb-4", children: [
|
|
4269
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "mx-auto w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react10.User, { className: "h-8 w-8 text-blue-600" }) }),
|
|
4270
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(CardTitle, { className: "text-xl", children: "Add Human Colleague" })
|
|
4043
4271
|
] }),
|
|
4044
|
-
/* @__PURE__ */ (0,
|
|
4045
|
-
/* @__PURE__ */ (0,
|
|
4046
|
-
/* @__PURE__ */ (0,
|
|
4047
|
-
/* @__PURE__ */ (0,
|
|
4048
|
-
/* @__PURE__ */ (0,
|
|
4049
|
-
/* @__PURE__ */ (0,
|
|
4272
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(CardContent, { className: "text-center", children: [
|
|
4273
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { className: "text-muted-foreground mb-4", children: "Select from existing users in your organization to add as team members." }),
|
|
4274
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "space-y-2 text-sm", children: [
|
|
4275
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex items-center gap-2 justify-center", children: [
|
|
4276
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react10.Users, { className: "h-4 w-4 text-blue-600" }),
|
|
4277
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { children: "Browse existing users" })
|
|
4050
4278
|
] }),
|
|
4051
|
-
/* @__PURE__ */ (0,
|
|
4052
|
-
/* @__PURE__ */ (0,
|
|
4053
|
-
/* @__PURE__ */ (0,
|
|
4279
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex items-center gap-2 justify-center", children: [
|
|
4280
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react10.User, { className: "h-4 w-4 text-blue-600" }),
|
|
4281
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { children: "Import user details automatically" })
|
|
4054
4282
|
] })
|
|
4055
4283
|
] }),
|
|
4056
|
-
/* @__PURE__ */ (0,
|
|
4284
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Button, { className: "mt-6 w-full", onClick: onSelectHuman, children: "Select User" })
|
|
4057
4285
|
] })
|
|
4058
4286
|
]
|
|
4059
4287
|
}
|
|
4060
4288
|
)
|
|
4061
4289
|
}
|
|
4062
4290
|
),
|
|
4063
|
-
/* @__PURE__ */ (0,
|
|
4064
|
-
|
|
4291
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
4292
|
+
import_react12.motion.div,
|
|
4065
4293
|
{
|
|
4066
4294
|
whileHover: { scale: 1.02 },
|
|
4067
4295
|
whileTap: { scale: 0.98 },
|
|
4068
4296
|
transition: { type: "spring", stiffness: 300, damping: 20 },
|
|
4069
|
-
children: /* @__PURE__ */ (0,
|
|
4297
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
4070
4298
|
Card,
|
|
4071
4299
|
{
|
|
4072
4300
|
className: "cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",
|
|
4073
4301
|
onClick: onSelectDigital,
|
|
4074
4302
|
children: [
|
|
4075
|
-
/* @__PURE__ */ (0,
|
|
4076
|
-
/* @__PURE__ */ (0,
|
|
4077
|
-
/* @__PURE__ */ (0,
|
|
4303
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(CardHeader, { className: "text-center pb-4", children: [
|
|
4304
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "mx-auto w-16 h-16 bg-purple-100 rounded-full flex items-center justify-center mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react10.Bot, { className: "h-8 w-8 text-purple-600" }) }),
|
|
4305
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(CardTitle, { className: "text-xl", children: "Add Digital Colleague" })
|
|
4078
4306
|
] }),
|
|
4079
|
-
/* @__PURE__ */ (0,
|
|
4080
|
-
/* @__PURE__ */ (0,
|
|
4081
|
-
/* @__PURE__ */ (0,
|
|
4082
|
-
/* @__PURE__ */ (0,
|
|
4083
|
-
/* @__PURE__ */ (0,
|
|
4084
|
-
/* @__PURE__ */ (0,
|
|
4307
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(CardContent, { className: "text-center", children: [
|
|
4308
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { className: "text-muted-foreground mb-4", children: "Clone an existing digital colleague or create a new AI assistant for your team." }),
|
|
4309
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "space-y-2 text-sm", children: [
|
|
4310
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex items-center gap-2 justify-center", children: [
|
|
4311
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react10.Bot, { className: "h-4 w-4 text-purple-600" }),
|
|
4312
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { children: "Clone existing colleagues" })
|
|
4085
4313
|
] }),
|
|
4086
|
-
/* @__PURE__ */ (0,
|
|
4087
|
-
/* @__PURE__ */ (0,
|
|
4088
|
-
/* @__PURE__ */ (0,
|
|
4314
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex items-center gap-2 justify-center", children: [
|
|
4315
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react10.Users, { className: "h-4 w-4 text-purple-600" }),
|
|
4316
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { children: "Create from templates" })
|
|
4089
4317
|
] })
|
|
4090
4318
|
] }),
|
|
4091
|
-
/* @__PURE__ */ (0,
|
|
4319
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Button, { className: "mt-6 w-full", onClick: onSelectDigital, children: "Add Digital Colleague" })
|
|
4092
4320
|
] })
|
|
4093
4321
|
]
|
|
4094
4322
|
}
|
|
@@ -4102,98 +4330,134 @@ function ColleagueTypeSelection({
|
|
|
4102
4330
|
) }) });
|
|
4103
4331
|
}
|
|
4104
4332
|
|
|
4105
|
-
// src/components/
|
|
4106
|
-
var
|
|
4107
|
-
var
|
|
4108
|
-
var
|
|
4333
|
+
// src/components/Foundry/foundary-options.tsx
|
|
4334
|
+
var import_lucide_react11 = require("lucide-react");
|
|
4335
|
+
var import_react13 = require("motion/react");
|
|
4336
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
4109
4337
|
function DigitalColleagueOptions({
|
|
4110
4338
|
onCloneExisting,
|
|
4339
|
+
onAddExisting,
|
|
4111
4340
|
onCreateNew,
|
|
4112
4341
|
onCancel
|
|
4113
4342
|
}) {
|
|
4114
|
-
return /* @__PURE__ */ (0,
|
|
4115
|
-
|
|
4343
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "px-2 md:px-4 py-4 space-y-6", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react13.AnimatePresence, { mode: "wait", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
4344
|
+
import_react13.motion.div,
|
|
4116
4345
|
{
|
|
4117
4346
|
initial: { opacity: 0, y: 10 },
|
|
4118
4347
|
animate: { opacity: 1, y: 0 },
|
|
4119
4348
|
exit: { opacity: 0, y: -10 },
|
|
4120
4349
|
transition: { duration: 0.2 },
|
|
4121
4350
|
children: [
|
|
4122
|
-
/* @__PURE__ */ (0,
|
|
4123
|
-
/* @__PURE__ */ (0,
|
|
4124
|
-
/* @__PURE__ */ (0,
|
|
4351
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex items-center gap-4 mb-6", children: [
|
|
4352
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(Button, { variant: "ghost", onClick: onCancel, className: "gap-2", children: [
|
|
4353
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react11.ChevronLeft, { className: "h-4 w-4" }),
|
|
4125
4354
|
"Back"
|
|
4126
4355
|
] }),
|
|
4127
|
-
/* @__PURE__ */ (0,
|
|
4128
|
-
/* @__PURE__ */ (0,
|
|
4129
|
-
/* @__PURE__ */ (0,
|
|
4356
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { children: [
|
|
4357
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("h1", { className: "text-3xl font-bold", children: "Add Digital Colleague" }),
|
|
4358
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-muted-foreground", children: "Choose how to create your digital colleague" })
|
|
4130
4359
|
] })
|
|
4131
4360
|
] }),
|
|
4132
|
-
/* @__PURE__ */ (0,
|
|
4133
|
-
/* @__PURE__ */ (0,
|
|
4134
|
-
|
|
4361
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "grid gap-6 md:grid-cols-3 max-w-6xl mx-auto", children: [
|
|
4362
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
4363
|
+
import_react13.motion.div,
|
|
4364
|
+
{
|
|
4365
|
+
whileHover: { scale: 1.02 },
|
|
4366
|
+
whileTap: { scale: 0.98 },
|
|
4367
|
+
transition: { type: "spring", stiffness: 300, damping: 20 },
|
|
4368
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
4369
|
+
Card,
|
|
4370
|
+
{
|
|
4371
|
+
className: "cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",
|
|
4372
|
+
onClick: onAddExisting,
|
|
4373
|
+
children: [
|
|
4374
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(CardHeader, { className: "text-center pb-4", children: [
|
|
4375
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "mx-auto w-16 h-16 bg-purple-100 rounded-full flex items-center justify-center mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react11.UserPlus, { className: "h-8 w-8 text-purple-600" }) }),
|
|
4376
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CardTitle, { className: "text-xl", children: "Add Existing" })
|
|
4377
|
+
] }),
|
|
4378
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(CardContent, { className: "text-center", children: [
|
|
4379
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-muted-foreground mb-4", children: "Add an already configured digital colleague directly to your team." }),
|
|
4380
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "space-y-2 text-sm", children: [
|
|
4381
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex items-center gap-2 justify-center", children: [
|
|
4382
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react11.Bot, { className: "h-4 w-4 text-purple-600" }),
|
|
4383
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { children: "Fully configured" })
|
|
4384
|
+
] }),
|
|
4385
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex items-center gap-2 justify-center", children: [
|
|
4386
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react11.UserPlus, { className: "h-4 w-4 text-purple-600" }),
|
|
4387
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { children: "Ready to use" })
|
|
4388
|
+
] })
|
|
4389
|
+
] }),
|
|
4390
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Button, { className: "mt-6 w-full", onClick: onAddExisting, children: "Browse & Add" })
|
|
4391
|
+
] })
|
|
4392
|
+
]
|
|
4393
|
+
}
|
|
4394
|
+
)
|
|
4395
|
+
}
|
|
4396
|
+
),
|
|
4397
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
4398
|
+
import_react13.motion.div,
|
|
4135
4399
|
{
|
|
4136
4400
|
whileHover: { scale: 1.02 },
|
|
4137
4401
|
whileTap: { scale: 0.98 },
|
|
4138
4402
|
transition: { type: "spring", stiffness: 300, damping: 20 },
|
|
4139
|
-
children: /* @__PURE__ */ (0,
|
|
4403
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
4140
4404
|
Card,
|
|
4141
4405
|
{
|
|
4142
4406
|
className: "cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",
|
|
4143
4407
|
onClick: onCloneExisting,
|
|
4144
4408
|
children: [
|
|
4145
|
-
/* @__PURE__ */ (0,
|
|
4146
|
-
/* @__PURE__ */ (0,
|
|
4147
|
-
/* @__PURE__ */ (0,
|
|
4409
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(CardHeader, { className: "text-center pb-4", children: [
|
|
4410
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "mx-auto w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react11.Copy, { className: "h-8 w-8 text-blue-600" }) }),
|
|
4411
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CardTitle, { className: "text-xl", children: "Clone Existing" })
|
|
4148
4412
|
] }),
|
|
4149
|
-
/* @__PURE__ */ (0,
|
|
4150
|
-
/* @__PURE__ */ (0,
|
|
4151
|
-
/* @__PURE__ */ (0,
|
|
4152
|
-
/* @__PURE__ */ (0,
|
|
4153
|
-
/* @__PURE__ */ (0,
|
|
4154
|
-
/* @__PURE__ */ (0,
|
|
4413
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(CardContent, { className: "text-center", children: [
|
|
4414
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-muted-foreground mb-4", children: "Start with an existing digital colleague and customize it for your needs." }),
|
|
4415
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "space-y-2 text-sm", children: [
|
|
4416
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex items-center gap-2 justify-center", children: [
|
|
4417
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react11.Bot, { className: "h-4 w-4 text-blue-600" }),
|
|
4418
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { children: "Pre-configured capabilities" })
|
|
4155
4419
|
] }),
|
|
4156
|
-
/* @__PURE__ */ (0,
|
|
4157
|
-
/* @__PURE__ */ (0,
|
|
4158
|
-
/* @__PURE__ */ (0,
|
|
4420
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex items-center gap-2 justify-center", children: [
|
|
4421
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react11.Copy, { className: "h-4 w-4 text-blue-600" }),
|
|
4422
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { children: "Inherit knowledge base" })
|
|
4159
4423
|
] })
|
|
4160
4424
|
] }),
|
|
4161
|
-
/* @__PURE__ */ (0,
|
|
4425
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Button, { className: "mt-6 w-full", onClick: onCloneExisting, children: "Browse & Clone" })
|
|
4162
4426
|
] })
|
|
4163
4427
|
]
|
|
4164
4428
|
}
|
|
4165
4429
|
)
|
|
4166
4430
|
}
|
|
4167
4431
|
),
|
|
4168
|
-
/* @__PURE__ */ (0,
|
|
4169
|
-
|
|
4432
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
4433
|
+
import_react13.motion.div,
|
|
4170
4434
|
{
|
|
4171
4435
|
whileHover: { scale: 1.02 },
|
|
4172
4436
|
whileTap: { scale: 0.98 },
|
|
4173
4437
|
transition: { type: "spring", stiffness: 300, damping: 20 },
|
|
4174
|
-
children: /* @__PURE__ */ (0,
|
|
4438
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
4175
4439
|
Card,
|
|
4176
4440
|
{
|
|
4177
4441
|
className: "cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",
|
|
4178
4442
|
onClick: onCreateNew,
|
|
4179
4443
|
children: [
|
|
4180
|
-
/* @__PURE__ */ (0,
|
|
4181
|
-
/* @__PURE__ */ (0,
|
|
4182
|
-
/* @__PURE__ */ (0,
|
|
4444
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(CardHeader, { className: "text-center pb-4", children: [
|
|
4445
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "mx-auto w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react11.Sparkles, { className: "h-8 w-8 text-green-600" }) }),
|
|
4446
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CardTitle, { className: "text-xl", children: "Create New" })
|
|
4183
4447
|
] }),
|
|
4184
|
-
/* @__PURE__ */ (0,
|
|
4185
|
-
/* @__PURE__ */ (0,
|
|
4186
|
-
/* @__PURE__ */ (0,
|
|
4187
|
-
/* @__PURE__ */ (0,
|
|
4188
|
-
/* @__PURE__ */ (0,
|
|
4189
|
-
/* @__PURE__ */ (0,
|
|
4448
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(CardContent, { className: "text-center", children: [
|
|
4449
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-muted-foreground mb-4", children: "Build a completely new digital colleague from scratch with custom specifications." }),
|
|
4450
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "space-y-2 text-sm", children: [
|
|
4451
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex items-center gap-2 justify-center", children: [
|
|
4452
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react11.Plus, { className: "h-4 w-4 text-green-600" }),
|
|
4453
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { children: "Custom job description" })
|
|
4190
4454
|
] }),
|
|
4191
|
-
/* @__PURE__ */ (0,
|
|
4192
|
-
/* @__PURE__ */ (0,
|
|
4193
|
-
/* @__PURE__ */ (0,
|
|
4455
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex items-center gap-2 justify-center", children: [
|
|
4456
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react11.Sparkles, { className: "h-4 w-4 text-green-600" }),
|
|
4457
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { children: "Define unique capabilities" })
|
|
4194
4458
|
] })
|
|
4195
4459
|
] }),
|
|
4196
|
-
/* @__PURE__ */ (0,
|
|
4460
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Button, { className: "mt-6 w-full", onClick: onCreateNew, children: "Create from Scratch" })
|
|
4197
4461
|
] })
|
|
4198
4462
|
]
|
|
4199
4463
|
}
|
|
@@ -4207,17 +4471,17 @@ function DigitalColleagueOptions({
|
|
|
4207
4471
|
) }) });
|
|
4208
4472
|
}
|
|
4209
4473
|
|
|
4210
|
-
// src/components/
|
|
4211
|
-
var
|
|
4474
|
+
// src/components/Foundry/Views/ColleaguesView.tsx
|
|
4475
|
+
var import_react18 = require("motion/react");
|
|
4212
4476
|
|
|
4213
4477
|
// src/components/Heros/DashboardHero/DashboardHero.tsx
|
|
4214
|
-
var
|
|
4215
|
-
var
|
|
4478
|
+
var import_react15 = require("react");
|
|
4479
|
+
var import_react16 = require("motion/react");
|
|
4216
4480
|
|
|
4217
4481
|
// src/hooks/use-local-storage.ts
|
|
4218
|
-
var
|
|
4482
|
+
var import_react14 = require("react");
|
|
4219
4483
|
function useLocalStorage(key, initialValue) {
|
|
4220
|
-
const [storedValue, setStoredValue] = (0,
|
|
4484
|
+
const [storedValue, setStoredValue] = (0, import_react14.useState)(() => {
|
|
4221
4485
|
if (typeof window === "undefined") return initialValue;
|
|
4222
4486
|
try {
|
|
4223
4487
|
const item = window.localStorage.getItem(key);
|
|
@@ -4226,16 +4490,17 @@ function useLocalStorage(key, initialValue) {
|
|
|
4226
4490
|
return initialValue;
|
|
4227
4491
|
}
|
|
4228
4492
|
});
|
|
4229
|
-
const setValue = (value) => {
|
|
4493
|
+
const setValue = (0, import_react14.useCallback)((value) => {
|
|
4230
4494
|
try {
|
|
4231
|
-
|
|
4495
|
+
const valueToStore = value instanceof Function ? value(storedValue) : value;
|
|
4496
|
+
setStoredValue(valueToStore);
|
|
4232
4497
|
if (typeof window !== "undefined") {
|
|
4233
|
-
window.localStorage.setItem(key, JSON.stringify(
|
|
4498
|
+
window.localStorage.setItem(key, JSON.stringify(valueToStore));
|
|
4234
4499
|
}
|
|
4235
4500
|
} catch (error) {
|
|
4236
4501
|
}
|
|
4237
|
-
};
|
|
4238
|
-
(0,
|
|
4502
|
+
}, [key, storedValue]);
|
|
4503
|
+
(0, import_react14.useEffect)(() => {
|
|
4239
4504
|
setValue(storedValue);
|
|
4240
4505
|
}, []);
|
|
4241
4506
|
return [storedValue, setValue];
|
|
@@ -4243,8 +4508,8 @@ function useLocalStorage(key, initialValue) {
|
|
|
4243
4508
|
|
|
4244
4509
|
// src/components/Heros/DashboardHero/DashboardHero.tsx
|
|
4245
4510
|
var import_fa = require("react-icons/fa");
|
|
4246
|
-
var
|
|
4247
|
-
var
|
|
4511
|
+
var import_lucide_react12 = require("lucide-react");
|
|
4512
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
4248
4513
|
function DashboardHero({
|
|
4249
4514
|
title,
|
|
4250
4515
|
description,
|
|
@@ -4260,23 +4525,23 @@ function DashboardHero({
|
|
|
4260
4525
|
`hero-section-minimized-${title.replace(/\s+/g, "-").toLowerCase()}`,
|
|
4261
4526
|
!secondaryAction && !description ? true : false
|
|
4262
4527
|
);
|
|
4263
|
-
const [actionsMenuOpen, setActionsMenuOpen] = (0,
|
|
4528
|
+
const [actionsMenuOpen, setActionsMenuOpen] = (0, import_react15.useState)(false);
|
|
4264
4529
|
const shouldBeMinimized = !secondaryAction && !description || minimized;
|
|
4265
|
-
return /* @__PURE__ */ (0,
|
|
4266
|
-
|
|
4530
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
4531
|
+
import_react16.motion.div,
|
|
4267
4532
|
{
|
|
4268
4533
|
initial: { opacity: 0, y: 20 },
|
|
4269
4534
|
animate: { opacity: 1, y: 0 },
|
|
4270
4535
|
transition: { duration: 0.5 },
|
|
4271
4536
|
className: `overflow-hidden rounded-3xl ${gradient} p-8 text-white ${className || ""}`,
|
|
4272
4537
|
children: [
|
|
4273
|
-
/* @__PURE__ */ (0,
|
|
4274
|
-
/* @__PURE__ */ (0,
|
|
4275
|
-
badge && /* @__PURE__ */ (0,
|
|
4276
|
-
/* @__PURE__ */ (0,
|
|
4538
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex items-center justify-between mb-2", children: [
|
|
4539
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex items-center gap-3", children: [
|
|
4540
|
+
badge && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Badge, { className: "bg-white/20 text-white hover:bg-white/30 rounded-xl", children: badge }),
|
|
4541
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("h2", { className: "text-3xl font-bold m-0", children: title })
|
|
4277
4542
|
] }),
|
|
4278
|
-
/* @__PURE__ */ (0,
|
|
4279
|
-
shouldBeMinimized && primaryAction && /* @__PURE__ */ (0,
|
|
4543
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex items-center gap-3", children: [
|
|
4544
|
+
shouldBeMinimized && primaryAction && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4280
4545
|
Button,
|
|
4281
4546
|
{
|
|
4282
4547
|
className: "rounded-2xl bg-white text-indigo-700 hover:bg-white/90",
|
|
@@ -4284,39 +4549,39 @@ function DashboardHero({
|
|
|
4284
4549
|
children: primaryAction.label
|
|
4285
4550
|
}
|
|
4286
4551
|
),
|
|
4287
|
-
shouldBeMinimized && (secondaryAction || tertiaryAction) && /* @__PURE__ */ (0,
|
|
4288
|
-
/* @__PURE__ */ (0,
|
|
4552
|
+
shouldBeMinimized && (secondaryAction || tertiaryAction) && /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(DropdownMenu, { open: actionsMenuOpen, onOpenChange: setActionsMenuOpen, children: [
|
|
4553
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4289
4554
|
Button,
|
|
4290
4555
|
{
|
|
4291
4556
|
variant: "ghost",
|
|
4292
4557
|
size: "sm",
|
|
4293
4558
|
className: "rounded-2xl bg-white/20 text-white hover:bg-white/30 p-2",
|
|
4294
4559
|
"aria-label": "More actions",
|
|
4295
|
-
children: /* @__PURE__ */ (0,
|
|
4560
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react12.EllipsisVertical, { size: 20 })
|
|
4296
4561
|
}
|
|
4297
4562
|
) }),
|
|
4298
|
-
/* @__PURE__ */ (0,
|
|
4299
|
-
secondaryAction && /* @__PURE__ */ (0,
|
|
4300
|
-
tertiaryAction && /* @__PURE__ */ (0,
|
|
4563
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(DropdownMenuContent, { align: "end", className: "w-48", children: [
|
|
4564
|
+
secondaryAction && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(DropdownMenuItem, { onClick: secondaryAction.onClick, children: secondaryAction.label }),
|
|
4565
|
+
tertiaryAction && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(DropdownMenuItem, { onClick: tertiaryAction.onClick, children: tertiaryAction.label })
|
|
4301
4566
|
] })
|
|
4302
4567
|
] }),
|
|
4303
|
-
(secondaryAction || description) && /* @__PURE__ */ (0,
|
|
4568
|
+
(secondaryAction || description) && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4304
4569
|
"button",
|
|
4305
4570
|
{
|
|
4306
4571
|
"aria-label": minimized ? "Expand hero section" : "Minimize hero section",
|
|
4307
4572
|
className: "rounded-full bg-white/20 hover:bg-white/30 p-1 text-white transition-colors",
|
|
4308
4573
|
onClick: () => setMinimized(!minimized),
|
|
4309
4574
|
style: { lineHeight: 0 },
|
|
4310
|
-
children: minimized ? /* @__PURE__ */ (0,
|
|
4575
|
+
children: minimized ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_fa.FaChevronDown, { size: 22 }) : /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_fa.FaChevronUp, { size: 22 })
|
|
4311
4576
|
}
|
|
4312
4577
|
)
|
|
4313
4578
|
] })
|
|
4314
4579
|
] }),
|
|
4315
|
-
!shouldBeMinimized && /* @__PURE__ */ (0,
|
|
4316
|
-
/* @__PURE__ */ (0,
|
|
4317
|
-
/* @__PURE__ */ (0,
|
|
4318
|
-
/* @__PURE__ */ (0,
|
|
4319
|
-
primaryAction && /* @__PURE__ */ (0,
|
|
4580
|
+
!shouldBeMinimized && /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex flex-col gap-6 md:flex-row md:items-center md:justify-between", children: [
|
|
4581
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "space-y-4", children: [
|
|
4582
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "max-w-[600px] text-white/80", children: description }),
|
|
4583
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex flex-wrap gap-3", children: [
|
|
4584
|
+
primaryAction && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4320
4585
|
Button,
|
|
4321
4586
|
{
|
|
4322
4587
|
className: "rounded-2xl bg-white text-indigo-700 hover:bg-white/90",
|
|
@@ -4324,7 +4589,7 @@ function DashboardHero({
|
|
|
4324
4589
|
children: primaryAction.label
|
|
4325
4590
|
}
|
|
4326
4591
|
),
|
|
4327
|
-
secondaryAction && /* @__PURE__ */ (0,
|
|
4592
|
+
secondaryAction && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4328
4593
|
Button,
|
|
4329
4594
|
{
|
|
4330
4595
|
variant: "outline",
|
|
@@ -4333,7 +4598,7 @@ function DashboardHero({
|
|
|
4333
4598
|
children: secondaryAction.label
|
|
4334
4599
|
}
|
|
4335
4600
|
),
|
|
4336
|
-
tertiaryAction && /* @__PURE__ */ (0,
|
|
4601
|
+
tertiaryAction && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4337
4602
|
Button,
|
|
4338
4603
|
{
|
|
4339
4604
|
variant: "outline",
|
|
@@ -4344,7 +4609,7 @@ function DashboardHero({
|
|
|
4344
4609
|
)
|
|
4345
4610
|
] })
|
|
4346
4611
|
] }),
|
|
4347
|
-
children && /* @__PURE__ */ (0,
|
|
4612
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "hidden lg:block", children })
|
|
4348
4613
|
] })
|
|
4349
4614
|
]
|
|
4350
4615
|
}
|
|
@@ -4357,35 +4622,38 @@ function cn2(...inputs) {
|
|
|
4357
4622
|
return twMerge((0, import_clsx2.clsx)(inputs));
|
|
4358
4623
|
}
|
|
4359
4624
|
|
|
4360
|
-
// src/components/
|
|
4361
|
-
var
|
|
4625
|
+
// src/components/Foundry/Views/ColleaguesView.tsx
|
|
4626
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
4362
4627
|
function ColleaguesView({
|
|
4363
4628
|
initialColleagues,
|
|
4364
4629
|
onColleagueAdd,
|
|
4365
4630
|
onColleagueEdit,
|
|
4366
4631
|
onColleagueDelete,
|
|
4632
|
+
onColleagueAddToTeam,
|
|
4367
4633
|
compactView = false,
|
|
4368
4634
|
departments = ["Design", "Engineering", "Marketing", "Product", "Sales", "Operations"],
|
|
4369
4635
|
className,
|
|
4370
4636
|
availableUsers = [],
|
|
4371
4637
|
existingDigitalColleagues = [],
|
|
4638
|
+
currentTeam,
|
|
4372
4639
|
availableKnowledgeDocuments = [],
|
|
4373
4640
|
availableCapabilities = [],
|
|
4374
4641
|
availableModels = []
|
|
4375
4642
|
}) {
|
|
4376
|
-
const [colleagues, setColleagues] = (0,
|
|
4377
|
-
const [searchTerm, setSearchTerm] = (0,
|
|
4378
|
-
const [departmentFilter, setDepartmentFilter] = (0,
|
|
4379
|
-
const [statusFilter, setStatusFilter] = (0,
|
|
4380
|
-
const [activeTab, setActiveTab] = (0,
|
|
4381
|
-
const [editingColleague, setEditingColleague] = (0,
|
|
4382
|
-
const [viewingColleague, setViewingColleague] = (0,
|
|
4383
|
-
(0,
|
|
4643
|
+
const [colleagues, setColleagues] = (0, import_react17.useState)(initialColleagues || []);
|
|
4644
|
+
const [searchTerm, setSearchTerm] = (0, import_react17.useState)("");
|
|
4645
|
+
const [departmentFilter, setDepartmentFilter] = (0, import_react17.useState)("all");
|
|
4646
|
+
const [statusFilter, setStatusFilter] = (0, import_react17.useState)("all");
|
|
4647
|
+
const [activeTab, setActiveTab] = (0, import_react17.useState)("all");
|
|
4648
|
+
const [editingColleague, setEditingColleague] = (0, import_react17.useState)(null);
|
|
4649
|
+
const [viewingColleague, setViewingColleague] = (0, import_react17.useState)(null);
|
|
4650
|
+
const [selectedColleagueForTeam, setSelectedColleagueForTeam] = (0, import_react17.useState)(null);
|
|
4651
|
+
(0, import_react17.useEffect)(() => {
|
|
4384
4652
|
setColleagues(initialColleagues || []);
|
|
4385
4653
|
}, [initialColleagues]);
|
|
4386
4654
|
const safeAvailableUsers = Array.isArray(availableUsers) ? availableUsers : [];
|
|
4387
4655
|
const safeExistingDigitalColleagues = Array.isArray(existingDigitalColleagues) ? existingDigitalColleagues : [];
|
|
4388
|
-
const [currentView, setCurrentView] = (0,
|
|
4656
|
+
const [currentView, setCurrentView] = (0, import_react17.useState)("main");
|
|
4389
4657
|
const filteredColleagues = colleagues.filter((colleague) => {
|
|
4390
4658
|
if (!colleague || !colleague?.name) return false;
|
|
4391
4659
|
const matchesSearch = colleague?.name.toLowerCase().includes(searchTerm.toLowerCase()) || colleague.type === "human" && // (colleague.email?.toLowerCase().includes(searchTerm.toLowerCase()) ||
|
|
@@ -4451,6 +4719,27 @@ function ColleaguesView({
|
|
|
4451
4719
|
onColleagueAdd?.({ ...clonedColleague, type: "digital" });
|
|
4452
4720
|
setCurrentView("main");
|
|
4453
4721
|
};
|
|
4722
|
+
const handleDigitalColleagueSelect = (selectedColleague) => {
|
|
4723
|
+
if (!selectedColleague || !selectedColleague.id) {
|
|
4724
|
+
console.error(
|
|
4725
|
+
"Invalid selected colleague provided to handleDigitalColleagueSelect:",
|
|
4726
|
+
selectedColleague
|
|
4727
|
+
);
|
|
4728
|
+
return;
|
|
4729
|
+
}
|
|
4730
|
+
setSelectedColleagueForTeam(selectedColleague);
|
|
4731
|
+
setCurrentView("addToTeam");
|
|
4732
|
+
};
|
|
4733
|
+
const handleAddColleagueToTeam = (colleague, teamId) => {
|
|
4734
|
+
onColleagueAddToTeam?.(colleague, teamId);
|
|
4735
|
+
setColleagues((prev) => [...prev, { ...colleague, type: "digital" }]);
|
|
4736
|
+
setSelectedColleagueForTeam(null);
|
|
4737
|
+
setCurrentView("main");
|
|
4738
|
+
};
|
|
4739
|
+
const handleCancelAddToTeam = () => {
|
|
4740
|
+
setSelectedColleagueForTeam(null);
|
|
4741
|
+
setCurrentView("digitalSelection");
|
|
4742
|
+
};
|
|
4454
4743
|
const handleCreateNewDigital = () => {
|
|
4455
4744
|
setEditingColleague(null);
|
|
4456
4745
|
setCurrentView("form");
|
|
@@ -4501,7 +4790,7 @@ function ColleaguesView({
|
|
|
4501
4790
|
setStatusFilter("all");
|
|
4502
4791
|
};
|
|
4503
4792
|
if (currentView === "typeSelection") {
|
|
4504
|
-
return /* @__PURE__ */ (0,
|
|
4793
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
4505
4794
|
ColleagueTypeSelection,
|
|
4506
4795
|
{
|
|
4507
4796
|
onSelectHuman: () => setCurrentView("userSelection"),
|
|
@@ -4513,7 +4802,7 @@ function ColleaguesView({
|
|
|
4513
4802
|
if (currentView === "userSelection") {
|
|
4514
4803
|
return (
|
|
4515
4804
|
// <h1>User selection</h1>
|
|
4516
|
-
/* @__PURE__ */ (0,
|
|
4805
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
4517
4806
|
UserSelection,
|
|
4518
4807
|
{
|
|
4519
4808
|
users: safeAvailableUsers,
|
|
@@ -4524,17 +4813,43 @@ function ColleaguesView({
|
|
|
4524
4813
|
);
|
|
4525
4814
|
}
|
|
4526
4815
|
if (currentView === "digitalOptions") {
|
|
4527
|
-
return /* @__PURE__ */ (0,
|
|
4816
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
4528
4817
|
DigitalColleagueOptions,
|
|
4529
4818
|
{
|
|
4819
|
+
onAddExisting: () => setCurrentView("digitalSelection"),
|
|
4530
4820
|
onCloneExisting: () => setCurrentView("digitalClone"),
|
|
4531
4821
|
onCreateNew: handleCreateNewDigital,
|
|
4532
4822
|
onCancel: () => setCurrentView("typeSelection")
|
|
4533
4823
|
}
|
|
4534
4824
|
);
|
|
4535
4825
|
}
|
|
4826
|
+
if (currentView === "digitalSelection") {
|
|
4827
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
4828
|
+
DigitalColleagueSelection,
|
|
4829
|
+
{
|
|
4830
|
+
digitalColleagues: safeExistingDigitalColleagues,
|
|
4831
|
+
onColleagueSelect: handleDigitalColleagueSelect,
|
|
4832
|
+
onCancel: () => setCurrentView("digitalOptions")
|
|
4833
|
+
}
|
|
4834
|
+
);
|
|
4835
|
+
}
|
|
4836
|
+
if (currentView === "addToTeam") {
|
|
4837
|
+
if (!selectedColleagueForTeam || !currentTeam) {
|
|
4838
|
+
setCurrentView("digitalSelection");
|
|
4839
|
+
return null;
|
|
4840
|
+
}
|
|
4841
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
4842
|
+
AddColleagueToTeamForm,
|
|
4843
|
+
{
|
|
4844
|
+
colleague: selectedColleagueForTeam,
|
|
4845
|
+
team: currentTeam,
|
|
4846
|
+
onSave: handleAddColleagueToTeam,
|
|
4847
|
+
onCancel: handleCancelAddToTeam
|
|
4848
|
+
}
|
|
4849
|
+
);
|
|
4850
|
+
}
|
|
4536
4851
|
if (currentView === "digitalClone") {
|
|
4537
|
-
return /* @__PURE__ */ (0,
|
|
4852
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
4538
4853
|
DigitalColleagueClone,
|
|
4539
4854
|
{
|
|
4540
4855
|
digitalColleagues: safeExistingDigitalColleagues,
|
|
@@ -4544,7 +4859,7 @@ function ColleaguesView({
|
|
|
4544
4859
|
);
|
|
4545
4860
|
}
|
|
4546
4861
|
if (currentView === "form") {
|
|
4547
|
-
return /* @__PURE__ */ (0,
|
|
4862
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
4548
4863
|
ColleagueForm,
|
|
4549
4864
|
{
|
|
4550
4865
|
colleague: editingColleague || void 0,
|
|
@@ -4557,7 +4872,7 @@ function ColleaguesView({
|
|
|
4557
4872
|
);
|
|
4558
4873
|
}
|
|
4559
4874
|
if (currentView === "view") {
|
|
4560
|
-
return /* @__PURE__ */ (0,
|
|
4875
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
4561
4876
|
ColleagueForm,
|
|
4562
4877
|
{
|
|
4563
4878
|
colleague: viewingColleague || void 0,
|
|
@@ -4570,15 +4885,15 @@ function ColleaguesView({
|
|
|
4570
4885
|
}
|
|
4571
4886
|
);
|
|
4572
4887
|
}
|
|
4573
|
-
return /* @__PURE__ */ (0,
|
|
4574
|
-
|
|
4888
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "px-2 md:px-4 py-4 space-y-8", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react18.AnimatePresence, { mode: "wait", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
4889
|
+
import_react18.motion.div,
|
|
4575
4890
|
{
|
|
4576
4891
|
initial: { opacity: 0, y: 10 },
|
|
4577
4892
|
animate: { opacity: 1, y: 0 },
|
|
4578
4893
|
exit: { opacity: 0, y: -10 },
|
|
4579
4894
|
transition: { duration: 0.2 },
|
|
4580
|
-
children: /* @__PURE__ */ (0,
|
|
4581
|
-
/* @__PURE__ */ (0,
|
|
4895
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: `space-y-6 ${className || ""}`, children: [
|
|
4896
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
4582
4897
|
DashboardHero,
|
|
4583
4898
|
{
|
|
4584
4899
|
title: "Colleagues",
|
|
@@ -4590,42 +4905,42 @@ function ColleaguesView({
|
|
|
4590
4905
|
}
|
|
4591
4906
|
}
|
|
4592
4907
|
),
|
|
4593
|
-
/* @__PURE__ */ (0,
|
|
4594
|
-
/* @__PURE__ */ (0,
|
|
4595
|
-
/* @__PURE__ */ (0,
|
|
4596
|
-
/* @__PURE__ */ (0,
|
|
4597
|
-
/* @__PURE__ */ (0,
|
|
4908
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "grid grid-cols-1 md:grid-cols-3 gap-4", children: [
|
|
4909
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(Card, { children: [
|
|
4910
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(CardHeader, { className: "flex flex-row items-center justify-between space-y-0 pb-2", children: [
|
|
4911
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(CardTitle, { className: "text-sm font-medium", children: "Total Colleagues" }),
|
|
4912
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react13.Users, { className: "h-4 w-4 text-muted-foreground" })
|
|
4598
4913
|
] }),
|
|
4599
|
-
/* @__PURE__ */ (0,
|
|
4600
|
-
/* @__PURE__ */ (0,
|
|
4601
|
-
/* @__PURE__ */ (0,
|
|
4914
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(CardContent, { children: [
|
|
4915
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "text-2xl font-bold", children: colleagues.length }),
|
|
4916
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "text-xs text-muted-foreground", children: "0 active" })
|
|
4602
4917
|
] })
|
|
4603
4918
|
] }),
|
|
4604
|
-
/* @__PURE__ */ (0,
|
|
4605
|
-
/* @__PURE__ */ (0,
|
|
4606
|
-
/* @__PURE__ */ (0,
|
|
4607
|
-
/* @__PURE__ */ (0,
|
|
4919
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(Card, { children: [
|
|
4920
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(CardHeader, { className: "flex flex-row items-center justify-between space-y-0 pb-2", children: [
|
|
4921
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(CardTitle, { className: "text-sm font-medium", children: "Human Members" }),
|
|
4922
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react13.User, { className: "h-4 w-4 text-muted-foreground" })
|
|
4608
4923
|
] }),
|
|
4609
|
-
/* @__PURE__ */ (0,
|
|
4610
|
-
/* @__PURE__ */ (0,
|
|
4611
|
-
/* @__PURE__ */ (0,
|
|
4924
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(CardContent, { children: [
|
|
4925
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "text-2xl font-bold", children: colleagues.filter((c) => c.type === "human").length }),
|
|
4926
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "text-xs text-muted-foreground", children: "active" })
|
|
4612
4927
|
] })
|
|
4613
4928
|
] }),
|
|
4614
|
-
/* @__PURE__ */ (0,
|
|
4615
|
-
/* @__PURE__ */ (0,
|
|
4616
|
-
/* @__PURE__ */ (0,
|
|
4617
|
-
/* @__PURE__ */ (0,
|
|
4929
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(Card, { children: [
|
|
4930
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(CardHeader, { className: "flex flex-row items-center justify-between space-y-0 pb-2", children: [
|
|
4931
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(CardTitle, { className: "text-sm font-medium", children: "Digital Colleagues" }),
|
|
4932
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react13.Bot, { className: "h-4 w-4 text-muted-foreground" })
|
|
4618
4933
|
] }),
|
|
4619
|
-
/* @__PURE__ */ (0,
|
|
4620
|
-
/* @__PURE__ */ (0,
|
|
4621
|
-
/* @__PURE__ */ (0,
|
|
4934
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(CardContent, { children: [
|
|
4935
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "text-2xl font-bold", children: colleagues.filter((c) => c.type === "digital").length }),
|
|
4936
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "text-xs text-muted-foreground", children: "0 active" })
|
|
4622
4937
|
] })
|
|
4623
4938
|
] })
|
|
4624
4939
|
] }),
|
|
4625
|
-
/* @__PURE__ */ (0,
|
|
4626
|
-
/* @__PURE__ */ (0,
|
|
4627
|
-
/* @__PURE__ */ (0,
|
|
4628
|
-
/* @__PURE__ */ (0,
|
|
4940
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(CardContent, { className: "pt-6", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "flex flex-col md:flex-row gap-4", children: [
|
|
4941
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "relative", children: [
|
|
4942
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react13.Search, { className: "absolute left-3 top-3 h-4 w-4 text-muted-foreground" }),
|
|
4943
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
4629
4944
|
Input,
|
|
4630
4945
|
{
|
|
4631
4946
|
placeholder: "Search colleagues...",
|
|
@@ -4635,28 +4950,28 @@ function ColleaguesView({
|
|
|
4635
4950
|
}
|
|
4636
4951
|
)
|
|
4637
4952
|
] }) }),
|
|
4638
|
-
/* @__PURE__ */ (0,
|
|
4639
|
-
/* @__PURE__ */ (0,
|
|
4640
|
-
/* @__PURE__ */ (0,
|
|
4641
|
-
/* @__PURE__ */ (0,
|
|
4642
|
-
departments.map((dept) => /* @__PURE__ */ (0,
|
|
4953
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(Select, { value: departmentFilter, onValueChange: setDepartmentFilter, children: [
|
|
4954
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SelectTrigger, { className: "w-full md:w-[180px]", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SelectValue, { placeholder: "Department" }) }),
|
|
4955
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(SelectContent, { children: [
|
|
4956
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SelectItem, { value: "all", children: "All Departments" }),
|
|
4957
|
+
departments.map((dept) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SelectItem, { value: dept, children: dept }, dept))
|
|
4643
4958
|
] })
|
|
4644
4959
|
] }),
|
|
4645
|
-
/* @__PURE__ */ (0,
|
|
4646
|
-
/* @__PURE__ */ (0,
|
|
4647
|
-
/* @__PURE__ */ (0,
|
|
4648
|
-
/* @__PURE__ */ (0,
|
|
4649
|
-
/* @__PURE__ */ (0,
|
|
4650
|
-
/* @__PURE__ */ (0,
|
|
4960
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(Select, { value: statusFilter, onValueChange: setStatusFilter, children: [
|
|
4961
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SelectTrigger, { className: "w-full md:w-[140px]", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SelectValue, { placeholder: "Status" }) }),
|
|
4962
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(SelectContent, { children: [
|
|
4963
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SelectItem, { value: "all", children: "All Status" }),
|
|
4964
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SelectItem, { value: "active", children: "Active" }),
|
|
4965
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SelectItem, { value: "inactive", children: "Inactive" })
|
|
4651
4966
|
] })
|
|
4652
4967
|
] }),
|
|
4653
|
-
(searchTerm || departmentFilter !== "all" || statusFilter !== "all") && /* @__PURE__ */ (0,
|
|
4654
|
-
/* @__PURE__ */ (0,
|
|
4968
|
+
(searchTerm || departmentFilter !== "all" || statusFilter !== "all") && /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(Button, { variant: "outline", onClick: clearFilters, className: "gap-2", children: [
|
|
4969
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react13.Filter, { className: "h-4 w-4" }),
|
|
4655
4970
|
"Clear"
|
|
4656
4971
|
] })
|
|
4657
4972
|
] }) }) }),
|
|
4658
|
-
/* @__PURE__ */ (0,
|
|
4659
|
-
/* @__PURE__ */ (0,
|
|
4973
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "space-y-4", children: [
|
|
4974
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
4660
4975
|
NavigationTabs,
|
|
4661
4976
|
{
|
|
4662
4977
|
activeTab,
|
|
@@ -4670,11 +4985,11 @@ function ColleaguesView({
|
|
|
4670
4985
|
gridCols: 3
|
|
4671
4986
|
}
|
|
4672
4987
|
),
|
|
4673
|
-
activeTab === "all" && /* @__PURE__ */ (0,
|
|
4988
|
+
activeTab === "all" && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
4674
4989
|
"div",
|
|
4675
4990
|
{
|
|
4676
4991
|
className: `grid gap-4 ${compactView ? "grid-cols-1 md:grid-cols-2 lg:grid-cols-4" : "grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,
|
|
4677
|
-
children: filteredColleagues.map((colleague) => /* @__PURE__ */ (0,
|
|
4992
|
+
children: filteredColleagues.map((colleague) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
4678
4993
|
ColleagueCard,
|
|
4679
4994
|
{
|
|
4680
4995
|
colleague,
|
|
@@ -4688,11 +5003,11 @@ function ColleaguesView({
|
|
|
4688
5003
|
))
|
|
4689
5004
|
}
|
|
4690
5005
|
),
|
|
4691
|
-
activeTab === "human" && /* @__PURE__ */ (0,
|
|
5006
|
+
activeTab === "human" && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
4692
5007
|
"div",
|
|
4693
5008
|
{
|
|
4694
5009
|
className: `grid gap-4 ${compactView ? "grid-cols-1 md:grid-cols-2 lg:grid-cols-4" : "grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,
|
|
4695
|
-
children: humanColleagues.map((colleague) => /* @__PURE__ */ (0,
|
|
5010
|
+
children: humanColleagues.map((colleague) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
4696
5011
|
ColleagueCard,
|
|
4697
5012
|
{
|
|
4698
5013
|
colleague,
|
|
@@ -4705,11 +5020,11 @@ function ColleaguesView({
|
|
|
4705
5020
|
))
|
|
4706
5021
|
}
|
|
4707
5022
|
),
|
|
4708
|
-
activeTab === "digital" && /* @__PURE__ */ (0,
|
|
5023
|
+
activeTab === "digital" && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
4709
5024
|
"div",
|
|
4710
5025
|
{
|
|
4711
5026
|
className: `grid gap-4 ${compactView ? "grid-cols-1 md:grid-cols-2 lg:grid-cols-4" : "grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,
|
|
4712
|
-
children: digitalColleagues.map((colleague) => /* @__PURE__ */ (0,
|
|
5027
|
+
children: digitalColleagues.map((colleague) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
4713
5028
|
ColleagueCard,
|
|
4714
5029
|
{
|
|
4715
5030
|
colleague,
|
|
@@ -4724,12 +5039,12 @@ function ColleaguesView({
|
|
|
4724
5039
|
}
|
|
4725
5040
|
)
|
|
4726
5041
|
] }),
|
|
4727
|
-
filteredColleagues.length === 0 && /* @__PURE__ */ (0,
|
|
4728
|
-
/* @__PURE__ */ (0,
|
|
4729
|
-
/* @__PURE__ */ (0,
|
|
4730
|
-
/* @__PURE__ */ (0,
|
|
4731
|
-
/* @__PURE__ */ (0,
|
|
4732
|
-
/* @__PURE__ */ (0,
|
|
5042
|
+
filteredColleagues.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(CardContent, { className: "pt-6", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "text-center py-8", children: [
|
|
5043
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react13.Users, { className: "h-12 w-12 text-muted-foreground mx-auto mb-4" }),
|
|
5044
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("h3", { className: "text-lg font-semibold mb-2", children: "No colleagues found" }),
|
|
5045
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "text-muted-foreground mb-4", children: searchTerm || departmentFilter !== "all" || statusFilter !== "all" ? "Try adjusting your filters to see more results." : "Get started by adding your first colleague." }),
|
|
5046
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(Button, { onClick: handleAddColleague, className: "gap-2", children: [
|
|
5047
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react13.Plus, { className: "h-4 w-4" }),
|
|
4733
5048
|
"Add Colleague"
|
|
4734
5049
|
] })
|
|
4735
5050
|
] }) }) })
|