diff --git a/ui/package.json b/ui/package.json index a76adf606..34629e636 100644 --- a/ui/package.json +++ b/ui/package.json @@ -23,6 +23,7 @@ "clsx": "^2.1.1", "cn": "^0.5.1", "pinia": "^4.0.3", + "qrcode": "^1.5.4", "reka-ui": "^2.10.5", "remark-gfm": "^4.0.1", "remark-parse": "^11.0.0", @@ -40,6 +41,7 @@ "devDependencies": { "@types/hast": "^3.0.5", "@types/node": "^26.6.4", + "@types/qrcode": "^1.5.6", "@vitejs/plugin-vue": "^6.0.8", "@vue/tsconfig": "^0.9.1", "spotnote": "0.5.0", diff --git a/ui/pages/pages.json b/ui/pages/pages.json index a8217fc65..91ee77bbf 100644 --- a/ui/pages/pages.json +++ b/ui/pages/pages.json @@ -99,11 +99,6 @@ "label": "Members", "description": "People in the organisation and their roles." }, - { - "path": "/org/people", - "label": "People", - "description": "Who answers approvals, and the accounts and channels they answer from." - }, { "path": "/org/agents", "label": "Agents", diff --git a/ui/pnpm-lock.yaml b/ui/pnpm-lock.yaml index 295a2b678..0d71ea2bc 100644 --- a/ui/pnpm-lock.yaml +++ b/ui/pnpm-lock.yaml @@ -202,6 +202,9 @@ importers: pinia: specifier: ^4.0.3 version: 4.1.0(@vue/devtools-api@8.2.1)(typescript@6.0.3)(vue@3.5.44(typescript@6.0.3)) + qrcode: + specifier: ^1.5.4 + version: 1.5.4 reka-ui: specifier: ^2.10.5 version: 2.11.0(vue@3.5.44(typescript@6.0.3)) @@ -248,6 +251,9 @@ importers: '@types/node': specifier: ^26.6.4 version: 26.6.5 + '@types/qrcode': + specifier: ^1.5.6 + version: 1.5.6 '@vitejs/plugin-vue': specifier: ^6.0.8 version: 6.0.10(vite@8.3.5(@types/node@26.6.5)(jiti@2.7.0)(yaml@2.9.1))(vue@3.5.44(typescript@6.0.3)) @@ -698,6 +704,9 @@ packages: '@types/node@26.6.5': resolution: {integrity: sha512-uMzsv9stDdofIZBx4UGh4Z9ZgXnGC9seRDscilBcTHAeOFk67MZg/k9bWVfO+bk4qZmG+l52hRnLwUiH2LnJTg==} + '@types/qrcode@1.5.6': + resolution: {integrity: sha512-te7NQcV2BOvdj2b1hCAHzAoMNuj65kNBMz0KBaxM6c3VGBOhU0dURQKOtH8CFNI/dsKkwlv32p26qYQTWoB5bw==} + '@types/unist@3.0.3': resolution: {integrity: sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==} @@ -847,6 +856,14 @@ packages: alien-signals@3.2.1: resolution: {integrity: sha512-I8FjmltrfnDFoZedi5CG8DghVYNhzb/Ijluz7tCSJH0xpd0484Kowhbb1XDYOxfJpU1p5wnM2X54dA+IfGyD1g==} + ansi-regex@5.0.1: + resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} + engines: {node: '>=8'} + + ansi-styles@4.3.0: + resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} + engines: {node: '>=8'} + aria-hidden@1.2.6: resolution: {integrity: sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA==} engines: {node: '>=10'} @@ -879,6 +896,10 @@ packages: engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} hasBin: true + camelcase@5.3.1: + resolution: {integrity: sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==} + engines: {node: '>=6'} + caniuse-lite@1.0.30001826: resolution: {integrity: sha512-wTB+9tIbLro/BCXwLuNV1meHE4L9dS6dArMDwgYfNBPMYScqClHyGunhkCSDtHhe/69Xl0sHlKgBVZ+fNsYtWA==} @@ -901,6 +922,9 @@ packages: class-variance-authority@0.7.1: resolution: {integrity: sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==} + cliui@6.0.0: + resolution: {integrity: sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==} + clsx@2.1.1: resolution: {integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==} engines: {node: '>=6'} @@ -910,6 +934,13 @@ packages: engines: {node: '>=22'} hasBin: true + color-convert@2.0.1: + resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} + engines: {node: '>=7.0.0'} + + color-name@1.1.4: + resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} + comma-separated-tokens@2.0.3: resolution: {integrity: sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==} @@ -972,6 +1003,10 @@ packages: supports-color: optional: true + decamelize@1.2.0: + resolution: {integrity: sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==} + engines: {node: '>=0.10.0'} + decode-named-character-reference@1.3.0: resolution: {integrity: sha512-GtpQYB283KrPp6nRw50q3U9/VfOutZOe103qlN7BPP6Ad27xYnOIWv4lPzo8HCAL+mMZofJ9KEy30fq6MfaK6Q==} @@ -989,9 +1024,15 @@ packages: devlop@1.1.0: resolution: {integrity: sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==} + dijkstrajs@1.0.3: + resolution: {integrity: sha512-qiSlmBq9+BCdCA/L46dw8Uy93mloxsPSbwnm5yrKn2vMPiy8KyAskTF6zuV/j5BMsmOGZDPs7KjU+mjb670kfA==} + electron-to-chromium@1.5.481: resolution: {integrity: sha512-dNUsbAP6E2S1dHIYEuN3cQ0dViThjMtpVRheGdvv5HgHFtzLi4Cu4Mbzms85YggP3Eh2VVZTl5+XxEN8ofCbmQ==} + emoji-regex@8.0.0: + resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} + enhanced-resolve@5.26.0: resolution: {integrity: sha512-9vhedylFonb2YGogzUKX6+Ja72gOJbN1QHAqdrvqLwhdl/QWbKopzoUC9EbQNVsAns/bx/4uyqalrQAoy1IByw==} engines: {node: '>=10.13.0'} @@ -1029,6 +1070,10 @@ packages: picomatch: optional: true + find-up@4.1.0: + resolution: {integrity: sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==} + engines: {node: '>=8'} + fsevents@2.3.3: resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} @@ -1038,6 +1083,10 @@ packages: resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==} engines: {node: '>=6.9.0'} + get-caller-file@2.0.5: + resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==} + engines: {node: 6.* || 8.* || >= 10.*} + graceful-fs@4.2.11: resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} @@ -1053,6 +1102,10 @@ packages: html-void-elements@3.0.0: resolution: {integrity: sha512-bEqo66MRXsUGxWHV5IP0PUiAWwoEjba4VCzg0LjFJBpchPaTfyfCKTG6bc5F8ucKec3q5y6qOdGyYTSBEvhCrg==} + is-fullwidth-code-point@3.0.0: + resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} + engines: {node: '>=8'} + is-plain-obj@4.1.0: resolution: {integrity: sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==} engines: {node: '>=12'} @@ -1229,6 +1282,10 @@ packages: resolution: {integrity: sha512-++gUqRDEvcnN6Zhqrr+y/CkVEHhlrR96vZn3nZZPYzMcBUyBtTKzB9NadClFIsIVSsu+3i9tfk/erqy9kAmt7Q==} engines: {node: '>=14'} + locate-path@5.0.0: + resolution: {integrity: sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==} + engines: {node: '>=8'} + longest-streak@3.1.0: resolution: {integrity: sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==} @@ -1404,9 +1461,25 @@ packages: oniguruma-to-es@4.3.6: resolution: {integrity: sha512-csuQ9x3Yr0cEIs/Zgx/OEt9iBw9vqIunAPQkx19R/fiMq2oGVTgcMqO/V3Ybqefr1TBvosI6jU539ksaBULJyA==} + p-limit@2.3.0: + resolution: {integrity: sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==} + engines: {node: '>=6'} + + p-locate@4.1.0: + resolution: {integrity: sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==} + engines: {node: '>=8'} + + p-try@2.2.0: + resolution: {integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==} + engines: {node: '>=6'} + path-browserify@1.0.1: resolution: {integrity: sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==} + path-exists@4.0.0: + resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} + engines: {node: '>=8'} + pathe@2.0.3: resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==} @@ -1436,6 +1509,10 @@ packages: pkg-types@2.4.0: resolution: {integrity: sha512-07Fys7iVx0X6TcviMOgogM1Lk33ZyqOezMnU79S+kffWqwolG/5W9V8EgQSeYCIfFTYVgssRbnH630Oa2+soBA==} + pngjs@5.0.0: + resolution: {integrity: sha512-40QW5YalBNfQo5yRYmiw7Yz6TKKVr3h6970B2YE+3fQpsWcrbj1PzJgxeJ19DRQjhMbKPIuMY8rFaXc8moolVw==} + engines: {node: '>=10.13.0'} + postcss@8.5.31: resolution: {integrity: sha512-YUbWYCgErwnMAVkjUnYa+KlMBzGpHwiIt/DE7f0G33AuX2LH9UcTk6KgWxd3zRU+pN3u/C+Xl3EnMLM4Hea7Sg==} engines: {node: ^10 || ^12 || >=14} @@ -1443,6 +1520,11 @@ packages: property-information@7.2.0: resolution: {integrity: sha512-IAtzIB6sUiWaJYrX9smp3V46pBGbBeLFRGdh25kg1334VcBlD8HzhPeNIWQH9zhGmo2itIe25EHt9dQP7G5hmg==} + qrcode@1.5.4: + resolution: {integrity: sha512-1ca71Zgiu6ORjHqFBDpnSMTR2ReToX4l1Au1VFLyVeBTFavzQnv5JxMFr3ukHVKpSrSA2MCk0lNJSykjUfz7Zg==} + engines: {node: '>=10.13.0'} + hasBin: true + quansync@0.2.11: resolution: {integrity: sha512-AifT7QEbW9Nri4tAwR5M/uzpBuqfZf+zwaEM/QkzEjj7NBuFD2rBuy0K3dE+8wltbezDV7JMA0WfnCPYRSYbXA==} @@ -1476,6 +1558,13 @@ packages: remark-stringify@11.0.0: resolution: {integrity: sha512-1OSmLd3awB/t8qdoEOMazZkNsfVTeY4fTsgzcQFdXNq8ToTN4ZGwrMnlda4K6smTFKD+GRV6O48i6Z4iKgPPpw==} + require-directory@2.1.1: + resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==} + engines: {node: '>=0.10.0'} + + require-main-filename@2.0.0: + resolution: {integrity: sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==} + rolldown@1.2.15: resolution: {integrity: sha512-6odND+fel5zVw3I4Yc2e69gvguDnX0CAAGiNDZSq4ik5WUcaLrkD2GLuog0XcODbor31hZ5ayEMgVDno+KPV5g==} engines: {node: ^20.19.0 || >=22.12.0} @@ -1488,6 +1577,9 @@ packages: resolution: {integrity: sha512-GYrCADwpu6yV5OAvchkQ27Z5wwMxWAEMg5NNWjyHh/5DboFFqbdbvYNIvZouQpxXyeMPoTOh0vdPYKlf0ZswdQ==} hasBin: true + set-blocking@2.0.0: + resolution: {integrity: sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==} + shell-quote@1.12.0: resolution: {integrity: sha512-PcByqNyT/38F2kDNi006HAMRJaULuBzq/FOsw3qdZvX/GA9W/jamDaRskgHjubHiftXK5sIFxLNkvrXUwcof6Q==} engines: {node: '>= 0.4'} @@ -1509,9 +1601,17 @@ packages: peerDependencies: vite: '>=5' + string-width@4.2.3: + resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} + engines: {node: '>=8'} + stringify-entities@4.0.4: resolution: {integrity: sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg==} + strip-ansi@6.0.1: + resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} + engines: {node: '>=8'} + tailwind-merge@3.7.0: resolution: {integrity: sha512-XPPUyAc+cvspz3lHTcR/QgPfW2A0lv/xQNIjX3HGhLR+Nq2lHaLq5MtTesHn8GUr3W3DguT2KT5x3NVgRtYwmA==} @@ -1725,6 +1825,16 @@ packages: webpack-virtual-modules@0.6.2: resolution: {integrity: sha512-66/V2i5hQanC51vBQKPH4aI8NMAcBW59FVBs+rC7eGHupMyfn34q7rZIE+ETlJ+XTevqfUhVVBgSUNSW2flEUQ==} + which-module@2.0.1: + resolution: {integrity: sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==} + + wrap-ansi@6.2.0: + resolution: {integrity: sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==} + engines: {node: '>=8'} + + y18n@4.0.3: + resolution: {integrity: sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==} + yallist@3.1.1: resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==} @@ -1733,6 +1843,14 @@ packages: engines: {node: '>= 14.6'} hasBin: true + yargs-parser@18.1.3: + resolution: {integrity: sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==} + engines: {node: '>=6'} + + yargs@15.4.1: + resolution: {integrity: sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==} + engines: {node: '>=8'} + zwitch@2.0.4: resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==} @@ -2128,6 +2246,10 @@ snapshots: dependencies: undici-types: 8.9.0 + '@types/qrcode@1.5.6': + dependencies: + '@types/node': 26.6.5 + '@types/unist@3.0.3': {} '@types/web-bluetooth@0.0.20': {} @@ -2313,6 +2435,12 @@ snapshots: alien-signals@3.2.1: {} + ansi-regex@5.0.1: {} + + ansi-styles@4.3.0: + dependencies: + color-convert: 2.0.1 + aria-hidden@1.2.6: dependencies: tslib: 2.8.1 @@ -2348,6 +2476,8 @@ snapshots: node-releases: 2.0.63 update-browserslist-db: 1.3.4(browserslist@4.29.5) + camelcase@5.3.1: {} + caniuse-lite@1.0.30001826: {} ccount@2.0.1: {} @@ -2366,10 +2496,22 @@ snapshots: dependencies: clsx: 2.1.1 + cliui@6.0.0: + dependencies: + string-width: 4.2.3 + strip-ansi: 6.0.1 + wrap-ansi: 6.2.0 + clsx@2.1.1: {} cn@0.5.1: {} + color-convert@2.0.1: + dependencies: + color-name: 1.1.4 + + color-name@1.1.4: {} + comma-separated-tokens@2.0.3: {} confbox@0.1.8: {} @@ -2420,6 +2562,8 @@ snapshots: dependencies: ms: 2.1.3 + decamelize@1.2.0: {} + decode-named-character-reference@1.3.0: dependencies: character-entities: 2.0.2 @@ -2434,8 +2578,12 @@ snapshots: dependencies: dequal: 2.0.3 + dijkstrajs@1.0.3: {} + electron-to-chromium@1.5.481: {} + emoji-regex@8.0.0: {} + enhanced-resolve@5.26.0: dependencies: graceful-fs: 4.2.11 @@ -2461,11 +2609,18 @@ snapshots: optionalDependencies: picomatch: 4.0.7 + find-up@4.1.0: + dependencies: + locate-path: 5.0.0 + path-exists: 4.0.0 + fsevents@2.3.3: optional: true gensync@1.0.0-beta.2: {} + get-caller-file@2.0.5: {} + graceful-fs@4.2.11: {} hast-util-to-html@9.0.5: @@ -2490,6 +2645,8 @@ snapshots: html-void-elements@3.0.0: {} + is-fullwidth-code-point@3.0.0: {} + is-plain-obj@4.1.0: {} jiti@2.7.0: {} @@ -2609,6 +2766,10 @@ snapshots: pkg-types: 2.4.0 quansync: 0.2.11 + locate-path@5.0.0: + dependencies: + p-locate: 4.1.0 + longest-streak@3.1.0: {} lru-cache@5.1.1: @@ -2973,8 +3134,20 @@ snapshots: regex: 6.1.0 regex-recursion: 6.0.2 + p-limit@2.3.0: + dependencies: + p-try: 2.2.0 + + p-locate@4.1.0: + dependencies: + p-limit: 2.3.0 + + p-try@2.2.0: {} + path-browserify@1.0.1: {} + path-exists@4.0.0: {} + pathe@2.0.3: {} perfect-debounce@2.1.0: {} @@ -3003,6 +3176,8 @@ snapshots: exsolve: 1.1.3 pathe: 2.0.3 + pngjs@5.0.0: {} + postcss@8.5.31: dependencies: nanoid: 3.3.20 @@ -3011,6 +3186,12 @@ snapshots: property-information@7.2.0: {} + qrcode@1.5.4: + dependencies: + dijkstrajs: 1.0.3 + pngjs: 5.0.0 + yargs: 15.4.1 + quansync@0.2.11: {} readdirp@5.1.1: {} @@ -3072,6 +3253,10 @@ snapshots: mdast-util-to-markdown: 2.2.3 unified: 11.0.5 + require-directory@2.1.1: {} + + require-main-filename@2.0.0: {} + rolldown@1.2.15: dependencies: '@oxc-project/types': 0.155.0 @@ -3097,6 +3282,8 @@ snapshots: semver@6.3.2: {} + set-blocking@2.0.0: {} + shell-quote@1.12.0: {} shiki@4.5.0: @@ -3124,11 +3311,21 @@ snapshots: transitivePeerDependencies: - supports-color + string-width@4.2.3: + dependencies: + emoji-regex: 8.0.0 + is-fullwidth-code-point: 3.0.0 + strip-ansi: 6.0.1 + stringify-entities@4.0.4: dependencies: character-entities-html4: 2.1.0 character-entities-legacy: 3.0.0 + strip-ansi@6.0.1: + dependencies: + ansi-regex: 5.0.1 + tailwind-merge@3.7.0: {} tailwindcss@4.3.3: {} @@ -3290,8 +3487,37 @@ snapshots: webpack-virtual-modules@0.6.2: {} + which-module@2.0.1: {} + + wrap-ansi@6.2.0: + dependencies: + ansi-styles: 4.3.0 + string-width: 4.2.3 + strip-ansi: 6.0.1 + + y18n@4.0.3: {} + yallist@3.1.1: {} yaml@2.9.1: {} + yargs-parser@18.1.3: + dependencies: + camelcase: 5.3.1 + decamelize: 1.2.0 + + yargs@15.4.1: + dependencies: + cliui: 6.0.0 + decamelize: 1.2.0 + find-up: 4.1.0 + get-caller-file: 2.0.5 + require-directory: 2.1.1 + require-main-filename: 2.0.0 + set-blocking: 2.0.0 + string-width: 4.2.3 + which-module: 2.0.1 + y18n: 4.0.3 + yargs-parser: 18.1.3 + zwitch@2.0.4: {} diff --git a/ui/src/accounts/AccountPage.vue b/ui/src/accounts/AccountPage.vue index c670b941a..adc65b00d 100644 --- a/ui/src/accounts/AccountPage.vue +++ b/ui/src/accounts/AccountPage.vue @@ -4,6 +4,7 @@ import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, import { Alert, AlertDescription } from "@/components/ui/alert"; import { computed, onMounted, ref } from "vue"; import PageHeader from "@/base/PageHeader.vue"; +import LinkedChannels from "@/accounts/LinkedChannels.vue"; import PersonalTokensCard from "@/accounts/PersonalTokensCard.vue"; import { Button } from "@/components/ui/button"; import { Card } from "@/components/ui/card"; @@ -29,6 +30,7 @@ const change=()=>run(async()=>{await api.changePassword(current.value,next.value {{accounts.status?.user?.display_name}} Your organisation and admin account are ready. Add a passkey below, add members, or configure OIDC. {{error}} Sign in again + {{key.name}}Remove Add passkey diff --git a/ui/src/accounts/LinkedChannels.vue b/ui/src/accounts/LinkedChannels.vue new file mode 100644 index 000000000..ff57dccb3 --- /dev/null +++ b/ui/src/accounts/LinkedChannels.vue @@ -0,0 +1,111 @@ + + + + + {{ error }} + + + + {{ label(connector) }}: Linked as {{ link.name || link.subject }} + + Unlink + + + + + + Open in {{ label(connector) }} + Scan the code or open the link, then press Start. + + + Link your {{ label(connector) }} + Link another {{ label(connector) }} account + + + + diff --git a/ui/src/lib/api.ts b/ui/src/lib/api.ts index 76b514f17..fd75e7603 100644 --- a/ui/src/lib/api.ts +++ b/ui/src/lib/api.ts @@ -365,9 +365,15 @@ export const api = { alerts: () => request("/api/alerts"), dismissAlert: (id: number) => request(`/api/alerts/${id}/dismiss`, { method: "POST", parse: false }), - people: () => request("/api/people"), - /** Replaces the organisation's people with the list. */ - putPeople: (people: Person[]) => request("/api/people", { method: "PUT", body: people }), + channelLinks: () => request("/api/account/channels"), + /** Issues a single-use code and returns the URL that sends it to the channel. */ + beginChannelLink: (connector: string) => + request(`/api/account/channels/${encodeURIComponent(connector)}/link`, { method: "POST" }), + unlinkChannel: (connector: string, subject: string) => + request(`/api/account/channels/${encodeURIComponent(connector)}/${encodeURIComponent(subject)}`, { + method: "DELETE", + parse: false, + }), identities: () => request("/api/identities"), identityCreate: (identity: { display_name: string; kind: string }) => request("/api/identities", { method: "POST", body: identity }), @@ -681,13 +687,24 @@ export interface Run { result?: unknown; } -/** A person who may answer approvals, and the identities they answer as. */ -export interface Person { - /** Empty for a new person. */ - id: string; +/** A channel account linked to the signed-in account. */ +export interface ChannelLink { + connector: string; + subject: string; name: string; - authority: boolean; - identities: string[]; + linked_at: string; +} + +/** The connectors that can link, and the channel accounts already linked. */ +export interface ChannelLinks { + connectors: string[]; + linked: ChannelLink[]; +} + +/** A link code ready to open in a channel. */ +export interface ChannelLinkStart { + url: string; + expires_at: string; } /** A passkey assertion made for one approval request. */ diff --git a/ui/src/lib/nav.ts b/ui/src/lib/nav.ts index 2572b3394..82f98dda2 100644 --- a/ui/src/lib/nav.ts +++ b/ui/src/lib/nav.ts @@ -35,7 +35,7 @@ const orgSpecs: NavSpec[] = [ sections: [ { label: "People & access", - paths: ["/org/members", "/org/people", "/org/agents", "/org/workspaces", "/org/policies", "/org/denials", "/org/audit"], + paths: ["/org/members", "/org/agents", "/org/workspaces", "/org/policies", "/org/denials", "/org/audit"], }, { label: "Connections & models", diff --git a/ui/src/router/routes.ts b/ui/src/router/routes.ts index fe9c6c846..337fd04b4 100644 --- a/ui/src/router/routes.ts +++ b/ui/src/router/routes.ts @@ -13,7 +13,6 @@ const OrgShell = () => import("@/org/OrgShell.vue"); const OrgOverviewPage = () => import("@/org/OrgOverviewPage.vue"); const OrgMembersPage = () => import("@/org/OrgMembersPage.vue"); const OrgAgentsPage = () => import("@/org/OrgAgentsPage.vue"); -const OrgPeoplePage = () => import("@/org/OrgPeoplePage.vue"); const OrgWorkspacesPage = () => import("@/org/OrgWorkspacesPage.vue"); const OrgAccessPage = () => import("@/org/OrgAccessPage.vue"); const OrgModelsPage = () => import("@/org/OrgModelsPage.vue"); @@ -279,12 +278,6 @@ export const routes: RouteRecordRaw[] = [ component: OrgMembersPage, meta: { section: "org_members", label: "Members", navPath: "/org", description: "People in the organisation and their roles." }, }, - { - path: "people", - name: "org-people", - component: OrgPeoplePage, - meta: { section: "org_people", label: "People", navPath: "/org", description: "Who answers approvals, and the accounts and channels they answer from." }, - }, { path: "agents", name: "org-agents",
Scan the code or open the link, then press Start.