diff --git a/.github/scripts/test_forge_release.py b/.github/scripts/test_forge_release.py
index f012dc2d6..91ee85512 100644
--- a/.github/scripts/test_forge_release.py
+++ b/.github/scripts/test_forge_release.py
@@ -201,7 +201,8 @@ def test_behind_lists_each_site_by_number_with_what_it_lacks(self):
for f in ["full comment reading", "mentions", "in-place edits", "threaded replies", "issue type", "extended issue fields"]:
self.assertIn(f, names)
self.assertEqual(fr.missing_on_major(features, 5), names)
- self.assertEqual(fr.missing_on_major(features, 6), [])
+ self.assertEqual(sorted(fr.missing_on_major(features, 6)), sorted(["open sprint for For you", "Link my CoderHelm account", "Give to CoderHelm from For you"]))
+ self.assertEqual(fr.missing_on_major(features, 7), [])
self.assertEqual(fr.missing_on_major(features, None), names)
md, warning = fr.behind_report(["5\tjira\n", "\n", "\tjira\n"], "6.11.0", features)
self.assertIn("- Site 1 (jira): major version 5 (latest 6.11.0). Missing: ", md)
diff --git a/coderhelm-jira/manifest.yml b/coderhelm-jira/manifest.yml
index 0eaedb8fa..4a0196d32 100644
--- a/coderhelm-jira/manifest.yml
+++ b/coderhelm-jira/manifest.yml
@@ -23,6 +23,15 @@ modules:
function: getSiteUrlHandler
- key: get-issues-trigger
function: getIssuesHandler
+ # Any issue's "..." menu: a person links their Jira account to their
+ # CoderHelm user with a one-time code from the For you page (src/link.js).
+ jira:issueAction:
+ - key: coderhelm-link-account
+ title: Link my CoderHelm account
+ resource: link
+ render: native
+ resolver:
+ function: linkResolver
jira:adminPage:
- key: coderhelm-admin-page
resource: adminPage
@@ -46,9 +55,13 @@ modules:
handler: release.getIssuesHandler
- key: lifecycleHandler
handler: register.lifecycleHandler
+ - key: linkResolver
+ handler: link-resolver.handler
resources:
- key: adminPage
path: resources/admin/build
+ - key: link
+ path: src/frontend/link.jsx
permissions:
scopes:
- read:jira-work
diff --git a/coderhelm-jira/package-lock.json b/coderhelm-jira/package-lock.json
index 5a9ba280f..0a089a3e6 100644
--- a/coderhelm-jira/package-lock.json
+++ b/coderhelm-jira/package-lock.json
@@ -6,33 +6,3231 @@
"": {
"dependencies": {
"@forge/api": "^7.1.1",
+ "@forge/bridge": "^7.4.0",
+ "@forge/react": "^12.6.0",
"@forge/resolver": "^1.8.0",
- "@forge/ui": "^1.11.4"
+ "@forge/ui": "^1.11.4",
+ "react": "^18.3.1"
+ }
+ },
+ "node_modules/@atlaskit/adf-schema": {
+ "version": "56.7.3",
+ "resolved": "https://registry.npmjs.org/@atlaskit/adf-schema/-/adf-schema-56.7.3.tgz",
+ "integrity": "sha512-2G82HHnQT/uSnk1cydfHrT/+S6ds+Oz7pkYKUBjdJjdhUFzNDeBR9MdpxusOQSDI0vrvtmkyR2IcY5xmv8p5dA==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/adf-schema-generator": "^4.0.0",
+ "@atlaskit/editor-prosemirror": "^8.0.0",
+ "@atlaskit/platform-feature-flags": "^2.1.0",
+ "@atlaskit/tmp-editor-statsig": "^147.0.0",
+ "@babel/runtime": "^7.0.0",
+ "css-color-names": "0.0.4",
+ "linkify-it": "^5.0.2",
+ "memoize-one": "^6.0.0"
+ }
+ },
+ "node_modules/@atlaskit/adf-schema-generator": {
+ "version": "4.0.4",
+ "resolved": "https://registry.npmjs.org/@atlaskit/adf-schema-generator/-/adf-schema-generator-4.0.4.tgz",
+ "integrity": "sha512-uFVUN81FHtcRl6zZUf7FhaFhSsAvPpeHo4nQlCXznJEqtTN/KAYJ+9nH1eMSUDoy///LyQBct1lrw/Iyvu/SnA==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/editor-prosemirror": "^9.0.0",
+ "@babel/runtime": "^7.0.0",
+ "lodash": "^4.17.21"
+ }
+ },
+ "node_modules/@atlaskit/adf-schema-generator/node_modules/@atlaskit/editor-prosemirror": {
+ "version": "9.0.2",
+ "resolved": "https://registry.npmjs.org/@atlaskit/editor-prosemirror/-/editor-prosemirror-9.0.2.tgz",
+ "integrity": "sha512-Hn5atRMHJDQFz1U6PbzK50LRt/rEHbwvvNm49n6zIVV1464GfVuoGFtK0sHXPKi2LE1k8HNyyEjOAjLQUsoifw==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@babel/runtime": "^7.0.0",
+ "prosemirror-commands": "1.7.1",
+ "prosemirror-dropcursor": "1.8.2",
+ "prosemirror-history": "1.5.0",
+ "prosemirror-keymap": "1.2.3",
+ "prosemirror-markdown": "1.13.4",
+ "prosemirror-model": "1.25.4",
+ "prosemirror-state": "1.4.4",
+ "prosemirror-transform": "1.11.0",
+ "prosemirror-utils": "1.2.2",
+ "prosemirror-view": "1.41.7"
+ }
+ },
+ "node_modules/@atlaskit/adf-schema-generator/node_modules/prosemirror-markdown": {
+ "version": "1.13.4",
+ "resolved": "https://registry.npmjs.org/prosemirror-markdown/-/prosemirror-markdown-1.13.4.tgz",
+ "integrity": "sha512-D98dm4cQ3Hs6EmjK500TdAOew4Z03EV71ajEFiWra3Upr7diytJsjF4mPV2dW+eK5uNectiRj0xFxYI9NLXDbw==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/markdown-it": "^14.0.0",
+ "markdown-it": "^14.0.0",
+ "prosemirror-model": "^1.25.0"
+ }
+ },
+ "node_modules/@atlaskit/adf-schema-generator/node_modules/prosemirror-transform": {
+ "version": "1.11.0",
+ "resolved": "https://registry.npmjs.org/prosemirror-transform/-/prosemirror-transform-1.11.0.tgz",
+ "integrity": "sha512-4I7Ce4KpygXb9bkiPS3hTEk4dSHorfRw8uI0pE8IhxlK2GXsqv5tIA7JUSxtSu7u8APVOTtbUBxTmnHIxVkIJw==",
+ "license": "MIT",
+ "dependencies": {
+ "prosemirror-model": "^1.21.0"
+ }
+ },
+ "node_modules/@atlaskit/adf-utils": {
+ "version": "20.9.85",
+ "resolved": "https://registry.npmjs.org/@atlaskit/adf-utils/-/adf-utils-20.9.85.tgz",
+ "integrity": "sha512-sKVbA6+kgbxZJDPoFPFr6rqmMcvXGli07n4/U5t/ov0sq7ZNIrBlHNfeqzVkQuSJqU/ZyGfzOyWRcayhdcLxow==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/adf-schema": "^57.7.0",
+ "@atlaskit/editor-prosemirror": "^9.0.0",
+ "@atlaskit/platform-feature-experiments": "^0.3.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@babel/runtime": "^7.0.0"
+ }
+ },
+ "node_modules/@atlaskit/adf-utils/node_modules/@atlaskit/adf-schema": {
+ "version": "57.7.77",
+ "resolved": "https://registry.npmjs.org/@atlaskit/adf-schema/-/adf-schema-57.7.77.tgz",
+ "integrity": "sha512-+S1xj0fXepWg0PtudKidQTZhg6mcHKBnFrmtMS+a5Xs8Wi4p/rEEAiMh88tDm7SHNvym8RF75lMHtLjhCQMejw==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/adf-schema-generator": "^4.0.0",
+ "@atlaskit/editor-prosemirror": "^9.0.0",
+ "@atlaskit/platform-feature-experiments": "^0.3.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/tmp-editor-statsig": "^295.0.0",
+ "@babel/runtime": "^7.0.0",
+ "css-color-names": "0.0.4",
+ "linkify-it": "^5.0.2",
+ "memoize-one": "^6.0.0"
+ }
+ },
+ "node_modules/@atlaskit/adf-utils/node_modules/@atlaskit/browser-apis": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/browser-apis/-/browser-apis-1.2.0.tgz",
+ "integrity": "sha512-SNwf6LGu1BjECz62iC/kIOwmtiJlz4cuf04OnVLlN8amEly+6NHIzZG+IU2Bbpa2vG7oVSj3nSy0gMm/7kqiuQ==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@babel/runtime": "^7.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/adf-utils/node_modules/@atlaskit/editor-prosemirror": {
+ "version": "9.0.2",
+ "resolved": "https://registry.npmjs.org/@atlaskit/editor-prosemirror/-/editor-prosemirror-9.0.2.tgz",
+ "integrity": "sha512-Hn5atRMHJDQFz1U6PbzK50LRt/rEHbwvvNm49n6zIVV1464GfVuoGFtK0sHXPKi2LE1k8HNyyEjOAjLQUsoifw==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@babel/runtime": "^7.0.0",
+ "prosemirror-commands": "1.7.1",
+ "prosemirror-dropcursor": "1.8.2",
+ "prosemirror-history": "1.5.0",
+ "prosemirror-keymap": "1.2.3",
+ "prosemirror-markdown": "1.13.4",
+ "prosemirror-model": "1.25.4",
+ "prosemirror-state": "1.4.4",
+ "prosemirror-transform": "1.11.0",
+ "prosemirror-utils": "1.2.2",
+ "prosemirror-view": "1.41.7"
+ }
+ },
+ "node_modules/@atlaskit/adf-utils/node_modules/@atlaskit/interaction-context": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/interaction-context/-/interaction-context-4.3.0.tgz",
+ "integrity": "sha512-F31jO2V5z68MEAsyFPCFo5/FoklA7qhBf/1sKBuYzNcSJfWHegjb4K7+g9H2HsAQMe8WnfcTysqYOIod8Iiuqw==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@babel/runtime": "^7.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/adf-utils/node_modules/@atlaskit/platform-feature-experiments": {
+ "version": "0.3.2",
+ "resolved": "https://registry.npmjs.org/@atlaskit/platform-feature-experiments/-/platform-feature-experiments-0.3.2.tgz",
+ "integrity": "sha512-EdFY3b6muB7y1KyyZ+d2ovIFzW/ubc8Qw2oio/zfh6VhRHQ4tmCIX77CgFYURgbhtwu5THTyADE5N2OvMmtcFA==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/feature-gate-js-client": "^8.0.0",
+ "@atlaskit/react-ufo": "^8.3.0",
+ "@babel/runtime": "^7.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/adf-utils/node_modules/@atlaskit/react-ufo": {
+ "version": "8.9.1",
+ "resolved": "https://registry.npmjs.org/@atlaskit/react-ufo/-/react-ufo-8.9.1.tgz",
+ "integrity": "sha512-xqT6rlxEkQLXkhhz7JzUaTmQCRvHdTSdfQ5TEF2/pl9MTH+qGAP+kpHW1Zs3UzbXjDSw/OhQpF+lQsE1UQ8AZw==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/atlassian-context": "^2.0.0",
+ "@atlaskit/browser-apis": "^1.2.0",
+ "@atlaskit/feature-gate-js-client": "^8.0.0",
+ "@atlaskit/interaction-context": "^4.3.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@babel/runtime": "^7.0.0",
+ "@opentelemetry/api": "^1.9.0",
+ "bind-event-listener": "^3.0.0",
+ "bowser-ultralight": "^1.0.6",
+ "uuid": "^11.1.1"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/adf-utils/node_modules/@atlaskit/tmp-editor-statsig": {
+ "version": "295.0.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/tmp-editor-statsig/-/tmp-editor-statsig-295.0.0.tgz",
+ "integrity": "sha512-RVWR6+vDMah4lbp4SESvTLGbMvfK8Tbpt5sSdm24JUMchAt3sdePoN/ALsC1jo87vyJr9h7P156IPrzD++Jzkg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/feature-gate-js-client": "^8.0.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/react-ufo": "^8.9.0",
+ "@babel/runtime": "^7.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.2.0"
+ }
+ },
+ "node_modules/@atlaskit/adf-utils/node_modules/prosemirror-markdown": {
+ "version": "1.13.4",
+ "resolved": "https://registry.npmjs.org/prosemirror-markdown/-/prosemirror-markdown-1.13.4.tgz",
+ "integrity": "sha512-D98dm4cQ3Hs6EmjK500TdAOew4Z03EV71ajEFiWra3Upr7diytJsjF4mPV2dW+eK5uNectiRj0xFxYI9NLXDbw==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/markdown-it": "^14.0.0",
+ "markdown-it": "^14.0.0",
+ "prosemirror-model": "^1.25.0"
+ }
+ },
+ "node_modules/@atlaskit/adf-utils/node_modules/prosemirror-transform": {
+ "version": "1.11.0",
+ "resolved": "https://registry.npmjs.org/prosemirror-transform/-/prosemirror-transform-1.11.0.tgz",
+ "integrity": "sha512-4I7Ce4KpygXb9bkiPS3hTEk4dSHorfRw8uI0pE8IhxlK2GXsqv5tIA7JUSxtSu7u8APVOTtbUBxTmnHIxVkIJw==",
+ "license": "MIT",
+ "dependencies": {
+ "prosemirror-model": "^1.21.0"
+ }
+ },
+ "node_modules/@atlaskit/app-provider": {
+ "version": "8.3.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/app-provider/-/app-provider-8.3.0.tgz",
+ "integrity": "sha512-NQ+W5m66lwANfFzVVWaEghBzG8BxdEK9dAyUlWCYU6nO1DEnPMQy6h9uHpuTxb845Cb3ocdmBRZQKjtjDX4byw==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/browser-apis": "^1.2.0",
+ "@atlaskit/css": "^1.1.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/tokens": "^20.9.0",
+ "@babel/runtime": "^7.0.0",
+ "bind-event-listener": "^3.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/app-provider/node_modules/@atlaskit/browser-apis": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/browser-apis/-/browser-apis-1.2.0.tgz",
+ "integrity": "sha512-SNwf6LGu1BjECz62iC/kIOwmtiJlz4cuf04OnVLlN8amEly+6NHIzZG+IU2Bbpa2vG7oVSj3nSy0gMm/7kqiuQ==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@babel/runtime": "^7.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/atlassian-context": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/atlassian-context/-/atlassian-context-2.0.0.tgz",
+ "integrity": "sha512-RfdonD91GCqMo6a4nZlg3ZkKrHV4OcEkxVe/4J0aPkLk4R0rRZfcckvQxv0hou3JziNibIv4ou9naK6bt/Y09g==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@babel/runtime": "^7.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/avatar": {
+ "version": "31.0.5",
+ "resolved": "https://registry.npmjs.org/@atlaskit/avatar/-/avatar-31.0.5.tgz",
+ "integrity": "sha512-G+HKT9AFim+b89wqbvqHQ3qRFi7mjpNDIEYOUS63HhOqqObvZ1UOQDy0Vkci3vCYfXu1x/q1f3I/AF3AvOPikA==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/analytics-next": "^12.6.0",
+ "@atlaskit/css": "^1.1.0",
+ "@atlaskit/ds-lib": "^9.0.0",
+ "@atlaskit/icon": "^38.3.0",
+ "@atlaskit/platform-feature-experiments": "^0.3.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/popup": "^11.1.0",
+ "@atlaskit/primitives": "^23.0.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/tokens": "^20.15.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/avatar/node_modules/@atlaskit/analytics-next": {
+ "version": "12.6.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/analytics-next/-/analytics-next-12.6.0.tgz",
+ "integrity": "sha512-QFECDwLBbNx9IRsBQMiQlw6r/sx+DcVs9hkJxRgPe3yakTdPBZMzSqD0b4R2tsFNlNxSKSkeJCF92S20v7suqg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/analytics-next-stable-react-context": "1.0.1",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@babel/runtime": "^7.0.0",
+ "prop-types": "^15.5.10",
+ "use-memo-one": "^1.1.1"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0",
+ "react-dom": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/avatar/node_modules/@atlaskit/analytics-next/node_modules/@atlaskit/analytics-next-stable-react-context": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/@atlaskit/analytics-next-stable-react-context/-/analytics-next-stable-react-context-1.0.1.tgz",
+ "integrity": "sha512-iO6+hIp09dF4iAZQarVz3vKY1kM5Ij5CExYcK9jgc2q+OH8nv8n+BPFeJTdzGOGopmbUZn5Opj9pYQvge1Gr4Q==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "tslib": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0"
+ }
+ },
+ "node_modules/@atlaskit/avatar/node_modules/@atlaskit/analytics-next/node_modules/use-memo-one": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/use-memo-one/-/use-memo-one-1.1.3.tgz",
+ "integrity": "sha512-g66/K7ZQGYrI6dy8GLpVcMsBp4s17xNkYJVSMvTEevGy3nDxHOfE6z8BVE22+5G5x7t3+bhzrlTDB7ObrEE0cQ==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
+ }
+ },
+ "node_modules/@atlaskit/avatar/node_modules/@atlaskit/platform-feature-experiments": {
+ "version": "0.3.2",
+ "resolved": "https://registry.npmjs.org/@atlaskit/platform-feature-experiments/-/platform-feature-experiments-0.3.2.tgz",
+ "integrity": "sha512-EdFY3b6muB7y1KyyZ+d2ovIFzW/ubc8Qw2oio/zfh6VhRHQ4tmCIX77CgFYURgbhtwu5THTyADE5N2OvMmtcFA==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/feature-gate-js-client": "^8.0.0",
+ "@atlaskit/react-ufo": "^8.3.0",
+ "@babel/runtime": "^7.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/avatar/node_modules/@atlaskit/platform-feature-experiments/node_modules/@atlaskit/react-ufo": {
+ "version": "8.9.1",
+ "resolved": "https://registry.npmjs.org/@atlaskit/react-ufo/-/react-ufo-8.9.1.tgz",
+ "integrity": "sha512-xqT6rlxEkQLXkhhz7JzUaTmQCRvHdTSdfQ5TEF2/pl9MTH+qGAP+kpHW1Zs3UzbXjDSw/OhQpF+lQsE1UQ8AZw==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/atlassian-context": "^2.0.0",
+ "@atlaskit/browser-apis": "^1.2.0",
+ "@atlaskit/feature-gate-js-client": "^8.0.0",
+ "@atlaskit/interaction-context": "^4.3.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@babel/runtime": "^7.0.0",
+ "@opentelemetry/api": "^1.9.0",
+ "bind-event-listener": "^3.0.0",
+ "bowser-ultralight": "^1.0.6",
+ "uuid": "^11.1.1"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/avatar/node_modules/@atlaskit/platform-feature-experiments/node_modules/@atlaskit/react-ufo/node_modules/@atlaskit/browser-apis": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/browser-apis/-/browser-apis-1.2.0.tgz",
+ "integrity": "sha512-SNwf6LGu1BjECz62iC/kIOwmtiJlz4cuf04OnVLlN8amEly+6NHIzZG+IU2Bbpa2vG7oVSj3nSy0gMm/7kqiuQ==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@babel/runtime": "^7.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/avatar/node_modules/@atlaskit/platform-feature-experiments/node_modules/@atlaskit/react-ufo/node_modules/@atlaskit/interaction-context": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/interaction-context/-/interaction-context-4.3.0.tgz",
+ "integrity": "sha512-F31jO2V5z68MEAsyFPCFo5/FoklA7qhBf/1sKBuYzNcSJfWHegjb4K7+g9H2HsAQMe8WnfcTysqYOIod8Iiuqw==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@babel/runtime": "^7.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/badge": {
+ "version": "22.0.1",
+ "resolved": "https://registry.npmjs.org/@atlaskit/badge/-/badge-22.0.1.tgz",
+ "integrity": "sha512-oYx8ucgxJEqlLTFUb+GjXLOpCIHJb9i3agNTmMCH4duG1o8pcVgmHrBdK2yfAUOK5nRCNf99e3NaoiCHrihSpg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/primitives": "^23.0.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/tokens": "^20.15.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/banner": {
+ "version": "15.3.5",
+ "resolved": "https://registry.npmjs.org/@atlaskit/banner/-/banner-15.3.5.tgz",
+ "integrity": "sha512-sDQvl6Q1+xndpYem0KbXoBd/ZRiWCjkSiFOlVnQOJXrMKrj+tldI9htWXmbqC8sOTDB3kjPq+gO01Q5/BxJAGg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/css": "^1.1.0",
+ "@atlaskit/primitives": "^23.0.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/tokens": "^20.15.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/blanket": {
+ "version": "16.4.6",
+ "resolved": "https://registry.npmjs.org/@atlaskit/blanket/-/blanket-16.4.6.tgz",
+ "integrity": "sha512-lhgDKHoxbW4PeohXguMa0tm3+JvCJox6rp92pybxTwfS4khFmz3kzXmRxZdH7NXgw0Hhn18zB9FfzcwYT92sVw==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/analytics-next": "^12.6.0",
+ "@atlaskit/css": "^1.1.0",
+ "@atlaskit/ds-lib": "^9.0.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/theme": "^28.2.0",
+ "@atlaskit/tokens": "^20.14.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/blanket/node_modules/@atlaskit/analytics-next": {
+ "version": "12.6.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/analytics-next/-/analytics-next-12.6.0.tgz",
+ "integrity": "sha512-QFECDwLBbNx9IRsBQMiQlw6r/sx+DcVs9hkJxRgPe3yakTdPBZMzSqD0b4R2tsFNlNxSKSkeJCF92S20v7suqg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/analytics-next-stable-react-context": "1.0.1",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@babel/runtime": "^7.0.0",
+ "prop-types": "^15.5.10",
+ "use-memo-one": "^1.1.1"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0",
+ "react-dom": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/blanket/node_modules/@atlaskit/analytics-next/node_modules/@atlaskit/analytics-next-stable-react-context": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/@atlaskit/analytics-next-stable-react-context/-/analytics-next-stable-react-context-1.0.1.tgz",
+ "integrity": "sha512-iO6+hIp09dF4iAZQarVz3vKY1kM5Ij5CExYcK9jgc2q+OH8nv8n+BPFeJTdzGOGopmbUZn5Opj9pYQvge1Gr4Q==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "tslib": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0"
+ }
+ },
+ "node_modules/@atlaskit/blanket/node_modules/@atlaskit/analytics-next/node_modules/use-memo-one": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/use-memo-one/-/use-memo-one-1.1.3.tgz",
+ "integrity": "sha512-g66/K7ZQGYrI6dy8GLpVcMsBp4s17xNkYJVSMvTEevGy3nDxHOfE6z8BVE22+5G5x7t3+bhzrlTDB7ObrEE0cQ==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
+ }
+ },
+ "node_modules/@atlaskit/breadcrumbs": {
+ "version": "17.8.9",
+ "resolved": "https://registry.npmjs.org/@atlaskit/breadcrumbs/-/breadcrumbs-17.8.9.tgz",
+ "integrity": "sha512-9I7eUoxuCpp4f+KjMiiXXEbC0Xz5j5ByUiFNbAS5uMn/qHrqnw4Vwc0sal3pzzZNkMOV2FCdMWgra4MbsUp++A==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/analytics-next": "^12.6.0",
+ "@atlaskit/browser-apis": "^1.2.0",
+ "@atlaskit/button": "^25.8.0",
+ "@atlaskit/css": "^1.1.0",
+ "@atlaskit/dropdown-menu": "^22.2.0",
+ "@atlaskit/ds-lib": "^9.0.0",
+ "@atlaskit/icon": "^38.3.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/primitives": "^23.0.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/skeleton": "^4.4.0",
+ "@atlaskit/tokens": "^20.15.0",
+ "@atlaskit/tooltip": "^24.4.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0",
+ "react-dom": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/breadcrumbs/node_modules/@atlaskit/analytics-next": {
+ "version": "12.6.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/analytics-next/-/analytics-next-12.6.0.tgz",
+ "integrity": "sha512-QFECDwLBbNx9IRsBQMiQlw6r/sx+DcVs9hkJxRgPe3yakTdPBZMzSqD0b4R2tsFNlNxSKSkeJCF92S20v7suqg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/analytics-next-stable-react-context": "1.0.1",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@babel/runtime": "^7.0.0",
+ "prop-types": "^15.5.10",
+ "use-memo-one": "^1.1.1"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0",
+ "react-dom": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/breadcrumbs/node_modules/@atlaskit/analytics-next/node_modules/@atlaskit/analytics-next-stable-react-context": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/@atlaskit/analytics-next-stable-react-context/-/analytics-next-stable-react-context-1.0.1.tgz",
+ "integrity": "sha512-iO6+hIp09dF4iAZQarVz3vKY1kM5Ij5CExYcK9jgc2q+OH8nv8n+BPFeJTdzGOGopmbUZn5Opj9pYQvge1Gr4Q==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "tslib": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0"
+ }
+ },
+ "node_modules/@atlaskit/breadcrumbs/node_modules/@atlaskit/analytics-next/node_modules/use-memo-one": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/use-memo-one/-/use-memo-one-1.1.3.tgz",
+ "integrity": "sha512-g66/K7ZQGYrI6dy8GLpVcMsBp4s17xNkYJVSMvTEevGy3nDxHOfE6z8BVE22+5G5x7t3+bhzrlTDB7ObrEE0cQ==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
+ }
+ },
+ "node_modules/@atlaskit/breadcrumbs/node_modules/@atlaskit/browser-apis": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/browser-apis/-/browser-apis-1.2.0.tgz",
+ "integrity": "sha512-SNwf6LGu1BjECz62iC/kIOwmtiJlz4cuf04OnVLlN8amEly+6NHIzZG+IU2Bbpa2vG7oVSj3nSy0gMm/7kqiuQ==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@babel/runtime": "^7.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/button": {
+ "version": "25.8.6",
+ "resolved": "https://registry.npmjs.org/@atlaskit/button/-/button-25.8.6.tgz",
+ "integrity": "sha512-NR1za1PincLDkKSMnfysS3DnY5EK2gXWfqZQBXprHKgZ0n39NYT/1PzYtVmn24k7pnz0lctZRbhdju4WrzFT+g==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/analytics-next": "^12.6.0",
+ "@atlaskit/css": "^1.1.0",
+ "@atlaskit/ds-lib": "^9.0.0",
+ "@atlaskit/focus-ring": "^6.0.0",
+ "@atlaskit/icon": "^38.3.0",
+ "@atlaskit/interaction-context": "^4.3.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/primitives": "^23.0.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/spinner": "^20.4.0",
+ "@atlaskit/theme": "^28.2.0",
+ "@atlaskit/tokens": "^20.15.0",
+ "@atlaskit/tooltip": "^24.4.0",
+ "@atlaskit/visually-hidden": "^4.4.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^2.0.0",
+ "@emotion/react": "^11.7.1"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/button/node_modules/@atlaskit/analytics-next": {
+ "version": "12.6.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/analytics-next/-/analytics-next-12.6.0.tgz",
+ "integrity": "sha512-QFECDwLBbNx9IRsBQMiQlw6r/sx+DcVs9hkJxRgPe3yakTdPBZMzSqD0b4R2tsFNlNxSKSkeJCF92S20v7suqg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/analytics-next-stable-react-context": "1.0.1",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@babel/runtime": "^7.0.0",
+ "prop-types": "^15.5.10",
+ "use-memo-one": "^1.1.1"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0",
+ "react-dom": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/button/node_modules/@atlaskit/analytics-next/node_modules/@atlaskit/analytics-next-stable-react-context": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/@atlaskit/analytics-next-stable-react-context/-/analytics-next-stable-react-context-1.0.1.tgz",
+ "integrity": "sha512-iO6+hIp09dF4iAZQarVz3vKY1kM5Ij5CExYcK9jgc2q+OH8nv8n+BPFeJTdzGOGopmbUZn5Opj9pYQvge1Gr4Q==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "tslib": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0"
+ }
+ },
+ "node_modules/@atlaskit/button/node_modules/@atlaskit/analytics-next/node_modules/use-memo-one": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/use-memo-one/-/use-memo-one-1.1.3.tgz",
+ "integrity": "sha512-g66/K7ZQGYrI6dy8GLpVcMsBp4s17xNkYJVSMvTEevGy3nDxHOfE6z8BVE22+5G5x7t3+bhzrlTDB7ObrEE0cQ==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
+ }
+ },
+ "node_modules/@atlaskit/button/node_modules/@atlaskit/interaction-context": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/interaction-context/-/interaction-context-4.3.0.tgz",
+ "integrity": "sha512-F31jO2V5z68MEAsyFPCFo5/FoklA7qhBf/1sKBuYzNcSJfWHegjb4K7+g9H2HsAQMe8WnfcTysqYOIod8Iiuqw==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@babel/runtime": "^7.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/calendar": {
+ "version": "19.6.2",
+ "resolved": "https://registry.npmjs.org/@atlaskit/calendar/-/calendar-19.6.2.tgz",
+ "integrity": "sha512-fC1UoySAWYtTZMQY4CT068vkYoA1C2067YkCVrEH3F9U9GemChtc1fjm3FyXLCT8U33oJBCLE0S9Vbvj1U65dg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/analytics-next": "^12.6.0",
+ "@atlaskit/button": "^25.8.0",
+ "@atlaskit/css": "^1.1.0",
+ "@atlaskit/ds-lib": "^9.0.0",
+ "@atlaskit/heading": "^8.0.0",
+ "@atlaskit/icon": "^38.3.0",
+ "@atlaskit/locale": "^5.5.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/primitives": "^23.0.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/tokens": "^20.15.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^2.0.0",
+ "date-fns": "^2.17.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/calendar/node_modules/@atlaskit/analytics-next": {
+ "version": "12.6.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/analytics-next/-/analytics-next-12.6.0.tgz",
+ "integrity": "sha512-QFECDwLBbNx9IRsBQMiQlw6r/sx+DcVs9hkJxRgPe3yakTdPBZMzSqD0b4R2tsFNlNxSKSkeJCF92S20v7suqg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/analytics-next-stable-react-context": "1.0.1",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@babel/runtime": "^7.0.0",
+ "prop-types": "^15.5.10",
+ "use-memo-one": "^1.1.1"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0",
+ "react-dom": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/calendar/node_modules/@atlaskit/analytics-next/node_modules/@atlaskit/analytics-next-stable-react-context": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/@atlaskit/analytics-next-stable-react-context/-/analytics-next-stable-react-context-1.0.1.tgz",
+ "integrity": "sha512-iO6+hIp09dF4iAZQarVz3vKY1kM5Ij5CExYcK9jgc2q+OH8nv8n+BPFeJTdzGOGopmbUZn5Opj9pYQvge1Gr4Q==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "tslib": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0"
+ }
+ },
+ "node_modules/@atlaskit/calendar/node_modules/@atlaskit/analytics-next/node_modules/use-memo-one": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/use-memo-one/-/use-memo-one-1.1.3.tgz",
+ "integrity": "sha512-g66/K7ZQGYrI6dy8GLpVcMsBp4s17xNkYJVSMvTEevGy3nDxHOfE6z8BVE22+5G5x7t3+bhzrlTDB7ObrEE0cQ==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
+ }
+ },
+ "node_modules/@atlaskit/comment": {
+ "version": "14.2.7",
+ "resolved": "https://registry.npmjs.org/@atlaskit/comment/-/comment-14.2.7.tgz",
+ "integrity": "sha512-XvLF54mbaR8/SXQBQtf/D3aWp/e8GuJYx2n4/W+mS4xfmx931iUwhYv8SNNAS3v926nsGKvjvbRE3Kfkt4mHBQ==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/analytics-next": "^12.6.0",
+ "@atlaskit/button": "^25.8.0",
+ "@atlaskit/css": "^1.1.0",
+ "@atlaskit/icon": "^38.3.0",
+ "@atlaskit/lozenge": "^17.0.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/primitives": "^23.0.0",
+ "@atlaskit/tokens": "^20.15.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/comment/node_modules/@atlaskit/analytics-next": {
+ "version": "12.6.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/analytics-next/-/analytics-next-12.6.0.tgz",
+ "integrity": "sha512-QFECDwLBbNx9IRsBQMiQlw6r/sx+DcVs9hkJxRgPe3yakTdPBZMzSqD0b4R2tsFNlNxSKSkeJCF92S20v7suqg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/analytics-next-stable-react-context": "1.0.1",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@babel/runtime": "^7.0.0",
+ "prop-types": "^15.5.10",
+ "use-memo-one": "^1.1.1"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0",
+ "react-dom": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/comment/node_modules/@atlaskit/analytics-next/node_modules/@atlaskit/analytics-next-stable-react-context": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/@atlaskit/analytics-next-stable-react-context/-/analytics-next-stable-react-context-1.0.1.tgz",
+ "integrity": "sha512-iO6+hIp09dF4iAZQarVz3vKY1kM5Ij5CExYcK9jgc2q+OH8nv8n+BPFeJTdzGOGopmbUZn5Opj9pYQvge1Gr4Q==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "tslib": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0"
+ }
+ },
+ "node_modules/@atlaskit/comment/node_modules/@atlaskit/analytics-next/node_modules/use-memo-one": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/use-memo-one/-/use-memo-one-1.1.3.tgz",
+ "integrity": "sha512-g66/K7ZQGYrI6dy8GLpVcMsBp4s17xNkYJVSMvTEevGy3nDxHOfE6z8BVE22+5G5x7t3+bhzrlTDB7ObrEE0cQ==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
+ }
+ },
+ "node_modules/@atlaskit/css": {
+ "version": "1.1.10",
+ "resolved": "https://registry.npmjs.org/@atlaskit/css/-/css-1.1.10.tgz",
+ "integrity": "sha512-IXn/G0aoelqH4CV8wGvQb5ar0XsszWKAIQ5cq04K9TPux2VtRV/75so19z89bPBGYS6IniJ0xlNLYXp4SyMOnQ==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/tokens": "^20.14.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^1.0.2"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/css/node_modules/@compiled/react": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/@compiled/react/-/react-1.0.2.tgz",
+ "integrity": "sha512-xGOChqGDvoJON+1QOgV4cYmy1W3oonJw43TQ7KR8TuPTlIAHuFBgfckmyMPG4WppF0FYem518LZknySU0uQhlg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "csstype": "^3.2.3"
+ },
+ "peerDependencies": {
+ "react": ">=18.0.0"
+ }
+ },
+ "node_modules/@atlaskit/datetime-picker": {
+ "version": "19.5.7",
+ "resolved": "https://registry.npmjs.org/@atlaskit/datetime-picker/-/datetime-picker-19.5.7.tgz",
+ "integrity": "sha512-mzPnrE1R03BO2tppoH/qLqiWPHAW5Z4JMXHwvA370moMVyXWbkNV3yuta15x/Pqq/EsLqLlPcgbiiqUs/UCXcA==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/analytics-next": "^12.6.0",
+ "@atlaskit/button": "^25.8.0",
+ "@atlaskit/calendar": "^19.6.0",
+ "@atlaskit/css": "^1.1.0",
+ "@atlaskit/ds-lib": "^9.0.0",
+ "@atlaskit/icon": "^38.3.0",
+ "@atlaskit/layering": "^6.1.0",
+ "@atlaskit/locale": "^5.5.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/popper": "^9.4.0",
+ "@atlaskit/primitives": "^23.0.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/react-select": "^4.13.0",
+ "@atlaskit/select": "^23.3.0",
+ "@atlaskit/tokens": "^20.15.0",
+ "@atlaskit/top-layer": "^8.3.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^2.0.0",
+ "date-fns": "^2.17.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/datetime-picker/node_modules/@atlaskit/analytics-next": {
+ "version": "12.6.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/analytics-next/-/analytics-next-12.6.0.tgz",
+ "integrity": "sha512-QFECDwLBbNx9IRsBQMiQlw6r/sx+DcVs9hkJxRgPe3yakTdPBZMzSqD0b4R2tsFNlNxSKSkeJCF92S20v7suqg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/analytics-next-stable-react-context": "1.0.1",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@babel/runtime": "^7.0.0",
+ "prop-types": "^15.5.10",
+ "use-memo-one": "^1.1.1"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0",
+ "react-dom": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/datetime-picker/node_modules/@atlaskit/analytics-next/node_modules/@atlaskit/analytics-next-stable-react-context": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/@atlaskit/analytics-next-stable-react-context/-/analytics-next-stable-react-context-1.0.1.tgz",
+ "integrity": "sha512-iO6+hIp09dF4iAZQarVz3vKY1kM5Ij5CExYcK9jgc2q+OH8nv8n+BPFeJTdzGOGopmbUZn5Opj9pYQvge1Gr4Q==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "tslib": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0"
+ }
+ },
+ "node_modules/@atlaskit/datetime-picker/node_modules/@atlaskit/analytics-next/node_modules/use-memo-one": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/use-memo-one/-/use-memo-one-1.1.3.tgz",
+ "integrity": "sha512-g66/K7ZQGYrI6dy8GLpVcMsBp4s17xNkYJVSMvTEevGy3nDxHOfE6z8BVE22+5G5x7t3+bhzrlTDB7ObrEE0cQ==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
+ }
+ },
+ "node_modules/@atlaskit/dropdown-menu": {
+ "version": "22.2.11",
+ "resolved": "https://registry.npmjs.org/@atlaskit/dropdown-menu/-/dropdown-menu-22.2.11.tgz",
+ "integrity": "sha512-34lZ5FpZvlN7jCsO4NbImDDXnPy0UZoImnMgRAO8EQ1Pv7Fws/6TgxjV+ejrd42y/fajvM7P9fgnia44ZFmDPg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/button": "^25.8.0",
+ "@atlaskit/css": "^1.1.0",
+ "@atlaskit/ds-lib": "^9.0.0",
+ "@atlaskit/icon": "^38.3.0",
+ "@atlaskit/layering": "^6.1.0",
+ "@atlaskit/menu": "^11.2.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/popup": "^11.1.0",
+ "@atlaskit/primitives": "^23.0.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/spinner": "^20.4.0",
+ "@atlaskit/theme": "^28.2.0",
+ "@atlaskit/tokens": "^20.15.0",
+ "@atlaskit/top-layer": "^8.3.0",
+ "@atlaskit/visually-hidden": "^4.4.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^2.0.0",
+ "bind-event-listener": "^3.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0",
+ "react-dom": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/ds-lib": {
+ "version": "9.0.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/ds-lib/-/ds-lib-9.0.0.tgz",
+ "integrity": "sha512-28xHAlZsqZu2Oto7CXQVcBMyp76Jfe7Vjn3GCEzH8BlviQLzVEgy8ylZ+Lxatx3JglqtWrNIskqQ7wWT6B85GA==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@babel/runtime": "^7.0.0",
+ "bind-event-listener": "^3.0.0",
+ "tiny-invariant": "^1.2.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/dynamic-table": {
+ "version": "19.3.10",
+ "resolved": "https://registry.npmjs.org/@atlaskit/dynamic-table/-/dynamic-table-19.3.10.tgz",
+ "integrity": "sha512-c2L9WJke1Advcf6hCyAHgd8UGO4IW128vw+CSeEvO9Q/GhkAvPoLg+kaF687OYPU7nYw3vnivsUxaUpFfHGtZA==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/analytics-next": "^12.6.0",
+ "@atlaskit/css": "^1.1.0",
+ "@atlaskit/ds-lib": "^9.0.0",
+ "@atlaskit/icon": "^38.3.0",
+ "@atlaskit/pagination": "^17.3.0",
+ "@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration": "^3.5.0",
+ "@atlaskit/primitives": "^23.0.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/spinner": "^20.4.0",
+ "@atlaskit/tokens": "^20.15.0",
+ "@atlaskit/tooltip": "^24.4.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0",
+ "react-dom": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/dynamic-table/node_modules/@atlaskit/analytics-next": {
+ "version": "12.6.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/analytics-next/-/analytics-next-12.6.0.tgz",
+ "integrity": "sha512-QFECDwLBbNx9IRsBQMiQlw6r/sx+DcVs9hkJxRgPe3yakTdPBZMzSqD0b4R2tsFNlNxSKSkeJCF92S20v7suqg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/analytics-next-stable-react-context": "1.0.1",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@babel/runtime": "^7.0.0",
+ "prop-types": "^15.5.10",
+ "use-memo-one": "^1.1.1"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0",
+ "react-dom": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/dynamic-table/node_modules/@atlaskit/analytics-next/node_modules/@atlaskit/analytics-next-stable-react-context": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/@atlaskit/analytics-next-stable-react-context/-/analytics-next-stable-react-context-1.0.1.tgz",
+ "integrity": "sha512-iO6+hIp09dF4iAZQarVz3vKY1kM5Ij5CExYcK9jgc2q+OH8nv8n+BPFeJTdzGOGopmbUZn5Opj9pYQvge1Gr4Q==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "tslib": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0"
+ }
+ },
+ "node_modules/@atlaskit/dynamic-table/node_modules/@atlaskit/analytics-next/node_modules/use-memo-one": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/use-memo-one/-/use-memo-one-1.1.3.tgz",
+ "integrity": "sha512-g66/K7ZQGYrI6dy8GLpVcMsBp4s17xNkYJVSMvTEevGy3nDxHOfE6z8BVE22+5G5x7t3+bhzrlTDB7ObrEE0cQ==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
+ }
+ },
+ "node_modules/@atlaskit/editor-prosemirror": {
+ "version": "8.0.3",
+ "resolved": "https://registry.npmjs.org/@atlaskit/editor-prosemirror/-/editor-prosemirror-8.0.3.tgz",
+ "integrity": "sha512-VU2N4/VhwhXj50wm6CtgVrHyOx6TPtNIHRSL9FpiEu/Rt4TVOgJjr1ul6SmTYclccmNWviFUsa2LR7evKaLZgw==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@babel/runtime": "^7.0.0",
+ "prosemirror-commands": "1.7.1",
+ "prosemirror-dropcursor": "1.8.2",
+ "prosemirror-history": "1.5.0",
+ "prosemirror-keymap": "1.2.3",
+ "prosemirror-markdown": "1.13.2",
+ "prosemirror-model": "1.25.4",
+ "prosemirror-state": "1.4.4",
+ "prosemirror-transform": "1.10.5",
+ "prosemirror-utils": "1.2.2",
+ "prosemirror-view": "1.41.5"
+ }
+ },
+ "node_modules/@atlaskit/feature-gate-js-client": {
+ "version": "8.0.2",
+ "resolved": "https://registry.npmjs.org/@atlaskit/feature-gate-js-client/-/feature-gate-js-client-8.0.2.tgz",
+ "integrity": "sha512-gJGPlau67fpXRjXh7rJd3zqE5vq3ZyTKVjRZ7bGFrYKQh2iWtPKT4qzLe3XoLVi/PqiUoKNkMQIl/ooGTr+2Hg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/atlassian-context": "^2.0.0",
+ "@atlaskit/flag-client": "^1.2.0",
+ "@babel/runtime": "^7.0.0",
+ "@statsig/client-core": "3.30.2",
+ "@statsig/js-client": "3.30.2",
+ "eventemitter3": "^4.0.0"
+ }
+ },
+ "node_modules/@atlaskit/flag-client": {
+ "version": "1.2.2",
+ "resolved": "https://registry.npmjs.org/@atlaskit/flag-client/-/flag-client-1.2.2.tgz",
+ "integrity": "sha512-PcxudIcmJV9qoPzaVo+ew8H673ZNoATs7hbGU6vGur3ZHMiuY0Dy6pDrwZZiJ59MZCKras2A7OuiwVs5XUHUeg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@babel/runtime": "^7.0.0",
+ "hash-wasm": "^4.11.0"
+ }
+ },
+ "node_modules/@atlaskit/focus-ring": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/focus-ring/-/focus-ring-6.0.0.tgz",
+ "integrity": "sha512-a+wvgoeB7bD4Oju+wAJmEZfE31ZLZOAhR8acWWO4Kg/y7iJGloEPrdu9tAWq5a8bh/kLsN2IVLh5fEWmz+jTTw==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/tokens": "^20.0.0",
+ "@babel/runtime": "^7.0.0",
+ "@emotion/react": "^11.7.1"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/form": {
+ "version": "18.3.5",
+ "resolved": "https://registry.npmjs.org/@atlaskit/form/-/form-18.3.5.tgz",
+ "integrity": "sha512-n/CHaSkV4QrUiQIfOoWfjMGnJnNt+1ZYpdpjoY4yyW9KbD0F7cHGgKHPm1Y/C93NBe2qtZ79qGXMlnYCvV6QmQ==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/css": "^1.1.0",
+ "@atlaskit/ds-lib": "^9.0.0",
+ "@atlaskit/heading": "^8.0.0",
+ "@atlaskit/icon": "^38.3.0",
+ "@atlaskit/motion": "^10.0.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/primitives": "^23.0.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/tokens": "^20.15.0",
+ "@atlaskit/visually-hidden": "^4.4.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^2.0.0",
+ "final-form": "^4.20.3",
+ "final-form-focus": "^1.1.2",
+ "lodash": "^4.17.21"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/heading": {
+ "version": "8.0.1",
+ "resolved": "https://registry.npmjs.org/@atlaskit/heading/-/heading-8.0.1.tgz",
+ "integrity": "sha512-73wHM7N8L5HXJOBy0zaOoDLqXx7LDMcI3/RxxgTjMyXA46fg4Raz8HGi+mGxw/KE6KQFkbRr5Myje2TchSZOPw==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/primitives": "^23.0.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/tokens": "^20.15.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/icon": {
+ "version": "38.3.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/icon/-/icon-38.3.0.tgz",
+ "integrity": "sha512-fQMM99J4fJQN+zHQ6DEtgrFxYHbP0zXSOOYC15EKIAku84x5Dyb7sCUNm4Pv5J+1dnKpUoSNDC558pymDGlhmA==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/tile": "^5.0.0",
+ "@atlaskit/tokens": "^20.15.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/icon-lab": {
+ "version": "7.14.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/icon-lab/-/icon-lab-7.14.0.tgz",
+ "integrity": "sha512-1BCLkZRIBqwCAdWK0bih6SPUbq84Qplqp0L+c13GWQLfQ9fGiv+58k6bqlthVbCNVVbSnLUUm1UWUL8weQCdrw==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/icon": "^38.3.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@babel/runtime": "^7.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/inline-dialog": {
+ "version": "20.3.12",
+ "resolved": "https://registry.npmjs.org/@atlaskit/inline-dialog/-/inline-dialog-20.3.12.tgz",
+ "integrity": "sha512-mSonmO0o5XF+xYfuksnrAl4JSvg/9XOxRjZTG3FaPJDvQuCWkcHuPZsWDXrSiSXBUufgW1mPQpDWIWtWlLl37Q==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/analytics-next": "^12.6.0",
+ "@atlaskit/ds-lib": "^9.0.0",
+ "@atlaskit/layering": "^6.1.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/popper": "^9.4.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/tokens": "^20.14.0",
+ "@atlaskit/top-layer": "^8.1.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^2.0.0",
+ "bind-event-listener": "^3.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/inline-dialog/node_modules/@atlaskit/analytics-next": {
+ "version": "12.6.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/analytics-next/-/analytics-next-12.6.0.tgz",
+ "integrity": "sha512-QFECDwLBbNx9IRsBQMiQlw6r/sx+DcVs9hkJxRgPe3yakTdPBZMzSqD0b4R2tsFNlNxSKSkeJCF92S20v7suqg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/analytics-next-stable-react-context": "1.0.1",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@babel/runtime": "^7.0.0",
+ "prop-types": "^15.5.10",
+ "use-memo-one": "^1.1.1"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0",
+ "react-dom": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/inline-dialog/node_modules/@atlaskit/analytics-next/node_modules/@atlaskit/analytics-next-stable-react-context": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/@atlaskit/analytics-next-stable-react-context/-/analytics-next-stable-react-context-1.0.1.tgz",
+ "integrity": "sha512-iO6+hIp09dF4iAZQarVz3vKY1kM5Ij5CExYcK9jgc2q+OH8nv8n+BPFeJTdzGOGopmbUZn5Opj9pYQvge1Gr4Q==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "tslib": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0"
+ }
+ },
+ "node_modules/@atlaskit/inline-dialog/node_modules/@atlaskit/analytics-next/node_modules/use-memo-one": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/use-memo-one/-/use-memo-one-1.1.3.tgz",
+ "integrity": "sha512-g66/K7ZQGYrI6dy8GLpVcMsBp4s17xNkYJVSMvTEevGy3nDxHOfE6z8BVE22+5G5x7t3+bhzrlTDB7ObrEE0cQ==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
+ }
+ },
+ "node_modules/@atlaskit/inline-edit": {
+ "version": "16.7.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/inline-edit/-/inline-edit-16.7.0.tgz",
+ "integrity": "sha512-CHlq/Z/Mly/rcz7lCTEV9q59f0y+ywEuIHmQY1agyzwEYjtcRooRlV6lZyZ3+HOgi1X7QwM95usL0aK9qRgIYA==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/analytics-next": "^12.6.0",
+ "@atlaskit/button": "^25.8.0",
+ "@atlaskit/css": "^1.1.0",
+ "@atlaskit/form": "^18.3.0",
+ "@atlaskit/icon": "^38.3.0",
+ "@atlaskit/inline-dialog": "^20.3.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/popup": "^11.1.0",
+ "@atlaskit/primitives": "^23.0.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/textfield": "^11.0.0",
+ "@atlaskit/tokens": "^20.15.0",
+ "@atlaskit/top-layer": "^8.3.0",
+ "@atlaskit/visually-hidden": "^4.4.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/inline-edit/node_modules/@atlaskit/analytics-next": {
+ "version": "12.6.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/analytics-next/-/analytics-next-12.6.0.tgz",
+ "integrity": "sha512-QFECDwLBbNx9IRsBQMiQlw6r/sx+DcVs9hkJxRgPe3yakTdPBZMzSqD0b4R2tsFNlNxSKSkeJCF92S20v7suqg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/analytics-next-stable-react-context": "1.0.1",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@babel/runtime": "^7.0.0",
+ "prop-types": "^15.5.10",
+ "use-memo-one": "^1.1.1"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0",
+ "react-dom": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/inline-edit/node_modules/@atlaskit/analytics-next/node_modules/@atlaskit/analytics-next-stable-react-context": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/@atlaskit/analytics-next-stable-react-context/-/analytics-next-stable-react-context-1.0.1.tgz",
+ "integrity": "sha512-iO6+hIp09dF4iAZQarVz3vKY1kM5Ij5CExYcK9jgc2q+OH8nv8n+BPFeJTdzGOGopmbUZn5Opj9pYQvge1Gr4Q==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "tslib": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0"
+ }
+ },
+ "node_modules/@atlaskit/inline-edit/node_modules/@atlaskit/analytics-next/node_modules/use-memo-one": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/use-memo-one/-/use-memo-one-1.1.3.tgz",
+ "integrity": "sha512-g66/K7ZQGYrI6dy8GLpVcMsBp4s17xNkYJVSMvTEevGy3nDxHOfE6z8BVE22+5G5x7t3+bhzrlTDB7ObrEE0cQ==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
+ }
+ },
+ "node_modules/@atlaskit/layering": {
+ "version": "6.1.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/layering/-/layering-6.1.0.tgz",
+ "integrity": "sha512-OpVcPXsS4OBYGuJDSuubi1qtOp3aSKi3FK/++/Z49KVFtcRdn0UrTrkz3e+dpI+0FtaI8IV4f6O2ceqCa1T81w==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@babel/runtime": "^7.0.0",
+ "bind-event-listener": "^3.0.0",
+ "tiny-invariant": "^1.2.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/link": {
+ "version": "5.1.8",
+ "resolved": "https://registry.npmjs.org/@atlaskit/link/-/link-5.1.8.tgz",
+ "integrity": "sha512-7U+jeGAtfnd+D1PhGZl7Pdyk7ZcwVAXRDes6xv8i7R3D4uQxRvQjfCabzHLpBZU0yLFs4pZp/gNsAXV6mbvU1A==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/css": "^1.1.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/primitives": "^23.0.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/tokens": "^20.15.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/locale": {
+ "version": "5.5.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/locale/-/locale-5.5.0.tgz",
+ "integrity": "sha512-CIC/TdVa1gf38KVE//pTe7WKXIw3eeC3eEYrJD2oKJFbTjw7P9pCf8AJHtY59815qaZfVSjcWtu9wMJQjZ6LpA==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/react-select": "^4.12.0",
+ "@atlaskit/select": "^23.1.0",
+ "@babel/runtime": "^7.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/logo": {
+ "version": "23.3.3",
+ "resolved": "https://registry.npmjs.org/@atlaskit/logo/-/logo-23.3.3.tgz",
+ "integrity": "sha512-ITQfprX6Bd0XlqBDYauz3Y/VO4JIw1+PoI5jLQcgKxdXYVGW7UEa+pPyeXUGISaSmkhdxffYYk7UsUrgLt/zGA==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/css": "^1.1.0",
+ "@atlaskit/ds-lib": "^9.0.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/theme": "^28.2.0",
+ "@atlaskit/tokens": "^20.14.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^1.0.2"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/logo/node_modules/@compiled/react": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/@compiled/react/-/react-1.0.2.tgz",
+ "integrity": "sha512-xGOChqGDvoJON+1QOgV4cYmy1W3oonJw43TQ7KR8TuPTlIAHuFBgfckmyMPG4WppF0FYem518LZknySU0uQhlg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "csstype": "^3.2.3"
+ },
+ "peerDependencies": {
+ "react": ">=18.0.0"
+ }
+ },
+ "node_modules/@atlaskit/lozenge": {
+ "version": "17.0.12",
+ "resolved": "https://registry.npmjs.org/@atlaskit/lozenge/-/lozenge-17.0.12.tgz",
+ "integrity": "sha512-hANIjmZgEFjXd2chJRc1wLIWdH/r44y/4pCVUf7/nGTzWqF+lkkQIHEAJf479fx+T4OlWQFlIfY1TkWsz/pkTA==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/analytics-next": "^12.6.0",
+ "@atlaskit/badge": "^22.0.0",
+ "@atlaskit/css": "^1.1.0",
+ "@atlaskit/ds-lib": "^9.0.0",
+ "@atlaskit/icon": "^38.3.0",
+ "@atlaskit/motion": "^10.0.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/popup": "^11.1.0",
+ "@atlaskit/primitives": "^23.0.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/spinner": "^20.4.0",
+ "@atlaskit/tokens": "^20.15.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/lozenge/node_modules/@atlaskit/analytics-next": {
+ "version": "12.6.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/analytics-next/-/analytics-next-12.6.0.tgz",
+ "integrity": "sha512-QFECDwLBbNx9IRsBQMiQlw6r/sx+DcVs9hkJxRgPe3yakTdPBZMzSqD0b4R2tsFNlNxSKSkeJCF92S20v7suqg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/analytics-next-stable-react-context": "1.0.1",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@babel/runtime": "^7.0.0",
+ "prop-types": "^15.5.10",
+ "use-memo-one": "^1.1.1"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0",
+ "react-dom": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/lozenge/node_modules/@atlaskit/analytics-next/node_modules/@atlaskit/analytics-next-stable-react-context": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/@atlaskit/analytics-next-stable-react-context/-/analytics-next-stable-react-context-1.0.1.tgz",
+ "integrity": "sha512-iO6+hIp09dF4iAZQarVz3vKY1kM5Ij5CExYcK9jgc2q+OH8nv8n+BPFeJTdzGOGopmbUZn5Opj9pYQvge1Gr4Q==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "tslib": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0"
+ }
+ },
+ "node_modules/@atlaskit/lozenge/node_modules/@atlaskit/analytics-next/node_modules/use-memo-one": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/use-memo-one/-/use-memo-one-1.1.3.tgz",
+ "integrity": "sha512-g66/K7ZQGYrI6dy8GLpVcMsBp4s17xNkYJVSMvTEevGy3nDxHOfE6z8BVE22+5G5x7t3+bhzrlTDB7ObrEE0cQ==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
+ }
+ },
+ "node_modules/@atlaskit/menu": {
+ "version": "11.2.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/menu/-/menu-11.2.0.tgz",
+ "integrity": "sha512-uX3nsZ07F06sMH4pkob/sTCpE3C4AYJBT4X6XuFaxRpOBvTl3IoE+flzw+4PH1OdQiUGXqHTEkjxFAZGDVcVqg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/app-provider": "^8.3.0",
+ "@atlaskit/css": "^1.1.0",
+ "@atlaskit/interaction-context": "^4.3.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/primitives": "^23.0.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/tokens": "^20.15.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0",
+ "react-dom": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/menu/node_modules/@atlaskit/interaction-context": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/interaction-context/-/interaction-context-4.3.0.tgz",
+ "integrity": "sha512-F31jO2V5z68MEAsyFPCFo5/FoklA7qhBf/1sKBuYzNcSJfWHegjb4K7+g9H2HsAQMe8WnfcTysqYOIod8Iiuqw==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@babel/runtime": "^7.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/modal-dialog": {
+ "version": "17.4.2",
+ "resolved": "https://registry.npmjs.org/@atlaskit/modal-dialog/-/modal-dialog-17.4.2.tgz",
+ "integrity": "sha512-VzzdbbOFTuYEYwqTfpm7hhMWgPMNoJP3gXFTqeXb57R7RxJfN75deacCqb71kpOPDTy7fhDUgjYPG7ZZ+pbLGw==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/analytics-next": "^12.6.0",
+ "@atlaskit/blanket": "^16.4.0",
+ "@atlaskit/button": "^25.8.0",
+ "@atlaskit/css": "^1.1.0",
+ "@atlaskit/ds-lib": "^9.0.0",
+ "@atlaskit/icon": "^38.3.0",
+ "@atlaskit/layering": "^6.1.0",
+ "@atlaskit/motion": "^10.0.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/portal": "^7.1.0",
+ "@atlaskit/primitives": "^23.0.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/theme": "^28.2.0",
+ "@atlaskit/tokens": "^20.15.0",
+ "@atlaskit/top-layer": "^8.3.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^2.0.0",
+ "bind-event-listener": "^3.0.0",
+ "raf-schd": "^4.0.3",
+ "react-focus-lock": "^2.9.5",
+ "react-intl": "^7.0.0",
+ "react-scrolllock": "^5.0.1"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/modal-dialog/node_modules/@atlaskit/analytics-next": {
+ "version": "12.6.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/analytics-next/-/analytics-next-12.6.0.tgz",
+ "integrity": "sha512-QFECDwLBbNx9IRsBQMiQlw6r/sx+DcVs9hkJxRgPe3yakTdPBZMzSqD0b4R2tsFNlNxSKSkeJCF92S20v7suqg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/analytics-next-stable-react-context": "1.0.1",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@babel/runtime": "^7.0.0",
+ "prop-types": "^15.5.10",
+ "use-memo-one": "^1.1.1"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0",
+ "react-dom": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/modal-dialog/node_modules/@atlaskit/analytics-next/node_modules/@atlaskit/analytics-next-stable-react-context": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/@atlaskit/analytics-next-stable-react-context/-/analytics-next-stable-react-context-1.0.1.tgz",
+ "integrity": "sha512-iO6+hIp09dF4iAZQarVz3vKY1kM5Ij5CExYcK9jgc2q+OH8nv8n+BPFeJTdzGOGopmbUZn5Opj9pYQvge1Gr4Q==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "tslib": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0"
+ }
+ },
+ "node_modules/@atlaskit/modal-dialog/node_modules/@atlaskit/analytics-next/node_modules/use-memo-one": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/use-memo-one/-/use-memo-one-1.1.3.tgz",
+ "integrity": "sha512-g66/K7ZQGYrI6dy8GLpVcMsBp4s17xNkYJVSMvTEevGy3nDxHOfE6z8BVE22+5G5x7t3+bhzrlTDB7ObrEE0cQ==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
+ }
+ },
+ "node_modules/@atlaskit/modal-dialog/node_modules/@atlaskit/portal": {
+ "version": "7.1.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/portal/-/portal-7.1.0.tgz",
+ "integrity": "sha512-LSwuHoqPJTwOzJJO/XyE95mlSvaQZ33QH5kLY36LaQoNqkSpoOMYQepJ8CeK6ZH7k516WOSISgc3E/3At7YDBA==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/app-provider": "^8.2.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/theme": "^28.2.0",
+ "@babel/runtime": "^7.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0",
+ "react-dom": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/modal-dialog/node_modules/react-scrolllock": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/react-scrolllock/-/react-scrolllock-5.0.1.tgz",
+ "integrity": "sha512-poeEsjnZAlpA6fJlaNo4rZtcip2j6l5mUGU/SJe1FFlicEudS943++u7ZSdA7lk10hoyYK3grOD02/qqt5Lxhw==",
+ "license": "MIT",
+ "dependencies": {
+ "exenv": "^1.2.2"
+ },
+ "peerDependencies": {
+ "react": "^16.3.0"
+ }
+ },
+ "node_modules/@atlaskit/motion": {
+ "version": "10.0.4",
+ "resolved": "https://registry.npmjs.org/@atlaskit/motion/-/motion-10.0.4.tgz",
+ "integrity": "sha512-jkrgpBYbEfxNNWjc600S7kBJIQhnXWebo4HeOsfZCkBGzDUF94zCLXLtAy3vHZOt4Nm8F45zvV3RAOMdBrHxLQ==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/browser-apis": "^1.2.0",
+ "@atlaskit/css": "^1.1.0",
+ "@atlaskit/ds-lib": "^9.0.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/tokens": "^20.15.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^2.0.0",
+ "bind-event-listener": "^3.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/motion/node_modules/@atlaskit/browser-apis": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/browser-apis/-/browser-apis-1.2.0.tgz",
+ "integrity": "sha512-SNwf6LGu1BjECz62iC/kIOwmtiJlz4cuf04OnVLlN8amEly+6NHIzZG+IU2Bbpa2vG7oVSj3nSy0gMm/7kqiuQ==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@babel/runtime": "^7.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/object": {
+ "version": "2.3.6",
+ "resolved": "https://registry.npmjs.org/@atlaskit/object/-/object-2.3.6.tgz",
+ "integrity": "sha512-828U64XI+KZrCyLHmUZqauaNL+5V0vFS8CN0EOZvElj9pvRe7NM9H2TmGZMUYZABu5sJzvpfDpIBi+X7zwPC8w==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/css": "^1.1.0",
+ "@atlaskit/icon": "^38.3.0",
+ "@atlaskit/icon-lab": "^7.14.0",
+ "@atlaskit/primitives": "^23.0.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/tile": "^5.0.0",
+ "@atlaskit/tokens": "^20.15.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^2.0.0",
+ "tiny-invariant": "^1.2.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/pagination": {
+ "version": "17.3.6",
+ "resolved": "https://registry.npmjs.org/@atlaskit/pagination/-/pagination-17.3.6.tgz",
+ "integrity": "sha512-MEckqvj/mNqpfPzJBaweKsTH9A350E9CWged/Q++NC4KeAEzs+nxTmRwv20FfBzf1hEul08vvi/Qyo9E3omGNQ==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/analytics-next": "^12.6.0",
+ "@atlaskit/button": "^25.8.0",
+ "@atlaskit/css": "^1.1.0",
+ "@atlaskit/ds-lib": "^9.0.0",
+ "@atlaskit/icon": "^38.3.0",
+ "@atlaskit/primitives": "^23.0.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/tokens": "^20.15.0",
+ "@atlaskit/visually-hidden": "^4.4.0",
+ "@babel/runtime": "^7.0.0",
+ "memoize-one": "^6.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/pagination/node_modules/@atlaskit/analytics-next": {
+ "version": "12.6.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/analytics-next/-/analytics-next-12.6.0.tgz",
+ "integrity": "sha512-QFECDwLBbNx9IRsBQMiQlw6r/sx+DcVs9hkJxRgPe3yakTdPBZMzSqD0b4R2tsFNlNxSKSkeJCF92S20v7suqg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/analytics-next-stable-react-context": "1.0.1",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@babel/runtime": "^7.0.0",
+ "prop-types": "^15.5.10",
+ "use-memo-one": "^1.1.1"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0",
+ "react-dom": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/pagination/node_modules/@atlaskit/analytics-next/node_modules/@atlaskit/analytics-next-stable-react-context": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/@atlaskit/analytics-next-stable-react-context/-/analytics-next-stable-react-context-1.0.1.tgz",
+ "integrity": "sha512-iO6+hIp09dF4iAZQarVz3vKY1kM5Ij5CExYcK9jgc2q+OH8nv8n+BPFeJTdzGOGopmbUZn5Opj9pYQvge1Gr4Q==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "tslib": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0"
+ }
+ },
+ "node_modules/@atlaskit/pagination/node_modules/@atlaskit/analytics-next/node_modules/use-memo-one": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/use-memo-one/-/use-memo-one-1.1.3.tgz",
+ "integrity": "sha512-g66/K7ZQGYrI6dy8GLpVcMsBp4s17xNkYJVSMvTEevGy3nDxHOfE6z8BVE22+5G5x7t3+bhzrlTDB7ObrEE0cQ==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
+ }
+ },
+ "node_modules/@atlaskit/platform-feature-flags": {
+ "version": "2.2.2",
+ "resolved": "https://registry.npmjs.org/@atlaskit/platform-feature-flags/-/platform-feature-flags-2.2.2.tgz",
+ "integrity": "sha512-2vVqXpUH2qW2bAAetiT7eOT5gu3cvyg0RNRknTSASlN7hGD3zJc5lcc28GC7f9ayy2DdteRoG7teiSKrinU1jw==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/feature-gate-js-client": "^8.0.0",
+ "@babel/runtime": "^7.0.0"
+ }
+ },
+ "node_modules/@atlaskit/popper": {
+ "version": "9.4.13",
+ "resolved": "https://registry.npmjs.org/@atlaskit/popper/-/popper-9.4.13.tgz",
+ "integrity": "sha512-F7LFx+0P5nQMEP+JYOm6M5DaAehhpJepDXSbet7x0NcoEEJ6dh5gfi8g0jvhMzO3OkYcOQicJqh5sSoZiJqrow==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/browser-apis": "^1.2.0",
+ "@atlaskit/ds-lib": "^9.0.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/tokens": "^20.15.0",
+ "@atlaskit/top-layer": "^8.2.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^2.0.0",
+ "@popperjs/core": "^2.11.8",
+ "bind-event-listener": "^3.0.0",
+ "react-popper": "^2.3.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0",
+ "react-dom": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/popper/node_modules/@atlaskit/browser-apis": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/browser-apis/-/browser-apis-1.2.0.tgz",
+ "integrity": "sha512-SNwf6LGu1BjECz62iC/kIOwmtiJlz4cuf04OnVLlN8amEly+6NHIzZG+IU2Bbpa2vG7oVSj3nSy0gMm/7kqiuQ==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@babel/runtime": "^7.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/popper/node_modules/react-popper": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/react-popper/-/react-popper-2.3.0.tgz",
+ "integrity": "sha512-e1hj8lL3uM+sgSR4Lxzn5h1GxBlpa4CQz0XLF8kx4MDrDRWY0Ena4c97PUeSX9i5W3UAfDP0z0FXCTQkoXUl3Q==",
+ "license": "MIT",
+ "dependencies": {
+ "react-fast-compare": "^3.0.1",
+ "warning": "^4.0.2"
+ },
+ "peerDependencies": {
+ "@popperjs/core": "^2.0.0",
+ "react": "^16.8.0 || ^17 || ^18",
+ "react-dom": "^16.8.0 || ^17 || ^18"
+ }
+ },
+ "node_modules/@atlaskit/popup": {
+ "version": "11.1.1",
+ "resolved": "https://registry.npmjs.org/@atlaskit/popup/-/popup-11.1.1.tgz",
+ "integrity": "sha512-aWAUuBm+Yg0A5c1A3MpI4LIp9nboYi6yOwhIHfbSXoisr7qqYhmyI9vuSbrE3dnQZBNol5GsRuGFyvV+stLNjQ==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/css": "^1.1.0",
+ "@atlaskit/ds-lib": "^9.0.0",
+ "@atlaskit/layering": "^6.1.0",
+ "@atlaskit/motion": "^10.0.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/popper": "^9.4.0",
+ "@atlaskit/portal": "^7.1.0",
+ "@atlaskit/primitives": "^23.0.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/tokens": "^20.15.0",
+ "@atlaskit/top-layer": "^8.2.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^2.0.0",
+ "bind-event-listener": "^3.0.0",
+ "focus-trap": "^2.4.5",
+ "memoize-one": "^6.0.0",
+ "tiny-invariant": "^1.2.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0",
+ "react-dom": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/popup/node_modules/@atlaskit/portal": {
+ "version": "7.1.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/portal/-/portal-7.1.0.tgz",
+ "integrity": "sha512-LSwuHoqPJTwOzJJO/XyE95mlSvaQZ33QH5kLY36LaQoNqkSpoOMYQepJ8CeK6ZH7k516WOSISgc3E/3At7YDBA==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/app-provider": "^8.2.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/theme": "^28.2.0",
+ "@babel/runtime": "^7.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0",
+ "react-dom": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/pragmatic-drag-and-drop": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/pragmatic-drag-and-drop/-/pragmatic-drag-and-drop-4.0.0.tgz",
+ "integrity": "sha512-pyDo2B5NiaExoKGmgeXKGNUL4aR4UzzSZm8QWWjYTEyBLVqSqKyKUwtVxMw2YEkakagOGFONUdHM32LAH2nPug==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@babel/runtime": "^7.0.0",
+ "bind-event-listener": "^3.0.0",
+ "raf-schd": "^4.0.3"
+ }
+ },
+ "node_modules/@atlaskit/pragmatic-drag-and-drop-hitbox": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/pragmatic-drag-and-drop-hitbox/-/pragmatic-drag-and-drop-hitbox-3.0.0.tgz",
+ "integrity": "sha512-AGLp1ewjm07eRN2NL62awllSM19FrWVZMQYfZA/jugQlpaeoTr5ah2DE7zfiEt7yrg34htoKQVM+y6SGIQYs2A==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/pragmatic-drag-and-drop": "^4.0.0",
+ "@babel/runtime": "^7.0.0"
+ }
+ },
+ "node_modules/@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-autoscroll": {
+ "version": "3.2.1",
+ "resolved": "https://registry.npmjs.org/@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-autoscroll/-/pragmatic-drag-and-drop-react-beautiful-dnd-autoscroll-3.2.1.tgz",
+ "integrity": "sha512-18dNiWVT2dhWVypbZ93cHpWfvThtxYZyFQqZLj+iwXa3JMjsu5mBikizqA5HBDrL5zpL+N8yvzcub4GCUcB6Zw==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/pragmatic-drag-and-drop": "^4.0.0",
+ "@babel/runtime": "^7.0.0",
+ "css-box-model": "^1.2.0"
+ }
+ },
+ "node_modules/@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration": {
+ "version": "3.5.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration/-/pragmatic-drag-and-drop-react-beautiful-dnd-migration-3.5.0.tgz",
+ "integrity": "sha512-yhamlE2vfcxXi3v4wsDtLPENa/B9d0WWPmuYU/fIY1TdkhRPgbn4r9fSpE9cCAUay2Woe3/ghaM9HG/MdWiveQ==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/pragmatic-drag-and-drop": "^4.0.0",
+ "@atlaskit/pragmatic-drag-and-drop-hitbox": "^3.0.0",
+ "@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-autoscroll": "^3.2.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/tokens": "^20.12.0",
+ "@babel/runtime": "^7.0.0",
+ "@emotion/react": "^11.7.1",
+ "bind-event-listener": "^3.0.0",
+ "tiny-invariant": "^1.2.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0",
+ "react-dom": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/pragmatic-drag-and-drop-react-drop-indicator/-/pragmatic-drag-and-drop-react-drop-indicator-4.3.0.tgz",
+ "integrity": "sha512-0jOj3UdQUEA9mtU3omOBmKg+JYArZGz+mhZi386tWcDKNVPtckRJtg8GVhPH1FjTcYhai+ik4HXpN0U0l/S+2w==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/pragmatic-drag-and-drop": "^4.0.0",
+ "@atlaskit/pragmatic-drag-and-drop-hitbox": "^3.0.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/tokens": "^20.12.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^1.0.2"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/pragmatic-drag-and-drop-react-drop-indicator/node_modules/@compiled/react": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/@compiled/react/-/react-1.0.2.tgz",
+ "integrity": "sha512-xGOChqGDvoJON+1QOgV4cYmy1W3oonJw43TQ7KR8TuPTlIAHuFBgfckmyMPG4WppF0FYem518LZknySU0uQhlg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "csstype": "^3.2.3"
+ },
+ "peerDependencies": {
+ "react": ">=18.0.0"
+ }
+ },
+ "node_modules/@atlaskit/primitives": {
+ "version": "23.0.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/primitives/-/primitives-23.0.0.tgz",
+ "integrity": "sha512-7LxieV2AzoM9XSGqa7Cqa2rZEFF2LV5NSpdJCRiXUbbZq3ARn7Udadm9O8pgpMkprzgcY5bWO286++bXf0U4xA==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/analytics-next": "^12.6.0",
+ "@atlaskit/app-provider": "^8.3.0",
+ "@atlaskit/css": "^1.1.0",
+ "@atlaskit/ds-lib": "^9.0.0",
+ "@atlaskit/interaction-context": "^4.3.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/tokens": "^20.15.0",
+ "@atlaskit/visually-hidden": "^4.4.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^2.0.0",
+ "@emotion/react": "^11.7.1",
+ "@emotion/serialize": "^1.1.0",
+ "bind-event-listener": "^3.0.0",
+ "tiny-invariant": "^1.2.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/primitives/node_modules/@atlaskit/analytics-next": {
+ "version": "12.6.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/analytics-next/-/analytics-next-12.6.0.tgz",
+ "integrity": "sha512-QFECDwLBbNx9IRsBQMiQlw6r/sx+DcVs9hkJxRgPe3yakTdPBZMzSqD0b4R2tsFNlNxSKSkeJCF92S20v7suqg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/analytics-next-stable-react-context": "1.0.1",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@babel/runtime": "^7.0.0",
+ "prop-types": "^15.5.10",
+ "use-memo-one": "^1.1.1"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0",
+ "react-dom": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/primitives/node_modules/@atlaskit/analytics-next/node_modules/@atlaskit/analytics-next-stable-react-context": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/@atlaskit/analytics-next-stable-react-context/-/analytics-next-stable-react-context-1.0.1.tgz",
+ "integrity": "sha512-iO6+hIp09dF4iAZQarVz3vKY1kM5Ij5CExYcK9jgc2q+OH8nv8n+BPFeJTdzGOGopmbUZn5Opj9pYQvge1Gr4Q==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "tslib": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0"
+ }
+ },
+ "node_modules/@atlaskit/primitives/node_modules/@atlaskit/analytics-next/node_modules/use-memo-one": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/use-memo-one/-/use-memo-one-1.1.3.tgz",
+ "integrity": "sha512-g66/K7ZQGYrI6dy8GLpVcMsBp4s17xNkYJVSMvTEevGy3nDxHOfE6z8BVE22+5G5x7t3+bhzrlTDB7ObrEE0cQ==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
+ }
+ },
+ "node_modules/@atlaskit/primitives/node_modules/@atlaskit/interaction-context": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/interaction-context/-/interaction-context-4.3.0.tgz",
+ "integrity": "sha512-F31jO2V5z68MEAsyFPCFo5/FoklA7qhBf/1sKBuYzNcSJfWHegjb4K7+g9H2HsAQMe8WnfcTysqYOIod8Iiuqw==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@babel/runtime": "^7.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/progress-bar": {
+ "version": "5.3.7",
+ "resolved": "https://registry.npmjs.org/@atlaskit/progress-bar/-/progress-bar-5.3.7.tgz",
+ "integrity": "sha512-0aiz/V4gl/MR64x5qzq9V+Eq0bojvYNjW9uAQOkcyu1gIPpJcFt3SUEUhIScnu1Yhl6R77nUyPVdIxaUWVZzEg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/tokens": "^20.0.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^1.0.2"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/progress-bar/node_modules/@compiled/react": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/@compiled/react/-/react-1.0.2.tgz",
+ "integrity": "sha512-xGOChqGDvoJON+1QOgV4cYmy1W3oonJw43TQ7KR8TuPTlIAHuFBgfckmyMPG4WppF0FYem518LZknySU0uQhlg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "csstype": "^3.2.3"
+ },
+ "peerDependencies": {
+ "react": ">=18.0.0"
+ }
+ },
+ "node_modules/@atlaskit/progress-tracker": {
+ "version": "11.4.5",
+ "resolved": "https://registry.npmjs.org/@atlaskit/progress-tracker/-/progress-tracker-11.4.5.tgz",
+ "integrity": "sha512-Mbw2mI+I0Hrmm8kdbnyl9hPj9ptwrL1H11vHnABRxBwqDpplcjrX4MJrlh4e8y3ugd4B3KrjmDZr5RLZyS2sDA==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/css": "^1.1.0",
+ "@atlaskit/primitives": "^23.0.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/tokens": "^20.15.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/radio": {
+ "version": "10.2.7",
+ "resolved": "https://registry.npmjs.org/@atlaskit/radio/-/radio-10.2.7.tgz",
+ "integrity": "sha512-i/lQrZHZ4e0PM59LucK5uDcZ4uBPMCaliY7BlrjbVE/cStMAn/RjJ8JhmCdMO5HxgKw9cWpzLAnLg0U8BF2m7Q==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/analytics-next": "^12.6.0",
+ "@atlaskit/css": "^1.1.0",
+ "@atlaskit/ds-lib": "^9.0.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/theme": "^28.2.0",
+ "@atlaskit/tokens": "^20.14.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^1.0.2"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/radio/node_modules/@atlaskit/analytics-next": {
+ "version": "12.6.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/analytics-next/-/analytics-next-12.6.0.tgz",
+ "integrity": "sha512-QFECDwLBbNx9IRsBQMiQlw6r/sx+DcVs9hkJxRgPe3yakTdPBZMzSqD0b4R2tsFNlNxSKSkeJCF92S20v7suqg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/analytics-next-stable-react-context": "1.0.1",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@babel/runtime": "^7.0.0",
+ "prop-types": "^15.5.10",
+ "use-memo-one": "^1.1.1"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0",
+ "react-dom": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/radio/node_modules/@atlaskit/analytics-next/node_modules/@atlaskit/analytics-next-stable-react-context": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/@atlaskit/analytics-next-stable-react-context/-/analytics-next-stable-react-context-1.0.1.tgz",
+ "integrity": "sha512-iO6+hIp09dF4iAZQarVz3vKY1kM5Ij5CExYcK9jgc2q+OH8nv8n+BPFeJTdzGOGopmbUZn5Opj9pYQvge1Gr4Q==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "tslib": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0"
+ }
+ },
+ "node_modules/@atlaskit/radio/node_modules/@atlaskit/analytics-next/node_modules/use-memo-one": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/use-memo-one/-/use-memo-one-1.1.3.tgz",
+ "integrity": "sha512-g66/K7ZQGYrI6dy8GLpVcMsBp4s17xNkYJVSMvTEevGy3nDxHOfE6z8BVE22+5G5x7t3+bhzrlTDB7ObrEE0cQ==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
+ }
+ },
+ "node_modules/@atlaskit/radio/node_modules/@compiled/react": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/@compiled/react/-/react-1.0.2.tgz",
+ "integrity": "sha512-xGOChqGDvoJON+1QOgV4cYmy1W3oonJw43TQ7KR8TuPTlIAHuFBgfckmyMPG4WppF0FYem518LZknySU0uQhlg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "csstype": "^3.2.3"
+ },
+ "peerDependencies": {
+ "react": ">=18.0.0"
+ }
+ },
+ "node_modules/@atlaskit/react-compiler-gating": {
+ "version": "0.2.7",
+ "resolved": "https://registry.npmjs.org/@atlaskit/react-compiler-gating/-/react-compiler-gating-0.2.7.tgz",
+ "integrity": "sha512-aOcVwX7le2FX92NmSfvvyMEierigp9O/rYNy/M+1ablnRRq1osP/drquGBPuDRHjnq0dddNWYVR4VxhF54Dtqg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/feature-gate-js-client": "^8.0.0",
+ "@babel/runtime": "^7.0.0"
+ }
+ },
+ "node_modules/@atlaskit/react-select": {
+ "version": "4.13.4",
+ "resolved": "https://registry.npmjs.org/@atlaskit/react-select/-/react-select-4.13.4.tgz",
+ "integrity": "sha512-CE9hSf9zOx038MDqTeBrbk+saoakoq6YTvLlfXLpakORWFEl3WKP/44JFJTLAznMtRC6xBi2y7AtF3HP/j0vSw==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/browser-apis": "^1.2.0",
+ "@atlaskit/css": "^1.1.0",
+ "@atlaskit/ds-lib": "^9.0.0",
+ "@atlaskit/icon": "^38.3.0",
+ "@atlaskit/layering": "^6.1.0",
+ "@atlaskit/motion": "^10.0.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/primitives": "^23.0.0",
+ "@atlaskit/spinner": "^20.4.0",
+ "@atlaskit/tag": "^17.1.0",
+ "@atlaskit/tokens": "^20.15.0",
+ "@atlaskit/top-layer": "^8.2.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^2.0.0",
+ "@floating-ui/dom": "^1.8.0",
+ "bind-event-listener": "^3.0.0",
+ "memoize-one": "^6.0.0",
+ "use-isomorphic-layout-effect": "^1.1.2"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0",
+ "react-dom": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/react-select/node_modules/@atlaskit/browser-apis": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/browser-apis/-/browser-apis-1.2.0.tgz",
+ "integrity": "sha512-SNwf6LGu1BjECz62iC/kIOwmtiJlz4cuf04OnVLlN8amEly+6NHIzZG+IU2Bbpa2vG7oVSj3nSy0gMm/7kqiuQ==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@babel/runtime": "^7.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/section-message": {
+ "version": "10.3.1",
+ "resolved": "https://registry.npmjs.org/@atlaskit/section-message/-/section-message-10.3.1.tgz",
+ "integrity": "sha512-yVWoXxioZR4hF7NT7+T0iarXwSgI8R5JFQs5Ps7J9p0mDRzjjUyla5pI9q/NfhfFtJWRMqcYKMwDIQv1tSVmMw==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/button": "^25.8.0",
+ "@atlaskit/css": "^1.1.0",
+ "@atlaskit/heading": "^8.0.0",
+ "@atlaskit/icon": "^38.3.0",
+ "@atlaskit/link": "^5.1.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/primitives": "^23.0.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/tokens": "^20.15.0",
+ "@babel/runtime": "^7.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/select": {
+ "version": "23.3.5",
+ "resolved": "https://registry.npmjs.org/@atlaskit/select/-/select-23.3.5.tgz",
+ "integrity": "sha512-HIqkFkqXzQTlBSMjEQI0Hhp+15LsPyMreDZSUs4FgPNAeluLL70yArD/VRXpOtrgXiiO3PY5YvCZnXhrLRwmBA==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/analytics-next": "^12.6.0",
+ "@atlaskit/ds-lib": "^9.0.0",
+ "@atlaskit/icon": "^38.3.0",
+ "@atlaskit/layering": "^6.1.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/popper": "^9.4.0",
+ "@atlaskit/primitives": "^23.0.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/react-select": "^4.13.0",
+ "@atlaskit/theme": "^28.2.0",
+ "@atlaskit/tokens": "^20.15.0",
+ "@atlaskit/top-layer": "^8.2.0",
+ "@atlaskit/visually-hidden": "^4.4.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^2.0.0",
+ "@popperjs/core": "^2.11.8",
+ "bind-event-listener": "^3.0.0",
+ "react-focus-lock": "^2.9.5",
+ "shallow-equal": "^3.1.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0",
+ "react-dom": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/select/node_modules/@atlaskit/analytics-next": {
+ "version": "12.6.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/analytics-next/-/analytics-next-12.6.0.tgz",
+ "integrity": "sha512-QFECDwLBbNx9IRsBQMiQlw6r/sx+DcVs9hkJxRgPe3yakTdPBZMzSqD0b4R2tsFNlNxSKSkeJCF92S20v7suqg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/analytics-next-stable-react-context": "1.0.1",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@babel/runtime": "^7.0.0",
+ "prop-types": "^15.5.10",
+ "use-memo-one": "^1.1.1"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0",
+ "react-dom": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/select/node_modules/@atlaskit/analytics-next/node_modules/@atlaskit/analytics-next-stable-react-context": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/@atlaskit/analytics-next-stable-react-context/-/analytics-next-stable-react-context-1.0.1.tgz",
+ "integrity": "sha512-iO6+hIp09dF4iAZQarVz3vKY1kM5Ij5CExYcK9jgc2q+OH8nv8n+BPFeJTdzGOGopmbUZn5Opj9pYQvge1Gr4Q==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "tslib": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0"
+ }
+ },
+ "node_modules/@atlaskit/select/node_modules/@atlaskit/analytics-next/node_modules/use-memo-one": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/use-memo-one/-/use-memo-one-1.1.3.tgz",
+ "integrity": "sha512-g66/K7ZQGYrI6dy8GLpVcMsBp4s17xNkYJVSMvTEevGy3nDxHOfE6z8BVE22+5G5x7t3+bhzrlTDB7ObrEE0cQ==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
+ }
+ },
+ "node_modules/@atlaskit/skeleton": {
+ "version": "4.4.4",
+ "resolved": "https://registry.npmjs.org/@atlaskit/skeleton/-/skeleton-4.4.4.tgz",
+ "integrity": "sha512-UGDE48LN0j14rIWuv/OJq5Q3gdPljrDm4NtUEfr8Lld6/x1MKB5OsXkmwT76L/w7tmdcVTJ/wXqTuPWdtwgYlw==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/interaction-context": "^4.1.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/tokens": "^20.0.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^1.0.2"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/skeleton/node_modules/@atlaskit/interaction-context": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/interaction-context/-/interaction-context-4.3.0.tgz",
+ "integrity": "sha512-F31jO2V5z68MEAsyFPCFo5/FoklA7qhBf/1sKBuYzNcSJfWHegjb4K7+g9H2HsAQMe8WnfcTysqYOIod8Iiuqw==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@babel/runtime": "^7.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/skeleton/node_modules/@compiled/react": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/@compiled/react/-/react-1.0.2.tgz",
+ "integrity": "sha512-xGOChqGDvoJON+1QOgV4cYmy1W3oonJw43TQ7KR8TuPTlIAHuFBgfckmyMPG4WppF0FYem518LZknySU0uQhlg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "csstype": "^3.2.3"
+ },
+ "peerDependencies": {
+ "react": ">=18.0.0"
+ }
+ },
+ "node_modules/@atlaskit/spinner": {
+ "version": "20.4.4",
+ "resolved": "https://registry.npmjs.org/@atlaskit/spinner/-/spinner-20.4.4.tgz",
+ "integrity": "sha512-8gotKIqhS1k6ULNniSNt6IKAIA3ofHJuiMUdURlTYQ6PP+dyMqUg5dIoeRyLk2VPiuBipSXCFIAiRbSnK3eABQ==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/interaction-context": "^4.1.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/tokens": "^20.0.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^1.0.2"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/spinner/node_modules/@atlaskit/interaction-context": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/interaction-context/-/interaction-context-4.3.0.tgz",
+ "integrity": "sha512-F31jO2V5z68MEAsyFPCFo5/FoklA7qhBf/1sKBuYzNcSJfWHegjb4K7+g9H2HsAQMe8WnfcTysqYOIod8Iiuqw==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@babel/runtime": "^7.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/spinner/node_modules/@compiled/react": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/@compiled/react/-/react-1.0.2.tgz",
+ "integrity": "sha512-xGOChqGDvoJON+1QOgV4cYmy1W3oonJw43TQ7KR8TuPTlIAHuFBgfckmyMPG4WppF0FYem518LZknySU0uQhlg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "csstype": "^3.2.3"
+ },
+ "peerDependencies": {
+ "react": ">=18.0.0"
+ }
+ },
+ "node_modules/@atlaskit/tabs": {
+ "version": "21.3.2",
+ "resolved": "https://registry.npmjs.org/@atlaskit/tabs/-/tabs-21.3.2.tgz",
+ "integrity": "sha512-etM9PzQ2OwE8Y8tQTT1yHvPLzPLrovmWgrt0zdCDwvyQrkgZouI2TTYhbPcbvHFerEA/0imEsmXCXJlnq9vG6w==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/analytics-next": "^12.6.0",
+ "@atlaskit/motion": "^10.0.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/primitives": "^23.0.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/tokens": "^20.15.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/tabs/node_modules/@atlaskit/analytics-next": {
+ "version": "12.6.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/analytics-next/-/analytics-next-12.6.0.tgz",
+ "integrity": "sha512-QFECDwLBbNx9IRsBQMiQlw6r/sx+DcVs9hkJxRgPe3yakTdPBZMzSqD0b4R2tsFNlNxSKSkeJCF92S20v7suqg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/analytics-next-stable-react-context": "1.0.1",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@babel/runtime": "^7.0.0",
+ "prop-types": "^15.5.10",
+ "use-memo-one": "^1.1.1"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0",
+ "react-dom": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/tabs/node_modules/@atlaskit/analytics-next/node_modules/@atlaskit/analytics-next-stable-react-context": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/@atlaskit/analytics-next-stable-react-context/-/analytics-next-stable-react-context-1.0.1.tgz",
+ "integrity": "sha512-iO6+hIp09dF4iAZQarVz3vKY1kM5Ij5CExYcK9jgc2q+OH8nv8n+BPFeJTdzGOGopmbUZn5Opj9pYQvge1Gr4Q==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "tslib": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0"
+ }
+ },
+ "node_modules/@atlaskit/tabs/node_modules/@atlaskit/analytics-next/node_modules/use-memo-one": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/use-memo-one/-/use-memo-one-1.1.3.tgz",
+ "integrity": "sha512-g66/K7ZQGYrI6dy8GLpVcMsBp4s17xNkYJVSMvTEevGy3nDxHOfE6z8BVE22+5G5x7t3+bhzrlTDB7ObrEE0cQ==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
+ }
+ },
+ "node_modules/@atlaskit/tag": {
+ "version": "17.1.5",
+ "resolved": "https://registry.npmjs.org/@atlaskit/tag/-/tag-17.1.5.tgz",
+ "integrity": "sha512-S+HU2xRXxg1/rWajOEBeoR2ro1nsgcvcvyKKMiDdRSs2CCF6vWM2y4wbNE5pQ1sDYPbqkjLpB3TPi667nLjkGA==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/analytics-next": "^12.6.0",
+ "@atlaskit/avatar": "^31.0.0",
+ "@atlaskit/css": "^1.1.0",
+ "@atlaskit/ds-lib": "^9.0.0",
+ "@atlaskit/icon": "^38.3.0",
+ "@atlaskit/link": "^5.1.0",
+ "@atlaskit/lozenge": "^17.0.0",
+ "@atlaskit/motion": "^10.0.0",
+ "@atlaskit/platform-feature-experiments": "^0.3.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/primitives": "^23.0.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/spinner": "^20.4.0",
+ "@atlaskit/teams-avatar": "^4.2.0",
+ "@atlaskit/tokens": "^20.15.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/tag-group": {
+ "version": "13.4.3",
+ "resolved": "https://registry.npmjs.org/@atlaskit/tag-group/-/tag-group-13.4.3.tgz",
+ "integrity": "sha512-AkX9oYhzVkdmCL/yv1vGZvv+6aC1wk3atQL41J8KiZ7RCkqUvgDhPdXWOyWnZ18AUMyi5Ido9ROW7+I2qYqFEw==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/motion": "^10.0.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^1.0.2"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/tag-group/node_modules/@compiled/react": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/@compiled/react/-/react-1.0.2.tgz",
+ "integrity": "sha512-xGOChqGDvoJON+1QOgV4cYmy1W3oonJw43TQ7KR8TuPTlIAHuFBgfckmyMPG4WppF0FYem518LZknySU0uQhlg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "csstype": "^3.2.3"
+ },
+ "peerDependencies": {
+ "react": ">=18.0.0"
+ }
+ },
+ "node_modules/@atlaskit/tag/node_modules/@atlaskit/analytics-next": {
+ "version": "12.6.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/analytics-next/-/analytics-next-12.6.0.tgz",
+ "integrity": "sha512-QFECDwLBbNx9IRsBQMiQlw6r/sx+DcVs9hkJxRgPe3yakTdPBZMzSqD0b4R2tsFNlNxSKSkeJCF92S20v7suqg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/analytics-next-stable-react-context": "1.0.1",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@babel/runtime": "^7.0.0",
+ "prop-types": "^15.5.10",
+ "use-memo-one": "^1.1.1"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0",
+ "react-dom": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/tag/node_modules/@atlaskit/analytics-next/node_modules/@atlaskit/analytics-next-stable-react-context": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/@atlaskit/analytics-next-stable-react-context/-/analytics-next-stable-react-context-1.0.1.tgz",
+ "integrity": "sha512-iO6+hIp09dF4iAZQarVz3vKY1kM5Ij5CExYcK9jgc2q+OH8nv8n+BPFeJTdzGOGopmbUZn5Opj9pYQvge1Gr4Q==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "tslib": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0"
+ }
+ },
+ "node_modules/@atlaskit/tag/node_modules/@atlaskit/analytics-next/node_modules/use-memo-one": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/use-memo-one/-/use-memo-one-1.1.3.tgz",
+ "integrity": "sha512-g66/K7ZQGYrI6dy8GLpVcMsBp4s17xNkYJVSMvTEevGy3nDxHOfE6z8BVE22+5G5x7t3+bhzrlTDB7ObrEE0cQ==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
+ }
+ },
+ "node_modules/@atlaskit/tag/node_modules/@atlaskit/platform-feature-experiments": {
+ "version": "0.3.2",
+ "resolved": "https://registry.npmjs.org/@atlaskit/platform-feature-experiments/-/platform-feature-experiments-0.3.2.tgz",
+ "integrity": "sha512-EdFY3b6muB7y1KyyZ+d2ovIFzW/ubc8Qw2oio/zfh6VhRHQ4tmCIX77CgFYURgbhtwu5THTyADE5N2OvMmtcFA==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/feature-gate-js-client": "^8.0.0",
+ "@atlaskit/react-ufo": "^8.3.0",
+ "@babel/runtime": "^7.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/tag/node_modules/@atlaskit/platform-feature-experiments/node_modules/@atlaskit/react-ufo": {
+ "version": "8.9.1",
+ "resolved": "https://registry.npmjs.org/@atlaskit/react-ufo/-/react-ufo-8.9.1.tgz",
+ "integrity": "sha512-xqT6rlxEkQLXkhhz7JzUaTmQCRvHdTSdfQ5TEF2/pl9MTH+qGAP+kpHW1Zs3UzbXjDSw/OhQpF+lQsE1UQ8AZw==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/atlassian-context": "^2.0.0",
+ "@atlaskit/browser-apis": "^1.2.0",
+ "@atlaskit/feature-gate-js-client": "^8.0.0",
+ "@atlaskit/interaction-context": "^4.3.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@babel/runtime": "^7.0.0",
+ "@opentelemetry/api": "^1.9.0",
+ "bind-event-listener": "^3.0.0",
+ "bowser-ultralight": "^1.0.6",
+ "uuid": "^11.1.1"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/tag/node_modules/@atlaskit/platform-feature-experiments/node_modules/@atlaskit/react-ufo/node_modules/@atlaskit/browser-apis": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/browser-apis/-/browser-apis-1.2.0.tgz",
+ "integrity": "sha512-SNwf6LGu1BjECz62iC/kIOwmtiJlz4cuf04OnVLlN8amEly+6NHIzZG+IU2Bbpa2vG7oVSj3nSy0gMm/7kqiuQ==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@babel/runtime": "^7.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/tag/node_modules/@atlaskit/platform-feature-experiments/node_modules/@atlaskit/react-ufo/node_modules/@atlaskit/interaction-context": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/interaction-context/-/interaction-context-4.3.0.tgz",
+ "integrity": "sha512-F31jO2V5z68MEAsyFPCFo5/FoklA7qhBf/1sKBuYzNcSJfWHegjb4K7+g9H2HsAQMe8WnfcTysqYOIod8Iiuqw==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@babel/runtime": "^7.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/teams-avatar": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/teams-avatar/-/teams-avatar-4.3.0.tgz",
+ "integrity": "sha512-cWF8pun8inihlXXJjy1YFCuBRQdbn89Q45ISe6P781m01qjwol78p2B32Sv5PIIGnfcbbuxkwr5JpNOg3lek3Q==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/avatar": "^31.0.0",
+ "@atlaskit/css": "^1.1.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/primitives": "^23.0.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/tokens": "^20.15.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.2.0"
+ }
+ },
+ "node_modules/@atlaskit/textarea": {
+ "version": "11.0.1",
+ "resolved": "https://registry.npmjs.org/@atlaskit/textarea/-/textarea-11.0.1.tgz",
+ "integrity": "sha512-HtqcY9wAAY9kYqgdLQ0NajQFTfJuiwHI26bmewHnx4/mhA3yAZGNKnuNvuiiP8VkcX2sCKbvUbQqsIWpeWkCTA==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/analytics-next": "^12.6.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/primitives": "^23.0.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/theme": "^28.2.0",
+ "@atlaskit/tokens": "^20.15.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/textarea/node_modules/@atlaskit/analytics-next": {
+ "version": "12.6.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/analytics-next/-/analytics-next-12.6.0.tgz",
+ "integrity": "sha512-QFECDwLBbNx9IRsBQMiQlw6r/sx+DcVs9hkJxRgPe3yakTdPBZMzSqD0b4R2tsFNlNxSKSkeJCF92S20v7suqg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/analytics-next-stable-react-context": "1.0.1",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@babel/runtime": "^7.0.0",
+ "prop-types": "^15.5.10",
+ "use-memo-one": "^1.1.1"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0",
+ "react-dom": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/textarea/node_modules/@atlaskit/analytics-next/node_modules/@atlaskit/analytics-next-stable-react-context": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/@atlaskit/analytics-next-stable-react-context/-/analytics-next-stable-react-context-1.0.1.tgz",
+ "integrity": "sha512-iO6+hIp09dF4iAZQarVz3vKY1kM5Ij5CExYcK9jgc2q+OH8nv8n+BPFeJTdzGOGopmbUZn5Opj9pYQvge1Gr4Q==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "tslib": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0"
+ }
+ },
+ "node_modules/@atlaskit/textarea/node_modules/@atlaskit/analytics-next/node_modules/use-memo-one": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/use-memo-one/-/use-memo-one-1.1.3.tgz",
+ "integrity": "sha512-g66/K7ZQGYrI6dy8GLpVcMsBp4s17xNkYJVSMvTEevGy3nDxHOfE6z8BVE22+5G5x7t3+bhzrlTDB7ObrEE0cQ==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
+ }
+ },
+ "node_modules/@atlaskit/textfield": {
+ "version": "11.0.1",
+ "resolved": "https://registry.npmjs.org/@atlaskit/textfield/-/textfield-11.0.1.tgz",
+ "integrity": "sha512-r3n6zmOWo21HL/XgVusJFEE8d4wz+bi2CO4oWEqijDcwNwgq21/b0SacEaRQdUQ+slm9AvRvcqbb3bxT73xboQ==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/analytics-next": "^12.6.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/tokens": "^20.15.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/textfield/node_modules/@atlaskit/analytics-next": {
+ "version": "12.6.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/analytics-next/-/analytics-next-12.6.0.tgz",
+ "integrity": "sha512-QFECDwLBbNx9IRsBQMiQlw6r/sx+DcVs9hkJxRgPe3yakTdPBZMzSqD0b4R2tsFNlNxSKSkeJCF92S20v7suqg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/analytics-next-stable-react-context": "1.0.1",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@babel/runtime": "^7.0.0",
+ "prop-types": "^15.5.10",
+ "use-memo-one": "^1.1.1"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0",
+ "react-dom": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/textfield/node_modules/@atlaskit/analytics-next/node_modules/@atlaskit/analytics-next-stable-react-context": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/@atlaskit/analytics-next-stable-react-context/-/analytics-next-stable-react-context-1.0.1.tgz",
+ "integrity": "sha512-iO6+hIp09dF4iAZQarVz3vKY1kM5Ij5CExYcK9jgc2q+OH8nv8n+BPFeJTdzGOGopmbUZn5Opj9pYQvge1Gr4Q==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "tslib": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0"
+ }
+ },
+ "node_modules/@atlaskit/textfield/node_modules/@atlaskit/analytics-next/node_modules/use-memo-one": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/use-memo-one/-/use-memo-one-1.1.3.tgz",
+ "integrity": "sha512-g66/K7ZQGYrI6dy8GLpVcMsBp4s17xNkYJVSMvTEevGy3nDxHOfE6z8BVE22+5G5x7t3+bhzrlTDB7ObrEE0cQ==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
+ }
+ },
+ "node_modules/@atlaskit/theme": {
+ "version": "28.2.6",
+ "resolved": "https://registry.npmjs.org/@atlaskit/theme/-/theme-28.2.6.tgz",
+ "integrity": "sha512-ZdksHEUIYhrq5RJDe2n4Tl9qZPl1TAKFmib1utySTAvoy3fny7dn+SiyEU/p+Iufr728wwi5hNvq1XazBEAx5g==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/ds-lib": "^9.0.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/tokens": "^20.14.0",
+ "@babel/runtime": "^7.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/tile": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/tile/-/tile-5.0.0.tgz",
+ "integrity": "sha512-LZHzXCufzP1GlYhFtM2c1zuchdtvsMMwVKG3paC9Nf9MPlNsMbJH7RfFb2iuRc5jteD3Q5mBBNuHLsCgYmvf5A==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/skeleton": "^4.4.0",
+ "@atlaskit/tokens": "^20.0.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^1.0.2",
+ "bind-event-listener": "^3.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/tile/node_modules/@compiled/react": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/@compiled/react/-/react-1.0.2.tgz",
+ "integrity": "sha512-xGOChqGDvoJON+1QOgV4cYmy1W3oonJw43TQ7KR8TuPTlIAHuFBgfckmyMPG4WppF0FYem518LZknySU0uQhlg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "csstype": "^3.2.3"
+ },
+ "peerDependencies": {
+ "react": ">=18.0.0"
+ }
+ },
+ "node_modules/@atlaskit/tmp-editor-statsig": {
+ "version": "147.1.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/tmp-editor-statsig/-/tmp-editor-statsig-147.1.0.tgz",
+ "integrity": "sha512-h0fMa/N3yQIEwXUWQN9ghsf516gKqqfvDJDSOLY/gI2cbgGq1KTWKp8A8bhrtZY45+kyhrJftsnExCz6oTL6BA==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/feature-gate-js-client": "^6.0.0",
+ "@atlaskit/platform-feature-flags": "^2.1.0",
+ "@atlaskit/react-ufo": "^7.5.0",
+ "@babel/runtime": "^7.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.2.0"
+ }
+ },
+ "node_modules/@atlaskit/tmp-editor-statsig/node_modules/@atlaskit/atlassian-context": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/atlassian-context/-/atlassian-context-1.2.0.tgz",
+ "integrity": "sha512-xM3V7efLG7LTeG/acX8k7N7QJ4929TMXg3Pv5eBAhIrE2o5YrE7wBfnkCDgNTWRu1KY7IJOGbz4xmF+AZ0z7fw==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@babel/runtime": "^7.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/tmp-editor-statsig/node_modules/@atlaskit/feature-gate-js-client": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/@atlaskit/feature-gate-js-client/-/feature-gate-js-client-6.0.2.tgz",
+ "integrity": "sha512-x4TKOAhM9Ejb6e2CA3OrIMv+T6+FdPSgEPH+yzB+k/A5OOHBaoKLzcG9Fs1mBGp/fISiD966xmdPdYb1RcMPDw==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/atlassian-context": "^1.1.0",
+ "@babel/runtime": "^7.0.0",
+ "@statsig/client-core": "3.30.2",
+ "@statsig/js-client": "3.30.2",
+ "eventemitter3": "^4.0.0"
+ }
+ },
+ "node_modules/@atlaskit/tmp-editor-statsig/node_modules/@atlaskit/react-ufo": {
+ "version": "7.13.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/react-ufo/-/react-ufo-7.13.0.tgz",
+ "integrity": "sha512-8uVMq1RWtzxiwP8ocq7ARkdkjwDAiGXzARcckZ6p5rB/yKKy3lKq96VkFwrgbCapJ0u+Zt6Mr3GTyiE+9QFZAA==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/atlassian-context": "^1.2.0",
+ "@atlaskit/browser-apis": "^1.2.0",
+ "@atlaskit/feature-gate-js-client": "^6.0.0",
+ "@atlaskit/interaction-context": "^4.1.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@babel/runtime": "^7.0.0",
+ "@opentelemetry/api": "^1.9.0",
+ "bind-event-listener": "^3.0.0",
+ "bowser-ultralight": "^1.0.6",
+ "scheduler": "0.23.2",
+ "uuid": "^11.1.1"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/tmp-editor-statsig/node_modules/@atlaskit/react-ufo/node_modules/@atlaskit/browser-apis": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/browser-apis/-/browser-apis-1.2.0.tgz",
+ "integrity": "sha512-SNwf6LGu1BjECz62iC/kIOwmtiJlz4cuf04OnVLlN8amEly+6NHIzZG+IU2Bbpa2vG7oVSj3nSy0gMm/7kqiuQ==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@babel/runtime": "^7.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/tmp-editor-statsig/node_modules/@atlaskit/react-ufo/node_modules/@atlaskit/interaction-context": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/interaction-context/-/interaction-context-4.3.0.tgz",
+ "integrity": "sha512-F31jO2V5z68MEAsyFPCFo5/FoklA7qhBf/1sKBuYzNcSJfWHegjb4K7+g9H2HsAQMe8WnfcTysqYOIod8Iiuqw==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@babel/runtime": "^7.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/toggle": {
+ "version": "17.3.7",
+ "resolved": "https://registry.npmjs.org/@atlaskit/toggle/-/toggle-17.3.7.tgz",
+ "integrity": "sha512-5TjrGm0JGnTmdPrIFbJOL8GWP9+mCgwOxUEP8YwUBGJMg4okx1VDa5uqbvttaSS8+HvkNpMlFnhoxB0gkVaaWw==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/analytics-next": "^12.6.0",
+ "@atlaskit/css": "^1.1.0",
+ "@atlaskit/ds-lib": "^9.0.0",
+ "@atlaskit/icon": "^38.3.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/primitives": "^23.0.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/spinner": "^20.4.0",
+ "@atlaskit/tokens": "^20.15.0",
+ "@atlaskit/visually-hidden": "^4.4.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^2.0.0",
+ "bind-event-listener": "^3.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/toggle/node_modules/@atlaskit/analytics-next": {
+ "version": "12.6.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/analytics-next/-/analytics-next-12.6.0.tgz",
+ "integrity": "sha512-QFECDwLBbNx9IRsBQMiQlw6r/sx+DcVs9hkJxRgPe3yakTdPBZMzSqD0b4R2tsFNlNxSKSkeJCF92S20v7suqg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/analytics-next-stable-react-context": "1.0.1",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@babel/runtime": "^7.0.0",
+ "prop-types": "^15.5.10",
+ "use-memo-one": "^1.1.1"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0",
+ "react-dom": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/toggle/node_modules/@atlaskit/analytics-next/node_modules/@atlaskit/analytics-next-stable-react-context": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/@atlaskit/analytics-next-stable-react-context/-/analytics-next-stable-react-context-1.0.1.tgz",
+ "integrity": "sha512-iO6+hIp09dF4iAZQarVz3vKY1kM5Ij5CExYcK9jgc2q+OH8nv8n+BPFeJTdzGOGopmbUZn5Opj9pYQvge1Gr4Q==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "tslib": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0"
+ }
+ },
+ "node_modules/@atlaskit/toggle/node_modules/@atlaskit/analytics-next/node_modules/use-memo-one": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/use-memo-one/-/use-memo-one-1.1.3.tgz",
+ "integrity": "sha512-g66/K7ZQGYrI6dy8GLpVcMsBp4s17xNkYJVSMvTEevGy3nDxHOfE6z8BVE22+5G5x7t3+bhzrlTDB7ObrEE0cQ==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
+ }
+ },
+ "node_modules/@atlaskit/tokens": {
+ "version": "20.15.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/tokens/-/tokens-20.15.0.tgz",
+ "integrity": "sha512-G+jxuBsAUXdJIELgU0Juf2lplZlUCU0DnSnmpD4vLbRAMwKF1XCAWKlIj1AO+wl7dlxqUiBOSs1RIt8c+DGdfQ==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/ds-lib": "^9.0.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@babel/runtime": "^7.0.0",
+ "@babel/traverse": "^7.23.2",
+ "@babel/types": "^7.20.0",
+ "bind-event-listener": "^3.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/tooltip": {
+ "version": "24.4.8",
+ "resolved": "https://registry.npmjs.org/@atlaskit/tooltip/-/tooltip-24.4.8.tgz",
+ "integrity": "sha512-mHZrIFGc28ECBdOhw70pSD+0MyfrzGAEABei8tztXb9VuIEa3BNUPofvP1ZRZFGgOLDA1hFQoIxXdwpPyV9akg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/analytics-next": "^12.6.0",
+ "@atlaskit/ds-lib": "^9.0.0",
+ "@atlaskit/layering": "^6.1.0",
+ "@atlaskit/motion": "^10.0.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/popper": "^9.4.0",
+ "@atlaskit/portal": "^7.1.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/theme": "^28.2.0",
+ "@atlaskit/tokens": "^20.14.0",
+ "@atlaskit/top-layer": "^8.1.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^1.0.2",
+ "bind-event-listener": "^3.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0",
+ "react-dom": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/tooltip/node_modules/@atlaskit/analytics-next": {
+ "version": "12.6.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/analytics-next/-/analytics-next-12.6.0.tgz",
+ "integrity": "sha512-QFECDwLBbNx9IRsBQMiQlw6r/sx+DcVs9hkJxRgPe3yakTdPBZMzSqD0b4R2tsFNlNxSKSkeJCF92S20v7suqg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/analytics-next-stable-react-context": "1.0.1",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@babel/runtime": "^7.0.0",
+ "prop-types": "^15.5.10",
+ "use-memo-one": "^1.1.1"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0",
+ "react-dom": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/tooltip/node_modules/@atlaskit/analytics-next/node_modules/@atlaskit/analytics-next-stable-react-context": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/@atlaskit/analytics-next-stable-react-context/-/analytics-next-stable-react-context-1.0.1.tgz",
+ "integrity": "sha512-iO6+hIp09dF4iAZQarVz3vKY1kM5Ij5CExYcK9jgc2q+OH8nv8n+BPFeJTdzGOGopmbUZn5Opj9pYQvge1Gr4Q==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "tslib": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0"
+ }
+ },
+ "node_modules/@atlaskit/tooltip/node_modules/@atlaskit/analytics-next/node_modules/use-memo-one": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/use-memo-one/-/use-memo-one-1.1.3.tgz",
+ "integrity": "sha512-g66/K7ZQGYrI6dy8GLpVcMsBp4s17xNkYJVSMvTEevGy3nDxHOfE6z8BVE22+5G5x7t3+bhzrlTDB7ObrEE0cQ==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
+ }
+ },
+ "node_modules/@atlaskit/tooltip/node_modules/@atlaskit/portal": {
+ "version": "7.1.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/portal/-/portal-7.1.0.tgz",
+ "integrity": "sha512-LSwuHoqPJTwOzJJO/XyE95mlSvaQZ33QH5kLY36LaQoNqkSpoOMYQepJ8CeK6ZH7k516WOSISgc3E/3At7YDBA==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/app-provider": "^8.2.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/theme": "^28.2.0",
+ "@babel/runtime": "^7.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0",
+ "react-dom": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/tooltip/node_modules/@compiled/react": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/@compiled/react/-/react-1.0.2.tgz",
+ "integrity": "sha512-xGOChqGDvoJON+1QOgV4cYmy1W3oonJw43TQ7KR8TuPTlIAHuFBgfckmyMPG4WppF0FYem518LZknySU0uQhlg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "csstype": "^3.2.3"
+ },
+ "peerDependencies": {
+ "react": ">=18.0.0"
+ }
+ },
+ "node_modules/@atlaskit/top-layer": {
+ "version": "8.3.2",
+ "resolved": "https://registry.npmjs.org/@atlaskit/top-layer/-/top-layer-8.3.2.tgz",
+ "integrity": "sha512-5CHhPPjxfUi5m5ssxR2ROylbgGmG1zsDbf5EpSaV2U8QJYVTIvJ5Y6OGgUnV5TSYUHDvRV5hsGHDAeyRW7JdEg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/browser-apis": "^1.2.0",
+ "@atlaskit/css": "^1.1.0",
+ "@atlaskit/ds-lib": "^9.0.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/pragmatic-drag-and-drop": "^4.0.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/tokens": "^20.15.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^2.0.0",
+ "bind-event-listener": "^3.0.0",
+ "raf-schd": "^4.0.3",
+ "tiny-invariant": "^1.2.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0",
+ "react-dom": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/top-layer/node_modules/@atlaskit/browser-apis": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/browser-apis/-/browser-apis-1.2.0.tgz",
+ "integrity": "sha512-SNwf6LGu1BjECz62iC/kIOwmtiJlz4cuf04OnVLlN8amEly+6NHIzZG+IU2Bbpa2vG7oVSj3nSy0gMm/7kqiuQ==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@babel/runtime": "^7.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0"
+ }
+ },
+ "node_modules/@atlaskit/visually-hidden": {
+ "version": "4.4.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/visually-hidden/-/visually-hidden-4.4.0.tgz",
+ "integrity": "sha512-pWru1P8dYWZxmTntklTf8Bi2CHUFLLHpG2RxO7bMzVAV47ebAre4jnQCeUyxwJHe4n0EynaFOD4fTIpXf5+rqw==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^1.0.2"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@atlaskit/visually-hidden/node_modules/@compiled/react": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/@compiled/react/-/react-1.0.2.tgz",
+ "integrity": "sha512-xGOChqGDvoJON+1QOgV4cYmy1W3oonJw43TQ7KR8TuPTlIAHuFBgfckmyMPG4WppF0FYem518LZknySU0uQhlg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "csstype": "^3.2.3"
+ },
+ "peerDependencies": {
+ "react": ">=18.0.0"
}
},
"node_modules/@babel/code-frame": {
- "version": "7.29.0",
- "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.0.tgz",
- "integrity": "sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw==",
+ "version": "7.29.17",
+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.17.tgz",
+ "integrity": "sha512-IdlVpcDeoDATtN2cfmnVk0A4XJKhu7SlpGuSaiOFdko09YC1MD07WokWUSEdw5R2o4o8VObX2LzViQW6VXnzkA==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-validator-identifier": "^7.29.17",
+ "js-tokens": "^4.0.0",
+ "picocolors": "^1.1.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/generator": {
+ "version": "7.29.17",
+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.17.tgz",
+ "integrity": "sha512-xjNUVINWex7s4U0vESYwa8ChCBnmvhCQ6nkAdnhM8WYPlhXvU9D9fPurOSYQLV4FwcNXacDkN/MWIPNHsTI2OA==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.29.17",
+ "@babel/types": "^7.29.17",
+ "@jridgewell/gen-mapping": "^0.3.12",
+ "@jridgewell/trace-mapping": "^0.3.28",
+ "jsesc": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-globals": {
+ "version": "7.29.17",
+ "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.29.17.tgz",
+ "integrity": "sha512-SeQUwFlH8hH1vjUmBFeqwxt6Nsjp01MKEZOtZPJ86lpA4GBdb/o0dShjC+Awf7v74/+84KIL1RiJ4TOJj6gU+A==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-module-imports": {
+ "version": "7.29.17",
+ "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.29.17.tgz",
+ "integrity": "sha512-bLxkfvUEHeWShbadKTm7EfDCkosXZh6PjWEa9bYiCuob24c0nm388ara2Hz6KisGaXe+XCsi6VyfJNSJjeUUwg==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/traverse": "^7.29.17",
+ "@babel/types": "^7.29.17"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-string-parser": {
+ "version": "7.29.17",
+ "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.17.tgz",
+ "integrity": "sha512-iY5lvqFhfgMXp4o4zWads4NvQZXizBxzCoADPOgFMcMwk1XefAdBJbc9i1y94aflY57lokjOjRTa3AOOW9R7BQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-validator-identifier": {
+ "version": "7.29.17",
+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.17.tgz",
+ "integrity": "sha512-AG+olLB+teKhkQ2WYJeaZqJwNLjtWTz1waQIP/tEYITzVzpdHLP7IXx2c/bH2JTsNCgvWlkqdCv91xcb8lul8Q==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/parser": {
+ "version": "7.29.17",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.17.tgz",
+ "integrity": "sha512-I+0olVqWMm9bimQJc/5B3jn1nivNDXtnMtDVs07XdHzZLcWa2N/mlCTPmAsQg95QcKoXSuFD2Yz4fwdtoyk7DQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.29.17"
+ },
+ "bin": {
+ "parser": "bin/babel-parser.js"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@babel/runtime": {
+ "version": "7.29.17",
+ "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.29.17.tgz",
+ "integrity": "sha512-CvlZdpED5dsu21yK0DfpXksJWt1zeW09lY49hp7P9cA5Qedx/QkwEs1PfluSJjijH9i94oT9LmtgGWlPY8ISzw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/template": {
+ "version": "7.29.17",
+ "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.29.17.tgz",
+ "integrity": "sha512-D4nOLKOzIBwn7/Z78h3UPEwzFObmPVTukBJ9+63BijgMVeLj6mQ77FJb6YCZ4QBo6VjAk/yj4QnpKusTcBy6vA==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.29.17",
+ "@babel/parser": "^7.29.17",
+ "@babel/types": "^7.29.17"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/traverse": {
+ "version": "7.29.17",
+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.17.tgz",
+ "integrity": "sha512-q+CnfQcmNfDdOUARkt9FWtdR0HPOCcyQBj1Z7l2SOpFIfUB/XI3dXS0B5UOlZWwQCun80xVhgcv4ip6w128u9g==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.29.17",
+ "@babel/generator": "^7.29.17",
+ "@babel/helper-globals": "^7.29.17",
+ "@babel/parser": "^7.29.17",
+ "@babel/template": "^7.29.17",
+ "@babel/types": "^7.29.17",
+ "debug": "^4.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/types": {
+ "version": "7.29.17",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.17.tgz",
+ "integrity": "sha512-kzo3lZUbI0gARA4QvhmOTH/aws2SrZ880ECQRIjPPSrdfBM0bZCkj1U7UN2fB0GNeXayqCiLVXa2+1jAhn377Q==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-string-parser": "^7.29.17",
+ "@babel/helper-validator-identifier": "^7.29.17"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@compiled/react": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/@compiled/react/-/react-2.0.0.tgz",
+ "integrity": "sha512-dYLzz9K1tlDklC9/00c0b0HdyL3JPYyW42CwiPPrufS083ZKd6kgq6wfyh6M2VvsoVVQWl+e1Zag4qS+lO2yYA==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "csstype": "^3.2.3"
+ },
+ "peerDependencies": {
+ "react": ">=18.0.0"
+ }
+ },
+ "node_modules/@emotion/babel-plugin": {
+ "version": "11.13.5",
+ "resolved": "https://registry.npmjs.org/@emotion/babel-plugin/-/babel-plugin-11.13.5.tgz",
+ "integrity": "sha512-pxHCpT2ex+0q+HH91/zsdHkw/lXd468DIN2zvfvLtPKLLMo6gQj7oLObq8PhkrxOZb/gGCq03S3Z7PDhS8pduQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-module-imports": "^7.16.7",
+ "@babel/runtime": "^7.18.3",
+ "@emotion/hash": "^0.9.2",
+ "@emotion/memoize": "^0.9.0",
+ "@emotion/serialize": "^1.3.3",
+ "babel-plugin-macros": "^3.1.0",
+ "convert-source-map": "^1.5.0",
+ "escape-string-regexp": "^4.0.0",
+ "find-root": "^1.1.0",
+ "source-map": "^0.5.7",
+ "stylis": "4.2.0"
+ }
+ },
+ "node_modules/@emotion/babel-plugin/node_modules/escape-string-regexp": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
+ "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/@emotion/cache": {
+ "version": "11.14.0",
+ "resolved": "https://registry.npmjs.org/@emotion/cache/-/cache-11.14.0.tgz",
+ "integrity": "sha512-L/B1lc/TViYk4DcpGxtAVbx0ZyiKM5ktoIyafGkH6zg/tj+mA+NE//aPYKG0k8kCHSHVJrpLpcAlOBEXQ3SavA==",
+ "license": "MIT",
+ "dependencies": {
+ "@emotion/memoize": "^0.9.0",
+ "@emotion/sheet": "^1.4.0",
+ "@emotion/utils": "^1.4.2",
+ "@emotion/weak-memoize": "^0.4.0",
+ "stylis": "4.2.0"
+ }
+ },
+ "node_modules/@emotion/hash": {
+ "version": "0.9.2",
+ "resolved": "https://registry.npmjs.org/@emotion/hash/-/hash-0.9.2.tgz",
+ "integrity": "sha512-MyqliTZGuOm3+5ZRSaaBGP3USLw6+EGykkwZns2EPC5g8jJ4z9OrdZY9apkl3+UP9+sdz76YYkwCKP5gh8iY3g==",
+ "license": "MIT"
+ },
+ "node_modules/@emotion/memoize": {
+ "version": "0.9.0",
+ "resolved": "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.9.0.tgz",
+ "integrity": "sha512-30FAj7/EoJ5mwVPOWhAyCX+FPfMDrVecJAM+Iw9NRoSl4BBAQeqj4cApHHUXOVvIPgLVDsCFoz/hGD+5QQD1GQ==",
+ "license": "MIT"
+ },
+ "node_modules/@emotion/react": {
+ "version": "11.14.0",
+ "resolved": "https://registry.npmjs.org/@emotion/react/-/react-11.14.0.tgz",
+ "integrity": "sha512-O000MLDBDdk/EohJPFUqvnp4qnHeYkVP5B0xEG0D/L7cOKP9kefu2DXn8dj74cQfsEzUqh+sr1RzFqiL1o+PpA==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.18.3",
+ "@emotion/babel-plugin": "^11.13.5",
+ "@emotion/cache": "^11.14.0",
+ "@emotion/serialize": "^1.3.3",
+ "@emotion/use-insertion-effect-with-fallbacks": "^1.2.0",
+ "@emotion/utils": "^1.4.2",
+ "@emotion/weak-memoize": "^0.4.0",
+ "hoist-non-react-statics": "^3.3.1"
+ },
+ "peerDependencies": {
+ "react": ">=16.8.0"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@emotion/serialize": {
+ "version": "1.3.3",
+ "resolved": "https://registry.npmjs.org/@emotion/serialize/-/serialize-1.3.3.tgz",
+ "integrity": "sha512-EISGqt7sSNWHGI76hC7x1CksiXPahbxEOrC5RjmFRJTqLyEK9/9hZvBbiYn70dw4wuwMKiEMCUlR6ZXTSWQqxA==",
+ "license": "MIT",
+ "dependencies": {
+ "@emotion/hash": "^0.9.2",
+ "@emotion/memoize": "^0.9.0",
+ "@emotion/unitless": "^0.10.0",
+ "@emotion/utils": "^1.4.2",
+ "csstype": "^3.0.2"
+ }
+ },
+ "node_modules/@emotion/sheet": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/@emotion/sheet/-/sheet-1.4.0.tgz",
+ "integrity": "sha512-fTBW9/8r2w3dXWYM4HCB1Rdp8NLibOw2+XELH5m5+AkWiL/KqYX6dc0kKYlaYyKjrQ6ds33MCdMPEwgs2z1rqg==",
+ "license": "MIT"
+ },
+ "node_modules/@emotion/unitless": {
+ "version": "0.10.0",
+ "resolved": "https://registry.npmjs.org/@emotion/unitless/-/unitless-0.10.0.tgz",
+ "integrity": "sha512-dFoMUuQA20zvtVTuxZww6OHoJYgrzfKM1t52mVySDJnMSEa08ruEvdYQbhvyu6soU+NeLVd3yKfTfT0NeV6qGg==",
+ "license": "MIT"
+ },
+ "node_modules/@emotion/use-insertion-effect-with-fallbacks": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/@emotion/use-insertion-effect-with-fallbacks/-/use-insertion-effect-with-fallbacks-1.2.0.tgz",
+ "integrity": "sha512-yJMtVdH59sxi/aVJBpk9FQq+OR8ll5GT8oWd57UpeaKEVGab41JWaCFA7FRLoMLloOZF/c/wsPoe+bfGmRKgDg==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": ">=16.8.0"
+ }
+ },
+ "node_modules/@emotion/utils": {
+ "version": "1.4.2",
+ "resolved": "https://registry.npmjs.org/@emotion/utils/-/utils-1.4.2.tgz",
+ "integrity": "sha512-3vLclRofFziIa3J2wDh9jjbkUz9qk5Vi3IZ/FSTKViB0k+ef0fPV7dYrUIugbgupYDx7v9ud/SjrtEP8Y4xLoA==",
+ "license": "MIT"
+ },
+ "node_modules/@emotion/weak-memoize": {
+ "version": "0.4.0",
+ "resolved": "https://registry.npmjs.org/@emotion/weak-memoize/-/weak-memoize-0.4.0.tgz",
+ "integrity": "sha512-snKqtPW01tN0ui7yu9rGv69aJXr/a/Ywvl11sUjNtEcRc+ng/mQriFL0wLXMef74iHa/EkftbDzU9F8iFbH+zg==",
+ "license": "MIT"
+ },
+ "node_modules/@floating-ui/core": {
+ "version": "1.8.0",
+ "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.8.0.tgz",
+ "integrity": "sha512-0CIZ5itps/8x7BG8dEIhs53BvCUH2PCoogtakwRTut+Arm58sJooJ0AuZhLw2HJYIR5cMLNPBSS728sPho2khQ==",
"license": "MIT",
"dependencies": {
- "@babel/helper-validator-identifier": "^7.28.5",
- "js-tokens": "^4.0.0",
- "picocolors": "^1.1.1"
- },
- "engines": {
- "node": ">=6.9.0"
+ "@floating-ui/utils": "^0.2.12"
}
},
- "node_modules/@babel/helper-validator-identifier": {
- "version": "7.28.5",
- "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz",
- "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==",
+ "node_modules/@floating-ui/dom": {
+ "version": "1.8.0",
+ "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.8.0.tgz",
+ "integrity": "sha512-yXSrzeHZBTZadLOlfyhCkJHNeLJnHRnRInwdZ40L7ZiaAtrBwoYlsDrX3v5zB1Utk7CLfzcOVnVVWoXEky7Ceg==",
"license": "MIT",
- "engines": {
- "node": ">=6.9.0"
+ "dependencies": {
+ "@floating-ui/core": "^1.8.0",
+ "@floating-ui/utils": "^0.2.12"
}
},
+ "node_modules/@floating-ui/utils": {
+ "version": "0.2.12",
+ "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.12.tgz",
+ "integrity": "sha512-HpCo8tmWzLVad5s2d19EhAz5zqrrQ6s69qd6moPMQvkOuSwDT1YgRfWSVuc4ennqrgv3OHppiOGMQ7oC13yIww==",
+ "license": "MIT"
+ },
"node_modules/@forge/api": {
"version": "7.2.2",
"resolved": "https://registry.npmjs.org/@forge/api/-/api-7.2.2.tgz",
@@ -56,6 +3254,142 @@
"tslib": "^2.6.2"
}
},
+ "node_modules/@forge/bridge": {
+ "version": "7.4.0",
+ "resolved": "https://registry.npmjs.org/@forge/bridge/-/bridge-7.4.0.tgz",
+ "integrity": "sha512-sCPLCJ1mC9al3np1OUZuopxZep2vbjsHpIbeiUfJfr4inc0oKu/Cp8+31byLI30PqhqNVOgs0BV5NvduoxtHrQ==",
+ "license": "SEE LICENSE IN LICENSE.txt",
+ "dependencies": {
+ "@atlaskit/adf-schema": "^56.7.0",
+ "@atlaskit/tokens": "^1.58.0",
+ "@forge/egress": "^3.0.1",
+ "@forge/i18n": "1.0.2",
+ "@forge/manifest": "13.9.1",
+ "@forge/resolver": "2.0.2",
+ "@types/history": "^4.7.11",
+ "@types/iframe-resizer": "^3.5.8",
+ "iframe-resizer": "^4.4.5"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@forge/bridge/node_modules/@atlaskit/ds-lib": {
+ "version": "2.7.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/ds-lib/-/ds-lib-2.7.0.tgz",
+ "integrity": "sha512-+U4aPE2dBRFUBYWCM9vkrwJGrLAYVcK30ZpEiQDNpM2D7K41223TfEijC8azaN4VM3tsCgwSKBWwniloNxqYbA==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/platform-feature-flags": "^0.3.0",
+ "@babel/runtime": "^7.0.0",
+ "bind-event-listener": "^3.0.0",
+ "react-uid": "^2.2.0"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
+ }
+ },
+ "node_modules/@forge/bridge/node_modules/@atlaskit/platform-feature-flags": {
+ "version": "0.3.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/platform-feature-flags/-/platform-feature-flags-0.3.0.tgz",
+ "integrity": "sha512-/0u5fFJ0Rw2j4M5wzsXgaHO6Ey12oekPCDTRvmmAIp4GO9T2Swbl80bavLAPSOmSHMhHTSuvRxiJveZXfQ21IQ==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@babel/runtime": "^7.0.0"
+ }
+ },
+ "node_modules/@forge/bridge/node_modules/@atlaskit/tokens": {
+ "version": "1.61.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/tokens/-/tokens-1.61.0.tgz",
+ "integrity": "sha512-gRkBDZOaQffJHg9g+hYFgPjQ0Hz4XIDaK5WEttIGyhi2USsGsvDvUeED8liqcQNwssH/5UFxIFp3FmEwo0DoFA==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/ds-lib": "^2.6.0",
+ "@atlaskit/platform-feature-flags": "^0.3.0",
+ "@babel/runtime": "^7.0.0",
+ "@babel/traverse": "^7.23.2",
+ "@babel/types": "^7.20.0",
+ "bind-event-listener": "^3.0.0"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
+ }
+ },
+ "node_modules/@forge/bridge/node_modules/@forge/egress": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/@forge/egress/-/egress-3.0.1.tgz",
+ "integrity": "sha512-G32D+jtr9P6x5Lgikcf6P7oBIguFID89nUDoCHpTwk7dkySEBTQZ5mHUm1Til4/K6M0NY1gxAL0ULm0X6gqJiA==",
+ "license": "SEE LICENSE IN LICENSE.txt",
+ "peerDependencies": {
+ "typescript": ">=5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@forge/bridge/node_modules/@forge/i18n": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/@forge/i18n/-/i18n-1.0.2.tgz",
+ "integrity": "sha512-Bp7bnyH26yg4uJ84KhLwHXpi0Gc1BKx7AaJO67GvVahlHl8YCDH/ePb0KH77IOb9K/yOmsjaJJ2vK3wY/c/p3A==",
+ "license": "SEE LICENSE IN LICENSE.txt",
+ "dependencies": {
+ "lodash": "^4.18.1"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@forge/bridge/node_modules/@forge/manifest": {
+ "version": "13.9.1",
+ "resolved": "https://registry.npmjs.org/@forge/manifest/-/manifest-13.9.1.tgz",
+ "integrity": "sha512-W2Jh1EtqAO6djKMntTFrhAcCpXbL4o7UwyD6I6Ffro4M3nSxFW0qFJpOmcw5FGF+x7fKEbcH9OW7efP1Plra+Q==",
+ "license": "SEE LICENSE IN LICENSE.txt",
+ "dependencies": {
+ "@forge/i18n": "1.0.2",
+ "@sentry/node": "7.106.0",
+ "ajv": "^8.18.0",
+ "ajv-formats": "2.1.1",
+ "cheerio": "^1.2.0",
+ "glob": "^13.0.0",
+ "lodash": "^4.18.1",
+ "mime-types": "^2.1.35",
+ "yaml": "^2.3.4"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@forge/bridge/node_modules/@forge/resolver": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/@forge/resolver/-/resolver-2.0.2.tgz",
+ "integrity": "sha512-LIAW/lS/1prKWhO3KPj9uaOSIvXL8Sv0vFHuW6yEHKRcAVF8vt7qDDVmkQwAsnx74QtRywDzN7UZuzeNKqhq0g==",
+ "license": "SEE LICENSE IN LICENSE.txt",
+ "peerDependencies": {
+ "typescript": ">=5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
"node_modules/@forge/egress": {
"version": "2.3.2",
"resolved": "https://registry.npmjs.org/@forge/egress/-/egress-2.3.2.tgz",
@@ -88,6 +3422,424 @@
"yaml": "^2.3.4"
}
},
+ "node_modules/@forge/react": {
+ "version": "12.6.0",
+ "resolved": "https://registry.npmjs.org/@forge/react/-/react-12.6.0.tgz",
+ "integrity": "sha512-MP+SOTcs/t83Vlb+bEiqKQx/knlLfJvVqoh/0edO+wFDZQzROwhAOoByCZ471Fl7nsa+YFqu1crR2wE117v42g==",
+ "license": "SEE LICENSE IN LICENSE.txt",
+ "dependencies": {
+ "@atlaskit/adf-schema": "^56.7.0",
+ "@atlaskit/adf-utils": "^20.5.12",
+ "@atlaskit/forge-react-types": "^2.13.0",
+ "@forge/bridge": "^7.4.0",
+ "@forge/egress": "^3.0.1",
+ "@forge/i18n": "1.0.2",
+ "@types/react": "^18.2.64",
+ "@types/react-reconciler": "^0.28.8",
+ "lodash": "^4.18.1",
+ "react": "^18.2.0",
+ "react-hook-form": "7.65.0",
+ "react-reconciler": "^0.29.0",
+ "react-test-renderer": "^18.2.0",
+ "uuid": "^11.1.1"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@forge/react/node_modules/@atlaskit/analytics-next": {
+ "version": "12.6.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/analytics-next/-/analytics-next-12.6.0.tgz",
+ "integrity": "sha512-QFECDwLBbNx9IRsBQMiQlw6r/sx+DcVs9hkJxRgPe3yakTdPBZMzSqD0b4R2tsFNlNxSKSkeJCF92S20v7suqg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/analytics-next-stable-react-context": "1.0.1",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@babel/runtime": "^7.0.0",
+ "prop-types": "^15.5.10",
+ "use-memo-one": "^1.1.1"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0",
+ "react-dom": "^18.2.0"
+ }
+ },
+ "node_modules/@forge/react/node_modules/@atlaskit/analytics-next-stable-react-context": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/@atlaskit/analytics-next-stable-react-context/-/analytics-next-stable-react-context-1.0.1.tgz",
+ "integrity": "sha512-iO6+hIp09dF4iAZQarVz3vKY1kM5Ij5CExYcK9jgc2q+OH8nv8n+BPFeJTdzGOGopmbUZn5Opj9pYQvge1Gr4Q==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "tslib": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0"
+ }
+ },
+ "node_modules/@forge/react/node_modules/@atlaskit/browser-apis": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/browser-apis/-/browser-apis-1.2.0.tgz",
+ "integrity": "sha512-SNwf6LGu1BjECz62iC/kIOwmtiJlz4cuf04OnVLlN8amEly+6NHIzZG+IU2Bbpa2vG7oVSj3nSy0gMm/7kqiuQ==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@babel/runtime": "^7.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0"
+ }
+ },
+ "node_modules/@forge/react/node_modules/@atlaskit/editor-prosemirror": {
+ "version": "9.0.2",
+ "resolved": "https://registry.npmjs.org/@atlaskit/editor-prosemirror/-/editor-prosemirror-9.0.2.tgz",
+ "integrity": "sha512-Hn5atRMHJDQFz1U6PbzK50LRt/rEHbwvvNm49n6zIVV1464GfVuoGFtK0sHXPKi2LE1k8HNyyEjOAjLQUsoifw==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@babel/runtime": "^7.0.0",
+ "prosemirror-commands": "1.7.1",
+ "prosemirror-dropcursor": "1.8.2",
+ "prosemirror-history": "1.5.0",
+ "prosemirror-keymap": "1.2.3",
+ "prosemirror-markdown": "1.13.4",
+ "prosemirror-model": "1.25.4",
+ "prosemirror-state": "1.4.4",
+ "prosemirror-transform": "1.11.0",
+ "prosemirror-utils": "1.2.2",
+ "prosemirror-view": "1.41.7"
+ }
+ },
+ "node_modules/@forge/react/node_modules/@atlaskit/forge-react-types": {
+ "version": "2.20.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/forge-react-types/-/forge-react-types-2.20.0.tgz",
+ "integrity": "sha512-x9z3YDeAF90CKVY0Ow0ZcG2ii55Hvr/3f8SiGv3mJtoayVsO+Uc8PqvHH8bxlpMY/j7cqnrQBmFBaEWC2E97ww==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/adf-schema": "^57.7.0",
+ "@atlaskit/banner": "^15.3.0",
+ "@atlaskit/blanket": "^16.4.0",
+ "@atlaskit/breadcrumbs": "^17.8.0",
+ "@atlaskit/button": "^25.8.0",
+ "@atlaskit/comment": "^14.2.0",
+ "@atlaskit/datetime-picker": "^19.5.0",
+ "@atlaskit/dynamic-table": "^19.3.0",
+ "@atlaskit/form": "^18.3.0",
+ "@atlaskit/inline-edit": "^16.6.0",
+ "@atlaskit/modal-dialog": "^17.4.0",
+ "@atlaskit/navigation-system": "^12.2.0",
+ "@atlaskit/object": "^2.3.0",
+ "@atlaskit/pagination": "^17.3.0",
+ "@atlaskit/popup": "^11.1.0",
+ "@atlaskit/primitives": "^23.0.0",
+ "@atlaskit/progress-bar": "^5.3.0",
+ "@atlaskit/progress-tracker": "^11.4.0",
+ "@atlaskit/radio": "^10.2.0",
+ "@atlaskit/section-message": "^10.3.0",
+ "@atlaskit/select": "^23.3.0",
+ "@atlaskit/skeleton": "^4.4.0",
+ "@atlaskit/spinner": "^20.4.0",
+ "@atlaskit/tabs": "^21.3.0",
+ "@atlaskit/tag": "^17.1.0",
+ "@atlaskit/tag-group": "^13.4.0",
+ "@atlaskit/textarea": "^11.0.0",
+ "@atlaskit/textfield": "^11.0.0",
+ "@atlaskit/tile": "^5.0.0",
+ "@atlaskit/toggle": "^17.3.0",
+ "@atlaskit/tokens": "^20.15.0",
+ "@atlaskit/tooltip": "^24.4.0",
+ "@babel/runtime": "^7.0.0",
+ "@emotion/react": "^11.7.1",
+ "@emotion/serialize": "^1.1.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0"
+ }
+ },
+ "node_modules/@forge/react/node_modules/@atlaskit/forge-react-types/node_modules/@atlaskit/adf-schema": {
+ "version": "57.7.77",
+ "resolved": "https://registry.npmjs.org/@atlaskit/adf-schema/-/adf-schema-57.7.77.tgz",
+ "integrity": "sha512-+S1xj0fXepWg0PtudKidQTZhg6mcHKBnFrmtMS+a5Xs8Wi4p/rEEAiMh88tDm7SHNvym8RF75lMHtLjhCQMejw==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/adf-schema-generator": "^4.0.0",
+ "@atlaskit/editor-prosemirror": "^9.0.0",
+ "@atlaskit/platform-feature-experiments": "^0.3.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/tmp-editor-statsig": "^295.0.0",
+ "@babel/runtime": "^7.0.0",
+ "css-color-names": "0.0.4",
+ "linkify-it": "^5.0.2",
+ "memoize-one": "^6.0.0"
+ }
+ },
+ "node_modules/@forge/react/node_modules/@atlaskit/interaction-context": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/interaction-context/-/interaction-context-4.3.0.tgz",
+ "integrity": "sha512-F31jO2V5z68MEAsyFPCFo5/FoklA7qhBf/1sKBuYzNcSJfWHegjb4K7+g9H2HsAQMe8WnfcTysqYOIod8Iiuqw==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@babel/runtime": "^7.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0"
+ }
+ },
+ "node_modules/@forge/react/node_modules/@atlaskit/navigation-system": {
+ "version": "12.2.2",
+ "resolved": "https://registry.npmjs.org/@atlaskit/navigation-system/-/navigation-system-12.2.2.tgz",
+ "integrity": "sha512-ZSGxSNd/cSarzWdE2JndwIyv7szZ6F8c5shHXwC+TwD09vEZVgF36Ys1G3VvaQ6PuNbYgjbnhBQf9tH9OkjLHw==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/analytics-next": "^12.6.0",
+ "@atlaskit/avatar": "^31.0.0",
+ "@atlaskit/button": "^25.8.0",
+ "@atlaskit/css": "^1.1.0",
+ "@atlaskit/ds-lib": "^9.0.0",
+ "@atlaskit/icon": "^38.3.0",
+ "@atlaskit/layering": "^6.1.0",
+ "@atlaskit/logo": "^23.3.0",
+ "@atlaskit/motion": "^10.0.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/popup": "^11.1.0",
+ "@atlaskit/pragmatic-drag-and-drop": "^4.0.0",
+ "@atlaskit/primitives": "^23.0.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/side-nav-items": "^2.8.0",
+ "@atlaskit/tokens": "^20.15.0",
+ "@atlaskit/tooltip": "^24.4.0",
+ "@atlaskit/top-layer": "^8.3.0",
+ "@atlaskit/visually-hidden": "^4.4.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^2.0.0",
+ "bind-event-listener": "^3.0.0",
+ "raf-schd": "^4.0.3",
+ "tiny-invariant": "^1.2.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0",
+ "react-dom": "^18.2.0"
+ }
+ },
+ "node_modules/@forge/react/node_modules/@atlaskit/platform-feature-experiments": {
+ "version": "0.3.2",
+ "resolved": "https://registry.npmjs.org/@atlaskit/platform-feature-experiments/-/platform-feature-experiments-0.3.2.tgz",
+ "integrity": "sha512-EdFY3b6muB7y1KyyZ+d2ovIFzW/ubc8Qw2oio/zfh6VhRHQ4tmCIX77CgFYURgbhtwu5THTyADE5N2OvMmtcFA==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/feature-gate-js-client": "^8.0.0",
+ "@atlaskit/react-ufo": "^8.3.0",
+ "@babel/runtime": "^7.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0"
+ }
+ },
+ "node_modules/@forge/react/node_modules/@atlaskit/platform-feature-flags-react": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/platform-feature-flags-react/-/platform-feature-flags-react-1.2.0.tgz",
+ "integrity": "sha512-Vav/2EbQdUd9tmwRjdVls3zvB+LuxDO9M8xQicVBxEHbxb3zUpfdBx2B4SMfyv1wIvKzDQiEgmcgIPu4VAJdqA==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/platform-feature-flags": "^2.1.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^1.0.2",
+ "react-magnetic-di": "^3.1.4"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0"
+ }
+ },
+ "node_modules/@forge/react/node_modules/@atlaskit/platform-feature-flags-react/node_modules/@compiled/react": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/@compiled/react/-/react-1.0.2.tgz",
+ "integrity": "sha512-xGOChqGDvoJON+1QOgV4cYmy1W3oonJw43TQ7KR8TuPTlIAHuFBgfckmyMPG4WppF0FYem518LZknySU0uQhlg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "csstype": "^3.2.3"
+ },
+ "peerDependencies": {
+ "react": ">=18.0.0"
+ }
+ },
+ "node_modules/@forge/react/node_modules/@atlaskit/react-ufo": {
+ "version": "8.9.1",
+ "resolved": "https://registry.npmjs.org/@atlaskit/react-ufo/-/react-ufo-8.9.1.tgz",
+ "integrity": "sha512-xqT6rlxEkQLXkhhz7JzUaTmQCRvHdTSdfQ5TEF2/pl9MTH+qGAP+kpHW1Zs3UzbXjDSw/OhQpF+lQsE1UQ8AZw==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/atlassian-context": "^2.0.0",
+ "@atlaskit/browser-apis": "^1.2.0",
+ "@atlaskit/feature-gate-js-client": "^8.0.0",
+ "@atlaskit/interaction-context": "^4.3.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@babel/runtime": "^7.0.0",
+ "@opentelemetry/api": "^1.9.0",
+ "bind-event-listener": "^3.0.0",
+ "bowser-ultralight": "^1.0.6",
+ "uuid": "^11.1.1"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0"
+ }
+ },
+ "node_modules/@forge/react/node_modules/@atlaskit/side-nav-items": {
+ "version": "2.8.6",
+ "resolved": "https://registry.npmjs.org/@atlaskit/side-nav-items/-/side-nav-items-2.8.6.tgz",
+ "integrity": "sha512-ci4r4qB6iWW1iy/30PjRmiFCoF3ZJ1hyBvoaaJ5rYM8dvL/Gc1y4fgiFb/YwBJqlbU6RB1ToOqpzVqIUkw6OUg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/analytics-next": "^12.6.0",
+ "@atlaskit/avatar": "^31.0.0",
+ "@atlaskit/button": "^25.8.0",
+ "@atlaskit/css": "^1.1.0",
+ "@atlaskit/ds-lib": "^9.0.0",
+ "@atlaskit/heading": "^8.0.0",
+ "@atlaskit/icon": "^38.3.0",
+ "@atlaskit/motion": "^10.0.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/platform-feature-flags-react": "^1.2.0",
+ "@atlaskit/popup": "^11.1.0",
+ "@atlaskit/pragmatic-drag-and-drop": "^4.0.0",
+ "@atlaskit/pragmatic-drag-and-drop-hitbox": "^3.0.0",
+ "@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^4.3.0",
+ "@atlaskit/primitives": "^23.0.0",
+ "@atlaskit/react-compiler-gating": "^0.2.0",
+ "@atlaskit/skeleton": "^4.4.0",
+ "@atlaskit/tokens": "^20.15.0",
+ "@atlaskit/tooltip": "^24.4.0",
+ "@babel/runtime": "^7.0.0",
+ "@compiled/react": "^2.0.0",
+ "tiny-invariant": "^1.2.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0",
+ "react-dom": "^18.2.0"
+ }
+ },
+ "node_modules/@forge/react/node_modules/@atlaskit/tmp-editor-statsig": {
+ "version": "295.0.0",
+ "resolved": "https://registry.npmjs.org/@atlaskit/tmp-editor-statsig/-/tmp-editor-statsig-295.0.0.tgz",
+ "integrity": "sha512-RVWR6+vDMah4lbp4SESvTLGbMvfK8Tbpt5sSdm24JUMchAt3sdePoN/ALsC1jo87vyJr9h7P156IPrzD++Jzkg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@atlaskit/feature-gate-js-client": "^8.0.0",
+ "@atlaskit/platform-feature-flags": "^2.2.0",
+ "@atlaskit/react-ufo": "^8.9.0",
+ "@babel/runtime": "^7.0.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0 || ^19.2.0"
+ }
+ },
+ "node_modules/@forge/react/node_modules/@forge/egress": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/@forge/egress/-/egress-3.0.1.tgz",
+ "integrity": "sha512-G32D+jtr9P6x5Lgikcf6P7oBIguFID89nUDoCHpTwk7dkySEBTQZ5mHUm1Til4/K6M0NY1gxAL0ULm0X6gqJiA==",
+ "license": "SEE LICENSE IN LICENSE.txt",
+ "peerDependencies": {
+ "typescript": ">=5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@forge/react/node_modules/@forge/i18n": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/@forge/i18n/-/i18n-1.0.2.tgz",
+ "integrity": "sha512-Bp7bnyH26yg4uJ84KhLwHXpi0Gc1BKx7AaJO67GvVahlHl8YCDH/ePb0KH77IOb9K/yOmsjaJJ2vK3wY/c/p3A==",
+ "license": "SEE LICENSE IN LICENSE.txt",
+ "dependencies": {
+ "lodash": "^4.18.1"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@forge/react/node_modules/prosemirror-markdown": {
+ "version": "1.13.4",
+ "resolved": "https://registry.npmjs.org/prosemirror-markdown/-/prosemirror-markdown-1.13.4.tgz",
+ "integrity": "sha512-D98dm4cQ3Hs6EmjK500TdAOew4Z03EV71ajEFiWra3Upr7diytJsjF4mPV2dW+eK5uNectiRj0xFxYI9NLXDbw==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/markdown-it": "^14.0.0",
+ "markdown-it": "^14.0.0",
+ "prosemirror-model": "^1.25.0"
+ }
+ },
+ "node_modules/@forge/react/node_modules/prosemirror-transform": {
+ "version": "1.11.0",
+ "resolved": "https://registry.npmjs.org/prosemirror-transform/-/prosemirror-transform-1.11.0.tgz",
+ "integrity": "sha512-4I7Ce4KpygXb9bkiPS3hTEk4dSHorfRw8uI0pE8IhxlK2GXsqv5tIA7JUSxtSu7u8APVOTtbUBxTmnHIxVkIJw==",
+ "license": "MIT",
+ "dependencies": {
+ "prosemirror-model": "^1.21.0"
+ }
+ },
+ "node_modules/@forge/react/node_modules/react-reconciler": {
+ "version": "0.29.2",
+ "resolved": "https://registry.npmjs.org/react-reconciler/-/react-reconciler-0.29.2.tgz",
+ "integrity": "sha512-zZQqIiYgDCTP/f1N/mAR10nJGrPD2ZR+jDSEsKWJHYC7Cm2wodlwbR3upZRdC3cjIjSlTLNVyO7Iu0Yy7t2AYg==",
+ "license": "MIT",
+ "dependencies": {
+ "loose-envify": "^1.1.0",
+ "scheduler": "^0.23.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ },
+ "peerDependencies": {
+ "react": "^18.3.1"
+ }
+ },
+ "node_modules/@forge/react/node_modules/react-shallow-renderer": {
+ "version": "16.15.0",
+ "resolved": "https://registry.npmjs.org/react-shallow-renderer/-/react-shallow-renderer-16.15.0.tgz",
+ "integrity": "sha512-oScf2FqQ9LFVQgA73vr86xl2NaOIX73rh+YFqcOp68CWj56tSfgtGKrEbyhCj0rSijyG9M1CYprTh39fBi5hzA==",
+ "license": "MIT",
+ "dependencies": {
+ "object-assign": "^4.1.1",
+ "react-is": "^16.12.0 || ^17.0.0 || ^18.0.0"
+ },
+ "peerDependencies": {
+ "react": "^16.0.0 || ^17.0.0 || ^18.0.0"
+ }
+ },
+ "node_modules/@forge/react/node_modules/react-test-renderer": {
+ "version": "18.3.1",
+ "resolved": "https://registry.npmjs.org/react-test-renderer/-/react-test-renderer-18.3.1.tgz",
+ "integrity": "sha512-KkAgygexHUkQqtvvx/otwxtuFu5cVjfzTCtjXLH9boS19/Nbtg84zS7wIQn39G8IlrhThBpQsMKkq5ZHZIYFXA==",
+ "license": "MIT",
+ "dependencies": {
+ "react-is": "^18.3.1",
+ "react-shallow-renderer": "^16.15.0",
+ "scheduler": "^0.23.2"
+ },
+ "peerDependencies": {
+ "react": "^18.3.1"
+ }
+ },
+ "node_modules/@forge/react/node_modules/use-memo-one": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/use-memo-one/-/use-memo-one-1.1.3.tgz",
+ "integrity": "sha512-g66/K7ZQGYrI6dy8GLpVcMsBp4s17xNkYJVSMvTEevGy3nDxHOfE6z8BVE22+5G5x7t3+bhzrlTDB7ObrEE0cQ==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
+ }
+ },
"node_modules/@forge/resolver": {
"version": "1.8.0",
"resolved": "https://registry.npmjs.org/@forge/resolver/-/resolver-1.8.0.tgz",
@@ -114,6 +3866,78 @@
"tslib": "^2.6.2"
}
},
+ "node_modules/@formatjs/ecma402-abstract": {
+ "version": "2.3.6",
+ "resolved": "https://registry.npmjs.org/@formatjs/ecma402-abstract/-/ecma402-abstract-2.3.6.tgz",
+ "integrity": "sha512-HJnTFeRM2kVFVr5gr5kH1XP6K0JcJtE7Lzvtr3FS/so5f1kpsqqqxy5JF+FRaO6H2qmcMfAUIox7AJteieRtVw==",
+ "license": "MIT",
+ "dependencies": {
+ "@formatjs/fast-memoize": "2.2.7",
+ "@formatjs/intl-localematcher": "0.6.2",
+ "decimal.js": "^10.4.3",
+ "tslib": "^2.8.0"
+ }
+ },
+ "node_modules/@formatjs/fast-memoize": {
+ "version": "2.2.7",
+ "resolved": "https://registry.npmjs.org/@formatjs/fast-memoize/-/fast-memoize-2.2.7.tgz",
+ "integrity": "sha512-Yabmi9nSvyOMrlSeGGWDiH7rf3a7sIwplbvo/dlz9WCIjzIQAfy1RMf4S0X3yG724n5Ghu2GmEl5NJIV6O9sZQ==",
+ "license": "MIT",
+ "dependencies": {
+ "tslib": "^2.8.0"
+ }
+ },
+ "node_modules/@formatjs/icu-messageformat-parser": {
+ "version": "2.11.4",
+ "resolved": "https://registry.npmjs.org/@formatjs/icu-messageformat-parser/-/icu-messageformat-parser-2.11.4.tgz",
+ "integrity": "sha512-7kR78cRrPNB4fjGFZg3Rmj5aah8rQj9KPzuLsmcSn4ipLXQvC04keycTI1F7kJYDwIXtT2+7IDEto842CfZBtw==",
+ "license": "MIT",
+ "dependencies": {
+ "@formatjs/ecma402-abstract": "2.3.6",
+ "@formatjs/icu-skeleton-parser": "1.8.16",
+ "tslib": "^2.8.0"
+ }
+ },
+ "node_modules/@formatjs/icu-skeleton-parser": {
+ "version": "1.8.16",
+ "resolved": "https://registry.npmjs.org/@formatjs/icu-skeleton-parser/-/icu-skeleton-parser-1.8.16.tgz",
+ "integrity": "sha512-H13E9Xl+PxBd8D5/6TVUluSpxGNvFSlN/b3coUp0e0JpuWXXnQDiavIpY3NnvSp4xhEMoXyyBvVfdFX8jglOHQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@formatjs/ecma402-abstract": "2.3.6",
+ "tslib": "^2.8.0"
+ }
+ },
+ "node_modules/@formatjs/intl": {
+ "version": "3.1.8",
+ "resolved": "https://registry.npmjs.org/@formatjs/intl/-/intl-3.1.8.tgz",
+ "integrity": "sha512-LWXgwI5zTMatvR8w8kCNh/priDTOF/ZssokMBHJ7ZWXFoYLVOYo0EJERD9Eajv+xsfQO1QkuAt77KWQ1OI4mOQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@formatjs/ecma402-abstract": "2.3.6",
+ "@formatjs/fast-memoize": "2.2.7",
+ "@formatjs/icu-messageformat-parser": "2.11.4",
+ "intl-messageformat": "10.7.18",
+ "tslib": "^2.8.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.6.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@formatjs/intl-localematcher": {
+ "version": "0.6.2",
+ "resolved": "https://registry.npmjs.org/@formatjs/intl-localematcher/-/intl-localematcher-0.6.2.tgz",
+ "integrity": "sha512-XOMO2Hupl0wdd172Y06h6kLpBz6Dv+J4okPLl4LPtzbr8f66WbIoy4ev98EBuZ6ZK4h5ydTN6XneT4QVpD7cdA==",
+ "license": "MIT",
+ "dependencies": {
+ "tslib": "^2.8.0"
+ }
+ },
"node_modules/@isaacs/nonrecursive-glob-match": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/@isaacs/nonrecursive-glob-match/-/nonrecursive-glob-match-1.1.0.tgz",
@@ -161,6 +3985,60 @@
"node": "^14.15.0 || ^16.10.0 || >=18.0.0"
}
},
+ "node_modules/@jridgewell/gen-mapping": {
+ "version": "0.3.13",
+ "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",
+ "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/sourcemap-codec": "^1.5.0",
+ "@jridgewell/trace-mapping": "^0.3.24"
+ }
+ },
+ "node_modules/@jridgewell/resolve-uri": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.3.tgz",
+ "integrity": "sha512-lhTtjtoEArWBjismtfS761S9Hlyn+nIZqOZVYoZ1Xn82PMNMVnk+jj/NhC4fAXGTs7ydONcJiR5vyQBTMDu27g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@jridgewell/sourcemap-codec": {
+ "version": "1.6.0",
+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz",
+ "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==",
+ "license": "MIT"
+ },
+ "node_modules/@jridgewell/trace-mapping": {
+ "version": "0.3.31",
+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",
+ "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/resolve-uri": "^3.1.0",
+ "@jridgewell/sourcemap-codec": "^1.4.14"
+ }
+ },
+ "node_modules/@opentelemetry/api": {
+ "version": "1.10.0",
+ "resolved": "https://registry.npmjs.org/@opentelemetry/api/-/api-1.10.0.tgz",
+ "integrity": "sha512-lMkyes8iHrG+mk6WH7X70MdCLI2RS0FwNBY1PyQ8UemaijE2m5mv5A0Niy3HtbYTFrgkUEQjFMXmSAk2hQDuPQ==",
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=8.0.0"
+ }
+ },
+ "node_modules/@popperjs/core": {
+ "version": "2.11.8",
+ "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz",
+ "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==",
+ "license": "MIT",
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/popperjs"
+ }
+ },
"node_modules/@sentry-internal/tracing": {
"version": "7.106.0",
"resolved": "https://registry.npmjs.org/@sentry-internal/tracing/-/tracing-7.106.0.tgz",
@@ -230,6 +4108,45 @@
"integrity": "sha512-MTBk/3jGLNB2tVxv6uLlFh1iu64iYOQ2PbdOSK3NW8JZsmlaOh2q6sdtKowBhfw8QFLmYNzTW4/oK4uATIi6ZA==",
"license": "MIT"
},
+ "node_modules/@statsig/client-core": {
+ "version": "3.30.2",
+ "resolved": "https://registry.npmjs.org/@statsig/client-core/-/client-core-3.30.2.tgz",
+ "integrity": "sha512-F3u1+LDml6IFz/tMbSYI0pEOMR13OHM71lLJ3RuoWpK2KpCwfsHpt7kBmUKJxUXZ05CP/jWgmhG/ROj7eqDCPQ==",
+ "license": "ISC"
+ },
+ "node_modules/@statsig/js-client": {
+ "version": "3.30.2",
+ "resolved": "https://registry.npmjs.org/@statsig/js-client/-/js-client-3.30.2.tgz",
+ "integrity": "sha512-Cjs4uzyAxt1sw44oa6qSNWuZdO11jmgrpOVBC2NajtpA55GBmAfjZ3vQdXizUffUZMRmFiEpGwxi9zmjFEG7Sw==",
+ "license": "ISC",
+ "dependencies": {
+ "@statsig/client-core": "3.30.2"
+ }
+ },
+ "node_modules/@types/history": {
+ "version": "4.7.11",
+ "resolved": "https://registry.npmjs.org/@types/history/-/history-4.7.11.tgz",
+ "integrity": "sha512-qjDJRrmvBMiTx+jyLxvLfJU7UznFuokDv4f3WRuriHKERccVpFU+8XMQUAbDzoiJCsmexxRExQeMwwCdamSKDA==",
+ "license": "MIT"
+ },
+ "node_modules/@types/hoist-non-react-statics": {
+ "version": "3.3.7",
+ "resolved": "https://registry.npmjs.org/@types/hoist-non-react-statics/-/hoist-non-react-statics-3.3.7.tgz",
+ "integrity": "sha512-PQTyIulDkIDro8P+IHbKCsw7U2xxBYflVzW/FgWdCAePD9xGSidgA76/GeJ6lBKoblyhf9pBY763gbrN+1dI8g==",
+ "license": "MIT",
+ "dependencies": {
+ "hoist-non-react-statics": "^3.3.0"
+ },
+ "peerDependencies": {
+ "@types/react": "*"
+ }
+ },
+ "node_modules/@types/iframe-resizer": {
+ "version": "3.5.13",
+ "resolved": "https://registry.npmjs.org/@types/iframe-resizer/-/iframe-resizer-3.5.13.tgz",
+ "integrity": "sha512-/Np2ntlOWd/NOHs23Mj7QlNEnZ6SL02AWWdYZLm4RQNukDdpqpagfMAdin5FvQDLngR8LWfh/qUnYxuDmR8BCg==",
+ "license": "MIT"
+ },
"node_modules/@types/istanbul-lib-coverage": {
"version": "2.0.6",
"resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz",
@@ -264,12 +4181,40 @@
"pretty-format": "^29.0.0"
}
},
+ "node_modules/@types/linkify-it": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/@types/linkify-it/-/linkify-it-5.0.0.tgz",
+ "integrity": "sha512-sVDA58zAw4eWAffKOaQH5/5j3XeayukzDk+ewSsnv3p4yJEZHCCzMDiZM8e0OUrRvmpGZ85jf4yDHkHsgBNr9Q==",
+ "license": "MIT"
+ },
+ "node_modules/@types/markdown-it": {
+ "version": "14.2.0",
+ "resolved": "https://registry.npmjs.org/@types/markdown-it/-/markdown-it-14.2.0.tgz",
+ "integrity": "sha512-NoQ2yGlLWj4wpxMs+TYmRKk3thDrQ97agr7sFqfLsAlvoS8SNQuTrlObhFqG9iugdTtgOE9jpJ6FNM4ZGsa5xQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/linkify-it": "^5",
+ "@types/mdurl": "^2"
+ }
+ },
+ "node_modules/@types/mdurl": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/@types/mdurl/-/mdurl-2.0.0.tgz",
+ "integrity": "sha512-RGdgjQUZba5p6QEFAVx2OGb8rQDL/cPRG7GiedRzMcJ1tYnUANBncjbSB1NRGwbvjcPeikRABz2nshyPk1bhWg==",
+ "license": "MIT"
+ },
"node_modules/@types/node": {
"version": "14.18.63",
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.63.tgz",
"integrity": "sha512-fAtCfv4jJg+ExtXhvCkCqUKZ+4ok/JQk01qDKhL5BDDoS3AxKXhV5/MAVUZyQnSEd2GT92fkgZl0pz0Q0AzcIQ==",
"license": "MIT"
},
+ "node_modules/@types/parse-json": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.2.tgz",
+ "integrity": "sha512-dISoDXWWQwUquiKsyZ4Ng+HX2KsPL7LyHKHQwgGFEA3IaKac4Obd+h2a/a6waisAoepJlBcx9paWqjA8/HVjCw==",
+ "license": "MIT"
+ },
"node_modules/@types/prop-types": {
"version": "15.7.15",
"resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.15.tgz",
@@ -286,6 +4231,15 @@
"csstype": "^3.2.2"
}
},
+ "node_modules/@types/react-reconciler": {
+ "version": "0.28.9",
+ "resolved": "https://registry.npmjs.org/@types/react-reconciler/-/react-reconciler-0.28.9.tgz",
+ "integrity": "sha512-HHM3nxyUZ3zAylX8ZEyrDNd2XZOnQ0D5XfunJF5FLQnZbHHYq4UWvW1QfelQNXv1ICNkwYhfxjwfnqivYB6bFg==",
+ "license": "MIT",
+ "peerDependencies": {
+ "@types/react": "*"
+ }
+ },
"node_modules/@types/stack-utils": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz",
@@ -355,6 +4309,12 @@
"url": "https://github.com/chalk/ansi-styles?sponsor=1"
}
},
+ "node_modules/argparse": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
+ "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
+ "license": "Python-2.0"
+ },
"node_modules/available-typed-arrays": {
"version": "1.0.7",
"resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz",
@@ -370,6 +4330,21 @@
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/babel-plugin-macros": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/babel-plugin-macros/-/babel-plugin-macros-3.1.0.tgz",
+ "integrity": "sha512-Cg7TFGpIr01vOQNODXOOaGz2NpCU5gl8x1qJFbb6hbZxR7XrcE2vtbAsTAbJ7/xwJtUuJEw8K8Zr/AE0LHlesg==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.12.5",
+ "cosmiconfig": "^7.0.0",
+ "resolve": "^1.19.0"
+ },
+ "engines": {
+ "node": ">=10",
+ "npm": ">=6"
+ }
+ },
"node_modules/balanced-match": {
"version": "4.0.4",
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz",
@@ -379,12 +4354,24 @@
"node": "18 || 20 || >=22"
}
},
+ "node_modules/bind-event-listener": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/bind-event-listener/-/bind-event-listener-3.0.0.tgz",
+ "integrity": "sha512-PJvH288AWQhKs2v9zyfYdPzlPqf5bXbGMmhmUIY9x4dAUGIWgomO771oBQNwJnMQSnUIXhKu6sgzpBRXTlvb8Q==",
+ "license": "MIT"
+ },
"node_modules/boolbase": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz",
"integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==",
"license": "ISC"
},
+ "node_modules/bowser-ultralight": {
+ "version": "1.0.6",
+ "resolved": "https://registry.npmjs.org/bowser-ultralight/-/bowser-ultralight-1.0.6.tgz",
+ "integrity": "sha512-ASWi8n3c6JvsUhbjproHnT4Mdhs4Q9wOxq1oSjUkM2e5StEEUmy1ej4UNOLSyeU4ANQFTx+mY+bsv/aH+AIcpg==",
+ "license": "MIT"
+ },
"node_modules/brace-expansion": {
"version": "5.0.12",
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz",
@@ -456,6 +4443,15 @@
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/callsites": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
+ "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
"node_modules/chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
@@ -547,6 +4543,55 @@
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"license": "MIT"
},
+ "node_modules/convert-source-map": {
+ "version": "1.9.0",
+ "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz",
+ "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==",
+ "license": "MIT"
+ },
+ "node_modules/cosmiconfig": {
+ "version": "7.1.0",
+ "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.1.0.tgz",
+ "integrity": "sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/parse-json": "^4.0.0",
+ "import-fresh": "^3.2.1",
+ "parse-json": "^5.0.0",
+ "path-type": "^4.0.0",
+ "yaml": "^1.10.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/cosmiconfig/node_modules/yaml": {
+ "version": "1.10.3",
+ "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.3.tgz",
+ "integrity": "sha512-vIYeF1u3CjlhAFekPPAk2h/Kv4T3mAkMox5OymRiJQB0spDP10LHvt+K7G9Ny6NuuMAb25/6n1qyUjAcGNf/AA==",
+ "license": "ISC",
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/css-box-model": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/css-box-model/-/css-box-model-1.2.1.tgz",
+ "integrity": "sha512-a7Vr4Q/kd/aw96bnJG332W9V9LkJO69JRcaCYDUqjp6/z0w6VcZjgAcTbgFxEPfBgdnAwlh3iwu+hLopa+flJw==",
+ "license": "MIT",
+ "dependencies": {
+ "tiny-invariant": "^1.0.6"
+ }
+ },
+ "node_modules/css-color-names": {
+ "version": "0.0.4",
+ "resolved": "https://registry.npmjs.org/css-color-names/-/css-color-names-0.0.4.tgz",
+ "integrity": "sha512-zj5D7X1U2h2zsXOAM8EyUREBnnts6H+Jm+d1M2DbiQQcUtnqgQsMrdo8JW9R80YFUmIdBZeMu5wvYM7hcgWP/Q==",
+ "license": "MIT",
+ "engines": {
+ "node": "*"
+ }
+ },
"node_modules/css-select": {
"version": "5.2.2",
"resolved": "https://registry.npmjs.org/css-select/-/css-select-5.2.2.tgz",
@@ -581,6 +4626,45 @@
"integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==",
"license": "MIT"
},
+ "node_modules/date-fns": {
+ "version": "2.30.0",
+ "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.30.0.tgz",
+ "integrity": "sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.21.0"
+ },
+ "engines": {
+ "node": ">=0.11"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/date-fns"
+ }
+ },
+ "node_modules/debug": {
+ "version": "4.4.3",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "^2.1.3"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/decimal.js": {
+ "version": "10.6.0",
+ "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.6.0.tgz",
+ "integrity": "sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg==",
+ "license": "MIT"
+ },
"node_modules/define-data-property": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz",
@@ -598,6 +4682,12 @@
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/detect-node-es": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/detect-node-es/-/detect-node-es-1.1.0.tgz",
+ "integrity": "sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==",
+ "license": "MIT"
+ },
"node_modules/diff-sequences": {
"version": "29.6.3",
"resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz",
@@ -701,6 +4791,15 @@
"url": "https://github.com/fb55/entities?sponsor=1"
}
},
+ "node_modules/error-ex": {
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.4.tgz",
+ "integrity": "sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==",
+ "license": "MIT",
+ "dependencies": {
+ "is-arrayish": "^0.2.1"
+ }
+ },
"node_modules/es-define-property": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
@@ -740,6 +4839,18 @@
"node": ">=8"
}
},
+ "node_modules/eventemitter3": {
+ "version": "4.0.7",
+ "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz",
+ "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==",
+ "license": "MIT"
+ },
+ "node_modules/exenv": {
+ "version": "1.2.2",
+ "resolved": "https://registry.npmjs.org/exenv/-/exenv-1.2.2.tgz",
+ "integrity": "sha512-Z+ktTxTwv9ILfgKCk32OX3n/doe+OcLTRtqK9pcL+JsP3J1/VW8Uvl4ZjLlKqeW4rzK4oesDOGMEMRIZqtP4Iw==",
+ "license": "BSD-3-Clause"
+ },
"node_modules/expect": {
"version": "29.7.0",
"resolved": "https://registry.npmjs.org/expect/-/expect-29.7.0.tgz",
@@ -796,6 +4907,58 @@
"node": ">=8"
}
},
+ "node_modules/final-form": {
+ "version": "4.20.10",
+ "resolved": "https://registry.npmjs.org/final-form/-/final-form-4.20.10.tgz",
+ "integrity": "sha512-TL48Pi1oNHeMOHrKv1bCJUrWZDcD3DIG6AGYVNOnyZPr7Bd/pStN0pL+lfzF5BNoj/FclaoiaLenk4XUIFVYng==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.10.0"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/final-form"
+ }
+ },
+ "node_modules/final-form-focus": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/final-form-focus/-/final-form-focus-1.1.2.tgz",
+ "integrity": "sha512-Gd+Bd2Ll7ijo3/sd6kJ/bwLkhc2bUJPxTON6fIqee/008EJpACWhT+zoWCm9q6NcfMcWRS+Sp5ikRX8iqdXeGQ==",
+ "license": "MIT",
+ "peerDependencies": {
+ "final-form": ">=1.3.0"
+ }
+ },
+ "node_modules/find-root": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/find-root/-/find-root-1.1.0.tgz",
+ "integrity": "sha512-NKfW6bec6GfKc0SGx1e07QZY9PE99u0Bft/0rzSD5k3sO/vwkVUpDUKVm5Gpp5Ue3YfShPFTX2070tDs5kB9Ng==",
+ "license": "MIT"
+ },
+ "node_modules/focus-lock": {
+ "version": "1.3.6",
+ "resolved": "https://registry.npmjs.org/focus-lock/-/focus-lock-1.3.6.tgz",
+ "integrity": "sha512-Ik/6OCk9RQQ0T5Xw+hKNLWrjSMtv51dD4GRmJjbD5a58TIEpI5a5iXagKVl3Z5UuyslMCA8Xwnu76jQob62Yhg==",
+ "license": "MIT",
+ "dependencies": {
+ "tslib": "^2.0.3"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/focus-trap": {
+ "version": "2.4.6",
+ "resolved": "https://registry.npmjs.org/focus-trap/-/focus-trap-2.4.6.tgz",
+ "integrity": "sha512-vWZTPtBU6pBoyWZDRZJHkXsyP2ZCZBHE3DRVXnSVdQKH/mcDtu9S5Kz8CUDyIqpfZfLEyI9rjKJLnc4Y40BRBg==",
+ "license": "MIT",
+ "dependencies": {
+ "tabbable": "^1.0.3"
+ }
+ },
"node_modules/for-each": {
"version": "0.3.5",
"resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz",
@@ -940,10 +5103,16 @@
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/hash-wasm": {
+ "version": "4.13.0",
+ "resolved": "https://registry.npmjs.org/hash-wasm/-/hash-wasm-4.13.0.tgz",
+ "integrity": "sha512-GrWl7wsV46fKIXQZB5ebskLZLAmKL6d9RS0fspCxDeQyjoNu1AfTJTMLPOJyfzaQm0ldFiwFN21/w+sE/kgEFQ==",
+ "license": "MIT"
+ },
"node_modules/hasown": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
- "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
+ "version": "2.0.4",
+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz",
+ "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==",
"license": "MIT",
"dependencies": {
"function-bind": "^1.1.2"
@@ -958,6 +5127,21 @@
"integrity": "sha512-xAxZkM1dRyGV2Ou5bzMxBPNLoRCjcX+ya7KSWybQD2KwLphxsapUVK6x/02o7f4VU6GPSXch9vNY2+gkU8tYWQ==",
"license": "MIT"
},
+ "node_modules/hoist-non-react-statics": {
+ "version": "3.3.2",
+ "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz",
+ "integrity": "sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==",
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "react-is": "^16.7.0"
+ }
+ },
+ "node_modules/hoist-non-react-statics/node_modules/react-is": {
+ "version": "16.13.1",
+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz",
+ "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==",
+ "license": "MIT"
+ },
"node_modules/htmlparser2": {
"version": "10.1.0",
"resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-10.1.0.tgz",
@@ -1001,12 +5185,60 @@
"node": ">=0.10.0"
}
},
+ "node_modules/iframe-resizer": {
+ "version": "4.4.5",
+ "resolved": "https://registry.npmjs.org/iframe-resizer/-/iframe-resizer-4.4.5.tgz",
+ "integrity": "sha512-U8bCywf/Gh07O69RXo6dXAzTtODQrxaHGHRI7Nt4ipXsuq6EMxVsOP/jjaP43YtXz/ibESS0uSVDN3sOGCzSmw==",
+ "hasInstallScript": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.8.0"
+ },
+ "funding": {
+ "type": "individual",
+ "url": "https://iframe-resizer.com//pricing"
+ }
+ },
+ "node_modules/import-fresh": {
+ "version": "3.3.1",
+ "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz",
+ "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==",
+ "license": "MIT",
+ "dependencies": {
+ "parent-module": "^1.0.0",
+ "resolve-from": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/inherits": {
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
"license": "ISC"
},
+ "node_modules/intl-messageformat": {
+ "version": "10.7.18",
+ "resolved": "https://registry.npmjs.org/intl-messageformat/-/intl-messageformat-10.7.18.tgz",
+ "integrity": "sha512-m3Ofv/X/tV8Y3tHXLohcuVuhWKo7BBq62cqY15etqmLxg2DZ34AGGgQDeR+SCta2+zICb1NX83af0GJmbQ1++g==",
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "@formatjs/ecma402-abstract": "2.3.6",
+ "@formatjs/fast-memoize": "2.2.7",
+ "@formatjs/icu-messageformat-parser": "2.11.4",
+ "tslib": "^2.8.0"
+ }
+ },
+ "node_modules/is-arrayish": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz",
+ "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==",
+ "license": "MIT"
+ },
"node_modules/is-callable": {
"version": "1.2.7",
"resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz",
@@ -1019,6 +5251,21 @@
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/is-core-module": {
+ "version": "2.18.0",
+ "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.18.0.tgz",
+ "integrity": "sha512-qyax9fgaKOEC4qK8WZn7Q4IcoZC9RC1O1fFxRcRTq/oMMkWT/uXpqpXa12kzWR409zAt1drYN9N9BO26UmBCmw==",
+ "license": "MIT",
+ "dependencies": {
+ "hasown": "^2.0.4"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
"node_modules/is-number": {
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
@@ -1131,18 +5378,73 @@
"integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
"license": "MIT"
},
+ "node_modules/jsesc": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",
+ "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==",
+ "license": "MIT",
+ "bin": {
+ "jsesc": "bin/jsesc"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/json-parse-even-better-errors": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz",
+ "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==",
+ "license": "MIT"
+ },
"node_modules/json-schema-traverse": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
"integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",
"license": "MIT"
},
+ "node_modules/lines-and-columns": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz",
+ "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==",
+ "license": "MIT"
+ },
+ "node_modules/linkify-it": {
+ "version": "5.0.2",
+ "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-5.0.2.tgz",
+ "integrity": "sha512-ONTm2jCMAVZjgQa/Fy1kScXsuOoF5NPTsoFBdE1KVIZ2vAh/r9+Bqo+0jINCBYnavTPQZz38QzFTme79ENoN3Q==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/puzrin"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/markdown-it"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "uc.micro": "^2.0.0"
+ }
+ },
"node_modules/lodash": {
"version": "4.18.1",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.18.1.tgz",
"integrity": "sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q==",
"license": "MIT"
},
+ "node_modules/loose-envify": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",
+ "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",
+ "license": "MIT",
+ "dependencies": {
+ "js-tokens": "^3.0.0 || ^4.0.0"
+ },
+ "bin": {
+ "loose-envify": "cli.js"
+ }
+ },
"node_modules/lru-cache": {
"version": "11.5.3",
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.3.tgz",
@@ -1152,6 +5454,33 @@
"node": "20 || >=22"
}
},
+ "node_modules/markdown-it": {
+ "version": "14.3.3",
+ "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-14.3.3.tgz",
+ "integrity": "sha512-L//tDAkjTjJCU6pBUSBTgs3Kg4InVaZuUZog/b6V12UKhcDQ7S78877ibbCanRExwPuYP1CZD7Gd2dxSy1GXRg==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/puzrin"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/markdown-it"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "argparse": "^2.0.1",
+ "entities": "^4.5.0",
+ "linkify-it": "^5.0.2",
+ "mdurl": "^2.0.0",
+ "punycode.js": "^2.3.1",
+ "uc.micro": "^2.1.0"
+ },
+ "bin": {
+ "markdown-it": "bin/markdown-it.mjs"
+ }
+ },
"node_modules/math-intrinsics": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
@@ -1161,6 +5490,18 @@
"node": ">= 0.4"
}
},
+ "node_modules/mdurl": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-2.1.0.tgz",
+ "integrity": "sha512-1+HBaOx0zi/dQWht8rNv9MYf9qqpqL/kxI0hXImU6Y547zM6Sni8BQibt7ifgMcYtQg41ao3Ivd6cnSM86inpg==",
+ "license": "MIT"
+ },
+ "node_modules/memoize-one": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/memoize-one/-/memoize-one-6.0.0.tgz",
+ "integrity": "sha512-rkpe71W0N0c0Xz6QD0eJETuWAJGnJ9afsl1srmwPrI+yBCkge5EycXXbYRyvL29zZVUWQCY7InPRCv3GDXuZNw==",
+ "license": "MIT"
+ },
"node_modules/micromatch": {
"version": "4.0.8",
"resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz",
@@ -1217,19 +5558,70 @@
"integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==",
"license": "BlueOak-1.0.0",
"engines": {
- "node": ">=16 || 14 >=14.17"
+ "node": ">=16 || 14 >=14.17"
+ }
+ },
+ "node_modules/ms": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
+ "license": "MIT"
+ },
+ "node_modules/nth-check": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz",
+ "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==",
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "boolbase": "^1.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/fb55/nth-check?sponsor=1"
+ }
+ },
+ "node_modules/object-assign": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
+ "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
}
},
- "node_modules/nth-check": {
+ "node_modules/orderedmap": {
"version": "2.1.1",
- "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz",
- "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==",
- "license": "BSD-2-Clause",
+ "resolved": "https://registry.npmjs.org/orderedmap/-/orderedmap-2.1.1.tgz",
+ "integrity": "sha512-TvAWxi0nDe1j/rtMcWcIj94+Ffe6n7zhow33h40SKxmsmozs6dz/e+EajymfoFcHd7sxNn8yHM8839uixMOV6g==",
+ "license": "MIT"
+ },
+ "node_modules/parent-module": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",
+ "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==",
+ "license": "MIT",
"dependencies": {
- "boolbase": "^1.0.0"
+ "callsites": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/parse-json": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz",
+ "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.0.0",
+ "error-ex": "^1.3.1",
+ "json-parse-even-better-errors": "^2.3.0",
+ "lines-and-columns": "^1.1.6"
+ },
+ "engines": {
+ "node": ">=8"
},
"funding": {
- "url": "https://github.com/fb55/nth-check?sponsor=1"
+ "url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/parse5": {
@@ -1281,6 +5673,12 @@
"url": "https://github.com/fb55/entities?sponsor=1"
}
},
+ "node_modules/path-parse": {
+ "version": "1.0.7",
+ "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",
+ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",
+ "license": "MIT"
+ },
"node_modules/path-scurry": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-3.0.0.tgz",
@@ -1297,6 +5695,15 @@
"url": "https://github.com/sponsors/isaacs"
}
},
+ "node_modules/path-type": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz",
+ "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
"node_modules/picocolors": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
@@ -1350,12 +5757,305 @@
"url": "https://github.com/chalk/ansi-styles?sponsor=1"
}
},
+ "node_modules/prop-types": {
+ "version": "15.8.1",
+ "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz",
+ "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==",
+ "license": "MIT",
+ "dependencies": {
+ "loose-envify": "^1.4.0",
+ "object-assign": "^4.1.1",
+ "react-is": "^16.13.1"
+ }
+ },
+ "node_modules/prop-types/node_modules/react-is": {
+ "version": "16.13.1",
+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz",
+ "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==",
+ "license": "MIT"
+ },
+ "node_modules/prosemirror-commands": {
+ "version": "1.7.1",
+ "resolved": "https://registry.npmjs.org/prosemirror-commands/-/prosemirror-commands-1.7.1.tgz",
+ "integrity": "sha512-rT7qZnQtx5c0/y/KlYaGvtG411S97UaL6gdp6RIZ23DLHanMYLyfGBV5DtSnZdthQql7W+lEVbpSfwtO8T+L2w==",
+ "license": "MIT",
+ "dependencies": {
+ "prosemirror-model": "^1.0.0",
+ "prosemirror-state": "^1.0.0",
+ "prosemirror-transform": "^1.10.2"
+ }
+ },
+ "node_modules/prosemirror-dropcursor": {
+ "version": "1.8.2",
+ "resolved": "https://registry.npmjs.org/prosemirror-dropcursor/-/prosemirror-dropcursor-1.8.2.tgz",
+ "integrity": "sha512-CCk6Gyx9+Tt2sbYk5NK0nB1ukHi2ryaRgadV/LvyNuO3ena1payM2z6Cg0vO1ebK8cxbzo41ku2DE5Axj1Zuiw==",
+ "license": "MIT",
+ "dependencies": {
+ "prosemirror-state": "^1.0.0",
+ "prosemirror-transform": "^1.1.0",
+ "prosemirror-view": "^1.1.0"
+ }
+ },
+ "node_modules/prosemirror-history": {
+ "version": "1.5.0",
+ "resolved": "https://registry.npmjs.org/prosemirror-history/-/prosemirror-history-1.5.0.tgz",
+ "integrity": "sha512-zlzTiH01eKA55UAf1MEjtssJeHnGxO0j4K4Dpx+gnmX9n+SHNlDqI2oO1Kv1iPN5B1dm5fsljCfqKF9nFL6HRg==",
+ "license": "MIT",
+ "dependencies": {
+ "prosemirror-state": "^1.2.2",
+ "prosemirror-transform": "^1.0.0",
+ "prosemirror-view": "^1.31.0",
+ "rope-sequence": "^1.3.0"
+ }
+ },
+ "node_modules/prosemirror-keymap": {
+ "version": "1.2.3",
+ "resolved": "https://registry.npmjs.org/prosemirror-keymap/-/prosemirror-keymap-1.2.3.tgz",
+ "integrity": "sha512-4HucRlpiLd1IPQQXNqeo81BGtkY8Ai5smHhKW9jjPKRc2wQIxksg7Hl1tTI2IfT2B/LgX6bfYvXxEpJl7aKYKw==",
+ "license": "MIT",
+ "dependencies": {
+ "prosemirror-state": "^1.0.0",
+ "w3c-keyname": "^2.2.0"
+ }
+ },
+ "node_modules/prosemirror-markdown": {
+ "version": "1.13.2",
+ "resolved": "https://registry.npmjs.org/prosemirror-markdown/-/prosemirror-markdown-1.13.2.tgz",
+ "integrity": "sha512-FPD9rHPdA9fqzNmIIDhhnYQ6WgNoSWX9StUZ8LEKapaXU9i6XgykaHKhp6XMyXlOWetmaFgGDS/nu/w9/vUc5g==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/markdown-it": "^14.0.0",
+ "markdown-it": "^14.0.0",
+ "prosemirror-model": "^1.25.0"
+ }
+ },
+ "node_modules/prosemirror-model": {
+ "version": "1.25.4",
+ "resolved": "https://registry.npmjs.org/prosemirror-model/-/prosemirror-model-1.25.4.tgz",
+ "integrity": "sha512-PIM7E43PBxKce8OQeezAs9j4TP+5yDpZVbuurd1h5phUxEKIu+G2a+EUZzIC5nS1mJktDJWzbqS23n1tsAf5QA==",
+ "license": "MIT",
+ "dependencies": {
+ "orderedmap": "^2.0.0"
+ }
+ },
+ "node_modules/prosemirror-state": {
+ "version": "1.4.4",
+ "resolved": "https://registry.npmjs.org/prosemirror-state/-/prosemirror-state-1.4.4.tgz",
+ "integrity": "sha512-6jiYHH2CIGbCfnxdHbXZ12gySFY/fz/ulZE333G6bPqIZ4F+TXo9ifiR86nAHpWnfoNjOb3o5ESi7J8Uz1jXHw==",
+ "license": "MIT",
+ "dependencies": {
+ "prosemirror-model": "^1.0.0",
+ "prosemirror-transform": "^1.0.0",
+ "prosemirror-view": "^1.27.0"
+ }
+ },
+ "node_modules/prosemirror-transform": {
+ "version": "1.10.5",
+ "resolved": "https://registry.npmjs.org/prosemirror-transform/-/prosemirror-transform-1.10.5.tgz",
+ "integrity": "sha512-RPDQCxIDhIBb1o36xxwsaeAvivO8VLJcgBtzmOwQ64bMtsVFh5SSuJ6dWSxO1UsHTiTXPCgQm3PDJt7p6IOLbw==",
+ "license": "MIT",
+ "dependencies": {
+ "prosemirror-model": "^1.21.0"
+ }
+ },
+ "node_modules/prosemirror-utils": {
+ "version": "1.2.2",
+ "resolved": "https://registry.npmjs.org/prosemirror-utils/-/prosemirror-utils-1.2.2.tgz",
+ "integrity": "sha512-7a2MPf99oCW8/587rQYI1/snX71Ban40+apr1hLkY8TmU9YXd7JeR6QsmktcTisJURO3WRjxIia4lTMsYgZVOw==",
+ "license": "Apache-2.0",
+ "peerDependencies": {
+ "prosemirror-model": "^1.19.2",
+ "prosemirror-state": "^1.4.3"
+ }
+ },
+ "node_modules/prosemirror-view": {
+ "version": "1.44.1",
+ "resolved": "https://registry.npmjs.org/prosemirror-view/-/prosemirror-view-1.44.1.tgz",
+ "integrity": "sha512-Nbt8y1j4RI1PR/iuarAWTQ9ja/jgy9QaxEUdRdAcitfMxV8I/f15/0IO4b2jwbSN/p10tiaNfvmSjHVn641s3A==",
+ "license": "MIT",
+ "dependencies": {
+ "prosemirror-model": "^1.25.12",
+ "prosemirror-state": "^1.0.0",
+ "prosemirror-transform": "^1.1.0"
+ }
+ },
+ "node_modules/prosemirror-view/node_modules/prosemirror-model": {
+ "version": "1.25.13",
+ "resolved": "https://registry.npmjs.org/prosemirror-model/-/prosemirror-model-1.25.13.tgz",
+ "integrity": "sha512-MlDMWGjYXaYOeCiO17jcybntCOzPnN+97U0809ke2QsgPtxW3n5/sD6ZKyJONUgMw1iP93ohZTjeKjnRJ7L6kQ==",
+ "license": "MIT",
+ "dependencies": {
+ "orderedmap": "^2.0.0"
+ }
+ },
+ "node_modules/punycode.js": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/punycode.js/-/punycode.js-2.3.1.tgz",
+ "integrity": "sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/raf-schd": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/raf-schd/-/raf-schd-4.0.3.tgz",
+ "integrity": "sha512-tQkJl2GRWh83ui2DiPTJz9wEiMN20syf+5oKfB03yYP7ioZcJwsIK8FjrtLwH1m7C7e+Tt2yYBlrOpdT+dyeIQ==",
+ "license": "MIT"
+ },
+ "node_modules/react": {
+ "version": "18.3.1",
+ "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz",
+ "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==",
+ "license": "MIT",
+ "dependencies": {
+ "loose-envify": "^1.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/react-clientside-effect": {
+ "version": "1.2.8",
+ "resolved": "https://registry.npmjs.org/react-clientside-effect/-/react-clientside-effect-1.2.8.tgz",
+ "integrity": "sha512-ma2FePH0z3px2+WOu6h+YycZcEvFmmxIlAb62cF52bG86eMySciO/EQZeQMXd07kPCYB0a1dWDT5J+KE9mCDUw==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.12.13"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
+ }
+ },
+ "node_modules/react-dom": {
+ "version": "18.3.1",
+ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz",
+ "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "loose-envify": "^1.1.0",
+ "scheduler": "^0.23.2"
+ },
+ "peerDependencies": {
+ "react": "^18.3.1"
+ }
+ },
+ "node_modules/react-fast-compare": {
+ "version": "3.2.4",
+ "resolved": "https://registry.npmjs.org/react-fast-compare/-/react-fast-compare-3.2.4.tgz",
+ "integrity": "sha512-YbkgZfjvuokdt6zR8Oki8Bt4QXAZim/9HKSUr5J23GVyX2o8sYD/JlKSFrJvEFIPjotWvkGY7DgUS+udyr8cEw==",
+ "license": "MIT"
+ },
+ "node_modules/react-focus-lock": {
+ "version": "2.13.7",
+ "resolved": "https://registry.npmjs.org/react-focus-lock/-/react-focus-lock-2.13.7.tgz",
+ "integrity": "sha512-20lpZHEQrXPb+pp1tzd4ULL6DyO5D2KnR0G69tTDdydrmNhU7pdFmbQUYVyHUgp+xN29IuFR0PVuhOmvaZL9Og==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.0.0",
+ "focus-lock": "^1.3.6",
+ "prop-types": "^15.6.2",
+ "react-clientside-effect": "^1.2.7",
+ "use-callback-ref": "^1.3.3",
+ "use-sidecar": "^1.1.3"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/react-hook-form": {
+ "version": "7.65.0",
+ "resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.65.0.tgz",
+ "integrity": "sha512-xtOzDz063WcXvGWaHgLNrNzlsdFgtUWcb32E6WFaGTd7kPZG3EeDusjdZfUsPwKCKVXy1ZlntifaHZ4l8pAsmw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=18.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/react-hook-form"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17 || ^18 || ^19"
+ }
+ },
+ "node_modules/react-intl": {
+ "version": "7.1.14",
+ "resolved": "https://registry.npmjs.org/react-intl/-/react-intl-7.1.14.tgz",
+ "integrity": "sha512-VE/0Wi/lHJlBC7APQpCzLUdIt3GB5B0GZrRW8Q+ACbkHI4j+Wwgg9J1TniN6zmLHmPH5gxXcMy+fkSPfw5p1WQ==",
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "@formatjs/ecma402-abstract": "2.3.6",
+ "@formatjs/icu-messageformat-parser": "2.11.4",
+ "@formatjs/intl": "3.1.8",
+ "@types/hoist-non-react-statics": "^3.3.1",
+ "@types/react": "16 || 17 || 18 || 19",
+ "hoist-non-react-statics": "^3.3.2",
+ "intl-messageformat": "10.7.18",
+ "tslib": "^2.8.0"
+ },
+ "peerDependencies": {
+ "react": "16 || 17 || 18 || 19",
+ "typescript": "^5.6.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
"node_modules/react-is": {
"version": "18.3.1",
"resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz",
"integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==",
"license": "MIT"
},
+ "node_modules/react-magnetic-di": {
+ "version": "3.2.5",
+ "resolved": "https://registry.npmjs.org/react-magnetic-di/-/react-magnetic-di-3.2.5.tgz",
+ "integrity": "sha512-Ys0noNfKOlnU7nPk7j8V/OxvXe66XMnXwtie8phGsHbPLOHzua82C5aWW1UUzMCWR9F4kBej8VErFq2TndFDkw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=20.0.0"
+ },
+ "peerDependencies": {
+ "prop-types": "^15.0.0",
+ "react": "^16.9.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
+ },
+ "peerDependenciesMeta": {
+ "eslint": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/react-uid": {
+ "version": "2.4.0",
+ "resolved": "https://registry.npmjs.org/react-uid/-/react-uid-2.4.0.tgz",
+ "integrity": "sha512-+MVs/25NrcZuGrmlVRWPOSsbS8y72GJOBsR7d68j3/wqOrRBF52U29XAw4+XSelw0Vm6s5VmGH5mCbTCPGVCVg==",
+ "license": "MIT",
+ "dependencies": {
+ "tslib": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "peerDependencies": {
+ "@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
"node_modules/require-from-string": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",
@@ -1365,6 +6065,42 @@
"node": ">=0.10.0"
}
},
+ "node_modules/resolve": {
+ "version": "1.22.14",
+ "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.14.tgz",
+ "integrity": "sha512-1ZjYvR9sbkiwC5+9QHetqW5HmA2pHRMaoupD01t2HlYnV/vydC2zPwLixhsMieSWVZt0JJRg5LVIk0Ow1D/TrA==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "is-core-module": "^2.18.0",
+ "path-parse": "^1.0.7",
+ "supports-preserve-symlinks-flag": "^1.0.0"
+ },
+ "bin": {
+ "resolve": "bin/resolve"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/resolve-from": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",
+ "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/rope-sequence": {
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/rope-sequence/-/rope-sequence-1.3.4.tgz",
+ "integrity": "sha512-UT5EDe2cu2E/6O4igUr5PSFs23nvvukicWHx6GnOPlHAiiYbzNuCRQCuiUdHJQcqKalLKlrYJnjY0ySGsXNQXQ==",
+ "license": "MIT"
+ },
"node_modules/safe-buffer": {
"version": "5.2.1",
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
@@ -1391,6 +6127,15 @@
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
"license": "MIT"
},
+ "node_modules/scheduler": {
+ "version": "0.23.2",
+ "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz",
+ "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==",
+ "license": "MIT",
+ "dependencies": {
+ "loose-envify": "^1.1.0"
+ }
+ },
"node_modules/set-function-length": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz",
@@ -1428,6 +6173,12 @@
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/shallow-equal": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/shallow-equal/-/shallow-equal-3.1.0.tgz",
+ "integrity": "sha512-pfVOw8QZIXpMbhBWvzBISicvToTiM5WBF1EeAUZDDSb5Dt29yl4AYbyywbJFSEsRUMr7gJaxqCdr4L3tQf9wVg==",
+ "license": "MIT"
+ },
"node_modules/slash": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz",
@@ -1437,6 +6188,15 @@
"node": ">=8"
}
},
+ "node_modules/source-map": {
+ "version": "0.5.7",
+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz",
+ "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==",
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
"node_modules/stack-utils": {
"version": "2.0.6",
"resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz",
@@ -1449,6 +6209,12 @@
"node": ">=10"
}
},
+ "node_modules/stylis": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/stylis/-/stylis-4.2.0.tgz",
+ "integrity": "sha512-Orov6g6BB1sDfYgzWfTHDOxamtX1bE/zo104Dh9e6fqJ3PooipYyfJ0pUmrZO2wAvO8YbEyeFrkV91XTsGMSrw==",
+ "license": "MIT"
+ },
"node_modules/supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
@@ -1461,6 +6227,30 @@
"node": ">=8"
}
},
+ "node_modules/supports-preserve-symlinks-flag": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",
+ "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/tabbable": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/tabbable/-/tabbable-1.1.3.tgz",
+ "integrity": "sha512-nOWwx35/JuDI4ONuF0ZTo6lYvI0fY0tZCH1ErzY2EXfu4az50ZyiUX8X073FLiZtmWUVlkRnuXsehjJgCw9tYg==",
+ "license": "MIT"
+ },
+ "node_modules/tiny-invariant": {
+ "version": "1.3.3",
+ "resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.3.tgz",
+ "integrity": "sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==",
+ "license": "MIT"
+ },
"node_modules/to-buffer": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/to-buffer/-/to-buffer-1.2.2.tgz",
@@ -1507,6 +6297,12 @@
"node": ">= 0.4"
}
},
+ "node_modules/uc.micro": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-2.1.0.tgz",
+ "integrity": "sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==",
+ "license": "MIT"
+ },
"node_modules/undici": {
"version": "7.30.2",
"resolved": "https://registry.npmjs.org/undici/-/undici-7.30.2.tgz",
@@ -1516,6 +6312,91 @@
"node": ">=20.18.1"
}
},
+ "node_modules/use-callback-ref": {
+ "version": "1.3.3",
+ "resolved": "https://registry.npmjs.org/use-callback-ref/-/use-callback-ref-1.3.3.tgz",
+ "integrity": "sha512-jQL3lRnocaFtu3V00JToYz/4QkNWswxijDaCVNZRiRTO3HQDLsdu1ZtmIUvV4yPp+rvWm5j0y0TG/S61cuijTg==",
+ "license": "MIT",
+ "dependencies": {
+ "tslib": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/use-isomorphic-layout-effect": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/use-isomorphic-layout-effect/-/use-isomorphic-layout-effect-1.2.1.tgz",
+ "integrity": "sha512-tpZZ+EX0gaghDAiFR37hj5MgY6ZN55kLiPkJsKxBMZ6GZdOSPJXiOzPM984oPYZ5AnehYx5WQp1+ME8I/P/pRA==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/use-sidecar": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/use-sidecar/-/use-sidecar-1.1.3.tgz",
+ "integrity": "sha512-Fedw0aZvkhynoPYlA5WXrMCAMm+nSWdZt6lzJQ7Ok8S6Q+VsHmHpRWndVRJ8Be0ZbkfPc5LRYH+5XrzXcEeLRQ==",
+ "license": "MIT",
+ "dependencies": {
+ "detect-node-es": "^1.1.0",
+ "tslib": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/uuid": {
+ "version": "11.1.1",
+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-11.1.1.tgz",
+ "integrity": "sha512-vIYxrBCC/N/K+Js3qSN88go7kIfNPssr/hHCesKCQNAjmgvYS2oqr69kIufEG+O4+PfezOH4EbIeHCfFov8ZgQ==",
+ "funding": [
+ "https://github.com/sponsors/broofa",
+ "https://github.com/sponsors/ctavan"
+ ],
+ "license": "MIT",
+ "bin": {
+ "uuid": "dist/esm/bin/uuid"
+ }
+ },
+ "node_modules/w3c-keyname": {
+ "version": "2.2.8",
+ "resolved": "https://registry.npmjs.org/w3c-keyname/-/w3c-keyname-2.2.8.tgz",
+ "integrity": "sha512-dpojBhNsCNN7T82Tm7k26A6G9ML3NkhDsnw9n/eoxSRlVBB4CEtIQ/KTCLI2Fwf3ataSXRhYFkQi3SlnFwPvPQ==",
+ "license": "MIT"
+ },
+ "node_modules/warning": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/warning/-/warning-4.0.3.tgz",
+ "integrity": "sha512-rpJyN222KWIvHJ/F53XSZv0Zl/accqHR8et1kpaMTD/fLCRxtV8iX8czMzY7sVZupTI3zcUTg8eycS2kNF9l6w==",
+ "license": "MIT",
+ "dependencies": {
+ "loose-envify": "^1.0.0"
+ }
+ },
"node_modules/whatwg-encoding": {
"version": "3.1.1",
"resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-3.1.1.tgz",
diff --git a/coderhelm-jira/package.json b/coderhelm-jira/package.json
index b64092755..498882d5b 100644
--- a/coderhelm-jira/package.json
+++ b/coderhelm-jira/package.json
@@ -4,10 +4,14 @@
},
"dependencies": {
"@forge/api": "^7.1.1",
+ "@forge/bridge": "^7.4.0",
+ "@forge/react": "^12.6.0",
"@forge/resolver": "^1.8.0",
- "@forge/ui": "^1.11.4"
+ "@forge/ui": "^1.11.4",
+ "react": "^18.3.1"
},
"overrides": {
- "glob": "^14.0.2"
+ "glob": "^14.0.2",
+ "prosemirror-view": "^1.42.3"
}
}
diff --git a/coderhelm-jira/src/frontend/link.jsx b/coderhelm-jira/src/frontend/link.jsx
new file mode 100644
index 000000000..ea04da089
--- /dev/null
+++ b/coderhelm-jira/src/frontend/link.jsx
@@ -0,0 +1,63 @@
+// The "Link my CoderHelm account" action, in Jira's own UI Kit: a field for
+// the code from CoderHelm's For you page and one button. The resolver
+// (src/link.js) does the work; this only shows what it says.
+
+import React, { useState } from "react";
+import ForgeReconciler, { Box, Button, Form, FormFooter, FormSection, Label, SectionMessage, Stack, Text, Textfield, useForm } from "@forge/react";
+import { invoke, view } from "@forge/bridge";
+
+function LinkAccount() {
+ const { handleSubmit, register, getFieldId } = useForm();
+ const [result, setResult] = useState(null);
+ const [busy, setBusy] = useState(false);
+
+ const link = async (data) => {
+ setBusy(true);
+ try {
+ setResult(await invoke("linkAccount", { code: data.code }));
+ } catch (e) {
+ setResult({ ok: false, message: "CoderHelm couldn't be reached. Try again in a minute." });
+ } finally {
+ setBusy(false);
+ }
+ };
+
+ return (
+
+
+ Paste the code from CoderHelm's For you page (Connect Jira). CoderHelm then knows this Jira account is yours and shows your sprint there. Only your account id is sent, never your name or email.
+
+ {result ? (
+
+ {result.message}
+
+ ) : null}
+ {result && result.ok ? (
+
+ ) : (
+
+ )}
+
+ );
+}
+
+ForgeReconciler.render(
+
+
+ ,
+);
diff --git a/coderhelm-jira/src/issues.js b/coderhelm-jira/src/issues.js
index 47cda6d69..95c403a64 100644
--- a/coderhelm-jira/src/issues.js
+++ b/coderhelm-jira/src/issues.js
@@ -112,12 +112,118 @@ function issueOf(raw, links) {
/** The most issues one "what is waiting on me" read returns, of each kind. */
const MAX_MINE = 15;
+// ── The person's open sprint (CoderHelm's For you page) ─────────────────────
+
+/** The most sprint issues one read returns. */
+const MAX_SPRINT = 50;
+/** The characters of a description sent back (the fit checklist reads it). */
+const MAX_DESCRIPTION_CHARS = 4000;
+
+/**
+ * The JQL for "my open sprint": the person's unfinished issues in every open
+ * sprint, in board order. The app runs as itself (asApp), where
+ * currentUser() would be the app, so the account id is written in; it is
+ * checked to be an account id first, so it can't end the string.
+ */
+function sprintJql(accountId) {
+ const id = String(accountId || "");
+ if (!/^[A-Za-z0-9:-]{8,128}$/.test(id)) return null;
+ return `assignee = "${id}" AND sprint in openSprints() AND statusCategory != Done ORDER BY rank ASC`;
+}
+
+/**
+ * The site's story point and sprint fields, from GET /rest/api/3/field.
+ * Their ids differ per site (customfield_10016 on one, 10026 on another), so
+ * they are found by their type: Jira Software's story points (or a number
+ * field named "Story points" / "Story point estimate") and its sprint field.
+ */
+function fieldIds(fields) {
+ const list = Array.isArray(fields) ? fields : [];
+ const custom = (f) => (f && f.schema && f.schema.custom) || "";
+ const points =
+ list.find((f) => custom(f).endsWith(":jsw-story-points")) ||
+ list.find((f) => /^story points?( estimate)?$/i.test(String((f && f.name) || "").trim()) && f.schema && f.schema.type === "number") ||
+ null;
+ const sprint = list.find((f) => custom(f) === "com.pyxis.greenhopper.jira:gh-sprint") || null;
+ return { points: points ? points.id : null, sprint: sprint ? sprint.id : null };
+}
+
+/** The open sprint an issue is in (the active one when it is in several). */
+function openSprintOf(value) {
+ const all = (Array.isArray(value) ? value : []).filter((s) => s && typeof s === "object");
+ const open = all.filter((s) => s.state === "active");
+ const s = open[0] || all.find((x) => x.state === "future") || null;
+ if (!s) return null;
+ return { id: s.id || null, name: String(s.name || ""), state: String(s.state || ""), end_date: String(s.endDate || "") };
+}
+
+/** One sprint issue as the fit checklist reads it. */
+function sprintIssueOf(raw, ids) {
+ const f = (raw && raw.fields) || {};
+ const pts = ids && ids.points ? f[ids.points] : null;
+ return {
+ key: raw.key,
+ summary: f.summary || "",
+ type: (f.issuetype && f.issuetype.name) || "",
+ status: (f.status && f.status.name) || "",
+ status_category: (f.status && f.status.statusCategory && f.status.statusCategory.key) || "",
+ priority: (f.priority && f.priority.name) || "",
+ assignee_id: accountIdOf(f.assignee),
+ labels: Array.isArray(f.labels) ? f.labels.filter((l) => typeof l === "string").slice(0, 30) : [],
+ components: (Array.isArray(f.components) ? f.components : []).map((c) => (c && c.name) || "").filter(Boolean).slice(0, 10),
+ points: typeof pts === "number" && Number.isFinite(pts) ? pts : null,
+ description: adfText(f.description).trim().slice(0, MAX_DESCRIPTION_CHARS),
+ sprint: ids && ids.sprint ? openSprintOf(f[ids.sprint]) : null,
+ updated: f.updated || "",
+ };
+}
+
+/**
+ * What "Give to CoderHelm" may do to an issue, checked before any call: a
+ * real key, the team's trigger label (letters, digits and : / . _ -), and
+ * the giver's account id. `null` when any is wrong.
+ */
+function giveRequest(give) {
+ const key = String((give && give.key) || "");
+ const label = String((give && give.label) || "");
+ const accountId = String((give && give.account_id) || "");
+ if (!/^[A-Z][A-Z0-9_]{0,19}-\d{1,7}$/.test(key)) return null;
+ if (!/^[A-Za-z0-9_:\/.-]{1,100}$/.test(label)) return null;
+ if (!/^[A-Za-z0-9:-]{8,128}$/.test(accountId)) return null;
+ return { key, label, accountId };
+}
+
+/**
+ * The label updates that make Jira send the change CoderHelm starts on: an
+ * add, or (when the label is already there, from an earlier run) a remove
+ * then an add, since an unchanged label sends no event.
+ */
+function labelSteps(labels, label) {
+ const has = (Array.isArray(labels) ? labels : []).includes(label);
+ return has ? [{ remove: label }, { add: label }] : [{ add: label }];
+}
+
+/** The fields a sprint read asks Jira for. */
+function sprintFields(ids) {
+ const base = ["summary", "issuetype", "status", "priority", "assignee", "labels", "components", "description", "updated"];
+ return [...base, ...[ids && ids.points, ids && ids.sprint].filter(Boolean)];
+}
+
module.exports = {
adfText,
adfMentions,
jqlFor,
mineJql,
issueOf,
+ sprintJql,
+ giveRequest,
+ labelSteps,
+ fieldIds,
+ openSprintOf,
+ sprintIssueOf,
+ sprintFields,
+ MAX_SPRINT,
+ MAX_DESCRIPTION_CHARS,
MAX_SEARCH,
MAX_MINE,
MAX_ISSUE_COMMENTS,
diff --git a/coderhelm-jira/src/link-resolver.js b/coderhelm-jira/src/link-resolver.js
new file mode 100644
index 000000000..55d052ab3
--- /dev/null
+++ b/coderhelm-jira/src/link-resolver.js
@@ -0,0 +1,12 @@
+// The resolver behind "Link my CoderHelm account" (manifest: linkResolver).
+// The work and its tests are in link.js; this file only wires it to Forge.
+
+const Resolver = require("@forge/resolver").default;
+const { linkAccount } = require("./link");
+
+const resolver = new Resolver();
+
+// `context.accountId` is the person who opened the action, set by Forge.
+resolver.define("linkAccount", ({ payload, context }) => linkAccount(payload, context));
+
+exports.handler = resolver.getDefinitions();
diff --git a/coderhelm-jira/src/link.js b/coderhelm-jira/src/link.js
new file mode 100644
index 000000000..e1b0d65fa
--- /dev/null
+++ b/coderhelm-jira/src/link.js
@@ -0,0 +1,110 @@
+// "Link my CoderHelm account": a person proves which Jira account is theirs.
+//
+// CoderHelm's For you page shows a person their own sprint, and starts work
+// on a ticket with them as its owner. For that it must know which Jira
+// account belongs to which CoderHelm user, and an email match can't tell:
+// Atlassian lets people hide their email, and work and sign-in emails often
+// differ. So the link is made by the person, from both sides at once:
+//
+// 1. On CoderHelm's For you page they ask for a one-time code (it is
+// signed for their team and works for fifteen minutes).
+// 2. Here, from any issue's "..." menu, they open "Link my CoderHelm
+// account" and paste it.
+// 3. This resolver sends the code with the account id Forge gives for the
+// person who opened the action (`context.accountId`: Forge sets it, the
+// person can't type another one) to CoderHelm, proven by the site's
+// Forge secret like every event the app sends.
+//
+// CoderHelm then stores which CoderHelm user that Jira account is. Nothing
+// about the person (no name, no email) is sent: only the account id and the
+// code. Unlinking is on the For you page.
+
+/** The Forge SDK, loaded when first used, so this file (and its tests) load without it. */
+function forge() {
+ return require("@forge/api");
+}
+
+const { GATEWAY_URL } = require("./gateway");
+const { versionFields } = require("./version");
+
+/** A code as CoderHelm shows it (ABCD-EFGH-JKMN-PQRS), typed loosely. */
+function cleanCode(raw) {
+ const code = String(raw || "")
+ .toUpperCase()
+ .replace(/[^0-9A-Z]/g, "");
+ return code.length === 16 ? code : null;
+}
+
+/** The body sent to CoderHelm: the team's proof, the account and the code. */
+function linkBody(config, accountId, code, getAppContext) {
+ return {
+ coderhelm: {
+ team_id: config.teamId,
+ forge_secret: config.forgeSecret,
+ ...versionFields(getAppContext),
+ },
+ account_id: accountId,
+ code,
+ };
+}
+
+/** What the person reads after CoderHelm answered `status` with `body`. */
+function linkResult(status, body) {
+ const said = body && typeof body.message === "string" ? body.message : "";
+ if (status === 200) {
+ return { ok: true, message: said || "Linked. Your sprint shows on CoderHelm's For you page." };
+ }
+ if (status === 410 || status === 404) {
+ return { ok: false, message: said || "That code has expired or was already used. Make a new one on the For you page." };
+ }
+ if (status === 409) {
+ return { ok: false, message: said || "This Jira account is already linked to another CoderHelm user." };
+ }
+ if (status === 400) {
+ return { ok: false, message: said || "That isn't a CoderHelm code. Copy it again from the For you page." };
+ }
+ if (status === 403 || status === 401) {
+ return { ok: false, message: "CoderHelm didn't recognize this Jira site. Ask your Jira admin to check the app's settings." };
+ }
+ return { ok: false, message: `CoderHelm couldn't link the account right now (${status}). Try again in a minute.` };
+}
+
+/**
+ * Links the account of the person who opened the action. `deps` are the
+ * Forge pieces, passed in by tests.
+ */
+async function linkAccount(payload, context, deps = {}) {
+ const storage = deps.storage || forge().storage;
+ const fetch = deps.fetch || forge().fetch;
+ const accountId = String((context && context.accountId) || "");
+ if (!/^[A-Za-z0-9:-]{8,128}$/.test(accountId)) {
+ return { ok: false, message: "Jira didn't say who you are. Open the action from an issue while signed in." };
+ }
+ const code = cleanCode(payload && payload.code);
+ if (!code) {
+ return { ok: false, message: "That isn't a CoderHelm code. It has 16 letters and numbers, like ABCD-EFGH-JKMN-PQRS." };
+ }
+ const config = await storage.get("coderhelm-config");
+ if (!config || !config.teamId || !config.forgeSecret) {
+ return { ok: false, message: "This Jira site isn't connected to CoderHelm yet. Ask your Jira admin to set it up." };
+ }
+ try {
+ const res = await fetch(`${GATEWAY_URL}/webhooks/jira-link`, {
+ method: "POST",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify(linkBody(config, accountId, code, deps.getAppContext)),
+ });
+ let body = null;
+ try {
+ body = await res.json();
+ } catch (_) {
+ body = null;
+ }
+ return linkResult(res.status, body);
+ } catch (e) {
+ console.error("Link my CoderHelm account failed:", e);
+ return { ok: false, message: "CoderHelm couldn't be reached. Try again in a minute." };
+ }
+}
+
+module.exports = { cleanCode, linkBody, linkResult, linkAccount };
diff --git a/coderhelm-jira/src/release.js b/coderhelm-jira/src/release.js
index 50b10fb52..3650feafc 100644
--- a/coderhelm-jira/src/release.js
+++ b/coderhelm-jira/src/release.js
@@ -7,7 +7,7 @@
const api = require("@forge/api");
const { storage, route } = api;
-const { jqlFor, mineJql, issueOf, MAX_SEARCH, MAX_MINE } = require("./issues");
+const { jqlFor, mineJql, issueOf, MAX_SEARCH, MAX_MINE, sprintJql, fieldIds, sprintIssueOf, sprintFields, MAX_SPRINT, giveRequest, labelSteps } = require("./issues");
const json = (statusCode, obj) => ({
statusCode,
@@ -90,9 +90,81 @@ async function mineHandler(mine) {
});
}
+/** Where the site's story point and sprint field ids are kept, and for how long. */
+const FIELDS_KEY = "coderhelm-fields";
+const FIELDS_FOR_MS = 24 * 3600 * 1000;
+
+/** The site's story point and sprint field ids, read once a day. */
+async function siteFields() {
+ const kept = await storage.get(FIELDS_KEY).catch(() => null);
+ if (kept && kept.at && Date.now() - kept.at < FIELDS_FOR_MS) return kept.ids;
+ const res = await api.asApp().requestJira(route`/rest/api/3/field`);
+ if (!res.ok) return { points: null, sprint: null };
+ const ids = fieldIds(await res.json());
+ await storage.set(FIELDS_KEY, { at: Date.now(), ids }).catch(() => {});
+ return ids;
+}
+
+/**
+ * The "my open sprint" read (CoderHelm's For you page): the person's
+ * unfinished issues in open sprints, with status, points, labels,
+ * components and the description, one search.
+ */
+async function sprintHandler(sprint) {
+ const accountId = String((sprint && sprint.account_id) || "");
+ const jql = sprintJql(accountId);
+ if (!jql) {
+ return json(200, { issues: [], sprint: { found: false, why: "no Jira account id was sent" } });
+ }
+ const ids = await siteFields();
+ const res = await api.asApp().requestJira(route`/rest/api/3/search/jql`, {
+ method: "POST",
+ headers: { Accept: "application/json", "Content-Type": "application/json" },
+ body: JSON.stringify({ jql, maxResults: MAX_SPRINT, fields: sprintFields(ids) }),
+ });
+ if (!res.ok) {
+ return json(200, { issues: [], sprint: { found: false, why: `Jira answered ${res.status} to the sprint search` } });
+ }
+ const found = await res.json();
+ const issues = ((found && found.issues) || []).map((raw) => sprintIssueOf(raw, ids));
+ return json(200, {
+ issues,
+ sprint: { found: true, account_id: accountId, points_field: Boolean(ids.points), sprint_field: Boolean(ids.sprint) },
+ });
+}
+
+/**
+ * "Give to CoderHelm" from the For you page: the issue gets the team's
+ * trigger label, exactly as a person adding it in Jira would, so the run
+ * starts through the same path (the label's event). Only an issue assigned
+ * to the giver: the app checks the assignee itself before it writes.
+ */
+async function giveHandler(give) {
+ const req = giveRequest(give);
+ if (!req) return json(200, { given: { ok: false, why: "the request was not a valid issue, label and account" } });
+ const res = await api.asApp().requestJira(route`/rest/api/3/issue/${req.key}?fields=assignee,labels`);
+ if (!res.ok) return json(200, { given: { ok: false, why: `Jira answered ${res.status} for ${req.key}` } });
+ const fields = ((await res.json()) || {}).fields || {};
+ const assignee = (fields.assignee && fields.assignee.accountId) || "";
+ if (assignee !== req.accountId) {
+ return json(200, { given: { ok: false, why: `${req.key} isn't assigned to you` } });
+ }
+ for (const step of labelSteps(fields.labels, req.label)) {
+ const put = await api.asApp().requestJira(route`/rest/api/3/issue/${req.key}`, {
+ method: "PUT",
+ headers: { Accept: "application/json", "Content-Type": "application/json" },
+ body: JSON.stringify({ update: { labels: [step] } }),
+ });
+ if (!put.ok) return json(200, { given: { ok: false, why: `Jira answered ${put.status} when adding the label` } });
+ }
+ return json(200, { given: { ok: true, key: req.key } });
+}
+
/**
* POST { forge_secret, keys: ["ABC-1", ...] } or { forge_secret, query: "words" }
* or { forge_secret, mine: { account_id?, email? } }
+ * or { forge_secret, sprint: { account_id } }
+ * or { forge_secret, give: { key, label, account_id } }
* → { issues: [{key, summary, type, status, assignee, priority, updated, created, comments, links}] }
*
* By keys: each issue the app can read (release notes, Chat). By query: the
@@ -105,6 +177,8 @@ exports.getIssuesHandler = async (request) => {
const body = JSON.parse(request.body || "{}");
if (!(await authorized(body))) return json(403, { error: "forbidden" });
if (body.mine && typeof body.mine === "object") return await mineHandler(body.mine);
+ if (body.sprint && typeof body.sprint === "object") return await sprintHandler(body.sprint);
+ if (body.give && typeof body.give === "object") return await giveHandler(body.give);
let keys = (Array.isArray(body.keys) ? body.keys : [])
.filter((k) => /^[A-Z][A-Z0-9]+-\d+$/.test(k))
.slice(0, 50);
diff --git a/coderhelm-jira/test/issues.test.js b/coderhelm-jira/test/issues.test.js
index 0b69060da..63aea17c3 100644
--- a/coderhelm-jira/test/issues.test.js
+++ b/coderhelm-jira/test/issues.test.js
@@ -70,3 +70,80 @@ test("the waiting-on-me JQL takes only an account id, never more clauses", () =>
assert.equal(mineJql('x" OR project = SECRET'), null);
assert.equal(mineJql(""), null);
});
+
+// ── The person's open sprint (For you) ───────────────────────────────────────
+const { sprintJql, fieldIds, sprintIssueOf, sprintFields, openSprintOf } = require("../src/issues");
+
+test("the sprint search names the person's account id, since the app runs as itself", () => {
+ assert.equal(
+ sprintJql("557058:aaaa1111-0000-0000-0000-000000000001"),
+ 'assignee = "557058:aaaa1111-0000-0000-0000-000000000001" AND sprint in openSprints() AND statusCategory != Done ORDER BY rank ASC',
+ );
+ assert.doesNotMatch(sprintJql("557058:aaaa1111-0000-0000-0000-000000000001"), /currentUser/);
+ assert.equal(sprintJql('x" OR assignee is not EMPTY'), null);
+ assert.equal(sprintJql(""), null);
+});
+
+test("story points and the sprint field are found by type, whatever their ids", () => {
+ const fields = [
+ { id: "summary", name: "Summary", schema: { type: "string" } },
+ { id: "customfield_10020", name: "Sprint", schema: { type: "array", custom: "com.pyxis.greenhopper.jira:gh-sprint" } },
+ { id: "customfield_10016", name: "Story point estimate", schema: { type: "number", custom: "com.pyxis.greenhopper.jira:jsw-story-points" } },
+ ];
+ assert.deepEqual(fieldIds(fields), { points: "customfield_10016", sprint: "customfield_10020" });
+ assert.deepEqual(fieldIds([{ id: "customfield_10026", name: "Story Points", schema: { type: "number" } }]), { points: "customfield_10026", sprint: null });
+ assert.deepEqual(fieldIds([{ id: "customfield_1", name: "Story Points", schema: { type: "string" } }]), { points: null, sprint: null });
+ assert.deepEqual(fieldIds(null), { points: null, sprint: null });
+ assert.deepEqual(sprintFields({ points: "customfield_10016", sprint: null }).slice(-1), ["customfield_10016"]);
+});
+
+test("a sprint issue carries what the fit checklist reads", () => {
+ const ids = { points: "customfield_10016", sprint: "customfield_10020" };
+ const raw = {
+ key: "BOOK-118",
+ fields: {
+ summary: "Fix the broken help link in the refund email",
+ issuetype: { name: "Story" },
+ status: { name: "To Do", statusCategory: { key: "new" } },
+ priority: { name: "Medium" },
+ assignee: { accountId: "557058:a1", displayName: "Dana Ortiz" },
+ labels: ["coderhelm:acme/web", 7],
+ components: [{ name: "Emails" }],
+ description: doc("Change web/src/emails/refund.tsx"),
+ customfield_10016: 1,
+ customfield_10020: [
+ { id: 23, name: "Sprint 23", state: "closed", endDate: "2027-01-01T00:00:00.000Z" },
+ { id: 24, name: "Sprint 24", state: "active", endDate: "2027-01-21T00:00:00.000Z" },
+ ],
+ updated: "2027-01-15T10:00:00.000+0000",
+ },
+ };
+ const i = sprintIssueOf(raw, ids);
+ assert.equal(i.key, "BOOK-118");
+ assert.equal(i.status_category, "new");
+ assert.deepEqual(i.labels, ["coderhelm:acme/web"]);
+ assert.deepEqual(i.components, ["Emails"]);
+ assert.equal(i.points, 1);
+ assert.equal(i.description, "Change web/src/emails/refund.tsx");
+ assert.deepEqual(i.sprint, { id: 24, name: "Sprint 24", state: "active", end_date: "2027-01-21T00:00:00.000Z" });
+ assert.equal(i.assignee_id, "557058:a1");
+ assert.equal(sprintIssueOf({ key: "BOOK-1", fields: { customfield_10016: "3" } }, ids).points, null);
+ assert.equal(openSprintOf([]), null);
+});
+
+const { giveRequest, labelSteps } = require("../src/issues");
+
+test("Give to CoderHelm checks the key, label and account before any call", () => {
+ const ok = giveRequest({ key: "BOOK-112", label: "coderhelm", account_id: "557058:a1b2c3d4" });
+ assert.deepEqual(ok, { key: "BOOK-112", label: "coderhelm", accountId: "557058:a1b2c3d4" });
+ assert.equal(giveRequest({ key: "book-112", label: "coderhelm", account_id: "557058:a1b2c3d4" }), null);
+ assert.equal(giveRequest({ key: "BOOK-112", label: "a b", account_id: "557058:a1b2c3d4" }), null);
+ assert.equal(giveRequest({ key: "BOOK-112", label: "coderhelm", account_id: 'x" OR 1=1' }), null);
+ assert.deepEqual(giveRequest({ key: "BOOK-112", label: "coderhelm:acme/web", account_id: "557058:a1b2c3d4" }).label, "coderhelm:acme/web");
+});
+
+test("a label already on the issue is taken off and put back, so Jira sends the change", () => {
+ assert.deepEqual(labelSteps(["ui"], "coderhelm"), [{ add: "coderhelm" }]);
+ assert.deepEqual(labelSteps(["coderhelm"], "coderhelm"), [{ remove: "coderhelm" }, { add: "coderhelm" }]);
+ assert.deepEqual(labelSteps(undefined, "coderhelm"), [{ add: "coderhelm" }]);
+});
diff --git a/coderhelm-jira/test/link.test.js b/coderhelm-jira/test/link.test.js
new file mode 100644
index 000000000..e13e9bdbe
--- /dev/null
+++ b/coderhelm-jira/test/link.test.js
@@ -0,0 +1,75 @@
+// "Link my CoderHelm account": the person who opened the action is the
+// account sent (Forge's context, never typed), with only the one-time code
+// and the site's proof; nothing else about the person leaves Jira.
+
+const { test } = require("node:test");
+const assert = require("node:assert/strict");
+const { cleanCode, linkBody, linkResult, linkAccount } = require("../src/link");
+
+const ME = "557058:aaaa1111-0000-0000-0000-000000000001";
+const CONFIG = { teamId: "team-acme", forgeSecret: "s3cret" };
+
+function deps(status, body, seen = []) {
+ return {
+ storage: { get: async () => CONFIG },
+ fetch: async (url, init) => {
+ seen.push({ url, body: JSON.parse(init.body) });
+ return { status, json: async () => body };
+ },
+ getAppContext: () => ({ appVersion: "7.1.0", appAri: "ari:cloud:ecosystem::app/00000000-0000-0000-0000-000000000001" }),
+ };
+}
+
+test("a code is read the way people paste it", () => {
+ assert.equal(cleanCode("abcd-efgh-jkmn-pqrs"), "ABCDEFGHJKMNPQRS");
+ assert.equal(cleanCode(" ABCD EFGH JKMN PQRS "), "ABCDEFGHJKMNPQRS");
+ assert.equal(cleanCode("ABCD-EFGH"), null);
+ assert.equal(cleanCode(""), null);
+});
+
+test("the account sent is the one Forge says opened the action, with the code and the site's proof only", async () => {
+ const seen = [];
+ const r = await linkAccount({ code: "abcd-efgh-jkmn-pqrs", accountId: "557058:someone-else" }, { accountId: ME }, deps(200, { message: "Linked to Dana Ortiz in CoderHelm." }, seen));
+ assert.deepEqual(r, { ok: true, message: "Linked to Dana Ortiz in CoderHelm." });
+ assert.equal(seen.length, 1);
+ assert.match(seen[0].url, /\/webhooks\/jira-link$/);
+ assert.equal(seen[0].body.account_id, ME, "never an id from the payload");
+ assert.equal(seen[0].body.code, "ABCDEFGHJKMNPQRS");
+ assert.equal(seen[0].body.coderhelm.team_id, "team-acme");
+ assert.equal(seen[0].body.coderhelm.forge_secret, "s3cret");
+ assert.equal(seen[0].body.coderhelm.app_version, "7.1.0");
+ assert.deepEqual(Object.keys(seen[0].body).sort(), ["account_id", "code", "coderhelm"]);
+ assert.doesNotMatch(JSON.stringify(seen[0].body), /email|displayName|name/);
+});
+
+test("nothing is sent without a signed-in person, a code or the site's setup", async () => {
+ const seen = [];
+ assert.equal((await linkAccount({ code: "abcd-efgh-jkmn-pqrs" }, {}, deps(200, {}, seen))).ok, false);
+ assert.equal((await linkAccount({ code: "nope" }, { accountId: ME }, deps(200, {}, seen))).ok, false);
+ const unset = { ...deps(200, {}, seen), storage: { get: async () => null } };
+ const r = await linkAccount({ code: "abcd-efgh-jkmn-pqrs" }, { accountId: ME }, unset);
+ assert.equal(r.ok, false);
+ assert.match(r.message, /isn't connected to CoderHelm/);
+ assert.equal(seen.length, 0);
+});
+
+test("each answer from CoderHelm says what to do next", () => {
+ assert.equal(linkResult(200, {}).ok, true);
+ assert.match(linkResult(410, {}).message, /expired or was already used/);
+ assert.match(linkResult(409, {}).message, /already linked to another/);
+ assert.match(linkResult(400, {}).message, /isn't a CoderHelm code/);
+ assert.match(linkResult(403, {}).message, /didn't recognize this Jira site/);
+ assert.match(linkResult(500, {}).message, /\(500\)/);
+ assert.equal(linkResult(409, { message: "Unlink it on For you first." }).message, "Unlink it on For you first.");
+});
+
+test("a network failure is said, never thrown", async () => {
+ const broken = { ...deps(200, {}), fetch: async () => { throw new Error("offline"); } };
+ const r = await linkAccount({ code: "abcd-efgh-jkmn-pqrs" }, { accountId: ME }, broken);
+ assert.deepEqual(r, { ok: false, message: "CoderHelm couldn't be reached. Try again in a minute." });
+});
+
+test("the body is built from the stored setup", () => {
+ const b = JSON.parse(JSON.stringify(linkBody(CONFIG, ME, "ABCDEFGHJKMNPQRS", () => ({}))));
+ assert.deepEqual(b, { coderhelm: { team_id: "team-acme", forge_secret: "s3cret" }, account_id: ME, code: "ABCDEFGHJKMNPQRS" });
+});
diff --git a/coderhelm-jira/test/manifest.test.js b/coderhelm-jira/test/manifest.test.js
index 00641eaec..4d892c9b1 100644
--- a/coderhelm-jira/test/manifest.test.js
+++ b/coderhelm-jira/test/manifest.test.js
@@ -25,3 +25,13 @@ test("no source file calls Confluence", () => {
assert.doesNotMatch(fs.readFileSync(path.join(root, "src", f), "utf8"), /requestConfluence/, f);
}
});
+
+test("Link my CoderHelm account is an issue action that adds no scope or web trigger", () => {
+ assert.match(manifest, /jira:issueAction:\n\s+- key: coderhelm-link-account\n\s+title: Link my CoderHelm account/);
+ assert.match(manifest, /handler: link-resolver\.handler/);
+ // A new web trigger or scope would make a major version every site admin
+ // must accept; linking needs neither (it posts to the gateway the app
+ // already reaches).
+ const triggers = manifest.split("webtrigger:")[1].split("jira:issueAction:")[0];
+ assert.equal((triggers.match(/- key:/g) || []).length, 5);
+});
diff --git a/docs/for-you.md b/docs/for-you.md
new file mode 100644
index 000000000..b9f980880
--- /dev/null
+++ b/docs/for-you.md
@@ -0,0 +1,86 @@
+# For you
+
+One person's own page in the dashboard: what needs them now (grouped by whose turn it is), their open sprint with a fit band per ticket, what CoderHelm is doing for them, their pull requests waiting on others, Later, three private numbers, and suggestions. The dashboard's **For you** page reads it from `GET /api/foryou`.
+
+## Who it is for
+
+Every route reads the session's team and the session's user. None takes a user, an email or a login (`docs/incidents/ya_for_you_is_only_yours.md`).
+
+- **GitHub**: the login on the session (`claims.github_login`), set by GitHub sign-in.
+- **Jira**: the account the person linked themselves. On the dashboard, `POST /api/foryou/link/jira` makes a one-time code (16 characters, signed for the team, 15 minutes, stored by its hash under `FORYOU#CODE#`). In Jira, the app's **Link my CoderHelm account** issue action (`coderhelm-jira/src/link.js`) sends it with the account id Forge gives for the person who opened it, to `POST /webhooks/jira-link`, proven by the site's Forge secret. The code is checked against its signature first, then used up in the same delete that reads it. The link is two rows on the settings table: `FORYOU#JIRA#` (the account id) and `linked_user` on the account's own `JIRAUSER#` row. An account is linked to one person at a time. `DELETE /api/foryou/link/jira` removes both.
+- An email never makes a link. A Jira user seen with the person's sign-in email, linked to nobody, is offered as "Is this you?" (`common::foryou::identity_suggestion`); yes starts the code flow, `POST /api/foryou/link/jira/not-me` stops asking. Chat's "what needs me" (`chat_work_needs::gather`) reads the same link and nothing else.
+
+## What it reads (nothing forked)
+
+- **Pull requests**: the records `GET /api/prs` reads (`prs::read_all`, `pr_view::rows`, the state from `pr_needs::decide`), grouped by `common::foryou::pr_group`: reviews asked of you, your pull requests (and CoderHelm's for you) returned to you, and yours waiting on someone else. No GitHub calls.
+- **Runs, held tool calls, Jira mentions and assigned tickets**: `chat_work_needs::gather`, with the runs read once and the linked account passed in, GitHub left to the records.
+- **The open sprint**: the Jira app's get-issues trigger with `{ "sprint": { "account_id" } }`. The app runs as itself, so the account id is written into the JQL: `assignee = "" AND sprint in openSprints() AND statusCategory != Done ORDER BY rank ASC`. Story points and the sprint field are found per site by type (`fieldIds`). An app without the mode answers without `sprint`: the page says the site's app is older.
+- **History**: `pr_history::all_since` (90 days), for the review turnaround and the files a person changed.
+- The heavy reads are kept 30 seconds per installation, team and user (`foryou::READS`); the person's settings are read fresh.
+
+## The fit bands
+
+`common::foryou::fit`, a checklist with reasons and what is missing, never a percentage:
+
+- **Not suggested**: on the exclude list by title, type, labels or components (security, auth and permissions, personal data, incidents, production-critical, highest priority, three or more repositories), 8 points or more, or neither a repository nor acceptance criteria.
+- **Good fit**: acceptance criteria, one repository known (a `coderhelm:` label, a repository the ticket names, or where the project's earlier runs went), 3 points or less (or a short description with no estimate), files or an area named, and tests not known to be missing.
+- **Maybe (plan first)**: the rest.
+
+## Give to CoderHelm
+
+- `GET /api/foryou/give?key=` previews: the fit, the repositories, the files named, the criteria, and that the plan comes first (the planner has no dry-run mode).
+- `POST /api/foryou/give {key, plan_first}` (the "runs" capability) accepts only a ticket in the person's own open sprint, writes `FORYOU#GIVE#` (the owner, their Jira account, `plan_first`), and asks the Jira app (`{ "give": { key, label, account_id } }`) to add the team's trigger label. The app checks the ticket is assigned to that account first. Jira sends the change like any label, and the run starts on the label path (`jira_webhook::ticket_triggers`); `foryou_give::owner_for_event` credits the person who gave it as the requester, once, within 15 minutes. CoderHelm is the delegate; the ticket stays assigned to the person. Answered `202` at once.
+- With `plan_first`, the worker stops once the plan passes its checks and asks `common::foryou::PLAN_QUESTION`. The stop judge settles it by rule (`Picture::plan_first_for`, `PersonOnly::PlanApproval`): no model call, no default, no deadline. Answering "Approve the plan and start coding" on the run page starts the next run, which codes and marks the give approved.
+
+## Suggestions
+
+One per row, on a new or changed item only (`common::foryou::reconcile`):
+
+- **give**: a good-fit ticket in the sprint. The basis is the ticket's text, estimate, status and repositories.
+- **review**: an open pull request in its first review with no reviewer asked, in files the person changed in at least two of their merged pull requests. Accepting asks GitHub to add them as a reviewer (`POST /api/foryou/suggestions {action: "accept"}`).
+
+A suggestion stays about a week when nothing changes, then rests. A changed basis withdraws the old one with its reason; one no longer computed is withdrawn once with why ("Someone else picked it up: @mara took the review of acme/web#478"). Dismissing is one click; a reason then does one fixed thing (`DISMISS_REASONS`): already handled (hidden until the basis changes), not now (tomorrow 9:00), not me (never for that target), don't suggest this kind (the kind is muted until turned back on in Customize). Snooze: later today, tomorrow, after the sprint. Undo reverses the last change and its reason.
+
+## The person's settings
+
+`FORYOU#USER#` holds the layout (section order, hidden sections, the right side's cards, the landing page), snoozed and done items, the last change per key for Undo, the suggestions shown with their basis, muted kinds, "not me" targets, and "Is this you?" answers. Written with a version check. `PUT /api/foryou/prefs`, `POST /api/foryou/items {key, action: snooze|done|undo}`, `POST /api/foryou/suggestions {key, action: dismiss|reason|snooze|undo|accept}`.
+
+## GET /api/foryou
+
+```json
+{
+ "viewer": {"name": "Dana Ortiz", "github": "dana-ortiz"},
+ "header": {"needs": 6, "working": 2, "waiting": 3},
+ "needs": {
+ "reviews": [NeedItem], "suggested_reviews": [NeedItem], "returned": [NeedItem], "asks": [NeedItem]
+ },
+ "sprint": {"state": "ok|not_linked|not_connected|app_old|failed", "detail": "", "meta": {"name": "Sprint 24", "project": "ENG", "end_date": "...", "days_left": 6, "points": 21}, "tickets": [Ticket]},
+ "working": [{"run_id": "...", "ticket": "ENG-142", "repo": "acme/web", "title": "...", "started_at": "...", "stage": "planning|coding|ci|waiting", "stage_label": "CI", "note": "...", "waiting_on_you": false, "plan_first": false, "owner": "you", "delegate": "CoderHelm", "pr": {"url": "...", "number": "491"}, "href": "/runs/detail?id=..."}],
+ "waiting": [{"key": "pr:acme/api#477", "where": "acme/api#477", "title": "...", "next": {"who": "mara", "what": "needs review", "text": "...", "turn": "person"}, "since": "...", "by_coderhelm": false, "href": "...", "nudge_href": "..."}],
+ "later": [{"key": "...", "later": "snoozed|not_in_sprint|fyi", "title": "...", "where": "...", "snoozed_until": "...", "href": "..."}],
+ "stats": {
+ "waiting_on_you": {"count": 6, "oldest": {"where": "acme/web#482", "since": "..."}},
+ "waiting_on_others": {"count": 3, "longest": {"where": "acme/api#477", "since": "..."}},
+ "review_turnaround": {"median_secs": 15000, "reviews": 9, "days": 28}
+ },
+ "suggestions": [Suggestion],
+ "suggestion_summary": {"count": 3, "kinds": [{"kind": "give", "count": 2, "text": "2 tickets CoderHelm can take"}], "top": [], "batch": {"kind": "give", "keys": ["WEB-42", "ENG-142"], "text": "Give both to CoderHelm"}},
+ "withdrawn": [{"key": "review:acme/web#478", "kind": "review", "target": "pr:acme/web#478", "text": "...", "withdrawn_reason": "..."}],
+ "accounts": {"github": {"state": "linked", "login": "dana-ortiz"}, "jira": {"state": "linked|not_linked|not_connected", "name": "Dana Ortiz", "suggestion": null}},
+ "prefs": {"layout": {"order": [], "rail": [], "hidden": [], "landing": ""}, "muted_kinds": []},
+ "synced_at": "...",
+ "sources": [{"name": "Jira", "read": "ok|failed|off|old", "detail": ""}]
+}
+```
+
+`NeedItem`: `key`, `group` (`reviews|returned|asks`), `kind` (the pull request's state, or `question|plan|wait|approval|not_requested`), `label`, `where`, `title`, `why`, `since`, `who`, `by_coderhelm`, `action {label, href}`, `href`, `pr`, `run_id`, `ticket`, `suggested`.
+
+`Ticket`: `key`, `title`, `url`, `status`, `status_category`, `points`, `type`, `repos`, `repo_source` (`label|ticket|history`), `fit {band, label, kind, why[], missing[], excluded}` (only on a ticket not started and not with CoderHelm), `delegated {run_id, status, stage, label, waiting_on_you, plan_first}` (`stage` `starting` or `not_started` before the run appears), `note`.
+
+`Suggestion`: `key`, `kind` (`give|review`), `target` (`ticket:ENG-142`, `pr:acme/billing#218`), `text`, `action`, `href`, `reason`, `evidence[] {text, href}`, `effect`, `effort`, `deadline`, `as_of`, `kind_words`, `dismiss_reasons[] {code, label, effect}`, `back_because`.
+
+The stats are the session's own; nothing else computes them, and no route reads another person's.
+
+## Permissions
+
+`GET /api/foryou` and the preview need "view". Settings, marks, suggestions and linking are the person's own ("own_account"). Giving a ticket needs "runs".
diff --git a/docs/incidents/ya_for_you_is_only_yours.md b/docs/incidents/ya_for_you_is_only_yours.md
new file mode 100644
index 000000000..26f4322c6
--- /dev/null
+++ b/docs/incidents/ya_for_you_is_only_yours.md
@@ -0,0 +1,5 @@
+# ya. `ya_for_you_is_only_yours`
+
+**What happened:** The For you page shows one person their own reviews, pull requests, sprint tickets and private numbers. Three ways it could go wrong were found while it was designed. A route taking a user would let anyone read anyone's page. The private numbers (what waits on you, your median review turnaround) read for someone else would turn a private rail into a ranking. And Chat's "what needs me" matched a CoderHelm user to a Jira account by email, which the page was to reuse: Atlassian lets people hide their email, and a work email can differ from the sign-in one, so the wrong person's sprint could show, or anyone whose email matched could take over another person's account.
+
+**The guarantee:** Every For you route reads only the session's team and user. None takes a user, an email or a login, and the short cache is keyed by the installation, the team and the session user. The numbers are computed for the session's own GitHub login only, and only the For you page computes them. A Jira account is linked only by a one-time code the person makes on the dashboard, signed for their team and used up once, redeemed from the Jira app's "Link my CoderHelm account" as that account. An email match is at most an "Is this you?" suggestion, and Chat reads only the link. A Jira event that refreshes a person's name never erases who linked the account.
diff --git a/services/Cargo.lock b/services/Cargo.lock
index a72917a5a..08b6138c9 100644
--- a/services/Cargo.lock
+++ b/services/Cargo.lock
@@ -1916,6 +1916,7 @@ dependencies = [
"serde_yaml",
"sha2 0.10.9",
"sqlparser",
+ "subtle",
"tokio",
"tracing",
"ulid",
diff --git a/services/common/Cargo.toml b/services/common/Cargo.toml
index 9c60da329..486e9d42f 100644
--- a/services/common/Cargo.toml
+++ b/services/common/Cargo.toml
@@ -28,6 +28,7 @@ aws-sdk-sqs = { version = "1", default-features = false, features = ["default-ht
aws-sdk-scheduler = { version = "1", default-features = false, features = ["default-https-client", "rt-tokio"] }
# plugins: Slack request signatures
hex = "0.4"
+subtle = "2"
# embed: Titan embeddings on CoderHelm's own AWS account, metered
aws-sdk-bedrockruntime = { version = "1", default-features = false, features = ["default-https-client", "rt-tokio"] }
# knowledge: a Bedrock knowledge base connected in place, searched live in
diff --git a/services/common/src/foryou.rs b/services/common/src/foryou.rs
new file mode 100644
index 000000000..c85b9e81e
--- /dev/null
+++ b/services/common/src/foryou.rs
@@ -0,0 +1,1978 @@
+//! The "For you" page: what is one person's, decided in code.
+//!
+//! Everything here is pure, so each rule is a test:
+//!
+//! - **Identity.** A Jira account is linked to a dashboard user only by a
+//! signed one-time code the person makes on the dashboard and redeems from
+//! the Jira app as themselves ([`issue_code`], [`verify_code`]). An email
+//! match is never a link: it is at most an "Is this you?" suggestion
+//! ([`identity_suggestion`]) whose "yes" starts that same code flow.
+//! - **Fit bands.** Whether a sprint ticket suits CoderHelm: Good fit, Maybe
+//! (plan first) or Not suggested, with the reasons and what is missing
+//! ([`fit`]). A checklist, never a score or a percentage.
+//! - **Needs, grouped by whose turn it is** ([`pr_group`]) and the private
+//! stats: what waits on you, your pull requests waiting on others, and
+//! your median review turnaround ([`review_turnaround`]).
+//! - **Suggestions** and their lifecycle ([`reconcile`]): one per row, shown
+//! only on a new or changed item, withdrawn with its reason when its basis
+//! changes, dismissed in one click with optional reasons that each make a
+//! fixed, visible change ([`DISMISS_REASONS`]).
+//! - **The person's own settings** ([`Prefs`]): section order and hidden
+//! sections, the landing page, snoozed and done items, dismissals and
+//! muted kinds. Stored per user, read by nobody else.
+//!
+//! All rows live on the settings table under the team's partition key; the
+//! user's id is part of every sort key, and no route takes a user parameter.
+
+use std::collections::{BTreeMap, BTreeSet};
+
+use hmac::{Hmac, Mac};
+use serde::{Deserialize, Serialize};
+use sha2::{Digest, Sha256};
+
+// ── Keys ────────────────────────────────────────────────────────────────────
+
+/// One person's settings and marks: `FORYOU#USER#`.
+pub const USER_PREFIX: &str = "FORYOU#USER#";
+/// The Jira account a person linked: `FORYOU#JIRA#` holds
+/// `account_id`. The account's own `JIRAUSER#` row holds
+/// `linked_user` back.
+pub const JIRA_LINK_PREFIX: &str = "FORYOU#JIRA#";
+/// A one-time link code, by its hash: `FORYOU#CODE#`.
+pub const CODE_PREFIX: &str = "FORYOU#CODE#";
+/// A ticket given to CoderHelm from For you: `FORYOU#GIVE#`.
+pub const GIVE_PREFIX: &str = "FORYOU#GIVE#";
+/// The field on `JIRAUSER#` naming the dashboard user it is
+/// linked to.
+pub const FIELD_LINKED_USER: &str = "linked_user";
+
+pub fn user_sk(user: &str) -> String {
+ format!("{USER_PREFIX}{user}")
+}
+pub fn jira_link_sk(user: &str) -> String {
+ format!("{JIRA_LINK_PREFIX}{user}")
+}
+pub fn give_sk(ticket: &str) -> String {
+ format!("{GIVE_PREFIX}{ticket}")
+}
+
+/// How long a link code works.
+pub const CODE_TTL_SECS: i64 = 15 * 60;
+
+// ── Link codes ──────────────────────────────────────────────────────────────
+
+const ALPHABET: &[u8; 32] = b"0123456789ABCDEFGHJKMNPQRSTVWXYZ";
+
+fn b32(bytes: &[u8]) -> String {
+ let mut out = String::new();
+ let mut acc: u32 = 0;
+ let mut bits = 0;
+ for b in bytes {
+ acc = (acc << 8) | *b as u32;
+ bits += 8;
+ while bits >= 5 {
+ bits -= 5;
+ out.push(ALPHABET[((acc >> bits) & 31) as usize] as char);
+ }
+ }
+ if bits > 0 {
+ out.push(ALPHABET[((acc << (5 - bits)) & 31) as usize] as char);
+ }
+ out
+}
+
+fn tag(secret: &[u8], team: &str, body: &str) -> String {
+ let mut mac = Hmac::::new_from_slice(secret).expect("any key length");
+ mac.update(b"foryou-link\0");
+ mac.update(team.as_bytes());
+ mac.update(b"\0");
+ mac.update(body.as_bytes());
+ b32(&mac.finalize().into_bytes()[..5])
+}
+
+/// A code as people type it: upper case, no dashes or spaces, `I`/`L` read
+/// as `1` and `O` as `0`.
+pub fn normalize_code(raw: &str) -> String {
+ raw.chars()
+ .filter(|c| c.is_ascii_alphanumeric())
+ .map(|c| match c.to_ascii_uppercase() {
+ 'I' | 'L' => '1',
+ 'O' => '0',
+ c => c,
+ })
+ .collect()
+}
+
+/// The row a code is stored under: its hash, bound to the team.
+pub fn code_sk(team: &str, code: &str) -> String {
+ let h = Sha256::digest(format!("{team}\0{}", normalize_code(code)).as_bytes());
+ format!("{CODE_PREFIX}{}", hex::encode(h))
+}
+
+/// A new one-time code for the team: 8 random characters and 8 of their
+/// signature, shown as `ABCD-EFGH-JKMN-PQRS`. Returns the code shown and the
+/// key its row is stored under.
+pub fn issue_code(secret: &[u8], team: &str, random: [u8; 5]) -> (String, String) {
+ let body = b32(&random);
+ let code = format!("{body}{}", tag(secret, team, &body));
+ let shown = code
+ .as_bytes()
+ .chunks(4)
+ .map(|c| std::str::from_utf8(c).unwrap_or_default())
+ .collect::>()
+ .join("-");
+ let sk = code_sk(team, &code);
+ (shown, sk)
+}
+
+/// A code's signature holds for this team. Checked before any read, so a
+/// guessed or another team's code costs nothing.
+pub fn verify_code(secret: &[u8], team: &str, raw: &str) -> bool {
+ use subtle::ConstantTimeEq;
+ let code = normalize_code(raw);
+ if code.len() != 16 {
+ return false;
+ }
+ let (body, sig) = code.split_at(8);
+ bool::from(tag(secret, team, body).as_bytes().ct_eq(sig.as_bytes()))
+}
+
+/// A Jira account id as Atlassian issues them (`557058:...` or a 24-hex id):
+/// nothing that could end a JQL string.
+pub fn valid_account_id(id: &str) -> bool {
+ (8..=128).contains(&id.len())
+ && id
+ .bytes()
+ .all(|b| b.is_ascii_alphanumeric() || b == b':' || b == b'-')
+}
+
+/// A Jira user CoderHelm has seen, for the "Is this you?" suggestion.
+#[derive(Debug, Clone, PartialEq, Eq, Serialize)]
+pub struct SeenJiraUser {
+ pub account_id: String,
+ pub name: String,
+ pub email: String,
+ /// Already linked to someone.
+ pub linked: bool,
+}
+
+/// The one Jira user that may be offered as "Is this you?": seen with this
+/// exact email, linked to nobody, and not already answered "No". Only a
+/// suggestion: saying yes starts the code flow, it links nothing.
+pub fn identity_suggestion<'a>(
+ seen: &'a [SeenJiraUser],
+ email: &str,
+ declined: &BTreeSet,
+) -> Option<&'a SeenJiraUser> {
+ let email = email.trim();
+ if email.is_empty() {
+ return None;
+ }
+ let mut hits = seen.iter().filter(|u| {
+ !u.linked && u.email.eq_ignore_ascii_case(email) && !declined.contains(&u.account_id)
+ });
+ let first = hits.next()?;
+ // Two accounts with one email: no guess at all.
+ hits.next().is_none().then_some(first)
+}
+
+// ── The person's own settings ───────────────────────────────────────────────
+
+/// The page's sections, in their default order.
+pub const SECTIONS: &[&str] = &["needs", "sprint", "working", "waiting", "later"];
+/// The right side's cards.
+pub const RAIL: &[&str] = &["stats", "accounts"];
+/// Where CoderHelm opens. Empty is the default: a phone opens on For you,
+/// a wider screen on Runs.
+pub const LANDINGS: &[&str] = &["foryou", "runs", "prs"];
+
+#[derive(Debug, Clone, Default, PartialEq, Eq, Serialize, Deserialize)]
+#[serde(default)]
+pub struct Layout {
+ pub order: Vec,
+ pub rail: Vec,
+ pub hidden: Vec,
+ pub landing: String,
+}
+
+impl Layout {
+ /// The layout as saved, made whole: every section once, in the saved
+ /// order then the rest; only known names; the landing a known page.
+ pub fn normalized(&self) -> Layout {
+ fn order(saved: &[String], all: &[&str]) -> Vec {
+ let mut out: Vec = Vec::new();
+ for s in saved {
+ if all.contains(&s.as_str()) && !out.contains(s) {
+ out.push(s.clone());
+ }
+ }
+ for s in all {
+ if !out.iter().any(|o| o == s) {
+ out.push(s.to_string());
+ }
+ }
+ out
+ }
+ let known = |s: &String| SECTIONS.contains(&s.as_str()) || RAIL.contains(&s.as_str());
+ let mut hidden: Vec = self.hidden.iter().filter(|s| known(s)).cloned().collect();
+ hidden.sort();
+ hidden.dedup();
+ Layout {
+ order: order(&self.order, SECTIONS),
+ rail: order(&self.rail, RAIL),
+ hidden,
+ landing: if LANDINGS.contains(&self.landing.as_str()) {
+ self.landing.clone()
+ } else {
+ String::new()
+ },
+ }
+ }
+
+ /// Only names the page knows: an unknown one is refused, never kept.
+ pub fn validate(&self) -> Result<(), String> {
+ for s in self.order.iter().chain(&self.rail).chain(&self.hidden) {
+ if !SECTIONS.contains(&s.as_str()) && !RAIL.contains(&s.as_str()) {
+ return Err(format!("unknown section {s:?}"));
+ }
+ }
+ if !self.landing.is_empty() && !LANDINGS.contains(&self.landing.as_str()) {
+ return Err(format!("unknown landing page {:?}", self.landing));
+ }
+ if self.order.len() > 20 || self.rail.len() > 20 || self.hidden.len() > 20 {
+ return Err("too many sections".into());
+ }
+ Ok(())
+ }
+}
+
+/// What the person did to one item or suggestion.
+#[derive(Debug, Clone, Default, PartialEq, Eq, Serialize, Deserialize)]
+#[serde(default)]
+pub struct Mark {
+ /// Hidden until then (seconds), and listed under Later.
+ pub snoozed_until: i64,
+ /// Marked done while it waited since this time; it shows again when it
+ /// waits since a later time (it came back).
+ pub done_since: String,
+ /// A suggestion dismissed with this basis: it shows again only when its
+ /// basis changes.
+ pub dismissed_basis: String,
+ pub reason: String,
+ pub at: i64,
+}
+
+impl Mark {
+ pub fn is_empty(&self) -> bool {
+ *self == Mark::default()
+ }
+}
+
+/// A suggestion as first shown, for its lifecycle.
+#[derive(Debug, Clone, Default, PartialEq, Eq, Serialize, Deserialize)]
+#[serde(default)]
+pub struct Shown {
+ pub basis: String,
+ pub first_at: i64,
+ pub text: String,
+ /// Why its basis changed, kept from the read that saw it go.
+ pub withdrawn: String,
+}
+
+/// One person's For you settings, on `FORYOU#USER#`.
+#[derive(Debug, Clone, Default, PartialEq, Eq, Serialize, Deserialize)]
+#[serde(default)]
+pub struct Prefs {
+ pub layout: Layout,
+ pub marks: BTreeMap,
+ /// The mark before the last change, per key, for Undo.
+ pub undo: BTreeMap,
+ pub shown: BTreeMap,
+ /// Kinds of ticket or suggestion the person asked not to see.
+ pub muted_kinds: BTreeSet,
+ /// Targets (tickets, pull requests) never suggested again ("Not me").
+ pub not_me: BTreeSet,
+ /// Jira accounts answered "No" to "Is this you?".
+ pub identity_no: BTreeSet,
+}
+
+/// Most marks kept: the oldest go first.
+pub const MAX_MARKS: usize = 400;
+
+impl Prefs {
+ /// Keeps the document small: expired snoozes go, then the oldest marks.
+ pub fn tidy(&mut self, now: i64) {
+ self.marks.retain(|_, m| {
+ !(m.snoozed_until > 0
+ && m.snoozed_until <= now
+ && m.done_since.is_empty()
+ && m.dismissed_basis.is_empty())
+ });
+ if self.marks.len() > MAX_MARKS {
+ let mut by_age: Vec<(i64, String)> =
+ self.marks.iter().map(|(k, m)| (m.at, k.clone())).collect();
+ by_age.sort();
+ for (_, k) in by_age.into_iter().take(self.marks.len() - MAX_MARKS) {
+ self.marks.remove(&k);
+ }
+ }
+ self.undo
+ .retain(|k, _| self.marks.contains_key(k) || k.len() < 300);
+ if self.undo.len() > 50 {
+ let keys: Vec = self
+ .undo
+ .keys()
+ .take(self.undo.len() - 50)
+ .cloned()
+ .collect();
+ for k in keys {
+ self.undo.remove(&k);
+ }
+ }
+ if self.shown.len() > MAX_MARKS {
+ let mut by_age: Vec<(i64, String)> = self
+ .shown
+ .iter()
+ .map(|(k, s)| (s.first_at, k.clone()))
+ .collect();
+ by_age.sort();
+ for (_, k) in by_age.into_iter().take(self.shown.len() - MAX_MARKS) {
+ self.shown.remove(&k);
+ }
+ }
+ }
+
+ /// Sets a key's mark and keeps the one before for Undo.
+ pub fn set_mark(&mut self, key: &str, mark: Mark) {
+ let before = self.marks.get(key).cloned().unwrap_or_default();
+ self.undo.insert(key.to_string(), before);
+ if mark.is_empty() {
+ self.marks.remove(key);
+ } else {
+ self.marks.insert(key.to_string(), mark);
+ }
+ }
+
+ /// Puts back the mark before the last change. `false` when there is
+ /// nothing to undo.
+ pub fn undo(&mut self, key: &str) -> bool {
+ let Some(before) = self.undo.remove(key) else {
+ return false;
+ };
+ if before.is_empty() {
+ self.marks.remove(key);
+ } else {
+ self.marks.insert(key.to_string(), before);
+ }
+ true
+ }
+}
+
+/// Where an item stands for the person now.
+#[derive(Debug, Clone, Copy, PartialEq, Eq)]
+pub enum Standing {
+ Open,
+ /// Snoozed: listed under Later until then.
+ Snoozed(i64),
+ /// Marked done and nothing new since.
+ Done,
+}
+
+/// An item waiting since `since`, with the person's mark.
+pub fn standing(mark: Option<&Mark>, since: &str, now: i64) -> Standing {
+ let Some(m) = mark else {
+ return Standing::Open;
+ };
+ if !m.done_since.is_empty() && m.done_since == since {
+ return Standing::Done;
+ }
+ if m.snoozed_until > now {
+ return Standing::Snoozed(m.snoozed_until);
+ }
+ Standing::Open
+}
+
+// ── Fit bands ───────────────────────────────────────────────────────────────
+
+/// What the fit checklist reads of one ticket.
+#[derive(Debug, Clone, Default, PartialEq)]
+pub struct TicketFacts {
+ pub key: String,
+ pub title: String,
+ pub description: String,
+ pub issue_type: String,
+ pub labels: Vec,
+ pub components: Vec,
+ pub priority: String,
+ pub points: Option,
+ /// The repositories it would change, best guess first.
+ pub repos: Vec,
+ /// How the repositories are known: `label`, `ticket`, `history` or
+ /// empty.
+ pub repo_source: String,
+ /// Whether the (single) repository has tests CoderHelm can run, when
+ /// known.
+ pub tests: Option,
+}
+
+#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize)]
+#[serde(rename_all = "snake_case")]
+pub enum Band {
+ Good,
+ Maybe,
+ Not,
+}
+
+impl Band {
+ pub fn label(self) -> &'static str {
+ match self {
+ Band::Good => "Good fit",
+ Band::Maybe => "Maybe (plan first)",
+ Band::Not => "Not suggested",
+ }
+ }
+}
+
+#[derive(Debug, Clone, PartialEq, Eq, Serialize)]
+pub struct Fit {
+ pub band: Band,
+ pub label: &'static str,
+ /// What kind of ticket it is, for "Don't suggest ".
+ pub kind: String,
+ /// What it has.
+ pub why: Vec,
+ /// What it lacks, each with what would change it.
+ pub missing: Vec,
+ /// Why it is never suggested, when it is on the exclude list.
+ pub excluded: Option,
+}
+
+/// The exclude list: work CoderHelm is never suggested for, by its words.
+const EXCLUDE: &[(&str, &[&str])] = &[
+ (
+ "security",
+ &[
+ "security",
+ "vulnerab",
+ "cve-",
+ "xss",
+ "csrf",
+ "injection",
+ "secret",
+ "credential",
+ "signing key",
+ "encryption",
+ "encrypt",
+ "certificate",
+ ],
+ ),
+ (
+ "auth",
+ &[
+ "auth",
+ "login",
+ "log in",
+ "sign-in",
+ "sign in",
+ "signin",
+ "password",
+ "oauth",
+ "sso",
+ "saml",
+ "2fa",
+ "mfa",
+ "two-factor",
+ "permission",
+ "rbac",
+ "access control",
+ ],
+ ),
+ (
+ "personal data",
+ &[
+ "pii",
+ "personal data",
+ "gdpr",
+ "ccpa",
+ "hipaa",
+ "social security",
+ "date of birth",
+ "home address",
+ "redact",
+ ],
+ ),
+ (
+ "an incident",
+ &[
+ "incident",
+ "outage",
+ "sev1",
+ "sev-1",
+ "sev 1",
+ "sev0",
+ "sev-0",
+ "postmortem",
+ "post-mortem",
+ "hotfix",
+ "on-call",
+ "pager",
+ ],
+ ),
+ (
+ "production-critical",
+ &[
+ "production",
+ "prod outage",
+ "live traffic",
+ "production-critical",
+ "data loss",
+ ],
+ ),
+];
+
+fn has_word(hay: &str, needle: &str) -> bool {
+ // Whole words, so "author" is not "auth" and "secretary" not "secret".
+ let hay = hay.to_ascii_lowercase();
+ let mut from = 0;
+ while let Some(i) = hay[from..].find(needle) {
+ let at = from + i;
+ let before = hay[..at].chars().last();
+ let after = hay[at + needle.len()..].chars().next();
+ let edge = |c: Option| c.is_none_or(|c| !c.is_ascii_alphanumeric());
+ // A stem ("vulnerab", "encrypt") may run on into its word.
+ let stem = needle.ends_with("ab") || needle == "encrypt" || needle.ends_with('-');
+ if edge(before) && (stem || edge(after) || after == Some('s')) {
+ return true;
+ }
+ from = at + needle.len();
+ }
+ false
+}
+
+/// Why the ticket is never suggested, from its title, type, labels,
+/// components and priority (the description is not read for this: a
+/// ticket may mention a word in passing).
+pub fn excluded(t: &TicketFacts) -> Option {
+ let text = format!(
+ "{} {} {} {}",
+ t.title,
+ t.issue_type,
+ t.labels.join(" "),
+ t.components.join(" ")
+ );
+ for (what, words) in EXCLUDE {
+ if words.iter().any(|w| has_word(&text, w)) {
+ return Some((*what).to_string());
+ }
+ }
+ if matches!(
+ t.priority.trim().to_ascii_lowercase().as_str(),
+ "highest" | "blocker" | "critical"
+ ) {
+ return Some("production-critical".into());
+ }
+ if t.repos.len() >= 3 {
+ return Some(format!(
+ "it spans {} repositories with no one named",
+ t.repos.len()
+ ));
+ }
+ None
+}
+
+/// Acceptance criteria written in the description: a heading, an `AC:`
+/// line, Given/When/Then, or a checklist.
+pub fn has_acceptance(desc: &str) -> bool {
+ let d = desc.to_ascii_lowercase();
+ d.contains("acceptance criteria")
+ || d.contains("definition of done")
+ || d.lines().any(|l| {
+ let l = l.trim();
+ l.starts_with("ac:") || l.starts_with("- [ ]") || l.starts_with("[ ]")
+ })
+ || (d.contains("given ") && d.contains("when ") && d.contains("then "))
+}
+
+/// Paths and code names the description names (`web/src/a.tsx`,
+/// `` `SavedCartsList` ``), each once, at most five.
+pub fn named_files(desc: &str) -> Vec {
+ let mut out: Vec = Vec::new();
+ let mut push = |s: &str| {
+ let s = s.trim_matches(|c: char| "`'\"(),.:;".contains(c));
+ if !s.is_empty() && s.len() <= 120 && !out.iter().any(|o| o == s) && out.len() < 5 {
+ out.push(s.to_string());
+ }
+ };
+ for w in desc.split_whitespace() {
+ let w = w.trim_matches(|c: char| "`'\"(),;:".contains(c));
+ let looks_path = w.contains('/')
+ && !w.starts_with("http")
+ && w.rsplit('/')
+ .next()
+ .is_some_and(|f| f.contains('.') || f.is_empty() || w.ends_with('/'))
+ && w.chars()
+ .all(|c| c.is_ascii_alphanumeric() || "/._-[]".contains(c));
+ let looks_file = !w.contains('/')
+ && w.contains('.')
+ && [
+ ".ts", ".tsx", ".js", ".jsx", ".rs", ".py", ".go", ".rb", ".java", ".kt", ".css",
+ ".html", ".sql", ".md", ".json", ".yml", ".yaml",
+ ]
+ .iter()
+ .any(|e| w.ends_with(e));
+ if looks_path || looks_file {
+ push(w);
+ }
+ }
+ // Code names in backticks.
+ for (i, part) in desc.split('`').enumerate() {
+ if i % 2 == 1
+ && !part.contains(' ')
+ && part.chars().any(|c| c.is_ascii_uppercase())
+ && part
+ .chars()
+ .all(|c| c.is_ascii_alphanumeric() || "._/-".contains(c))
+ {
+ push(part);
+ }
+ }
+ out
+}
+
+/// What kind of work the ticket is, for "Don't suggest ".
+pub fn kind_of(t: &TicketFacts) -> String {
+ let title = t.title.to_ascii_lowercase();
+ let labels = t.labels.join(" ").to_ascii_lowercase();
+ let both = format!("{title} {labels}");
+ let any = |ws: &[&str]| ws.iter().any(|w| has_word(&both, w));
+ if any(&[
+ "copy",
+ "typo",
+ "wording",
+ "text",
+ "link",
+ "label",
+ "translation",
+ ]) {
+ return "copy fixes".into();
+ }
+ if any(&["docs", "documentation", "readme", "changelog"]) {
+ return "docs changes".into();
+ }
+ if any(&["test", "tests", "coverage", "flaky"]) {
+ return "test work".into();
+ }
+ if any(&["dependency", "dependencies", "upgrade", "bump"]) {
+ return "dependency updates".into();
+ }
+ if any(&[
+ "empty state",
+ "button",
+ "page",
+ "screen",
+ "ui",
+ "layout",
+ "style",
+ "css",
+ "modal",
+ ]) {
+ return "UI changes".into();
+ }
+ if any(&["retry", "backoff", "webhook", "queue", "job", "worker"]) {
+ return "background jobs".into();
+ }
+ match t.issue_type.trim().to_ascii_lowercase().as_str() {
+ "bug" => "bug fixes".into(),
+ "" => "tickets like this".into(),
+ other => format!("{other}s"),
+ }
+}
+
+fn capitalize(s: &str) -> String {
+ let mut c = s.chars();
+ c.next()
+ .map(|f| f.to_ascii_uppercase().to_string() + c.as_str())
+ .unwrap_or_default()
+}
+
+fn points_words(p: f64) -> String {
+ if p.fract() == 0.0 {
+ format!("{} pt", p as i64)
+ } else {
+ format!("{p} pt")
+ }
+}
+
+/// The fit band of one ticket, with its reasons and what is missing.
+///
+/// - **Not suggested**: on the exclude list, 8 points or more, or neither a
+/// repository nor acceptance criteria.
+/// - **Good fit**: acceptance criteria, one repository known, small (3
+/// points or less, or a short description with no estimate), files or an
+/// area named, and the repository's tests not known to be missing.
+/// - **Maybe (plan first)**: everything else.
+pub fn fit(t: &TicketFacts) -> Fit {
+ let kind = kind_of(t);
+ let mut why: Vec = Vec::new();
+ let mut missing: Vec = Vec::new();
+ if let Some(ex) = excluded(t) {
+ return Fit {
+ band: Band::Not,
+ label: Band::Not.label(),
+ kind,
+ why,
+ missing: vec![if ex.starts_with("it spans") {
+ format!("{}: it is a judgment call", capitalize(&ex))
+ } else {
+ format!("It is {ex} work, which CoderHelm is never suggested for: it is a judgment call")
+ }],
+ excluded: Some(ex),
+ };
+ }
+ let ac = has_acceptance(&t.description);
+ if ac {
+ why.push("Acceptance criteria are written".into());
+ } else {
+ missing.push("No acceptance criteria. Add two lines and it can become a good fit".into());
+ }
+ let files = named_files(&t.description);
+ let area = !files.is_empty() || !t.components.is_empty();
+ if !files.is_empty() {
+ why.push(format!("Names the files: {}", files.join(", ")));
+ } else if !t.components.is_empty() {
+ why.push(format!("Names the area: {}", t.components.join(", ")));
+ } else {
+ missing.push("No files or area named. Name the page or file it changes".into());
+ }
+ let (small, large) = match t.points {
+ Some(p) if p >= 8.0 => {
+ missing.push(format!("{} is large. Split it first", points_words(p)));
+ (false, true)
+ }
+ Some(p) if p > 3.0 => {
+ missing.push(format!(
+ "{} is mid-sized: a plan first keeps it on track",
+ points_words(p)
+ ));
+ (false, false)
+ }
+ Some(p) => {
+ why.push(format!("Small: {}", points_words(p)));
+ (true, false)
+ }
+ None if t.description.trim().len() <= 1500 => {
+ missing.push("No estimate".into());
+ (true, false)
+ }
+ None => {
+ missing.push("No estimate, and a long description".into());
+ (false, false)
+ }
+ };
+ let repo_one = t.repos.len() == 1;
+ match t.repos.len() {
+ 0 => missing
+ .push("No repository known. Add the label coderhelm: to name it".into()),
+ 1 => why.push(format!(
+ "Repository known: {}{}",
+ t.repos[0],
+ match t.repo_source.as_str() {
+ "label" => " (from its label)",
+ "ticket" => " (named in the ticket)",
+ "history" => " (where this project's tickets went before)",
+ _ => "",
+ }
+ )),
+ n => missing.push(format!(
+ "Touches {n} repositories: {}. A plan first settles what goes where",
+ t.repos.join(" and ")
+ )),
+ }
+ match (t.tests, repo_one) {
+ (Some(true), true) => why.push(format!("Tests exist in {}", t.repos[0])),
+ (Some(false), true) => missing.push(format!(
+ "{} has no tests CoderHelm can run, so the change can't be proven",
+ t.repos[0]
+ )),
+ _ => {}
+ }
+ let band = if large || (t.repos.is_empty() && !ac) {
+ Band::Not
+ } else if ac && repo_one && small && area && t.tests != Some(false) {
+ Band::Good
+ } else {
+ Band::Maybe
+ };
+ Fit {
+ band,
+ label: band.label(),
+ kind,
+ why,
+ missing,
+ excluded: None,
+ }
+}
+
+// ── Needs, grouped by whose turn it is ──────────────────────────────────────
+
+/// Where one open pull request goes on the page for this person.
+#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize)]
+#[serde(rename_all = "snake_case")]
+pub enum PrGroup {
+ /// Your review was asked for.
+ Reviews,
+ /// Your pull request (or CoderHelm's for you) came back to you.
+ Returned,
+ /// Yours, and someone else has the turn.
+ Waiting,
+}
+
+/// The states that ask a reviewer, as `common::pr_needs` names them.
+pub const REVIEW_STATES: &[&str] = &[
+ "needs_review",
+ "re_review",
+ "needs_reviewer",
+ "needs_code_owner",
+];
+
+/// Where a row goes for `login`, from the row's own turn (decided by
+/// `pr_needs`, the same function the merge gates use).
+pub fn pr_group(row: &crate::pr_view::Row, login: &str) -> Option {
+ if login.is_empty() || row.stage.is_none() {
+ return None;
+ }
+ let me = |l: &str| l.trim_start_matches('@').eq_ignore_ascii_case(login);
+ let mine = me(&row.author.login) || row.for_person.as_deref().is_some_and(me);
+ if row.turn == "you" {
+ if !mine && REVIEW_STATES.contains(&row.state.as_str()) {
+ return Some(PrGroup::Reviews);
+ }
+ if mine {
+ return Some(PrGroup::Returned);
+ }
+ // Asked of you on someone else's pull request (a decision, a thread).
+ return Some(PrGroup::Reviews);
+ }
+ if mine && row.turn != "done" {
+ return Some(PrGroup::Waiting);
+ }
+ None
+}
+
+// ── Private stats ───────────────────────────────────────────────────────────
+
+/// How long the stats look back.
+pub const TURNAROUND_DAYS: i64 = 28;
+
+/// The time from each review request of `login` to their first review
+/// after it, within the last [`TURNAROUND_DAYS`] days: the median and how
+/// many reviews it is over. Requests taken back before a review don't
+/// count. `None` when there is none.
+pub fn review_turnaround(
+ logs: &[(
+ Vec,
+ Vec,
+ )],
+ login: &str,
+ now: i64,
+) -> Option<(i64, usize)> {
+ let since = now - TURNAROUND_DAYS * 86_400;
+ let me = |w: &str| w.trim_start_matches('@').eq_ignore_ascii_case(login);
+ let mut waits: Vec = Vec::new();
+ for (requests, reviews) in logs {
+ for r in requests.iter().filter(|r| me(&r.who) && r.at >= since) {
+ let first = reviews
+ .iter()
+ .filter(|v| me(&v.who) && v.at >= r.at)
+ .map(|v| v.at)
+ .min();
+ if let Some(at) = first {
+ if r.removed_at == 0 || r.removed_at >= at {
+ waits.push(at - r.at);
+ }
+ }
+ }
+ }
+ let n = waits.len();
+ crate::pr_history::percentile(&waits, 50).map(|m| (m, n))
+}
+
+// ── Suggestions ─────────────────────────────────────────────────────────────
+
+/// Why a person may dismiss a suggestion, and the fixed change each makes.
+pub const DISMISS_REASONS: &[(&str, &str)] = &[
+ (
+ "already_handled",
+ "Hidden. It comes back only if the ticket or pull request changes.",
+ ),
+ ("not_now", "Snoozed until tomorrow at 9:00."),
+ ("not_me", "Never suggested to you again for this one."),
+ (
+ "dont_suggest_kind",
+ "No more suggestions of this kind. Turn them back on in Customize.",
+ ),
+];
+
+/// A suggestion's dismiss reason, with its effect in words.
+#[derive(Debug, Clone, PartialEq, Eq, Serialize)]
+pub struct DismissReason {
+ pub code: String,
+ pub label: String,
+ pub effect: String,
+}
+
+/// The reasons for one suggestion, worded for it.
+pub fn dismiss_reasons(kind_words: &str) -> Vec {
+ DISMISS_REASONS
+ .iter()
+ .map(|(code, effect)| DismissReason {
+ code: (*code).into(),
+ label: match *code {
+ "already_handled" => "Already handled".into(),
+ "not_now" => "Not now".into(),
+ "not_me" => "Not me".into(),
+ _ => format!("Don't suggest {kind_words}"),
+ },
+ effect: if *code == "dont_suggest_kind" {
+ format!("No more suggestions for {kind_words}. Turn them back on in Customize.")
+ } else {
+ (*effect).into()
+ },
+ })
+ .collect()
+}
+
+/// Evidence behind a suggestion, each line checkable.
+#[derive(Debug, Clone, PartialEq, Eq, Serialize)]
+pub struct Evidence {
+ pub text: String,
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub href: Option,
+}
+
+/// One suggestion, as the page shows it.
+#[derive(Debug, Clone, PartialEq, Eq, Serialize)]
+pub struct Suggestion {
+ /// `give:BOOK-118`, `review:acme/web#482`, `reply:BOOK-115`.
+ pub key: String,
+ /// `give`, `plan`, `review` or `reply`.
+ pub kind: String,
+ /// The row it sits under (`ticket:BOOK-118`, `pr:acme/web#482`), or
+ /// none: listed in the summary only.
+ pub target: Option,
+ /// The action, named for its result: "Give BOOK-118 to CoderHelm".
+ pub text: String,
+ /// The button.
+ pub action: String,
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub href: Option,
+ /// One signal, shown on the line.
+ pub reason: String,
+ /// Every signal, for Why?.
+ pub evidence: Vec,
+ /// What accepting does.
+ pub effect: String,
+ /// What it costs the person.
+ pub effort: String,
+ /// A real deadline only.
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub deadline: Option,
+ /// When its facts were read (RFC 3339).
+ pub as_of: String,
+ /// What it is about, for "Don't suggest ".
+ pub kind_words: String,
+ pub dismiss_reasons: Vec,
+ /// Back after a dismissal because its basis changed.
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub back_because: Option,
+ /// What it rests on: a change to any of it withdraws it. Not sent.
+ #[serde(skip)]
+ pub basis: String,
+ /// The basis in words, for the withdrawal's reason. Not sent.
+ #[serde(skip)]
+ pub basis_words: String,
+}
+
+/// A suggestion taken back since the person last saw it.
+#[derive(Debug, Clone, PartialEq, Eq, Serialize)]
+pub struct Withdrawn {
+ pub key: String,
+ pub text: String,
+ pub withdrawn_reason: String,
+}
+
+/// How long a suggestion stays when nothing changes: it was offered, and
+/// re-showing it on every visit is nagging.
+pub const SUGGESTION_DAYS: i64 = 7;
+/// Most suggestions in the summary line.
+pub const MAX_SUMMARY: usize = 3;
+
+/// The suggestions to show now, and those withdrawn since the last read.
+///
+/// - A suggestion appears when its item is new or its basis changed
+/// (`shown` keeps the basis it was first shown with); unchanged, it stays
+/// [`SUGGESTION_DAYS`] days and then rests until something changes.
+/// - Withdrawn when its basis changes or it no longer applies, with the
+/// reason, once.
+/// - Dismissed: gone until its basis changes ("back because"); "Not me"
+/// never returns; a muted kind never shows; a snooze hides it until then.
+pub fn reconcile(
+ computed: Vec,
+ prefs: &mut Prefs,
+ gone: &BTreeMap,
+ now: i64,
+) -> (Vec, Vec) {
+ let mut out = Vec::new();
+ let mut withdrawn = Vec::new();
+ let live: BTreeSet = computed.iter().map(|s| s.key.clone()).collect();
+ for mut s in computed {
+ if prefs.muted_kinds.contains(&s.kind_words) || prefs.muted_kinds.contains(&s.kind) {
+ continue;
+ }
+ if s.target.as_ref().is_some_and(|t| prefs.not_me.contains(t)) {
+ continue;
+ }
+ let mark = prefs.marks.get(&s.key).cloned().unwrap_or_default();
+ if !mark.dismissed_basis.is_empty() {
+ if mark.dismissed_basis == s.basis {
+ continue;
+ }
+ s.back_because = Some(format!("Back because it changed: {}", s.basis_words));
+ prefs.marks.remove(&s.key);
+ }
+ if mark.snoozed_until > now {
+ continue;
+ }
+ match prefs.shown.get(&s.key).cloned() {
+ Some(old) if old.basis == s.basis => {
+ if now - old.first_at > SUGGESTION_DAYS * 86_400 {
+ continue;
+ }
+ }
+ Some(old) => {
+ withdrawn.push(Withdrawn {
+ key: s.key.clone(),
+ text: old.text.clone(),
+ withdrawn_reason: format!("Its basis changed: {}", s.basis_words),
+ });
+ prefs.shown.insert(
+ s.key.clone(),
+ Shown {
+ basis: s.basis.clone(),
+ first_at: now,
+ text: s.text.clone(),
+ withdrawn: String::new(),
+ },
+ );
+ }
+ None => {
+ prefs.shown.insert(
+ s.key.clone(),
+ Shown {
+ basis: s.basis.clone(),
+ first_at: now,
+ text: s.text.clone(),
+ withdrawn: String::new(),
+ },
+ );
+ }
+ }
+ out.push(s);
+ }
+ // Shown before and no longer computed: withdrawn once, with why.
+ let stale: Vec = prefs
+ .shown
+ .keys()
+ .filter(|k| !live.contains(*k))
+ .cloned()
+ .collect();
+ for k in stale {
+ let old = prefs.shown.remove(&k).unwrap_or_default();
+ let dismissed = prefs
+ .marks
+ .get(&k)
+ .is_some_and(|m| !m.dismissed_basis.is_empty());
+ if now - old.first_at <= SUGGESTION_DAYS * 86_400 && !dismissed {
+ withdrawn.push(Withdrawn {
+ key: k.clone(),
+ text: old.text,
+ withdrawn_reason: gone
+ .get(&k)
+ .cloned()
+ .unwrap_or_else(|| "It no longer applies".into()),
+ });
+ }
+ }
+ (out, withdrawn)
+}
+
+/// A dismissal: one click hides it with its basis; a reason then makes its
+/// fixed change.
+pub fn dismiss(
+ prefs: &mut Prefs,
+ s_key: &str,
+ basis: &str,
+ target: Option<&str>,
+ kind_words: &str,
+ reason: &str,
+ now: i64,
+) -> Result {
+ let mut mark = prefs.marks.get(s_key).cloned().unwrap_or_default();
+ mark.at = now;
+ let effect = match reason {
+ "" | "already_handled" => {
+ mark.dismissed_basis = basis.to_string();
+ mark.reason = reason.to_string();
+ if reason.is_empty() {
+ "Hidden.".to_string()
+ } else {
+ DISMISS_REASONS[0].1.to_string()
+ }
+ }
+ "not_now" => {
+ mark.dismissed_basis.clear();
+ mark.snoozed_until = tomorrow_nine(now);
+ mark.reason = reason.into();
+ DISMISS_REASONS[1].1.to_string()
+ }
+ "not_me" => {
+ mark.dismissed_basis = basis.to_string();
+ mark.reason = reason.into();
+ if let Some(t) = target {
+ prefs.not_me.insert(t.to_string());
+ }
+ DISMISS_REASONS[2].1.to_string()
+ }
+ "dont_suggest_kind" => {
+ mark.dismissed_basis = basis.to_string();
+ mark.reason = reason.into();
+ prefs.muted_kinds.insert(kind_words.to_string());
+ format!("No more suggestions for {kind_words}. Turn them back on in Customize.")
+ }
+ other => return Err(format!("unknown reason {other:?}")),
+ };
+ prefs.set_mark(s_key, mark);
+ Ok(effect)
+}
+
+/// The next 9:00 UTC at least eight hours away.
+pub fn tomorrow_nine(now: i64) -> i64 {
+ let day = now - now.rem_euclid(86_400);
+ let nine = day + 9 * 3600;
+ if nine - now >= 8 * 3600 {
+ nine
+ } else {
+ nine + 86_400
+ }
+}
+
+/// A basis: the facts a suggestion rests on, hashed.
+pub fn basis_of(parts: &[&str]) -> String {
+ let h = Sha256::digest(parts.join("\u{1f}").as_bytes());
+ hex::encode(&h[..8])
+}
+
+// ── Plan first ──────────────────────────────────────────────────────────────
+
+/// The question a "Draft a plan first" run stops on once its plan is
+/// written, and the answer that lets it code.
+pub const PLAN_QUESTION: &str =
+ "You asked to see the plan first. Shall CoderHelm start coding from this plan?";
+pub const PLAN_APPROVE: &str = "Approve the plan and start coding";
+pub const PLAN_CHANGE: &str = "Change the plan first (say how)";
+
+/// A ticket given from For you, on `FORYOU#GIVE#`.
+#[derive(Debug, Clone, Default, PartialEq, Eq, Serialize, Deserialize)]
+#[serde(default)]
+pub struct Given {
+ pub ticket: String,
+ /// The dashboard user who gave it: the owner.
+ pub owner: String,
+ pub owner_name: String,
+ /// Their linked Jira account (the requester).
+ pub owner_jira: String,
+ pub plan_first: bool,
+ pub given_at: i64,
+ /// The plan was approved (the run codes from here on).
+ pub approved_at: i64,
+ /// The Jira event that started its run arrived (the owner was credited
+ /// once; a later edit by someone else isn't credited to them).
+ pub started_at: i64,
+}
+
+/// How long a give waits for its Jira event to credit the owner.
+pub const GIVE_WINDOW_SECS: i64 = 15 * 60;
+
+/// The ticket's give row, if any.
+pub async fn read_given(
+ dynamo: &aws_sdk_dynamodb::Client,
+ table: &str,
+ team: &str,
+ ticket: &str,
+) -> Option {
+ use aws_sdk_dynamodb::types::AttributeValue;
+ let item = dynamo
+ .get_item()
+ .table_name(table)
+ .key("pk", AttributeValue::S(team.into()))
+ .key("sk", AttributeValue::S(give_sk(ticket)))
+ .consistent_read(true)
+ .send()
+ .await
+ .ok()?
+ .item?;
+ item.get("doc")
+ .and_then(|d| d.as_s().ok())
+ .and_then(|d| serde_json::from_str(d).ok())
+}
+
+/// Writes a give row.
+pub async fn put_given(
+ dynamo: &aws_sdk_dynamodb::Client,
+ table: &str,
+ team: &str,
+ g: &Given,
+) -> Result<(), String> {
+ use aws_sdk_dynamodb::types::AttributeValue;
+ dynamo
+ .put_item()
+ .table_name(table)
+ .item("pk", AttributeValue::S(team.into()))
+ .item("sk", AttributeValue::S(give_sk(&g.ticket)))
+ .item(
+ "doc",
+ AttributeValue::S(serde_json::to_string(g).map_err(|e| e.to_string())?),
+ )
+ .send()
+ .await
+ .map(|_| ())
+ .map_err(|e| aws_sdk_dynamodb::error::DisplayErrorContext(&e).to_string())
+}
+
+/// Whether a Jira event now is the one a give is waiting for: given in the
+/// last [`GIVE_WINDOW_SECS`] and not yet started.
+pub fn awaits_event(g: &Given, now: i64) -> bool {
+ g.started_at == 0 && g.given_at > 0 && now - g.given_at <= GIVE_WINDOW_SECS
+}
+
+/// Whether the answers approve the plan: an answer to [`PLAN_QUESTION`]
+/// that starts with "Approve" (the button) or says yes.
+pub fn plan_approved(answers: &[crate::run_questions::Answer]) -> bool {
+ answers.iter().any(|a| {
+ a.question.trim() == PLAN_QUESTION && {
+ let t = a.answer.trim().to_ascii_lowercase();
+ t.starts_with("approve") || t == "yes" || t.starts_with("yes,") || t.starts_with("yes ")
+ }
+ })
+}
+
+#[cfg(test)]
+mod tests {
+ use super::*;
+ use crate::pr_record::{RequestEvent, ReviewEvent};
+
+ const SECRET: &[u8] = b"test-secret";
+ const NOW: i64 = 1_800_000_000;
+
+ fn t(title: &str, desc: &str) -> TicketFacts {
+ TicketFacts {
+ key: "BOOK-118".into(),
+ title: title.into(),
+ description: desc.into(),
+ issue_type: "Story".into(),
+ points: Some(1.0),
+ repos: vec!["acme/web".into()],
+ repo_source: "label".into(),
+ tests: Some(true),
+ ..Default::default()
+ }
+ }
+
+ const AC: &str = "The refund email links to the help page.\n\nAcceptance criteria\n- [ ] The link opens /help/refunds\n\nChange web/src/emails/refund.tsx";
+
+ #[test]
+ fn a_code_is_signed_for_its_team_and_typed_loosely() {
+ let (code, sk) = issue_code(SECRET, "TEAM#a", [1, 2, 3, 4, 5]);
+ assert_eq!(code.len(), 19, "{code}");
+ assert!(verify_code(SECRET, "TEAM#a", &code));
+ assert!(verify_code(
+ SECRET,
+ "TEAM#a",
+ &code.to_lowercase().replace('-', " ")
+ ));
+ assert_eq!(code_sk("TEAM#a", &code.to_lowercase()), sk);
+ // Another team's app can't redeem it, nor a changed character.
+ assert!(!verify_code(SECRET, "TEAM#b", &code));
+ let mut bad = code.clone().into_bytes();
+ bad[0] = if bad[0] == b'A' { b'B' } else { b'A' };
+ assert!(!verify_code(
+ SECRET,
+ "TEAM#a",
+ std::str::from_utf8(&bad).unwrap()
+ ));
+ assert!(!verify_code(b"other", "TEAM#a", &code));
+ assert!(!verify_code(SECRET, "TEAM#a", "short"));
+ }
+
+ #[test]
+ fn account_ids_are_checked_before_they_reach_jql() {
+ assert!(valid_account_id(
+ "557058:aaaa1111-0000-0000-0000-000000000001"
+ ));
+ assert!(valid_account_id("5b10ac8d82e05b22cc7d4ef5"));
+ assert!(!valid_account_id("x\" OR assignee is not EMPTY"));
+ assert!(!valid_account_id("short"));
+ }
+
+ #[test]
+ fn email_alone_is_only_a_suggestion_and_never_a_guess() {
+ let u = |id: &str, email: &str, linked: bool| SeenJiraUser {
+ account_id: id.into(),
+ name: "Dana Ortiz".into(),
+ email: email.into(),
+ linked,
+ };
+ let none = BTreeSet::new();
+ let seen = vec![u("557058:a1", "dana@example.com", false)];
+ assert_eq!(
+ identity_suggestion(&seen, "Dana@Example.com", &none).map(|s| s.account_id.as_str()),
+ Some("557058:a1")
+ );
+ // Linked to someone, answered no, two with one email, or no email.
+ assert!(identity_suggestion(
+ &[u("557058:a1", "dana@example.com", true)],
+ "dana@example.com",
+ &none
+ )
+ .is_none());
+ let no: BTreeSet = ["557058:a1".to_string()].into();
+ assert!(identity_suggestion(&seen, "dana@example.com", &no).is_none());
+ let two = vec![
+ u("557058:a1", "dana@example.com", false),
+ u("557058:a2", "dana@example.com", false),
+ ];
+ assert!(identity_suggestion(&two, "dana@example.com", &none).is_none());
+ assert!(identity_suggestion(&seen, "", &none).is_none());
+ }
+
+ #[test]
+ fn a_layout_keeps_every_section_once_and_refuses_unknown_names() {
+ let l = Layout {
+ order: vec![
+ "later".into(),
+ "needs".into(),
+ "later".into(),
+ "bogus".into(),
+ ],
+ rail: vec![],
+ hidden: vec!["accounts".into()],
+ landing: "elsewhere".into(),
+ };
+ let n = l.normalized();
+ assert_eq!(
+ n.order,
+ vec!["later", "needs", "sprint", "working", "waiting"]
+ );
+ assert_eq!(n.rail, vec!["stats", "accounts"]);
+ assert_eq!(n.landing, "", "an unknown page is the default");
+ assert!(l.validate().is_err());
+ assert!(Layout {
+ order: vec!["sprint".into()],
+ landing: "prs".into(),
+ ..Default::default()
+ }
+ .validate()
+ .is_ok());
+ }
+
+ #[test]
+ fn snooze_done_and_undo() {
+ let mut p = Prefs::default();
+ assert_eq!(
+ standing(p.marks.get("pr:acme/web#482"), "2030-01-01T00:00:00Z", NOW),
+ Standing::Open
+ );
+ p.set_mark(
+ "pr:acme/web#482",
+ Mark {
+ snoozed_until: NOW + 3600,
+ at: NOW,
+ ..Default::default()
+ },
+ );
+ assert_eq!(
+ standing(p.marks.get("pr:acme/web#482"), "s", NOW),
+ Standing::Snoozed(NOW + 3600)
+ );
+ assert_eq!(
+ standing(p.marks.get("pr:acme/web#482"), "s", NOW + 3601),
+ Standing::Open
+ );
+ assert!(p.undo("pr:acme/web#482"));
+ assert!(!p.marks.contains_key("pr:acme/web#482"));
+ assert!(!p.undo("pr:acme/web#482"), "one undo per change");
+ // Done holds while it waits since the same time; a new wait is new.
+ p.set_mark(
+ "pr:acme/api#479",
+ Mark {
+ done_since: "t1".into(),
+ at: NOW,
+ ..Default::default()
+ },
+ );
+ assert_eq!(
+ standing(p.marks.get("pr:acme/api#479"), "t1", NOW),
+ Standing::Done
+ );
+ assert_eq!(
+ standing(p.marks.get("pr:acme/api#479"), "t2", NOW),
+ Standing::Open
+ );
+ }
+
+ #[test]
+ fn tidy_drops_spent_snoozes_and_bounds_the_document() {
+ let mut p = Prefs::default();
+ p.marks.insert(
+ "old".into(),
+ Mark {
+ snoozed_until: NOW - 1,
+ at: 1,
+ ..Default::default()
+ },
+ );
+ for i in 0..(MAX_MARKS + 10) {
+ p.marks.insert(
+ format!("k{i}"),
+ Mark {
+ done_since: "x".into(),
+ at: i as i64,
+ ..Default::default()
+ },
+ );
+ }
+ p.tidy(NOW);
+ assert!(!p.marks.contains_key("old"));
+ assert_eq!(p.marks.len(), MAX_MARKS);
+ assert!(!p.marks.contains_key("k0"), "the oldest go first");
+ }
+
+ #[test]
+ fn a_small_well_written_ticket_is_a_good_fit_with_its_reasons() {
+ let f = fit(&t("Fix the broken help link in the refund email", AC));
+ assert_eq!(f.band, Band::Good, "{f:?}");
+ assert_eq!(f.label, "Good fit");
+ assert!(f.why.iter().any(|w| w == "Acceptance criteria are written"));
+ assert!(f
+ .why
+ .iter()
+ .any(|w| w.contains("web/src/emails/refund.tsx")));
+ assert!(f
+ .why
+ .iter()
+ .any(|w| w.contains("acme/web (from its label)")));
+ assert!(f.why.iter().any(|w| w == "Tests exist in acme/web"));
+ assert!(f.missing.is_empty(), "{:?}", f.missing);
+ assert_eq!(f.kind, "copy fixes");
+ let json = serde_json::to_string(&f).unwrap();
+ assert!(!json.contains('%') && !json.contains("confidence") && !json.contains("score"));
+ }
+
+ #[test]
+ fn missing_pieces_make_it_a_maybe_and_say_what_would_change_it() {
+ let mut x = t(
+ "Retry failed webhook deliveries with backoff",
+ "Retry them.",
+ );
+ x.points = Some(3.0);
+ x.repos = vec!["acme/api".into(), "acme/billing".into()];
+ let f = fit(&x);
+ assert_eq!(f.band, Band::Maybe);
+ assert!(f
+ .missing
+ .iter()
+ .any(|m| m.starts_with("No acceptance criteria. Add two lines")));
+ assert!(f
+ .missing
+ .iter()
+ .any(|m| m.contains("Touches 2 repositories: acme/api and acme/billing")));
+ assert_eq!(f.kind, "background jobs");
+ // Mid-sized, or tests missing, is also a maybe.
+ let mut y = t("Add an empty state to the saved carts list", AC);
+ y.points = Some(5.0);
+ assert_eq!(fit(&y).band, Band::Maybe);
+ let mut z = t("Add an empty state to the saved carts list", AC);
+ z.tests = Some(false);
+ let fz = fit(&z);
+ assert_eq!(fz.band, Band::Maybe);
+ assert!(fz.missing.iter().any(|m| m.contains("no tests")));
+ }
+
+ #[test]
+ fn the_exclude_list_is_never_suggested() {
+ for (title, why) in [
+ ("Rotate the payment provider signing keys", "security"),
+ ("Let people reset their password from the app", "auth"),
+ ("Redact personal data in exports", "personal data"),
+ ("Follow up the checkout incident", "an incident"),
+ ("Raise the production database pool", "production-critical"),
+ ] {
+ let f = fit(&t(title, AC));
+ assert_eq!(f.band, Band::Not, "{title}");
+ assert_eq!(f.excluded.as_deref(), Some(why), "{title}");
+ assert!(
+ f.missing[0].contains("is a judgment call"),
+ "{:?}",
+ f.missing
+ );
+ }
+ // Words inside other words don't count.
+ assert_eq!(
+ fit(&t("Show the author on each review", AC)).band,
+ Band::Good
+ );
+ // Highest priority and three repositories are excluded too.
+ let mut p = t("Tidy the footer links", AC);
+ p.priority = "Highest".into();
+ assert_eq!(fit(&p).band, Band::Not);
+ let mut r = t("Tidy the footer links", AC);
+ r.repos = vec!["acme/a".into(), "acme/b".into(), "acme/c".into()];
+ assert!(fit(&r).excluded.unwrap().contains("spans 3 repositories"));
+ }
+
+ #[test]
+ fn large_or_unplaced_tickets_are_not_suggested() {
+ let mut big = t("Rework the export page", AC);
+ big.points = Some(8.0);
+ assert_eq!(fit(&big).band, Band::Not);
+ let mut lost = t("Rework the export page", "Make it better");
+ lost.repos.clear();
+ assert_eq!(fit(&lost).band, Band::Not);
+ }
+
+ #[test]
+ fn files_and_criteria_are_read_from_the_words() {
+ assert_eq!(
+ named_files("Change `SavedCartsList` in web/src/carts/SavedCartsList.tsx and README.md, see https://example.com/a/b.html"),
+ vec!["web/src/carts/SavedCartsList.tsx", "README.md", "SavedCartsList"]
+ );
+ assert!(has_acceptance("AC: it works"));
+ assert!(has_acceptance(
+ "Given a cart\nWhen it is empty\nThen it says so"
+ ));
+ assert!(!has_acceptance("Make it nicer"));
+ }
+
+ fn row(author: &str, for_person: Option<&str>, state: &str, turn: &str) -> crate::pr_view::Row {
+ crate::pr_view::Row {
+ key: "acme/web#1".into(),
+ org: "acme".into(),
+ repo: "acme/web".into(),
+ number: 1,
+ title: "t".into(),
+ url: String::new(),
+ author: crate::pr_view::Author {
+ login: author.into(),
+ coderhelm: false,
+ },
+ for_person: for_person.map(str::to_string),
+ draft: false,
+ base: "main".into(),
+ head: "b".into(),
+ created_at: None,
+ updated_at: None,
+ state: state.into(),
+ state_label: String::new(),
+ stage: Some("in_review".into()),
+ ready_at: None,
+ turn: turn.into(),
+ next: crate::pr_view::NextOut {
+ code: state.into(),
+ text: String::new(),
+ from: vec![],
+ since: None,
+ rule: None,
+ },
+ modifiers: vec![],
+ people: vec![],
+ checks: Default::default(),
+ reviews: Default::default(),
+ conflict: None,
+ open_threads: 0,
+ labels: vec![],
+ size: None,
+ last_action: None,
+ coderhelm: None,
+ links: vec![],
+ waiting_since: None,
+ rank: (0, 0, 0),
+ involves: vec![],
+ stale: false,
+ }
+ }
+
+ #[test]
+ fn pull_requests_group_by_whose_turn_it_is() {
+ assert_eq!(
+ pr_group(&row("theo", None, "needs_review", "you"), "dana"),
+ Some(PrGroup::Reviews)
+ );
+ assert_eq!(
+ pr_group(&row("dana", None, "checks_failing", "you"), "dana"),
+ Some(PrGroup::Returned)
+ );
+ assert_eq!(
+ pr_group(
+ &row("coderhelm[bot]", Some("dana"), "changes_requested", "you"),
+ "Dana"
+ ),
+ Some(PrGroup::Returned)
+ );
+ assert_eq!(
+ pr_group(&row("dana", None, "needs_review", "person"), "dana"),
+ Some(PrGroup::Waiting)
+ );
+ assert_eq!(
+ pr_group(
+ &row("coderhelm[bot]", Some("dana"), "needs_review", "person"),
+ "dana"
+ ),
+ Some(PrGroup::Waiting)
+ );
+ assert_eq!(
+ pr_group(&row("theo", None, "needs_review", "person"), "dana"),
+ None,
+ "someone else's, not your turn"
+ );
+ assert_eq!(pr_group(&row("dana", None, "merged", "done"), "dana"), None);
+ assert_eq!(
+ pr_group(&row("dana", None, "needs_review", "you"), ""),
+ None
+ );
+ }
+
+ fn req(who: &str, at: i64, removed: i64) -> RequestEvent {
+ RequestEvent {
+ who: who.into(),
+ at,
+ removed_at: removed,
+ }
+ }
+ fn rev(who: &str, at: i64) -> ReviewEvent {
+ ReviewEvent {
+ who: who.into(),
+ state: "APPROVED".into(),
+ sha: String::new(),
+ at,
+ human: true,
+ has_body: false,
+ }
+ }
+
+ #[test]
+ fn review_turnaround_is_your_own_median_from_request_to_first_review() {
+ let day = 86_400;
+ let logs = vec![
+ (
+ vec![req("dana", NOW - 3 * day, 0)],
+ vec![rev("dana", NOW - 3 * day + 3600), rev("dana", NOW - day)],
+ ),
+ (
+ vec![req("dana", NOW - 2 * day, 0)],
+ vec![
+ rev("mara", NOW - 2 * day + 60),
+ rev("Dana", NOW - 2 * day + 5 * 3600),
+ ],
+ ),
+ (
+ vec![req("dana", NOW - 2 * day, 0)],
+ vec![rev("dana", NOW - 2 * day + 9 * 3600)],
+ ),
+ // Taken back before a review; another person's; too old.
+ (
+ vec![req("dana", NOW - day, NOW - day + 10)],
+ vec![rev("dana", NOW - day + 3600)],
+ ),
+ (
+ vec![req("theo", NOW - day, 0)],
+ vec![rev("theo", NOW - day + 60)],
+ ),
+ (
+ vec![req("dana", NOW - 40 * day, 0)],
+ vec![rev("dana", NOW - 40 * day + 60)],
+ ),
+ ];
+ assert_eq!(review_turnaround(&logs, "dana", NOW), Some((5 * 3600, 3)));
+ assert_eq!(review_turnaround(&logs, "jun", NOW), None);
+ }
+
+ fn sug(key: &str, basis: &str) -> Suggestion {
+ Suggestion {
+ key: key.into(),
+ kind: "give".into(),
+ target: Some(format!("ticket:{}", key.trim_start_matches("give:"))),
+ text: format!("Give {} to CoderHelm", key.trim_start_matches("give:")),
+ action: "Give to CoderHelm".into(),
+ href: None,
+ reason: "Good fit: small, criteria written".into(),
+ evidence: vec![],
+ effect: "CoderHelm opens one pull request; you review it".into(),
+ effort: "1 pt".into(),
+ deadline: None,
+ as_of: "2027-01-15T08:00:00Z".into(),
+ kind_words: "copy fixes".into(),
+ dismiss_reasons: dismiss_reasons("copy fixes"),
+ back_because: None,
+ basis: basis.into(),
+ basis_words: "its description changed".into(),
+ }
+ }
+
+ #[test]
+ fn a_suggestion_shows_on_new_or_changed_items_and_rests_when_unchanged() {
+ let mut p = Prefs::default();
+ let none = BTreeMap::new();
+ let (v, w) = reconcile(vec![sug("give:BOOK-118", "b1")], &mut p, &none, NOW);
+ assert_eq!(v.len(), 1);
+ assert!(w.is_empty());
+ // Unchanged: still shown for a week, then it rests.
+ let (v, _) = reconcile(
+ vec![sug("give:BOOK-118", "b1")],
+ &mut p,
+ &none,
+ NOW + 86_400,
+ );
+ assert_eq!(v.len(), 1);
+ let (v, _) = reconcile(
+ vec![sug("give:BOOK-118", "b1")],
+ &mut p,
+ &none,
+ NOW + 8 * 86_400,
+ );
+ assert!(v.is_empty(), "not re-shown on every visit");
+ // Its basis changed: the old one is withdrawn with why, the new shows.
+ let (v, w) = reconcile(
+ vec![sug("give:BOOK-118", "b2")],
+ &mut p,
+ &none,
+ NOW + 9 * 86_400,
+ );
+ assert_eq!(v.len(), 1);
+ assert_eq!(w.len(), 1);
+ assert_eq!(
+ w[0].withdrawn_reason,
+ "Its basis changed: its description changed"
+ );
+ }
+
+ #[test]
+ fn a_suggestion_whose_basis_is_gone_is_withdrawn_once_with_its_reason() {
+ let mut p = Prefs::default();
+ reconcile(
+ vec![sug("give:BOOK-118", "b1")],
+ &mut p,
+ &BTreeMap::new(),
+ NOW,
+ );
+ let gone: BTreeMap = [(
+ "give:BOOK-118".to_string(),
+ "BOOK-118 left your sprint".to_string(),
+ )]
+ .into();
+ let (v, w) = reconcile(vec![], &mut p, &gone, NOW + 60);
+ assert!(v.is_empty());
+ assert_eq!(w[0].withdrawn_reason, "BOOK-118 left your sprint");
+ let (_, w) = reconcile(vec![], &mut p, &gone, NOW + 120);
+ assert!(w.is_empty(), "said once");
+ }
+
+ #[test]
+ fn dismiss_is_one_click_and_each_reason_makes_its_fixed_change() {
+ let none = BTreeMap::new();
+ // One click: hidden for this basis.
+ let mut p = Prefs::default();
+ reconcile(vec![sug("give:BOOK-118", "b1")], &mut p, &none, NOW);
+ assert_eq!(
+ dismiss(
+ &mut p,
+ "give:BOOK-118",
+ "b1",
+ Some("ticket:BOOK-118"),
+ "copy fixes",
+ "",
+ NOW
+ )
+ .unwrap(),
+ "Hidden."
+ );
+ assert!(
+ reconcile(vec![sug("give:BOOK-118", "b1")], &mut p, &none, NOW + 1)
+ .0
+ .is_empty()
+ );
+ // Back, saying why, once the basis changes.
+ let (v, _) = reconcile(vec![sug("give:BOOK-118", "b2")], &mut p, &none, NOW + 2);
+ assert_eq!(
+ v[0].back_because.as_deref(),
+ Some("Back because it changed: its description changed")
+ );
+ // Undo puts it back at once.
+ let mut p = Prefs::default();
+ dismiss(
+ &mut p,
+ "give:BOOK-118",
+ "b1",
+ Some("ticket:BOOK-118"),
+ "copy fixes",
+ "",
+ NOW,
+ )
+ .unwrap();
+ assert!(p.undo("give:BOOK-118"));
+ assert_eq!(
+ reconcile(vec![sug("give:BOOK-118", "b1")], &mut p, &none, NOW)
+ .0
+ .len(),
+ 1
+ );
+ // Not now: snoozed to tomorrow 9:00, then back.
+ let mut p = Prefs::default();
+ let e = dismiss(
+ &mut p,
+ "give:BOOK-118",
+ "b1",
+ None,
+ "copy fixes",
+ "not_now",
+ NOW,
+ )
+ .unwrap();
+ assert_eq!(e, "Snoozed until tomorrow at 9:00.");
+ assert!(
+ reconcile(vec![sug("give:BOOK-118", "b1")], &mut p, &none, NOW + 60)
+ .0
+ .is_empty()
+ );
+ assert_eq!(
+ reconcile(
+ vec![sug("give:BOOK-118", "b1")],
+ &mut p,
+ &none,
+ tomorrow_nine(NOW) + 1
+ )
+ .0
+ .len(),
+ 1
+ );
+ // Not me: never again for that target, whatever changes.
+ let mut p = Prefs::default();
+ dismiss(
+ &mut p,
+ "give:BOOK-118",
+ "b1",
+ Some("ticket:BOOK-118"),
+ "copy fixes",
+ "not_me",
+ NOW,
+ )
+ .unwrap();
+ assert!(
+ reconcile(vec![sug("give:BOOK-118", "b9")], &mut p, &none, NOW)
+ .0
+ .is_empty()
+ );
+ // Don't suggest this kind: the kind is muted, other kinds still show.
+ let mut p = Prefs::default();
+ let e = dismiss(
+ &mut p,
+ "give:BOOK-118",
+ "b1",
+ None,
+ "copy fixes",
+ "dont_suggest_kind",
+ NOW,
+ )
+ .unwrap();
+ assert_eq!(
+ e,
+ "No more suggestions for copy fixes. Turn them back on in Customize."
+ );
+ assert!(
+ reconcile(vec![sug("give:BOOK-120", "c1")], &mut p, &none, NOW)
+ .0
+ .is_empty()
+ );
+ let mut other = sug("give:BOOK-121", "d1");
+ other.kind_words = "UI changes".into();
+ assert_eq!(reconcile(vec![other], &mut p, &none, NOW).0.len(), 1);
+ assert!(dismiss(&mut p, "k", "b", None, "x", "bogus", NOW).is_err());
+ }
+
+ #[test]
+ fn every_suggestion_carries_its_dismiss_reasons_with_their_effects() {
+ let r = dismiss_reasons("copy fixes");
+ let codes: Vec<&str> = r.iter().map(|d| d.code.as_str()).collect();
+ assert_eq!(
+ codes,
+ vec!["already_handled", "not_now", "not_me", "dont_suggest_kind"]
+ );
+ assert_eq!(r[3].label, "Don't suggest copy fixes");
+ assert!(r.iter().all(|d| !d.effect.is_empty()));
+ let s = serde_json::to_value(sug("give:BOOK-118", "b1")).unwrap();
+ for f in [
+ "reason",
+ "evidence",
+ "effect",
+ "effort",
+ "as_of",
+ "dismiss_reasons",
+ ] {
+ assert!(s.get(f).is_some(), "{f}");
+ }
+ assert!(s.get("basis").is_none(), "the basis stays on the server");
+ }
+
+ #[test]
+ fn tomorrow_nine_is_never_minutes_away() {
+ let day0 = NOW - NOW.rem_euclid(86_400);
+ assert_eq!(tomorrow_nine(day0 + 3600), day0 + 9 * 3600);
+ assert_eq!(tomorrow_nine(day0 + 8 * 3600), day0 + 86_400 + 9 * 3600);
+ }
+
+ #[test]
+ fn a_give_credits_its_owner_once_and_only_soon_after() {
+ let g = Given {
+ ticket: "BOOK-112".into(),
+ owner: "u1".into(),
+ given_at: NOW,
+ ..Default::default()
+ };
+ assert!(awaits_event(&g, NOW + 60));
+ assert!(!awaits_event(&g, NOW + GIVE_WINDOW_SECS + 1));
+ assert!(!awaits_event(
+ &Given {
+ started_at: NOW + 5,
+ ..g.clone()
+ },
+ NOW + 60
+ ));
+ }
+
+ #[test]
+ fn only_an_approval_lets_a_plan_first_run_code() {
+ let a = |q: &str, ans: &str| crate::run_questions::Answer {
+ question: q.into(),
+ answer: ans.into(),
+ ..Default::default()
+ };
+ assert!(plan_approved(&[a(PLAN_QUESTION, PLAN_APPROVE)]));
+ assert!(plan_approved(&[a(PLAN_QUESTION, "Yes, go")]));
+ assert!(!plan_approved(&[a(PLAN_QUESTION, PLAN_CHANGE)]));
+ assert!(!plan_approved(&[a(
+ PLAN_QUESTION,
+ "Change step 2: keep the old column"
+ )]));
+ assert!(!plan_approved(&[a("Which column?", "Approve")]));
+ assert!(!plan_approved(&[]));
+ }
+}
diff --git a/services/common/src/handback.rs b/services/common/src/handback.rs
index 5be10b37e..43802f890 100644
--- a/services/common/src/handback.rs
+++ b/services/common/src/handback.rs
@@ -156,6 +156,8 @@ impl HandBack {
}
}
P::DivergentReadings => HumanOnly::AmbiguousTicket,
+ // The person asked to see the plan before any code.
+ P::PlanApproval => HumanOnly::Approval,
};
HandBack::new(why, question)
}
diff --git a/services/common/src/jira_app_features.json b/services/common/src/jira_app_features.json
index 3e9e7fad2..a2a16985f 100644
--- a/services/common/src/jira_app_features.json
+++ b/services/common/src/jira_app_features.json
@@ -4,5 +4,8 @@
{ "since": "6.9.0", "feature": "mentions", "commit": "0a1e381f" },
{ "since": "6.9.0", "feature": "in-place edits", "commit": "0a1e381f" },
{ "since": "6.9.0", "feature": "extended issue fields", "commit": "0a1e381f" },
- { "since": "6.10.0", "feature": "threaded replies", "commit": "e9f25b6d" }
+ { "since": "6.10.0", "feature": "threaded replies", "commit": "e9f25b6d" },
+ { "since": "7.1.0", "feature": "open sprint for For you", "commit": "29dc1560" },
+ { "since": "7.1.0", "feature": "Link my CoderHelm account", "commit": "29dc1560" },
+ { "since": "7.1.0", "feature": "Give to CoderHelm from For you", "commit": "29dc1560" }
]
diff --git a/services/common/src/jira_app_version.rs b/services/common/src/jira_app_version.rs
index de79d0e54..32beca84d 100644
--- a/services/common/src/jira_app_version.rs
+++ b/services/common/src/jira_app_version.rs
@@ -426,10 +426,20 @@ mod tests {
assert!(at_8.contains(&"threaded replies".to_string()));
assert_eq!(
missing_since(Version::parse("6.10.0")),
- Vec::::new()
+ vec![
+ "open sprint for For you",
+ "Link my CoderHelm account",
+ "Give to CoderHelm from For you"
+ ]
);
+ assert!(missing_since(Version::parse("7.1.0")).is_empty());
assert_eq!(missing_on_major(5).len(), features().len());
- assert!(missing_on_major(6).is_empty());
+ assert_eq!(
+ missing_on_major(6).len(),
+ 3,
+ "a site on 6 lacks what 7.1 added"
+ );
+ assert!(missing_on_major(7).is_empty());
}
#[test]
@@ -501,7 +511,7 @@ mod tests {
"a self-hosted copy"
);
// Behind the latest, but newer than every feature: no Missing sentence.
- let b = assess(Some(&seen("6.11.0")), Some(&latest("6.12.0")), SITE).unwrap();
+ let b = assess(Some(&seen("7.1.0")), Some(&latest("7.2.0")), SITE).unwrap();
assert!(b.missing.is_empty());
assert!(!b.message.contains("Missing"));
}
diff --git a/services/common/src/lib.rs b/services/common/src/lib.rs
index 4566f7905..560f66594 100644
--- a/services/common/src/lib.rs
+++ b/services/common/src/lib.rs
@@ -247,6 +247,7 @@ pub mod diff_shape;
/// Each ticket criterion mapped to an end-to-end test and proven both
/// ways: failing on staging, passing on the preview.
pub mod e2e_proof;
+pub mod foryou;
#[cfg(test)]
mod model_call_sites;
/// Which pull requests CoderHelm may push to, edit or close: its own.
diff --git a/services/common/src/pr_history.rs b/services/common/src/pr_history.rs
index c675c8f83..e6ff4d934 100644
--- a/services/common/src/pr_history.rs
+++ b/services/common/src/pr_history.rs
@@ -130,6 +130,9 @@ pub struct History {
/// person had to act (`handback` code).
pub run_outcome: String,
pub stop_reason: String,
+ /// The paths it changed (the record's, up to 100): who knows which
+ /// files, for the For you page's review suggestions.
+ pub files: Vec,
/// Where the row came from: `events` (written when the pull request
/// closed, from its record) or `search` (the backfill). An events row
/// is never thinned by a search row ([`merge`]).
@@ -269,6 +272,7 @@ impl History {
drift_overlap: r.drift_overlap,
run_outcome: String::new(),
stop_reason: String::new(),
+ files: r.files.clone(),
source: "events".into(),
}
}
diff --git a/services/common/src/stop_judge.rs b/services/common/src/stop_judge.rs
index 7480a3e71..d729793df 100644
--- a/services/common/src/stop_judge.rs
+++ b/services/common/src/stop_judge.rs
@@ -105,6 +105,9 @@ pub enum PersonOnly {
Access,
/// Readings of the ticket that lead to different code.
DivergentReadings,
+ /// The person asked to see the plan before any code (For you's "Draft a
+ /// plan first"). Set only by that rule, never by the model.
+ PlanApproval,
}
impl PersonOnly {
@@ -301,6 +304,11 @@ pub struct Picture {
/// one of them breaks a rule.
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub connected: Vec,
+ /// The person who gave the ticket asked to approve the plan before any
+ /// code (`common::foryou::Given::plan_first`): their name. The ask is
+ /// theirs, so it is settled by rule, with no default and no deadline.
+ #[serde(default, skip_serializing_if = "String::is_empty")]
+ pub plan_first_for: String,
}
/// Longest text of one field in the prompt and the stored record.
@@ -403,11 +411,18 @@ impl Question {
/// Whether the run may take the default by itself once the deadline
/// passes: never for access, which only a person can grant.
pub fn has_default(&self) -> bool {
- self.person_only != PersonOnly::Access
+ !matches!(
+ self.person_only,
+ PersonOnly::Access | PersonOnly::PlanApproval
+ )
}
/// What happens without an answer, in one sentence.
pub fn unanswered(&self) -> String {
+ if self.person_only == PersonOnly::PlanApproval {
+ return "You asked to see the plan first, so nothing is coded until you approve it."
+ .to_string();
+ }
if self.has_default() {
format!(
"If there is no answer within {} hours, I go ahead with the recommended option ({}).",
@@ -964,6 +979,28 @@ pub fn fallback(p: &Picture) -> Verdict {
/// another cycle with no cycles left (the run's hard limits are not the
/// judge's to lift).
fn settled_by_rule(p: &Picture) -> Option<(Verdict, String)> {
+ if p.kind() == Kind::Ask && !p.plan_first_for.trim().is_empty() {
+ return Some((
+ Verdict::Ask(Question {
+ question: crate::foryou::PLAN_QUESTION.into(),
+ person_only: PersonOnly::PlanApproval,
+ tried: vec![format!(
+ "Wrote the plan: it is on the run page ({})",
+ crate::truncate_str(p.reason.trim(), 200)
+ )],
+ options: vec![
+ crate::foryou::PLAN_APPROVE.into(),
+ crate::foryou::PLAN_CHANGE.into(),
+ ],
+ default: crate::foryou::PLAN_APPROVE.into(),
+ deadline_hours: 0,
+ }),
+ format!(
+ "{} asked to approve the plan first",
+ p.plan_first_for.trim()
+ ),
+ ));
+ }
if !p.cannot_proceed.trim().is_empty() {
return Some((
Verdict::Hold(Hold {
@@ -1150,6 +1187,36 @@ mod tests {
"evidence":evidence,"category":category,"location":location})
}
+ #[tokio::test]
+ async fn a_plan_first_ask_is_the_persons_with_no_default_and_no_model_call() {
+ struct NoModel;
+ impl JudgeModel for NoModel {
+ async fn answer(&self, _: &str, _: &str, _: &Value) -> Result {
+ panic!("the model is never asked");
+ }
+ }
+ let mut p = Picture::new(Kind::Ask, "plan_first", "3 tasks in acme/web");
+ p.plan_first_for = "Dana Ortiz".into();
+ let j = judge(&NoModel, p).await;
+ let q = j.question().unwrap();
+ assert_eq!(q.question, crate::foryou::PLAN_QUESTION);
+ assert_eq!(q.person_only, PersonOnly::PlanApproval);
+ assert!(!q.has_default(), "the run never goes ahead by itself");
+ assert_eq!(
+ q.options,
+ vec![crate::foryou::PLAN_APPROVE, crate::foryou::PLAN_CHANGE]
+ );
+ assert!(q
+ .unanswered()
+ .contains("nothing is coded until you approve"));
+ assert_eq!(
+ j.source(),
+ &Source::Rule("Dana Ortiz asked to approve the plan first".into())
+ );
+ // The model can never pick it.
+ assert!(PersonOnly::parse("plan_approval").is_none());
+ }
+
#[test]
fn overturned_decisions_reach_the_prompt_bounded() {
let mut p = picture(Kind::Block);
diff --git a/services/gateway/src/main.rs b/services/gateway/src/main.rs
index a1d2da685..53a1aca7a 100644
--- a/services/gateway/src/main.rs
+++ b/services/gateway/src/main.rs
@@ -48,6 +48,9 @@ pub struct AppState {
pub cognito_client_secret: String,
}
+/// The largest Jira link request taken (`routes::foryou_link::MAX_LINK_BODY`).
+const JIRA_LINK_BODY_LIMIT: usize = routes::foryou_link::MAX_LINK_BODY;
+
#[tokio::main]
async fn main() -> Result<(), Error> {
// Structured JSON logging for CloudWatch
@@ -693,6 +696,24 @@ fn build_app(state: Arc) -> Router {
.route("/reviewer/live", get(routes::reviewer::live_prs))
.route("/prs", get(routes::prs::list_prs))
.route("/prs/detail", get(routes::prs::get_pr))
+ // For you: the session user's own page and settings. No route takes
+ // a user; every read and write is the session's.
+ .route("/foryou", get(routes::foryou::get_for_you))
+ .route("/foryou/prefs", put(routes::foryou::put_prefs))
+ .route("/foryou/items", post(routes::foryou::mark_item))
+ .route("/foryou/suggestions", post(routes::foryou::suggestion_act))
+ .route(
+ "/foryou/give",
+ get(routes::foryou_give::preview).post(routes::foryou_give::give),
+ )
+ .route(
+ "/foryou/link/jira",
+ post(routes::foryou_link::make_code).delete(routes::foryou_link::unlink),
+ )
+ .route(
+ "/foryou/link/jira/not-me",
+ post(routes::foryou_link::not_me),
+ )
.route("/prs/overview", get(routes::prs_overview::get_overview))
.route("/reviewer/open-prs", get(routes::reviewer::open_prs))
.route(
@@ -1713,6 +1734,12 @@ fn build_app(state: Arc) -> Router {
.route("/github", post(routes::github_webhook::handle))
.route("/jira/:token", post(routes::jira_webhook::handle))
.route("/jira", post(routes::jira_webhook::handle_forge))
+ // The Jira app's "Link my CoderHelm account" (a person's one-time code).
+ .route(
+ "/jira-link",
+ post(routes::foryou_link::forge_link)
+ .layer(axum::extract::DefaultBodyLimit::max(JIRA_LINK_BODY_LIMIT)),
+ )
.route("/alerts/sns", post(routes::alerts::handle_sns))
// Knowledge sources: a provider says pages changed (signed).
.route(
diff --git a/services/gateway/src/permissions.rs b/services/gateway/src/permissions.rs
index d5e269824..8c90205a1 100644
--- a/services/gateway/src/permissions.rs
+++ b/services/gateway/src/permissions.rs
@@ -127,6 +127,8 @@ pub const CAPABILITIES: &[Capability] = &[
"reviewer::open_prs",
"prs::list_prs",
"prs::get_pr",
+ "foryou::get_for_you",
+ "foryou_give::preview",
"prs_overview::get_overview",
"review_lessons::list_lessons",
"learning::get_learning",
@@ -197,6 +199,12 @@ pub const CAPABILITIES: &[Capability] = &[
"sign_in::app_verify",
"sign_in::app_disable",
"api::update_notification_prefs",
+ "foryou::put_prefs",
+ "foryou::mark_item",
+ "foryou::suggestion_act",
+ "foryou_link::make_code",
+ "foryou_link::unlink",
+ "foryou_link::not_me",
],
},
Capability {
@@ -283,6 +291,7 @@ pub const CAPABILITIES: &[Capability] = &[
min_role: "member",
handlers: &[
"run_start::start_run",
+ "foryou_give::give",
"api::retry_run",
"decisions::export_decisions",
"run_answer::answer_run",
diff --git a/services/gateway/src/routes/chat_work.rs b/services/gateway/src/routes/chat_work.rs
index 41c38ebc9..05a9114ec 100644
--- a/services/gateway/src/routes/chat_work.rs
+++ b/services/gateway/src/routes/chat_work.rs
@@ -721,6 +721,7 @@ async fn needs_me(
budget: needs::SOURCE_BUDGET,
};
let me = needs::Me {
+ user: ctx.claims.sub.clone(),
email: ctx.claims.email.trim().to_string(),
github: ctx
.claims
diff --git a/services/gateway/src/routes/chat_work_needs.rs b/services/gateway/src/routes/chat_work_needs.rs
index c5cd58ac7..090c07dc5 100644
--- a/services/gateway/src/routes/chat_work_needs.rs
+++ b/services/gateway/src/routes/chat_work_needs.rs
@@ -14,7 +14,9 @@
//! mention them they haven't answered.
//!
//! The person is who signed in: their email, their GitHub login, and the
-//! Jira account CoderHelm has seen with their email. Every read is of the
+//! Jira account they linked themselves (`common::foryou`: a one-time code
+//! redeemed from the Jira app). An email match never stands in for that
+//! link: Atlassian emails can be hidden or differ from the sign-in email. Every read is of the
//! asker's team only. The sources are read side by side, each within
//! [`SOURCE_BUDGET`]; one that fails, times out or isn't connected is named
//! in the result, never skipped quietly. Items are grouped by urgency and
@@ -30,6 +32,10 @@ use super::chat_work_prs::{scoped_queries, Client};
use super::chat_work_runs::Item;
use super::chat_work_tickets::JiraApp;
+/// Why Jira isn't read for someone who hasn't linked their Jira account.
+pub const NOT_LINKED: &str =
+ "your Jira account isn't linked to CoderHelm yet: link it on the For you page (Connect Jira)";
+
/// How long one source may take before it's reported as not answering.
pub const SOURCE_BUDGET: Duration = Duration::from_secs(12);
/// Most items one answer lists.
@@ -133,9 +139,11 @@ pub struct SourceNote {
/// Who is asking.
#[derive(Debug, Clone, Default, PartialEq)]
pub struct Me {
+ /// Their dashboard user id (`claims.sub`).
+ pub user: String,
pub email: String,
pub github: Option,
- /// Their Jira account, once known ([`Store::jira_accounts`]).
+ /// Their Jira account, once they linked it ([`Store::jira_link`]).
pub jira_id: Option,
/// An admin or owner: decides held tool calls.
pub is_admin: bool,
@@ -148,8 +156,9 @@ pub trait Store: Send + Sync {
async fn runs(&self, team: &str) -> Result, String>;
/// The team's tool calls held for a person's yes, pending only.
async fn approvals(&self, team: &str) -> Result, String>;
- /// The Jira account ids CoderHelm has seen with this email.
- async fn jira_accounts(&self, team: &str, email: &str) -> Vec;
+ /// The Jira account this dashboard user linked themselves, if any. Never
+ /// guessed from an email.
+ async fn jira_link(&self, team: &str, user: &str) -> Option;
}
/// GitHub through the team's installation.
@@ -256,22 +265,6 @@ fn run_what(item: &Item) -> String {
}
}
-/// The Jira account ids runs recorded with this email (who assigned them).
-pub fn jira_ids_from_runs(items: &[Item], email: &str) -> Vec {
- let mut out: Vec = Vec::new();
- for i in items {
- if email.is_empty() || !st(i, "requester_email").eq_ignore_ascii_case(email) {
- continue;
- }
- if let Some(id) = st(i, "requester_key").strip_prefix("jira:") {
- if !id.is_empty() && !out.iter().any(|o| o == id) {
- out.push(id.to_string());
- }
- }
- }
- out
-}
-
/// What a `needs_input` run waits on, from the evidence its record holds.
#[derive(Debug, Clone, PartialEq)]
pub enum Wait {
@@ -1068,16 +1061,17 @@ pub async fn gather(src: &Sources<'_>, mut me: Me, now: Time) -> Report {
}
},
async {
- if me.email.is_empty() {
- Vec::new()
+ if me.jira_id.is_some() || me.user.is_empty() {
+ None
} else {
timed(
src.budget,
- "Jira users",
- src.store.jira_accounts(src.team, &me.email),
+ "Jira link",
+ src.store.jira_link(src.team, &me.user),
)
.await
- .unwrap_or_default()
+ .ok()
+ .flatten()
}
},
);
@@ -1086,12 +1080,9 @@ pub async fn gather(src: &Sources<'_>, mut me: Me, now: Time) -> Report {
Some(Err(e)) => Err(e),
None => Ok(Vec::new()),
};
+ // Only the link the person made; never an account seen with their email.
if me.jira_id.is_none() {
- me.jira_id = known.into_iter().next().or_else(|| {
- runs.as_ref()
- .ok()
- .and_then(|r| jira_ids_from_runs(r, &me.email).into_iter().next())
- });
+ me.jira_id = known.filter(|id| common::foryou::valid_account_id(id));
}
// Then the outside systems, side by side.
@@ -1117,15 +1108,7 @@ pub async fn gather(src: &Sources<'_>, mut me: Me, now: Time) -> Report {
);
};
let Some(account) = me.jira_id.clone() else {
- return (
- Vec::new(),
- Vec::new(),
- 0,
- Read::Off(format!(
- "CoderHelm hasn't seen a Jira account with your email ({}) yet",
- me.email
- )),
- );
+ return (Vec::new(), Vec::new(), 0, Read::Off(NOT_LINKED.into()));
};
match timed(src.budget, "Jira", ask_jira_mine(src.http, app, &account)).await {
Ok(Ok(resp)) => {
@@ -1512,41 +1495,8 @@ impl Store for Dynamo<'_> {
.collect())
}
- async fn jira_accounts(&self, team: &str, email: &str) -> Vec {
- use aws_sdk_dynamodb::types::AttributeValue;
- let prefix = common::requester::JIRA_USER_PREFIX;
- let mut out: Vec = Vec::new();
- let mut start: Option- = None;
- for _ in 0..5 {
- let r = self
- .state
- .dynamo
- .query()
- .table_name(&self.state.config.settings_table_name)
- .key_condition_expression("pk = :p AND begins_with(sk, :s)")
- .expression_attribute_values(":p", AttributeValue::S(team.to_string()))
- .expression_attribute_values(":s", AttributeValue::S(prefix.to_string()))
- .set_exclusive_start_key(start.take())
- .send()
- .await;
- let Ok(r) = r else {
- tracing::warn!("Chat: Jira users couldn't be read for what needs the asker");
- break;
- };
- for i in r.items() {
- if st(i, "email").eq_ignore_ascii_case(email) {
- let id = st(i, "sk").trim_start_matches(prefix).to_string();
- if !id.is_empty() && !out.contains(&id) {
- out.push(id);
- }
- }
- }
- match r.last_evaluated_key() {
- Some(k) if !k.is_empty() => start = Some(k.clone()),
- _ => break,
- }
- }
- out
+ async fn jira_link(&self, team: &str, user: &str) -> Option {
+ super::foryou_link::linked_jira(self.state, team, user).await
}
}
@@ -1601,13 +1551,13 @@ pub(crate) mod tests {
.map(|(_, a)| a.clone())
.collect())
}
- async fn jira_accounts(&self, team: &str, email: &str) -> Vec {
+ async fn jira_link(&self, team: &str, user: &str) -> Option {
self.asked.lock().unwrap().push(team.into());
+ // (team, account id, user): links people made, never emails.
self.jira_users
.iter()
- .filter(|(t, _, e)| t == team && e.eq_ignore_ascii_case(email))
+ .find(|(t, _, u)| t == team && u == user)
.map(|(_, id, _)| id.clone())
- .collect()
}
}
@@ -1800,6 +1750,7 @@ pub(crate) mod tests {
pub fn me() -> Me {
Me {
+ user: ME.into(),
email: ME.into(),
github: Some("dana".into()),
jira_id: None,
@@ -1922,6 +1873,47 @@ pub(crate) mod tests {
assert!(r.who.contains("GitHub @dana") && r.who.contains("Jira"));
}
+ #[tokio::test]
+ async fn an_email_match_never_links_a_jira_account() {
+ // Dana's email is on a Jira account CoderHelm has seen, and a run
+ // she asked for recorded that account, but she never linked it.
+ let mut s = store();
+ s.jira_users = vec![(TEAM.into(), JIRA_ME.into(), "USER#someone-else".into())];
+ s.runs.push((
+ TEAM.into(),
+ crate::routes::chat_work_runs::tests::run(
+ "01J",
+ "completed",
+ "ABC-9",
+ "Old",
+ "acme/web",
+ )
+ .into_iter()
+ .chain([
+ (
+ "requester_key".to_string(),
+ AttributeValue::S(format!("jira:{JIRA_ME}")),
+ ),
+ ("requester_email".to_string(), AttributeValue::S(ME.into())),
+ ])
+ .collect(),
+ ));
+ let h = http();
+ let a = app();
+ let r = report_with(&s, &h, Some(&a), None).await;
+ let jira = r.sources.iter().find(|x| x.name == "Jira").unwrap();
+ assert_eq!(jira.read, Read::Off(NOT_LINKED.into()));
+ assert!(r.needs.iter().all(|n| n.loc != "Jira"), "{:?}", r.needs);
+ assert!(
+ h.sent
+ .lock()
+ .unwrap()
+ .iter()
+ .all(|x| !x.url.contains("jira-app")),
+ "Jira is never asked for an account the person didn't link"
+ );
+ }
+
#[tokio::test]
async fn another_teams_records_never_show() {
let s = store();
diff --git a/services/gateway/src/routes/foryou.rs b/services/gateway/src/routes/foryou.rs
new file mode 100644
index 000000000..6be007468
--- /dev/null
+++ b/services/gateway/src/routes/foryou.rs
@@ -0,0 +1,1818 @@
+//! `GET /api/foryou`: one person's own page, read for the session's user
+//! only. No route here takes a user: every read and write is keyed by the
+//! session's team and the session's user.
+//!
+//! What it joins, all of it already read elsewhere (nothing forked):
+//!
+//! - **Pull requests** from the records `GET /api/prs` reads
+//! (`prs::read_all`, `common::pr_view::rows`), grouped by whose turn it is
+//! (`common::foryou::pr_group`): reviews asked of you, your pull requests
+//! returned to you, and yours waiting on someone else.
+//! - **CoderHelm's runs, held tool calls and Jira** from
+//! `chat_work_needs::gather`, the same function Chat's "what needs me"
+//! uses, with the person's linked Jira account (never an email match).
+//! - **The open sprint** from the team's Jira app (`sprint` read, the
+//! account id written into the JQL), with a fit band per ticket
+//! (`common::foryou::fit`).
+//! - **Private stats**: what waits on you, your pull requests waiting on
+//! others, and your median review turnaround from the pull request
+//! history. Nothing is ranked or compared with anyone.
+//! - **Suggestions**, one per row, with their lifecycle
+//! (`common::foryou::reconcile`).
+//!
+//! The heavy reads are kept for 30 seconds per installation, team and user
+//! ([`READS`]); the person's own settings are read fresh on every call.
+
+use std::collections::{BTreeMap, BTreeSet, HashMap};
+use std::sync::{Arc, LazyLock};
+use std::time::{Duration, Instant};
+
+use aws_sdk_dynamodb::types::AttributeValue;
+use axum::{extract::State, http::StatusCode, Extension, Json};
+use common::foryou::{self, Band, Evidence, Mark, Prefs, Standing, Suggestion, TicketFacts};
+use common::pr_history::History;
+use common::pr_view::Row;
+use serde::Deserialize;
+use serde_json::{json, Value};
+use tracing::warn;
+
+use super::chat_work_needs as needs;
+use super::foryou_link::user_of;
+use super::run_checks::{read_key, TtlCache};
+use crate::models::Claims;
+use crate::AppState;
+
+pub type Item = HashMap;
+
+/// How long one person's heavy reads are reused.
+const READ_TTL: Duration = Duration::from_secs(30);
+/// How far the history is read: expertise for review suggestions.
+const HISTORY_DAYS: i64 = 90;
+
+/// One person's heavy reads, keyed by
+/// `read_key(installation_id, "foryou##")`: never shared
+/// between people or teams.
+static READS: LazyLock>> = LazyLock::new(TtlCache::new);
+
+/// What the Jira app said about the person's open sprint.
+#[derive(Debug, Clone, PartialEq)]
+pub enum Sprint {
+ Ok(Vec),
+ /// The person hasn't linked a Jira account.
+ NotLinked,
+ /// The team's Jira isn't connected (why).
+ NotConnected(String),
+ /// The site runs an app from before the sprint read.
+ Old,
+ Failed(String),
+}
+
+/// Everything read for one person, besides their settings.
+#[derive(Debug, Clone)]
+pub struct Reads {
+ pub report: needs::Report,
+ pub runs: Vec
- ,
+ pub sprint: Sprint,
+ pub history: Vec,
+ pub given: BTreeMap,
+ pub seen_users: Vec,
+ pub sources: Vec,
+ pub site: String,
+ pub read_at: i64,
+}
+
+fn now() -> i64 {
+ chrono::Utc::now().timestamp()
+}
+
+fn st<'a>(item: &'a Item, k: &str) -> &'a str {
+ item.get(k)
+ .and_then(|v| v.as_s().ok())
+ .map(String::as_str)
+ .unwrap_or("")
+}
+
+fn parse_time(s: &str) -> i64 {
+ needs::parse_time(s).map(|t| t.timestamp()).unwrap_or(0)
+}
+
+fn iso(t: i64) -> Option {
+ common::pr_view::rfc3339(t)
+}
+
+// ── The person's settings ───────────────────────────────────────────────────
+
+/// The person's settings, or the defaults.
+pub async fn read_prefs(state: &AppState, team: &str, user: &str) -> (Prefs, Option) {
+ let r = state
+ .dynamo
+ .get_item()
+ .table_name(&state.config.settings_table_name)
+ .key("pk", AttributeValue::S(team.into()))
+ .key("sk", AttributeValue::S(foryou::user_sk(user)))
+ .consistent_read(true)
+ .send()
+ .await;
+ let Ok(Some(item)) = r.map(|o| o.item) else {
+ return (Prefs::default(), None);
+ };
+ let v = item
+ .get("v")
+ .and_then(|v| v.as_n().ok())
+ .and_then(|n| n.parse().ok());
+ let prefs = item
+ .get("doc")
+ .and_then(|d| d.as_s().ok())
+ .and_then(|d| serde_json::from_str(d).ok())
+ .unwrap_or_default();
+ (prefs, v)
+}
+
+/// Writes the settings with a version check; `false` when someone else
+/// wrote first (the caller reads again).
+async fn write_prefs(
+ state: &AppState,
+ team: &str,
+ user: &str,
+ prefs: &Prefs,
+ v: Option,
+) -> Result {
+ let doc = serde_json::to_string(prefs).map_err(|_| StatusCode::INTERNAL_SERVER_ERROR)?;
+ let next = v.unwrap_or(0) + 1;
+ let mut put = state
+ .dynamo
+ .put_item()
+ .table_name(&state.config.settings_table_name)
+ .item("pk", AttributeValue::S(team.into()))
+ .item("sk", AttributeValue::S(foryou::user_sk(user)))
+ .item("doc", AttributeValue::S(doc))
+ .item("v", AttributeValue::N(next.to_string()));
+ put = match v {
+ Some(old) => put
+ .condition_expression("v = :old")
+ .expression_attribute_values(":old", AttributeValue::N(old.to_string())),
+ None => put.condition_expression("attribute_not_exists(sk)"),
+ };
+ match put.send().await {
+ Ok(_) => Ok(true),
+ Err(e)
+ if e.as_service_error()
+ .is_some_and(|x| x.is_conditional_check_failed_exception()) =>
+ {
+ Ok(false)
+ }
+ Err(e) => {
+ warn!(error = %e, "For you: settings not written");
+ Err(StatusCode::INTERNAL_SERVER_ERROR)
+ }
+ }
+}
+
+/// Changes the session user's settings: read, change, write with a version
+/// check, a few tries.
+pub async fn update_prefs(
+ state: &AppState,
+ claims: &Claims,
+ mut change: impl FnMut(&mut Prefs) -> Result,
+) -> Result<(Prefs, T), StatusCode> {
+ let user = user_of(claims);
+ for _ in 0..4 {
+ let (mut prefs, v) = read_prefs(state, &claims.team_id, &user).await;
+ let out = change(&mut prefs).map_err(|_| StatusCode::BAD_REQUEST)?;
+ prefs.tidy(now());
+ if write_prefs(state, &claims.team_id, &user, &prefs, v).await? {
+ return Ok((prefs, out));
+ }
+ }
+ Err(StatusCode::CONFLICT)
+}
+
+// ── Reads ───────────────────────────────────────────────────────────────────
+
+/// `gather`'s store with the runs already read (the page reads them once,
+/// for its own lists too).
+struct Prefetched<'a> {
+ runs: Result, String>,
+ inner: needs::Dynamo<'a>,
+}
+
+#[async_trait::async_trait]
+impl needs::Store for Prefetched<'_> {
+ async fn runs(&self, _team: &str) -> Result, String> {
+ self.runs.clone()
+ }
+ async fn approvals(&self, team: &str) -> Result, String> {
+ self.inner.approvals(team).await
+ }
+ async fn jira_link(&self, _team: &str, _user: &str) -> Option {
+ // The caller passes the link it read; nothing is looked up here.
+ None
+ }
+}
+
+/// Asks the team's Jira app for the person's open sprint.
+pub async fn ask_sprint(
+ http: &dyn common::mcp_remote::http::Http,
+ app: &super::chat_work_tickets::JiraApp,
+ account: &str,
+) -> Sprint {
+ use common::mcp_remote::http::{HttpRequest, Limit};
+ let body = json!({ "forge_secret": app.secret, "sprint": { "account_id": account } });
+ let r = match http
+ .send(HttpRequest::json(&app.issues_url, &body, Limit::Metadata))
+ .await
+ {
+ Ok(r) => r,
+ Err(e) => return Sprint::Failed(format!("Jira couldn't be reached: {e}")),
+ };
+ if r.status != 200 {
+ return Sprint::Failed(format!("Jira's app answered {}", r.status));
+ }
+ let Some(v) = r.json() else {
+ return Sprint::Failed("Jira's app sent something unreadable".into());
+ };
+ if !v["sprint"].is_object() {
+ return Sprint::Old;
+ }
+ if v["sprint"]["found"] != true {
+ return Sprint::Failed(
+ v["sprint"]["why"]
+ .as_str()
+ .unwrap_or("the sprint couldn't be read")
+ .to_string(),
+ );
+ }
+ Sprint::Ok(v["issues"].as_array().cloned().unwrap_or_default())
+}
+
+async fn given_rows(state: &AppState, team: &str) -> BTreeMap {
+ let mut out = BTreeMap::new();
+ let Ok(r) = state
+ .dynamo
+ .query()
+ .table_name(&state.config.settings_table_name)
+ .key_condition_expression("pk = :p AND begins_with(sk, :s)")
+ .expression_attribute_values(":p", AttributeValue::S(team.into()))
+ .expression_attribute_values(":s", AttributeValue::S(foryou::GIVE_PREFIX.into()))
+ .send()
+ .await
+ else {
+ return out;
+ };
+ for i in r.items() {
+ if let Some(g) = i
+ .get("doc")
+ .and_then(|d| d.as_s().ok())
+ .and_then(|d| serde_json::from_str::(d).ok())
+ {
+ out.insert(g.ticket.clone(), g);
+ }
+ }
+ out
+}
+
+/// The heavy reads for one person, from the short cache or fresh.
+pub async fn reads(
+ state: &Arc,
+ claims: &Claims,
+ jira_account: Option<&str>,
+) -> Arc {
+ let installation = super::api::get_team_installation_id(state, &claims.team_id)
+ .await
+ .unwrap_or(0);
+ let user = user_of(claims);
+ let key = read_key(installation, &format!("foryou#{}#{user}", claims.team_id));
+ let at = Instant::now();
+ if let Some(hit) = READS.get(&key, at) {
+ return hit;
+ }
+ let team = claims.team_id.as_str();
+ let holder = super::roles::holder_for(state, claims).await;
+ let open = {
+ let auds = crate::bases::audiences(state, team).await;
+ let who = crate::bases::Asker {
+ holder: &holder,
+ email: &claims.email,
+ };
+ crate::bases::decide_all(&who, &auds, None)
+ };
+ let readable = crate::bases::readable_kinds(&holder, &open);
+ let dynamo = needs::Dynamo { state };
+ let (runs, jira) = tokio::join!(
+ async {
+ if readable.contains(&"runs") {
+ needs::Store::runs(&dynamo, team).await
+ } else {
+ Ok(Vec::new())
+ }
+ },
+ super::chat_work_tickets::load(state, team),
+ );
+ let store = Prefetched {
+ runs: runs.clone(),
+ inner: needs::Dynamo { state },
+ };
+ let http = common::mcp_remote::http::GuardedHttps;
+ let src = needs::Sources {
+ team,
+ store: &store,
+ http: &http,
+ jira: jira.app.as_ref(),
+ jira_off: jira.off_words(),
+ // Pull requests come from the records, which cost no GitHub calls.
+ github: None,
+ repos: &[],
+ readable: &readable,
+ budget: needs::SOURCE_BUDGET,
+ };
+ let me = needs::Me {
+ user: claims.sub.clone(),
+ email: claims.email.trim().to_string(),
+ github: claims.github_login.clone().filter(|g| !g.trim().is_empty()),
+ jira_id: jira_account.map(str::to_string),
+ is_admin: matches!(claims.role.as_str(), "admin" | "owner"),
+ };
+ let t = now();
+ let sprint_fut = async {
+ if !readable.contains(&"tickets") {
+ return Sprint::NotConnected("your role can't see tickets".into());
+ }
+ let Some(app) = jira.app.as_ref() else {
+ return Sprint::NotConnected(jira.off_words().to_string());
+ };
+ let Some(account) = jira_account else {
+ return Sprint::NotLinked;
+ };
+ match tokio::time::timeout(needs::SOURCE_BUDGET, ask_sprint(&http, app, account)).await {
+ Ok(s) => s,
+ Err(_) => Sprint::Failed("Jira didn't answer in time".into()),
+ }
+ };
+ let (report, sprint, history, given, seen_users) = tokio::join!(
+ Box::pin(needs::gather(&src, me, chrono::Utc::now())),
+ sprint_fut,
+ async {
+ common::pr_history::all_since(
+ &state.dynamo,
+ &state.config.settings_table_name,
+ team,
+ t - HISTORY_DAYS * 86_400,
+ )
+ .await
+ .unwrap_or_else(|e| {
+ warn!(error = %e, "For you: history not read");
+ Vec::new()
+ })
+ },
+ given_rows(state, team),
+ async {
+ if jira_account.is_none() {
+ super::foryou_link::seen_jira_users(state, team).await
+ } else {
+ Vec::new()
+ }
+ },
+ );
+ let mut sources: Vec = report
+ .sources
+ .iter()
+ .filter(|s| s.name != "GitHub")
+ .map(|s| match &s.read {
+ needs::Read::Ok(_) => json!({"name": s.name, "read": "ok", "detail": ""}),
+ needs::Read::Failed(e) => json!({"name": s.name, "read": "failed", "detail": e}),
+ needs::Read::Off(w) => json!({"name": s.name, "read": "off", "detail": w}),
+ })
+ .collect();
+ sources.push(match &sprint {
+ Sprint::Ok(_) => json!({"name": "Sprint", "read": "ok", "detail": ""}),
+ Sprint::NotLinked => json!({"name": "Sprint", "read": "off", "detail": needs::NOT_LINKED}),
+ Sprint::NotConnected(w) => json!({"name": "Sprint", "read": "off", "detail": w}),
+ Sprint::Old => json!({"name": "Sprint", "read": "old", "detail": "the team's Jira app is an older version that can't read a sprint; an admin updates it in Atlassian Administration"}),
+ Sprint::Failed(e) => json!({"name": "Sprint", "read": "failed", "detail": e}),
+ });
+ let v = Arc::new(Reads {
+ report,
+ runs: runs.unwrap_or_default(),
+ sprint,
+ history,
+ given,
+ seen_users,
+ sources,
+ site: jira
+ .app
+ .as_ref()
+ .map(|a| a.site.clone())
+ .unwrap_or_default(),
+ read_at: t,
+ });
+ READS.put(key, v.clone(), READ_TTL, at);
+ v
+}
+
+/// Forgets one person's reads (after they give a ticket, so the next read
+/// shows it).
+pub async fn forget(state: &AppState, claims: &Claims) {
+ let installation = super::api::get_team_installation_id(state, &claims.team_id)
+ .await
+ .unwrap_or(0);
+ let key = read_key(
+ installation,
+ &format!("foryou#{}#{}", claims.team_id, user_of(claims)),
+ );
+ READS.put(key, Arc::new(empty_reads()), Duration::ZERO, Instant::now());
+}
+
+fn empty_reads() -> Reads {
+ Reads {
+ report: needs::Report::default(),
+ runs: Vec::new(),
+ sprint: Sprint::NotLinked,
+ history: Vec::new(),
+ given: BTreeMap::new(),
+ seen_users: Vec::new(),
+ sources: Vec::new(),
+ site: String::new(),
+ read_at: 0,
+ }
+}
+
+// ── The page, pure ──────────────────────────────────────────────────────────
+
+/// Who the page is for.
+#[derive(Debug, Clone, Default)]
+pub struct Viewer {
+ pub user: String,
+ pub name: String,
+ pub email: String,
+ pub github: Option,
+ pub jira: Option,
+ pub jira_name: String,
+}
+
+/// One sprint ticket, read from the Jira app.
+#[derive(Debug, Clone, Default)]
+pub struct SprintTicket {
+ pub key: String,
+ pub title: String,
+ pub status: String,
+ pub category: String,
+ pub priority: String,
+ pub issue_type: String,
+ pub labels: Vec,
+ pub components: Vec,
+ pub points: Option,
+ pub description: String,
+ pub sprint_name: String,
+ pub sprint_end: String,
+}
+
+pub fn sprint_ticket(v: &Value) -> SprintTicket {
+ let s = |k: &str| v[k].as_str().unwrap_or("").to_string();
+ let list = |k: &str| -> Vec {
+ v[k].as_array()
+ .into_iter()
+ .flatten()
+ .filter_map(|x| x.as_str().map(str::to_string))
+ .collect()
+ };
+ SprintTicket {
+ key: s("key"),
+ title: s("summary"),
+ status: s("status"),
+ category: s("status_category"),
+ priority: s("priority"),
+ issue_type: s("type"),
+ labels: list("labels"),
+ components: list("components"),
+ points: v["points"].as_f64(),
+ description: s("description"),
+ sprint_name: v["sprint"]["name"].as_str().unwrap_or("").to_string(),
+ sprint_end: v["sprint"]["end_date"].as_str().unwrap_or("").to_string(),
+ }
+}
+
+/// The repositories a ticket would change, and how that is known: a
+/// `coderhelm:` label, the ticket naming a repository, or where
+/// this project's earlier runs went.
+pub fn repo_hints(
+ t: &SprintTicket,
+ team_repos: &[String],
+ runs: &[Item],
+) -> (Vec, &'static str) {
+ let pinned: Vec = t
+ .labels
+ .iter()
+ .filter_map(|l| l.split_once(':'))
+ .filter(|(p, r)| p.eq_ignore_ascii_case("coderhelm") && r.contains('/'))
+ .map(|(_, r)| r.to_string())
+ .collect();
+ if !pinned.is_empty() {
+ return (pinned, "label");
+ }
+ let text = format!("{} {}", t.title, t.description).to_ascii_lowercase();
+ let named: Vec = team_repos
+ .iter()
+ .filter(|r| {
+ let r = r.to_ascii_lowercase();
+ text.contains(&r)
+ })
+ .cloned()
+ .collect();
+ if !named.is_empty() {
+ return (named, "ticket");
+ }
+ let project = t.key.split('-').next().unwrap_or("");
+ let mut counts: BTreeMap = BTreeMap::new();
+ for r in runs {
+ let tk = st(r, "ticket_id");
+ let repo = st(r, "repo");
+ if !project.is_empty() && !repo.is_empty() && tk.starts_with(&format!("{project}-")) {
+ *counts.entry(repo.to_string()).or_default() += 1;
+ }
+ }
+ let mut best: Vec<(usize, String)> = counts.into_iter().map(|(r, n)| (n, r)).collect();
+ best.sort_by(|a, b| b.0.cmp(&a.0).then(a.1.cmp(&b.1)));
+ match best.first() {
+ Some((n, r)) if *n >= 2 => (vec![r.clone()], "history"),
+ _ => (Vec::new(), ""),
+ }
+}
+
+/// Repositories whose pull requests run a test check, with that check's
+/// name (from the records' check attempts).
+pub fn test_checks(recs: &[common::pr_record::PrRecord]) -> BTreeMap {
+ let mut out = BTreeMap::new();
+ for r in recs {
+ for c in &r.check_attempts {
+ let n = c.name.to_ascii_lowercase();
+ if ["test", "spec", "jest", "pytest", "vitest", "e2e"]
+ .iter()
+ .any(|w| n.contains(w))
+ {
+ out.entry(r.repo.clone()).or_insert_with(|| c.name.clone());
+ }
+ }
+ }
+ out
+}
+
+/// A run's stage on the page's bar.
+pub fn stage_of(item: &Item) -> (&'static str, String) {
+ let status = st(item, "status");
+ if status == common::run_status::NEEDS_INPUT {
+ return ("waiting", "Waiting on you".into());
+ }
+ match st(item, "current_pass") {
+ "" | "triage" | "plan" => ("planning", "Planning".into()),
+ "ci" | "ci_fix" | "fix_ci" => ("ci", "CI".into()),
+ "feedback" | "fix_round" => ("coding", "Addressing review".into()),
+ _ => ("coding", "Coding".into()),
+ }
+}
+
+fn first_person(from: &[String]) -> Option {
+ from.iter()
+ .find_map(|f| f.strip_prefix("person:"))
+ .map(str::to_string)
+}
+
+fn pr_label(state: &str) -> (&'static str, &'static str) {
+ match state {
+ "needs_review" | "needs_reviewer" => ("Review requested", "Review"),
+ "re_review" => ("Review again", "Review"),
+ "needs_code_owner" => ("Code owner review", "Review"),
+ "checks_failing" => ("Checks failing", "Open checks"),
+ "changes_requested" => ("Changes requested", "See comments"),
+ "conflicts" => ("Conflicts", "Resolve"),
+ "open_threads" => ("Open conversations", "Reply"),
+ "ready_to_merge" | "ready_auto_merge" => ("Ready to merge", "Merge"),
+ "needs_decision" => ("Decision needed", "Decide"),
+ _ => ("Your turn", "Open"),
+ }
+}
+
+fn pr_href(row: &Row, action: &str) -> String {
+ match action {
+ "Review" | "Merge" | "Decide" => {
+ let q = format!(
+ "repo={}&number={}",
+ urlencoding::encode(&row.repo),
+ row.number
+ );
+ match row.coderhelm.as_ref().and_then(|c| c.run_id.clone()) {
+ Some(run) => format!("/inbox/pr?{q}&run={}", urlencoding::encode(&run)),
+ None => format!("/inbox/pr?{q}"),
+ }
+ }
+ "Open checks" => format!("{}/checks", row.url),
+ _ => row.url.clone(),
+ }
+}
+
+fn since_of(row: &Row) -> String {
+ row.waiting_since
+ .clone()
+ .or_else(|| row.next.since.clone())
+ .or_else(|| row.updated_at.clone())
+ .unwrap_or_default()
+}
+
+/// A ticket key at the start of a need's "what" ("BOOK-101 Store ...").
+fn key_of(what: &str) -> Option {
+ let w = what.split_whitespace().next()?;
+ super::chat_work_tickets::valid_key(w).then(|| w.to_string())
+}
+
+/// Everything the page builds from, read and pure.
+pub struct Input<'a> {
+ pub viewer: &'a Viewer,
+ pub rows: &'a [Row],
+ pub records: &'a [common::pr_record::PrRecord],
+ pub reads: &'a Reads,
+ pub team_repos: &'a [String],
+ pub layout: foryou::Layout,
+ pub now: i64,
+}
+
+/// The page, for one person, from what was read. Changes `prefs` only in
+/// what the suggestions' lifecycle keeps (`shown`, re-shown dismissals).
+pub fn build(input: &Input, prefs: &mut Prefs) -> Value {
+ let v = input.viewer;
+ let now = input.now;
+ let login = v.github.clone().unwrap_or_default();
+ let reads = input.reads;
+ let mut needs_out: BTreeMap<&str, Vec> = BTreeMap::new();
+ let mut waiting: Vec = Vec::new();
+ let mut later: Vec = Vec::new();
+
+ let mut place = |group: &'static str, item: Value, since: &str, later: &mut Vec| {
+ let key = item["key"].as_str().unwrap_or("").to_string();
+ match foryou::standing(prefs.marks.get(&key), since, now) {
+ Standing::Open => match group {
+ "waiting" => waiting.push(item),
+ g => needs_out.entry(g).or_default().push(item),
+ },
+ Standing::Snoozed(until) => {
+ let mut it = item;
+ it["snoozed_until"] = json!(iso(until));
+ it["later"] = json!("snoozed");
+ later.push(it);
+ }
+ Standing::Done => {}
+ }
+ };
+
+ // Pull requests.
+ for row in input.rows {
+ let Some(g) = foryou::pr_group(row, &login) else {
+ continue;
+ };
+ let since = since_of(row);
+ let key = format!("pr:{}#{}", row.repo, row.number);
+ let by_coderhelm = row.author.coderhelm;
+ match g {
+ foryou::PrGroup::Reviews | foryou::PrGroup::Returned => {
+ let (label, action) = pr_label(&row.state);
+ let who = if g == foryou::PrGroup::Reviews {
+ Some(row.author.login.clone())
+ } else {
+ row.reviews
+ .changes_requested_by
+ .first()
+ .cloned()
+ .or_else(|| first_person(&row.next.from))
+ .filter(|p| !p.eq_ignore_ascii_case(&login))
+ };
+ let item = json!({
+ "key": key,
+ "group": if g == foryou::PrGroup::Reviews { "reviews" } else { "returned" },
+ "kind": row.state,
+ "label": label,
+ "where": format!("{}#{}", row.repo, row.number),
+ "title": row.title,
+ "why": row.next.text,
+ "since": since,
+ "who": who,
+ "by_coderhelm": by_coderhelm,
+ "action": {"label": action, "href": pr_href(row, action)},
+ "href": row.url,
+ "pr": {"repo": row.repo, "number": row.number},
+ "run_id": row.coderhelm.as_ref().and_then(|c| c.run_id.clone()),
+ });
+ let group = if g == foryou::PrGroup::Reviews {
+ "reviews"
+ } else {
+ "returned"
+ };
+ place(group, item, &since, &mut later);
+ }
+ foryou::PrGroup::Waiting => {
+ let next_who = first_person(&row.next.from);
+ let item = json!({
+ "key": key,
+ "where": format!("{}#{}", row.repo, row.number),
+ "title": row.title,
+ "next": {
+ "who": next_who,
+ "what": row.state_label.to_lowercase(),
+ "text": row.next.text,
+ "turn": row.turn,
+ },
+ "since": since,
+ "by_coderhelm": by_coderhelm,
+ "href": row.url,
+ "nudge_href": row.url,
+ "pr": {"repo": row.repo, "number": row.number},
+ });
+ place("waiting", item, &since, &mut later);
+ }
+ }
+ }
+
+ // CoderHelm asks you (from gather), and Jira's FYI.
+ let mut sprint_keys: BTreeSet = BTreeSet::new();
+ let tickets: Vec = match &reads.sprint {
+ Sprint::Ok(list) => list.iter().map(sprint_ticket).collect(),
+ _ => Vec::new(),
+ };
+ for t in &tickets {
+ sprint_keys.insert(t.key.clone());
+ }
+ for n in &reads.report.needs {
+ if !n.urgency.is_need() {
+ continue;
+ }
+ match n.kind {
+ "run" => {
+ let run_id = n
+ .link
+ .split("id=")
+ .nth(1)
+ .map(|s| s.split('&').next().unwrap_or(s).to_string())
+ .unwrap_or_default();
+ let is_plan = n.detail.contains(foryou::PLAN_QUESTION);
+ let question = n
+ .detail
+ .lines()
+ .find(|l| !l.trim().is_empty())
+ .unwrap_or("")
+ .trim()
+ .trim_start_matches(['-', '1', '.', ' '])
+ .to_string();
+ let label = if is_plan {
+ "Plan to approve"
+ } else if n.action.starts_with("Answer") {
+ "Question"
+ } else {
+ "Waiting on you"
+ };
+ let ticket = key_of(&n.what);
+ let title = match &ticket {
+ Some(k) => n.what.trim_start_matches(k.as_str()).trim().to_string(),
+ None => n.what.clone(),
+ };
+ let where_ = [ticket.clone().unwrap_or_default(), n.loc.clone()]
+ .into_iter()
+ .filter(|x| !x.is_empty())
+ .collect::>()
+ .join(" \u{b7} ");
+ let kind = if is_plan {
+ "plan"
+ } else if label == "Question" {
+ "question"
+ } else {
+ "wait"
+ };
+ let why = if question.is_empty() {
+ n.action.clone()
+ } else if is_plan {
+ "CoderHelm wrote the plan and waits for your OK before coding.".to_string()
+ } else {
+ format!("CoderHelm asks: {question}")
+ };
+ let action = match kind {
+ "plan" => "Review plan",
+ "question" => "Answer",
+ _ => "Open",
+ };
+ let href = if run_id.is_empty() {
+ n.link.clone()
+ } else {
+ format!("/inbox/answer?run={}", urlencoding::encode(&run_id))
+ };
+ let item = json!({
+ "key": format!("run:{run_id}"),
+ "group": "asks",
+ "kind": kind,
+ "label": label,
+ "where": where_,
+ "title": title,
+ "why": why,
+ "since": n.since,
+ "who": Value::Null,
+ "by_coderhelm": true,
+ "action": {"label": action, "href": href},
+ "href": n.link,
+ "run_id": run_id,
+ "ticket": ticket,
+ });
+ place("asks", item, &n.since.clone(), &mut later);
+ }
+ "record" => {
+ let why = if n.detail.is_empty() {
+ n.action.clone()
+ } else {
+ format!("CoderHelm asks to {}", n.detail.trim_end_matches('.'))
+ };
+ let item = json!({
+ "key": format!("approval:{}:{}", n.what, n.since),
+ "group": "asks",
+ "kind": "approval",
+ "label": "Approval",
+ "where": n.loc,
+ "title": n.what,
+ "why": why,
+ "since": n.since,
+ "who": Value::Null,
+ "by_coderhelm": true,
+ "action": {"label": "Review and approve", "href": n.link},
+ "href": n.link,
+ });
+ place("asks", item, &n.since.clone(), &mut later);
+ }
+ "ticket" => {
+ let key = key_of(&n.what).unwrap_or_default();
+ if sprint_keys.contains(&key) && !n.action.starts_with("Reply") {
+ continue;
+ }
+ let fyi = n.action.starts_with("Reply");
+ later.push(json!({
+ "key": format!("jira:{key}"),
+ "later": if fyi { "fyi" } else { "not_in_sprint" },
+ "title": n.what.trim_start_matches(key.as_str()).trim(),
+ "where": key,
+ "why": n.action,
+ "since": n.since,
+ "href": n.link,
+ }));
+ }
+ _ => {}
+ }
+ }
+
+ // CoderHelm working for you.
+ let me_needs = needs::Me {
+ user: v.user.clone(),
+ email: v.email.clone(),
+ github: v.github.clone(),
+ jira_id: v.jira.clone(),
+ is_admin: false,
+ };
+ let mine: Vec = sprint_keys.iter().cloned().collect();
+ let mut working: Vec = Vec::new();
+ let mut runs_by_ticket: BTreeMap = BTreeMap::new();
+ for r in &reads.runs {
+ let tk = st(r, "ticket_id");
+ if !tk.is_empty() {
+ let newer = runs_by_ticket
+ .get(tk)
+ .is_none_or(|o| st(o, "created_at") < st(r, "created_at"));
+ if newer {
+ runs_by_ticket.insert(tk.to_string(), r);
+ }
+ }
+ let status = st(r, "status");
+ let active = common::pr_view::RUN_ACTIVE.contains(&status)
+ || status == common::run_status::NEEDS_INPUT;
+ let given_to_me = reads.given.get(tk).is_some_and(|g| g.owner == v.user);
+ if !active || !(needs::run_is_mine(r, &me_needs, &mine) || given_to_me) {
+ continue;
+ }
+ let (stage, stage_label) = stage_of(r);
+ let id = st(r, "run_id");
+ let pr = st(r, "pr_url");
+ working.push(json!({
+ "run_id": id,
+ "ticket": (!tk.is_empty()).then(|| tk.to_string()),
+ "repo": st(r, "repo"),
+ "title": st(r, "title"),
+ "started_at": st(r, "created_at"),
+ "stage": stage,
+ "stage_label": stage_label,
+ "note": format!("CoderHelm is {}.", common::pr_view::what_of(st(r, "current_pass"))),
+ "waiting_on_you": stage == "waiting",
+ "plan_first": reads.given.get(tk).is_some_and(|g| g.plan_first),
+ "owner": "you",
+ "delegate": "CoderHelm",
+ "pr": (!pr.is_empty()).then(|| json!({"url": pr, "number": st(r, "pr_number")})),
+ "href": format!("/runs/detail?id={}", urlencoding::encode(id)),
+ }));
+ }
+
+ // The sprint, with a fit per ticket.
+ let tests = test_checks(input.records);
+ let mut sprint_tickets: Vec = Vec::new();
+ let mut facts: Vec<(SprintTicket, foryou::Fit, TicketFacts)> = Vec::new();
+ for t in &tickets {
+ let (repos, source) = repo_hints(t, input.team_repos, &reads.runs);
+ let run = runs_by_ticket.get(&t.key);
+ let given = reads.given.get(&t.key);
+ let delegated = run.map(|r| {
+ let (stage, label) = stage_of(r);
+ let status = st(r, "status");
+ let done = !common::pr_view::RUN_ACTIVE.contains(&status)
+ && status != common::run_status::NEEDS_INPUT;
+ json!({
+ "run_id": st(r, "run_id"),
+ "status": status,
+ "stage": if done { "done" } else { stage },
+ "label": if done { status.replace('_', " ") } else { label },
+ "waiting_on_you": stage == "waiting",
+ "plan_first": given.is_some_and(|g| g.plan_first),
+ })
+ });
+ // Given here, and no run yet: starting, or not started after a while.
+ let starting = given
+ .filter(|g| run.is_none_or(|r| parse_time(st(r, "created_at")) < g.given_at))
+ .map(|g| {
+ let late = now - g.given_at > 180;
+ json!({
+ "run_id": Value::Null,
+ "status": if late { "not_started" } else { "starting" },
+ "stage": if late { "not_started" } else { "starting" },
+ "label": if late { "Not started yet" } else { "Starting" },
+ "waiting_on_you": false,
+ "plan_first": g.plan_first,
+ })
+ });
+ let active_run = run.is_some_and(|r| {
+ let s = st(r, "status");
+ common::pr_view::RUN_ACTIVE.contains(&s) || s == common::run_status::NEEDS_INPUT
+ });
+ let delegated = if starting.is_some() && !active_run {
+ starting
+ } else if active_run {
+ delegated
+ } else {
+ None
+ };
+ let tf = TicketFacts {
+ key: t.key.clone(),
+ title: t.title.clone(),
+ description: t.description.clone(),
+ issue_type: t.issue_type.clone(),
+ labels: t.labels.clone(),
+ components: t.components.clone(),
+ priority: t.priority.clone(),
+ points: t.points,
+ repos: repos.clone(),
+ repo_source: source.into(),
+ tests: (repos.len() == 1 && tests.contains_key(&repos[0])).then_some(true),
+ };
+ let fit = (t.category == "new" && delegated.is_none()).then(|| foryou::fit(&tf));
+ let pr_note = input
+ .rows
+ .iter()
+ .find(|r| r.title.contains(&t.key) || r.head.to_ascii_uppercase().contains(&t.key))
+ .map(|r| match first_person(&r.next.from) {
+ Some(p) if r.turn != "you" => format!("{}#{} waits on @{p}", r.repo, r.number),
+ _ => format!("{}#{} {}", r.repo, r.number, r.state_label.to_lowercase()),
+ });
+ let note =
+ pr_note.or_else(|| (t.category == "indeterminate").then(|| "In progress".to_string()));
+ sprint_tickets.push(json!({
+ "key": t.key,
+ "title": t.title,
+ "url": if reads.site.is_empty() { Value::Null } else { json!(format!("{}/browse/{}", reads.site.trim_end_matches('/'), t.key)) },
+ "status": t.status,
+ "status_category": t.category,
+ "points": t.points,
+ "type": t.issue_type,
+ "repos": repos,
+ "repo_source": source,
+ "fit": fit,
+ "delegated": delegated,
+ "note": note,
+ }));
+ if let Some(f) = fit {
+ facts.push((t.clone(), f, tf));
+ }
+ }
+ let sprint_meta = {
+ let mut names: BTreeMap<&str, usize> = BTreeMap::new();
+ for t in &tickets {
+ if !t.sprint_name.is_empty() {
+ *names.entry(t.sprint_name.as_str()).or_default() += 1;
+ }
+ }
+ let name = names
+ .iter()
+ .max_by_key(|(_, n)| **n)
+ .map(|(k, _)| k.to_string());
+ let end = tickets
+ .iter()
+ .find(|t| Some(&t.sprint_name) == name.as_ref())
+ .map(|t| t.sprint_end.clone())
+ .filter(|e| !e.is_empty());
+ let points: f64 = tickets.iter().filter_map(|t| t.points).sum();
+ let project = tickets
+ .first()
+ .and_then(|t| t.key.split('-').next())
+ .map(str::to_string);
+ let end_at = end.as_deref().map(parse_time).unwrap_or(0);
+ json!({
+ "name": name,
+ "project": project,
+ "end_date": end,
+ "days_left": (end_at > 0).then(|| ((end_at - now) as f64 / 86_400.0).ceil().max(0.0) as i64),
+ "points": points,
+ })
+ };
+ let sprint_end_at = sprint_meta["end_date"]
+ .as_str()
+ .map(parse_time)
+ .unwrap_or(0);
+ let sprint_out = match &reads.sprint {
+ Sprint::Ok(_) => {
+ json!({"state": "ok", "detail": "", "meta": sprint_meta, "tickets": sprint_tickets})
+ }
+ Sprint::NotLinked => {
+ json!({"state": "not_linked", "detail": needs::NOT_LINKED, "meta": Value::Null, "tickets": []})
+ }
+ Sprint::NotConnected(w) => {
+ json!({"state": "not_connected", "detail": w, "meta": Value::Null, "tickets": []})
+ }
+ Sprint::Old => {
+ json!({"state": "app_old", "detail": "Your Jira site runs an older CoderHelm app that can't read a sprint. An admin updates it in Atlassian Administration.", "meta": Value::Null, "tickets": []})
+ }
+ Sprint::Failed(e) => {
+ json!({"state": "failed", "detail": e, "meta": Value::Null, "tickets": []})
+ }
+ };
+
+ // Suggestions.
+ let as_of = iso(reads.read_at.max(1)).unwrap_or_default();
+ let weekday = |t: i64| {
+ chrono::DateTime::from_timestamp(t, 0)
+ .map(|d| d.format("%A").to_string())
+ .unwrap_or_default()
+ };
+ let mut computed: Vec = Vec::new();
+ let mut gone: BTreeMap = BTreeMap::new();
+ let durations: BTreeMap = {
+ let mut by: BTreeMap> = BTreeMap::new();
+ for r in &reads.runs {
+ if [common::run_status::COMPLETED, common::run_status::SUCCESS]
+ .contains(&st(r, "status"))
+ {
+ if let Some(d) = r
+ .get("duration_s")
+ .and_then(|v| v.as_n().ok())
+ .and_then(|n| n.parse::().ok())
+ {
+ by.entry(st(r, "repo").to_string())
+ .or_default()
+ .push(d as i64);
+ }
+ }
+ }
+ by.into_iter()
+ .filter(|(_, v)| v.len() >= 3)
+ .filter_map(|(k, v)| common::pr_history::percentile(&v, 50).map(|m| (k, m)))
+ .collect()
+ };
+ for (t, fit, tf) in &facts {
+ if fit.band != Band::Good {
+ continue;
+ }
+ let repo = tf.repos.first().cloned().unwrap_or_default();
+ let mut evidence: Vec = fit
+ .why
+ .iter()
+ .map(|w| Evidence {
+ text: w.clone(),
+ href: None,
+ })
+ .collect();
+ if let Some(c) = tests.get(&repo) {
+ evidence.push(Evidence {
+ text: format!("{repo} runs the check {c} on its pull requests"),
+ href: None,
+ });
+ }
+ if !t.sprint_name.is_empty() {
+ evidence.push(Evidence {
+ text: format!(
+ "In your open sprint ({}), assigned to you, not started",
+ t.sprint_name
+ ),
+ href: None,
+ });
+ }
+ let reason = {
+ let mut bits: Vec = Vec::new();
+ if fit.why.iter().any(|w| w.starts_with("Acceptance")) {
+ bits.push("Acceptance criteria".into());
+ }
+ if fit.why.iter().any(|w| w.starts_with("Names the files")) {
+ bits.push("the files are named".into());
+ } else if fit.why.iter().any(|w| w.starts_with("Names the area")) {
+ bits.push("the area is named".into());
+ }
+ let mut r = bits.join(" and ");
+ if let Some(p) = t.points {
+ r.push_str(&format!(
+ "; {} {}",
+ p,
+ if p == 1.0 { "point" } else { "points" }
+ ));
+ }
+ r
+ };
+ let effort = match durations.get(&repo) {
+ Some(secs) => format!(
+ "~{} min for CoderHelm, then one PR for you to review",
+ (secs / 60).max(1)
+ ),
+ None => "One PR for you to review".into(),
+ };
+ computed.push(Suggestion {
+ key: format!("give:{}", t.key),
+ kind: "give".into(),
+ target: Some(format!("ticket:{}", t.key)),
+ text: format!("Give {} to CoderHelm", t.key),
+ action: "Give to CoderHelm".into(),
+ href: None,
+ reason,
+ evidence,
+ effect: "Opens a preview first. Nothing starts until you confirm. CoderHelm opens one draft pull request, and the ticket stays yours.".into(),
+ effort,
+ deadline: (sprint_end_at > now).then(|| format!("Sprint ends {}", weekday(sprint_end_at))),
+ as_of: as_of.clone(),
+ kind_words: fit.kind.clone(),
+ dismiss_reasons: foryou::dismiss_reasons(&fit.kind),
+ back_because: None,
+ basis: foryou::basis_of(&[
+ &t.key,
+ &t.title,
+ &t.description,
+ &t.points.map(|p| p.to_string()).unwrap_or_default(),
+ &t.category,
+ &tf.repos.join(","),
+ ]),
+ basis_words: format!("{} changed (its text, estimate, status or repository)", t.key),
+ });
+ }
+ // Review suggestions: pull requests nobody was asked to review, in files
+ // you changed in your own merged pull requests.
+ let my_merged: Vec<&History> = reads
+ .history
+ .iter()
+ .filter(|h| h.merged && !login.is_empty() && h.author.eq_ignore_ascii_case(&login))
+ .collect();
+ let mut by_rec: BTreeMap = BTreeMap::new();
+ for r in input.records {
+ by_rec.insert(format!("{}#{}", r.repo, r.number), r);
+ }
+ for row in input.rows {
+ let k = format!("{}#{}", row.repo, row.number);
+ let open_for_review = row.stage.as_deref() == Some("first_review")
+ && !row.draft
+ && row.reviews.requested.is_empty()
+ && row.reviews.approvals == 0
+ && row.reviews.changes_requested_by.is_empty()
+ && !row.author.login.eq_ignore_ascii_case(&login)
+ && row.turn != "you";
+ let Some(rec) = by_rec.get(&k) else { continue };
+ if !open_for_review || !rec.requested_teams.is_empty() || my_merged.is_empty() {
+ if prefs.shown.contains_key(&format!("review:{k}")) {
+ let who = row.reviews.requested.first().cloned().or_else(|| {
+ rec.review_log
+ .iter()
+ .rev()
+ .find(|r| r.human)
+ .map(|r| r.who.clone())
+ });
+ gone.insert(
+ format!("review:{k}"),
+ match who {
+ Some(w) => {
+ format!("Someone else picked it up: @{w} took the review of {k}")
+ }
+ None => format!("It no longer needs a reviewer: {k} moved on"),
+ },
+ );
+ }
+ continue;
+ }
+ let mut best: Option<(&str, usize)> = None;
+ for f in &rec.files {
+ let n = my_merged
+ .iter()
+ .filter(|h| h.files.iter().any(|x| x == f))
+ .count();
+ if n >= 2 && best.is_none_or(|(_, b)| n > b) {
+ best = Some((f.as_str(), n));
+ }
+ }
+ let Some((file, n)) = best else { continue };
+ let lines = row
+ .size
+ .as_ref()
+ .map(|s| s.additions + s.deletions)
+ .unwrap_or(0);
+ let minutes = (lines / 10).clamp(5, 60);
+ let opened = row
+ .ready_at
+ .clone()
+ .or(row.created_at.clone())
+ .unwrap_or_default();
+ let key = format!("review:{k}");
+ computed.push(Suggestion {
+ key: key.clone(),
+ kind: "review".into(),
+ target: Some(format!("pr:{k}")),
+ text: if sprint_end_at > now {
+ format!("Review {k} before {}", weekday(sprint_end_at))
+ } else {
+ format!("Review {k}")
+ },
+ action: "Add to my reviews".into(),
+ href: Some(row.url.clone()),
+ reason: format!(
+ "You changed {file} in {n} of your {} merged pull requests here; no reviewer yet",
+ my_merged.len()
+ ),
+ evidence: vec![
+ Evidence {
+ text: format!("{k} changes {file}"),
+ href: Some(row.url.clone()),
+ },
+ Evidence {
+ text: format!(
+ "You changed {file} in {n} of your {} merged pull requests in the last {HISTORY_DAYS} days",
+ my_merged.len()
+ ),
+ href: None,
+ },
+ Evidence {
+ text: format!("Opened by @{}; nobody has been asked to review it", row.author.login),
+ href: None,
+ },
+ ],
+ effect: "Adds you as a reviewer on GitHub. No comment is posted.".into(),
+ effort: if lines > 0 {
+ format!("{lines} lines, about {minutes} min")
+ } else {
+ "A first review".into()
+ },
+ deadline: (sprint_end_at > now).then(|| format!("Before {} (sprint end)", weekday(sprint_end_at))),
+ as_of: as_of.clone(),
+ kind_words: "review suggestions".into(),
+ dismiss_reasons: foryou::dismiss_reasons("review suggestions"),
+ back_because: None,
+ basis: foryou::basis_of(&[&k, file, &row.state, &opened]),
+ basis_words: format!("{k} changed"),
+ });
+ }
+ // Give suggestions shown before and gone now: say why.
+ for (k, _) in prefs.shown.iter().filter(|(k, _)| k.starts_with("give:")) {
+ let key = k.trim_start_matches("give:");
+ let reason = match tickets.iter().find(|t| t.key == key) {
+ None => format!("{key} left your sprint"),
+ Some(t) if t.category != "new" => format!("{key} was started"),
+ Some(_) if runs_by_ticket.contains_key(key) || reads.given.contains_key(key) => {
+ format!("{key} is already with CoderHelm")
+ }
+ Some(_) => format!("{key} is no longer a good fit"),
+ };
+ gone.insert(k.clone(), reason);
+ }
+ let (visible, withdrawn) = foryou::reconcile(computed, prefs, &gone, now);
+
+ // A suggested review sits in the reviews group as its own row.
+ for s in visible.iter().filter(|s| s.kind == "review") {
+ let k = s.target.as_deref().unwrap_or("").trim_start_matches("pr:");
+ if let Some(row) = input
+ .rows
+ .iter()
+ .find(|r| format!("{}#{}", r.repo, r.number) == k)
+ {
+ needs_out.entry("suggested").or_default().push(json!({
+ "key": format!("pr:{k}"),
+ "group": "reviews",
+ "kind": "not_requested",
+ "label": "Not requested of you",
+ "where": k,
+ "title": row.title,
+ "why": format!("Opened by @{} \u{b7} no reviewer yet", row.author.login),
+ "since": row.ready_at.clone().or(row.created_at.clone()),
+ "who": row.author.login,
+ "by_coderhelm": row.author.coderhelm,
+ "action": Value::Null,
+ "href": row.url,
+ "suggested": true,
+ "pr": {"repo": row.repo, "number": row.number},
+ }));
+ }
+ }
+
+ let summary = {
+ let gives: Vec<&Suggestion> = visible.iter().filter(|s| s.kind == "give").collect();
+ let reviews: Vec<&Suggestion> = visible.iter().filter(|s| s.kind == "review").collect();
+ let mut kinds = Vec::new();
+ if !gives.is_empty() {
+ kinds.push(json!({"kind": "give", "count": gives.len(), "text": format!("{} {} CoderHelm can take", gives.len(), if gives.len() == 1 { "ticket" } else { "tickets" })}));
+ }
+ if !reviews.is_empty() {
+ let when = if sprint_end_at > now {
+ format!(" before {}", weekday(sprint_end_at))
+ } else {
+ String::new()
+ };
+ kinds.push(json!({"kind": "review", "count": reviews.len(), "text": format!("{} {}{when}", reviews.len(), if reviews.len() == 1 { "review" } else { "reviews" })}));
+ }
+ json!({
+ "count": visible.len(),
+ "kinds": kinds,
+ "top": visible.iter().take(foryou::MAX_SUMMARY).map(|s| json!({"key": s.key, "text": s.text, "reason": s.reason})).collect::>(),
+ "batch": (gives.len() > 1).then(|| json!({"kind": "give", "keys": gives.iter().map(|s| s.key.trim_start_matches("give:").to_string()).collect::>(), "text": format!("Give {} to CoderHelm", if gives.len() == 2 { "both".to_string() } else { gives.len().to_string() })})),
+ })
+ };
+
+ // Order within groups: oldest wait first.
+ let by_since = |a: &Value, b: &Value| {
+ a["since"]
+ .as_str()
+ .unwrap_or("")
+ .cmp(b["since"].as_str().unwrap_or(""))
+ };
+ for list in needs_out.values_mut() {
+ list.sort_by(by_since);
+ }
+ waiting.sort_by(by_since);
+ let reviews_list = needs_out.remove("reviews").unwrap_or_default();
+ let returned = needs_out.remove("returned").unwrap_or_default();
+ let asks = needs_out.remove("asks").unwrap_or_default();
+ let suggested_rows = needs_out.remove("suggested").unwrap_or_default();
+ let need_count = reviews_list.len() + returned.len() + asks.len();
+ let oldest = reviews_list
+ .iter()
+ .chain(&returned)
+ .chain(&asks)
+ .min_by(|a, b| by_since(a, b))
+ .map(|i| json!({"where": i["where"], "since": i["since"]}));
+ let longest = waiting
+ .first()
+ .map(|i| json!({"where": i["where"], "since": i["since"]}));
+ let turnaround = {
+ let mut logs: Vec<(
+ Vec,
+ Vec,
+ )> = input
+ .records
+ .iter()
+ .map(|r| (r.request_log.clone(), r.review_log.clone()))
+ .collect();
+ let open: BTreeSet = input
+ .records
+ .iter()
+ .map(|r| format!("{}#{}", r.repo, r.number))
+ .collect();
+ for h in &reads.history {
+ if !open.contains(&format!("{}#{}", h.repo, h.number)) {
+ logs.push((h.request_log.clone(), h.review_log.clone()));
+ }
+ }
+ foryou::review_turnaround(&logs, &login, now)
+ };
+
+ // Accounts.
+ let suggestion = foryou::identity_suggestion(&reads.seen_users, &v.email, &prefs.identity_no).map(|u| {
+ json!({"account_id": u.account_id, "name": u.name, "why": "Seen in Jira with your sign-in email. Not linked: saying yes gives you a code to link it from Jira."})
+ });
+ let jira_state = match (&v.jira, &reads.sprint) {
+ (Some(_), _) => "linked",
+ (None, Sprint::NotConnected(_)) => "not_connected",
+ (None, _) => "not_linked",
+ };
+
+ json!({
+ "viewer": {"name": v.name, "github": v.github},
+ "header": {"needs": need_count, "working": working.len(), "waiting": waiting.len()},
+ "needs": {"reviews": reviews_list, "suggested_reviews": suggested_rows, "returned": returned, "asks": asks},
+ "sprint": sprint_out,
+ "working": working,
+ "waiting": waiting,
+ "later": later,
+ "stats": {
+ "waiting_on_you": {"count": need_count, "oldest": oldest},
+ "waiting_on_others": {"count": waiting.len(), "longest": longest},
+ "review_turnaround": turnaround.map(|(m, n)| json!({"median_secs": m, "reviews": n, "days": foryou::TURNAROUND_DAYS})),
+ },
+ "suggestions": visible,
+ "suggestion_summary": summary,
+ "withdrawn": withdrawn.iter().map(|w| json!({
+ "key": w.key,
+ "kind": w.key.split(':').next().unwrap_or(""),
+ "target": w.key.split_once(':').map(|(k, t)| if k == "review" { format!("pr:{t}") } else { format!("ticket:{t}") }),
+ "text": w.text,
+ "withdrawn_reason": w.withdrawn_reason,
+ })).collect::>(),
+ "accounts": {
+ "github": {"state": if v.github.is_some() { "linked" } else { "not_linked" }, "login": v.github},
+ "jira": {"state": jira_state, "name": if v.jira.is_some() && !v.jira_name.is_empty() { json!(v.jira_name) } else { Value::Null }, "suggestion": suggestion},
+ },
+ "prefs": {
+ "layout": input.layout,
+ "muted_kinds": prefs.muted_kinds,
+ },
+ "synced_at": iso(reads.read_at),
+ "sources": reads.sources,
+ })
+}
+
+// ── Handlers ────────────────────────────────────────────────────────────────
+
+async fn jira_name(state: &AppState, team: &str, account: &str) -> String {
+ state
+ .dynamo
+ .get_item()
+ .table_name(&state.config.settings_table_name)
+ .key("pk", AttributeValue::S(team.into()))
+ .key(
+ "sk",
+ AttributeValue::S(common::requester::jira_user_sk(account)),
+ )
+ .send()
+ .await
+ .ok()
+ .and_then(|o| o.item)
+ .map(|i| st(&i, "name").to_string())
+ .unwrap_or_default()
+}
+
+/// GET /api/foryou — the session user's own page. Takes no user: a person
+/// can only ever read their own.
+pub async fn get_for_you(
+ State(state): State>,
+ Extension(claims): Extension,
+) -> Result, StatusCode> {
+ let user = user_of(&claims);
+ let jira = super::foryou_link::linked_jira(&state, &claims.team_id, &user).await;
+ let (reads, prs, name, jira_name, repos) = tokio::join!(
+ reads(&state, &claims, jira.as_deref()),
+ super::prs::read_all(&state, &claims.team_id),
+ super::run_close::profile_name(&state, &claims),
+ async {
+ match &jira {
+ Some(a) => jira_name(&state, &claims.team_id, a).await,
+ None => String::new(),
+ }
+ },
+ super::brain::load_repos(&state, &claims.team_id),
+ );
+ let t = now();
+ let (rows, records, mut sources) = match prs {
+ Ok((data, _)) => {
+ let viewer = claims.github_login.as_deref();
+ (
+ common::pr_view::rows(&claims.team_id, &data.0, &data.1, viewer, t),
+ common::pr_view::records_of(&claims.team_id, &data.0),
+ vec![json!({"name": "Pull requests", "read": "ok", "detail": ""})],
+ )
+ }
+ Err(_) => (
+ Vec::new(),
+ Vec::new(),
+ vec![
+ json!({"name": "Pull requests", "read": "failed", "detail": "the pull request records couldn't be read"}),
+ ],
+ ),
+ };
+ if claims
+ .github_login
+ .as_deref()
+ .is_none_or(|l| l.trim().is_empty())
+ {
+ sources[0] = json!({"name": "Pull requests", "read": "off", "detail": "your CoderHelm sign-in isn't linked to a GitHub account"});
+ }
+ let viewer = Viewer {
+ user: claims.sub.clone(),
+ name: name.unwrap_or_default(),
+ email: claims.email.clone(),
+ github: claims.github_login.clone().filter(|g| !g.trim().is_empty()),
+ jira,
+ jira_name,
+ };
+ let team_repos: Vec = repos.iter().map(|r| r.name.clone()).collect();
+ for _ in 0..3 {
+ let (mut prefs, v) = read_prefs(&state, &claims.team_id, &user).await;
+ let before = prefs.clone();
+ let layout = prefs.layout.normalized();
+ let mut out = build(
+ &Input {
+ viewer: &viewer,
+ rows: &rows,
+ records: &records,
+ reads: &reads,
+ team_repos: &team_repos,
+ layout,
+ now: t,
+ },
+ &mut prefs,
+ );
+ if let Some(list) = out["sources"].as_array_mut() {
+ list.append(&mut sources);
+ }
+ if prefs == before {
+ return Ok(Json(out));
+ }
+ prefs.tidy(t);
+ if write_prefs(&state, &claims.team_id, &user, &prefs, v).await? {
+ return Ok(Json(out));
+ }
+ }
+ Err(StatusCode::CONFLICT)
+}
+
+#[derive(Deserialize)]
+pub struct PrefsBody {
+ pub layout: Option,
+ /// Kinds to show again.
+ #[serde(default)]
+ pub unmute: Vec,
+}
+
+/// PUT /api/foryou/prefs — the person's own layout, landing page and muted
+/// kinds.
+pub async fn put_prefs(
+ State(state): State>,
+ Extension(claims): Extension,
+ Json(body): Json,
+) -> Result, StatusCode> {
+ if let Some(l) = &body.layout {
+ l.validate().map_err(|_| StatusCode::BAD_REQUEST)?;
+ }
+ let (prefs, ()) = update_prefs(&state, &claims, |p| {
+ if let Some(l) = &body.layout {
+ p.layout = l.normalized();
+ }
+ for k in &body.unmute {
+ p.muted_kinds.remove(k);
+ }
+ Ok(())
+ })
+ .await?;
+ Ok(Json(
+ json!({"layout": prefs.layout.normalized(), "muted_kinds": prefs.muted_kinds}),
+ ))
+}
+
+#[derive(Deserialize)]
+pub struct MarkBody {
+ pub key: String,
+ /// `snooze`, `done` or `undo`.
+ pub action: String,
+ /// For a snooze: until when (RFC 3339); tomorrow 9:00 when left out.
+ pub until: Option,
+ /// For done: the time the item waits since, as the page showed it.
+ pub since: Option,
+}
+
+fn valid_key(k: &str) -> bool {
+ !k.is_empty() && k.len() <= 300 && !k.chars().any(char::is_control)
+}
+
+/// POST /api/foryou/items — snooze, done, or undo one of your own items.
+pub async fn mark_item(
+ State(state): State>,
+ Extension(claims): Extension,
+ Json(body): Json,
+) -> Result, StatusCode> {
+ if !valid_key(&body.key) {
+ return Err(StatusCode::BAD_REQUEST);
+ }
+ let t = now();
+ let (_, said) = update_prefs(&state, &claims, |p| match body.action.as_str() {
+ "snooze" => {
+ let until = body
+ .until
+ .as_deref()
+ .map(parse_time)
+ .filter(|u| *u > t)
+ .unwrap_or_else(|| foryou::tomorrow_nine(t));
+ p.set_mark(
+ &body.key,
+ Mark {
+ snoozed_until: until,
+ at: t,
+ ..Default::default()
+ },
+ );
+ Ok(json!({"snoozed_until": iso(until)}))
+ }
+ "done" => {
+ p.set_mark(
+ &body.key,
+ Mark {
+ done_since: body.since.clone().unwrap_or_default(),
+ at: t,
+ ..Default::default()
+ },
+ );
+ Ok(json!({"done": true}))
+ }
+ "undo" => {
+ if p.undo(&body.key) {
+ Ok(json!({"undone": true}))
+ } else {
+ Ok(json!({"undone": false}))
+ }
+ }
+ _ => Err("unknown action".to_string()),
+ })
+ .await?;
+ Ok(Json(said))
+}
+
+#[derive(Deserialize)]
+pub struct SuggestionBody {
+ pub key: String,
+ /// `dismiss`, `reason`, `snooze`, `undo` or `accept` (reviews; a
+ /// ticket is given through `/api/foryou/give`).
+ pub action: String,
+ #[serde(default)]
+ pub reason: String,
+ /// `later_today`, `tomorrow` or `after_sprint`.
+ #[serde(default)]
+ pub when: String,
+}
+
+/// When a snooze ends.
+pub fn snooze_until(when: &str, now: i64, sprint_end: i64) -> Option {
+ match when {
+ "later_today" => Some(now + 4 * 3600),
+ "" | "tomorrow" => Some(foryou::tomorrow_nine(now)),
+ "after_sprint" if sprint_end > now => Some(sprint_end + 3600),
+ "after_sprint" => Some(now + 7 * 86_400),
+ _ => None,
+ }
+}
+
+/// POST /api/foryou/suggestions — act on one of your suggestions.
+pub async fn suggestion_act(
+ State(state): State>,
+ Extension(claims): Extension,
+ Json(body): Json,
+) -> Result, (StatusCode, Json)> {
+ let bad = |c: StatusCode, m: &str| (c, Json(json!({"error": m})));
+ if !valid_key(&body.key) {
+ return Err(bad(StatusCode::BAD_REQUEST, "No such suggestion."));
+ }
+ let t = now();
+ let user = user_of(&claims);
+ let jira = super::foryou_link::linked_jira(&state, &claims.team_id, &user).await;
+ let (prefs, _) = read_prefs(&state, &claims.team_id, &user).await;
+ let shown = prefs.shown.get(&body.key).cloned();
+ let target = body.key.split_once(':').map(|(k, rest)| {
+ if k == "review" {
+ format!("pr:{rest}")
+ } else {
+ format!("ticket:{rest}")
+ }
+ });
+ let r = reads(&state, &claims, jira.as_deref()).await;
+ let sprint_end = match &r.sprint {
+ Sprint::Ok(list) => list
+ .iter()
+ .map(sprint_ticket)
+ .filter_map(|t| (!t.sprint_end.is_empty()).then(|| parse_time(&t.sprint_end)))
+ .max()
+ .unwrap_or(0),
+ _ => 0,
+ };
+ let kind_words = if body.key.starts_with("review:") {
+ "review suggestions".to_string()
+ } else {
+ // The fit kind of the ticket, as it was suggested.
+ match &r.sprint {
+ Sprint::Ok(list) => list
+ .iter()
+ .map(sprint_ticket)
+ .find(|t| format!("give:{}", t.key) == body.key)
+ .map(|t| {
+ foryou::kind_of(&TicketFacts {
+ title: t.title,
+ issue_type: t.issue_type,
+ labels: t.labels,
+ ..Default::default()
+ })
+ })
+ .unwrap_or_else(|| "tickets like this".into()),
+ _ => "tickets like this".into(),
+ }
+ };
+ if body.action == "accept" {
+ let Some(rest) = body.key.strip_prefix("review:") else {
+ return Err(bad(
+ StatusCode::BAD_REQUEST,
+ "A ticket is given through Give to CoderHelm.",
+ ));
+ };
+ return add_reviewer(&state, &claims, rest).await.map(Json);
+ }
+ let basis = shown.map(|s| s.basis).unwrap_or_default();
+ let (_, said) = update_prefs(&state, &claims, |p| match body.action.as_str() {
+ "dismiss" => foryou::dismiss(p, &body.key, &basis, target.as_deref(), &kind_words, "", t).map(|e| json!({"effect": e})),
+ "reason" => foryou::dismiss(p, &body.key, &basis, target.as_deref(), &kind_words, &body.reason, t).map(|e| json!({"effect": e})),
+ "snooze" => {
+ let until = snooze_until(&body.when, t, sprint_end).ok_or("unknown snooze")?;
+ let mut m = p.marks.get(&body.key).cloned().unwrap_or_default();
+ m.snoozed_until = until;
+ m.dismissed_basis.clear();
+ m.at = t;
+ p.set_mark(&body.key, m);
+ Ok(json!({"snoozed_until": iso(until), "effect": "Snoozed. It comes back only if it still applies."}))
+ }
+ "undo" => {
+ let undone = p.undo(&body.key);
+ // A reason's lasting change goes too.
+ if let Some(tg) = &target {
+ p.not_me.remove(tg);
+ }
+ if body.reason == "dont_suggest_kind" {
+ p.muted_kinds.remove(&kind_words);
+ }
+ Ok(json!({"undone": undone}))
+ }
+ _ => Err("unknown action".to_string()),
+ })
+ .await
+ .map_err(|c| bad(c, "That couldn't be saved."))?;
+ Ok(Json(said))
+}
+
+/// Adds the person as a reviewer of a pull request their review was
+/// suggested on.
+async fn add_reviewer(
+ state: &AppState,
+ claims: &Claims,
+ key: &str,
+) -> Result)> {
+ let bad = |c: StatusCode, m: &str| (c, Json(json!({"error": m})));
+ let Some(login) = claims.github_login.clone().filter(|l| !l.trim().is_empty()) else {
+ return Err(bad(StatusCode::CONFLICT, "Connect GitHub first."));
+ };
+ let Some((repo, number)) = key.rsplit_once('#') else {
+ return Err(bad(StatusCode::BAD_REQUEST, "No such pull request."));
+ };
+ super::reviewer::validate_repo(repo).map_err(|c| bad(c, "No such pull request."))?;
+ let number: u64 = number
+ .parse()
+ .map_err(|_| bad(StatusCode::BAD_REQUEST, "No such pull request."))?;
+ // Only a pull request of the team's, open now.
+ let (data, _) = super::prs::read_all(state, &claims.team_id)
+ .await
+ .map_err(|c| bad(c, "Pull requests couldn't be read."))?;
+ let recs = common::pr_view::records_of(&claims.team_id, &data.0);
+ if !recs
+ .iter()
+ .any(|r| r.repo.eq_ignore_ascii_case(repo) && r.number == number && r.is_open())
+ {
+ return Err(bad(
+ StatusCode::NOT_FOUND,
+ "That pull request isn't open in your team's repositories.",
+ ));
+ }
+ let Some(token) = super::brain::github_token(state, &claims.team_id).await else {
+ return Err(bad(
+ StatusCode::SERVICE_UNAVAILABLE,
+ "CoderHelm can't reach GitHub for this team right now.",
+ ));
+ };
+ let url = format!("https://api.github.com/repos/{repo}/pulls/{number}/requested_reviewers");
+ let r = state
+ .http
+ .post(&url)
+ .bearer_auth(token)
+ .header("Accept", "application/vnd.github+json")
+ .header("User-Agent", "coderhelm")
+ .json(&json!({"reviewers": [login]}))
+ .send()
+ .await
+ .map_err(|_| bad(StatusCode::BAD_GATEWAY, "GitHub couldn't be reached."))?;
+ if !r.status().is_success() {
+ return Err(bad(
+ StatusCode::BAD_GATEWAY,
+ &format!(
+ "GitHub didn't add you as a reviewer ({}).",
+ r.status().as_u16()
+ ),
+ ));
+ }
+ Ok(json!({"added": true, "effect": "You are reviewing it."}))
+}
+
+#[cfg(test)]
+mod tests;
diff --git a/services/gateway/src/routes/foryou/tests.rs b/services/gateway/src/routes/foryou/tests.rs
new file mode 100644
index 000000000..13b31e0d0
--- /dev/null
+++ b/services/gateway/src/routes/foryou/tests.rs
@@ -0,0 +1,627 @@
+//! For you: the page, built from fake reads (invented data: acme, BOOK).
+
+use super::*;
+use common::pr_record::{PrRecord, RequestEvent, ReviewEvent};
+use common::pr_view::{Author, NextOut, Row, SizeOut};
+
+pub const NOW: i64 = 1_800_000_000;
+const DAY: i64 = 86_400;
+
+pub fn row(repo: &str, number: u64, author: &str, state: &str, turn: &str, from: &[&str]) -> Row {
+ Row {
+ key: format!("{repo}#{number}"),
+ org: "acme".into(),
+ repo: repo.into(),
+ number,
+ title: format!("Change {number}"),
+ url: format!("https://github.com/{repo}/pull/{number}"),
+ author: Author {
+ login: author.into(),
+ coderhelm: author.ends_with("[bot]"),
+ },
+ for_person: None,
+ draft: false,
+ base: "main".into(),
+ head: format!("branch-{number}"),
+ created_at: iso(NOW - DAY),
+ updated_at: iso(NOW - 3600),
+ state: state.into(),
+ state_label: state.replace('_', " "),
+ stage: Some("in_review".into()),
+ ready_at: iso(NOW - DAY),
+ turn: turn.into(),
+ next: NextOut {
+ code: state.into(),
+ text: format!("{state} sentence"),
+ from: from.iter().map(|s| s.to_string()).collect(),
+ since: iso(NOW - 2 * 3600),
+ rule: None,
+ },
+ modifiers: vec![],
+ people: vec![],
+ checks: Default::default(),
+ reviews: Default::default(),
+ conflict: None,
+ open_threads: 0,
+ labels: vec![],
+ size: Some(SizeOut {
+ additions: 70,
+ deletions: 14,
+ }),
+ last_action: None,
+ coderhelm: None,
+ links: vec![],
+ waiting_since: iso(NOW - 2 * 3600),
+ rank: (0, 0, 0),
+ involves: vec![],
+ stale: false,
+ }
+}
+
+pub fn reads() -> Reads {
+ Reads {
+ report: needs::Report::default(),
+ runs: Vec::new(),
+ sprint: Sprint::Ok(Vec::new()),
+ history: Vec::new(),
+ given: BTreeMap::new(),
+ seen_users: Vec::new(),
+ sources: Vec::new(),
+ site: "https://acme.atlassian.net".into(),
+ read_at: NOW,
+ }
+}
+
+pub fn dana() -> Viewer {
+ Viewer {
+ user: "USER#dana".into(),
+ name: "Dana Ortiz".into(),
+ email: "dana@example.com".into(),
+ github: Some("dana-ortiz".into()),
+ jira: Some("557058:dana0001".into()),
+ jira_name: "Dana Ortiz".into(),
+ }
+}
+
+pub fn page(v: &Viewer, rows: &[Row], records: &[PrRecord], r: &Reads, prefs: &mut Prefs) -> Value {
+ build(
+ &Input {
+ viewer: v,
+ rows,
+ records,
+ reads: r,
+ team_repos: &[
+ "acme/web".to_string(),
+ "acme/api".to_string(),
+ "acme/billing".to_string(),
+ ],
+ layout: prefs.layout.normalized(),
+ now: NOW,
+ },
+ prefs,
+ )
+}
+
+fn ticket(
+ key: &str,
+ title: &str,
+ desc: &str,
+ points: f64,
+ category: &str,
+ labels: &[&str],
+) -> Value {
+ json!({
+ "key": key, "summary": title, "status": if category == "new" { "To Do" } else { "In Progress" },
+ "status_category": category, "type": "Story", "priority": "Medium",
+ "labels": labels, "components": [], "points": points, "description": desc,
+ "sprint": {"name": "Sprint 24", "end_date": iso(NOW + 3 * DAY)},
+ })
+}
+
+const GOOD: &str =
+ "Acceptance criteria\n- [ ] The list says it is empty\nChange web/src/carts/SavedCartsList.tsx";
+
+fn keys(v: &Value) -> Vec {
+ v.as_array()
+ .into_iter()
+ .flatten()
+ .filter_map(|i| i["key"].as_str().map(str::to_string))
+ .collect()
+}
+
+#[test]
+fn needs_are_grouped_by_whose_turn_it_is_and_counted() {
+ let rows = vec![
+ row(
+ "acme/web",
+ 482,
+ "theo",
+ "needs_review",
+ "you",
+ &["person:dana-ortiz"],
+ ),
+ row(
+ "acme/api",
+ 479,
+ "dana-ortiz",
+ "checks_failing",
+ "you",
+ &["person:dana-ortiz"],
+ ),
+ row(
+ "acme/api",
+ 477,
+ "dana-ortiz",
+ "needs_review",
+ "person",
+ &["person:mara"],
+ ),
+ row(
+ "acme/web",
+ 1,
+ "theo",
+ "needs_review",
+ "person",
+ &["person:mara"],
+ ),
+ ];
+ let mut p = Prefs::default();
+ let out = page(&dana(), &rows, &[], &reads(), &mut p);
+ assert_eq!(keys(&out["needs"]["reviews"]), vec!["pr:acme/web#482"]);
+ assert_eq!(out["needs"]["reviews"][0]["label"], "Review requested");
+ assert_eq!(out["needs"]["reviews"][0]["who"], "theo");
+ assert!(out["needs"]["reviews"][0]["action"]["href"]
+ .as_str()
+ .unwrap()
+ .starts_with("/inbox/pr?repo=acme%2Fweb&number=482"));
+ assert_eq!(keys(&out["needs"]["returned"]), vec!["pr:acme/api#479"]);
+ assert_eq!(
+ out["needs"]["returned"][0]["action"]["label"],
+ "Open checks"
+ );
+ assert_eq!(keys(&out["waiting"]), vec!["pr:acme/api#477"]);
+ assert_eq!(out["waiting"][0]["next"]["who"], "mara");
+ assert_eq!(out["header"]["needs"], 2);
+ assert_eq!(out["stats"]["waiting_on_you"]["count"], 2);
+ assert_eq!(out["stats"]["waiting_on_others"]["count"], 1);
+ assert!(
+ !out.to_string().contains("acme/web#1\""),
+ "someone else's pull request that isn't your turn stays off your page"
+ );
+ // Only the three numbers: no streaks, counts of lines or rankings.
+ let stats = out["stats"].as_object().unwrap();
+ assert_eq!(
+ stats.keys().cloned().collect::>(),
+ vec!["review_turnaround", "waiting_on_others", "waiting_on_you"]
+ );
+}
+
+#[test]
+fn snoozed_items_go_to_later_and_done_ones_stay_gone_until_they_come_back() {
+ let rows = vec![
+ row(
+ "acme/web",
+ 482,
+ "theo",
+ "needs_review",
+ "you",
+ &["person:dana-ortiz"],
+ ),
+ row(
+ "acme/billing",
+ 215,
+ "jun",
+ "needs_review",
+ "you",
+ &["person:dana-ortiz"],
+ ),
+ ];
+ let mut p = Prefs::default();
+ p.set_mark(
+ "pr:acme/web#482",
+ Mark {
+ snoozed_until: NOW + 3600,
+ at: NOW,
+ ..Default::default()
+ },
+ );
+ let since = iso(NOW - 2 * 3600).unwrap();
+ p.set_mark(
+ "pr:acme/billing#215",
+ Mark {
+ done_since: since,
+ at: NOW,
+ ..Default::default()
+ },
+ );
+ let out = page(&dana(), &rows, &[], &reads(), &mut p);
+ assert!(keys(&out["needs"]["reviews"]).is_empty());
+ assert_eq!(keys(&out["later"]), vec!["pr:acme/web#482"]);
+ assert_eq!(out["later"][0]["later"], "snoozed");
+ // A new wait on the done one brings it back.
+ let mut moved = rows.clone();
+ moved[1].waiting_since = iso(NOW - 60);
+ let out = page(&dana(), &moved, &[], &reads(), &mut p);
+ assert_eq!(keys(&out["needs"]["reviews"]), vec!["pr:acme/billing#215"]);
+}
+
+#[test]
+fn coderhelm_asks_come_from_gather_with_their_question() {
+ let mut r = reads();
+ r.report.needs = vec![
+ needs::Need {
+ urgency: needs::Urgency::Now,
+ rank: 60,
+ kind: "run",
+ what: "BOOK-101 Store stock counts as whole numbers".into(),
+ action: "Answer the run's question".into(),
+ link: "/runs/detail?id=01RUN".into(),
+ since: iso(NOW - 1500).unwrap(),
+ detail: "Should counts stored as 2.5 round down to 2 or up to 3?".into(),
+ loc: "acme/api".into(),
+ },
+ needs::Need {
+ urgency: needs::Urgency::Now,
+ rank: 60,
+ kind: "run",
+ what: "BOOK-112 Add an empty state".into(),
+ action: "Answer the run's question".into(),
+ link: "/runs/detail?id=02RUN".into(),
+ since: iso(NOW - 600).unwrap(),
+ detail: format!("{}\n - {}", foryou::PLAN_QUESTION, foryou::PLAN_APPROVE),
+ loc: "acme/web".into(),
+ },
+ ];
+ let mut p = Prefs::default();
+ let out = page(&dana(), &[], &[], &r, &mut p);
+ let asks = &out["needs"]["asks"];
+ assert_eq!(asks[0]["label"], "Question");
+ assert_eq!(asks[0]["where"], "BOOK-101 \u{b7} acme/api");
+ assert_eq!(asks[0]["title"], "Store stock counts as whole numbers");
+ assert_eq!(
+ asks[0]["why"],
+ "CoderHelm asks: Should counts stored as 2.5 round down to 2 or up to 3?"
+ );
+ assert_eq!(asks[0]["action"]["href"], "/inbox/answer?run=01RUN");
+ assert_eq!(asks[1]["label"], "Plan to approve");
+ assert_eq!(asks[1]["action"]["label"], "Review plan");
+}
+
+#[test]
+fn the_sprint_carries_fit_bands_and_a_good_fit_gets_one_inline_suggestion() {
+ let mut r = reads();
+ r.sprint = Sprint::Ok(vec![
+ ticket(
+ "BOOK-112",
+ "Add an empty state to the saved carts list",
+ GOOD,
+ 2.0,
+ "new",
+ &["coderhelm:acme/web"],
+ ),
+ ticket(
+ "BOOK-118",
+ "Fix the broken help link in the refund email",
+ GOOD,
+ 1.0,
+ "new",
+ &["coderhelm:acme/web"],
+ ),
+ ticket(
+ "BOOK-115",
+ "Retry failed webhook deliveries with backoff",
+ "Retry them in acme/api and acme/billing.",
+ 3.0,
+ "new",
+ &[],
+ ),
+ ticket(
+ "BOOK-121",
+ "Rotate the payment provider signing keys",
+ GOOD,
+ 5.0,
+ "new",
+ &["coderhelm:acme/billing"],
+ ),
+ ticket(
+ "BOOK-109",
+ "Split invoice PDFs by billing period",
+ "",
+ 5.0,
+ "indeterminate",
+ &[],
+ ),
+ ]);
+ let mut p = Prefs::default();
+ let out = page(&dana(), &[], &[], &r, &mut p);
+ let t = &out["sprint"]["tickets"];
+ assert_eq!(out["sprint"]["state"], "ok");
+ assert_eq!(out["sprint"]["meta"]["name"], "Sprint 24");
+ assert_eq!(out["sprint"]["meta"]["points"], 16.0);
+ assert_eq!(out["sprint"]["meta"]["days_left"], 3);
+ assert_eq!(t[0]["fit"]["band"], "good");
+ assert_eq!(t[2]["fit"]["band"], "maybe");
+ assert_eq!(t[2]["repos"], json!(["acme/api", "acme/billing"]));
+ assert_eq!(t[3]["fit"]["band"], "not");
+ assert_eq!(t[3]["fit"]["excluded"], "security");
+ assert!(t[4]["fit"].is_null(), "only tickets not started get a band");
+ assert_eq!(t[0]["url"], "https://acme.atlassian.net/browse/BOOK-112");
+ // One suggestion per good-fit row, with the reason on the line.
+ let s = &out["suggestions"];
+ assert_eq!(keys(s), vec!["give:BOOK-112", "give:BOOK-118"]);
+ assert_eq!(s[0]["target"], "ticket:BOOK-112");
+ assert_eq!(
+ s[0]["reason"],
+ "Acceptance criteria and the files are named; 2 points"
+ );
+ for f in [
+ "reason",
+ "evidence",
+ "effect",
+ "effort",
+ "deadline",
+ "as_of",
+ "dismiss_reasons",
+ ] {
+ assert!(!s[0][f].is_null(), "{f}");
+ }
+ assert!(s[0]["deadline"]
+ .as_str()
+ .unwrap()
+ .starts_with("Sprint ends "));
+ assert_eq!(
+ s[0]["dismiss_reasons"][3]["label"],
+ "Don't suggest UI changes"
+ );
+ // The summary under the heading, with a batch behind a preview.
+ assert_eq!(out["suggestion_summary"]["count"], 2);
+ assert_eq!(
+ out["suggestion_summary"]["kinds"][0]["text"],
+ "2 tickets CoderHelm can take"
+ );
+ assert_eq!(
+ out["suggestion_summary"]["batch"]["keys"],
+ json!(["BOOK-112", "BOOK-118"])
+ );
+ assert_eq!(
+ out["suggestion_summary"]["batch"]["text"],
+ "Give both to CoderHelm"
+ );
+ // No percentages or scores anywhere in a fit or suggestion.
+ let text = format!("{}{}", t, s);
+ assert!(!text.contains('%') && !text.contains("confidence") && !text.contains("score"));
+}
+
+#[test]
+fn a_suggestion_is_withdrawn_when_its_ticket_goes_to_coderhelm() {
+ let mut r = reads();
+ r.sprint = Sprint::Ok(vec![ticket(
+ "BOOK-118",
+ "Fix the broken help link in the refund email",
+ GOOD,
+ 1.0,
+ "new",
+ &["coderhelm:acme/web"],
+ )]);
+ let mut p = Prefs::default();
+ page(&dana(), &[], &[], &r, &mut p);
+ assert!(p.shown.contains_key("give:BOOK-118"));
+ r.given.insert(
+ "BOOK-118".into(),
+ foryou::Given {
+ ticket: "BOOK-118".into(),
+ owner: "USER#dana".into(),
+ given_at: NOW - 10,
+ ..Default::default()
+ },
+ );
+ let out = page(&dana(), &[], &[], &r, &mut p);
+ assert!(keys(&out["suggestions"]).is_empty());
+ assert_eq!(
+ out["withdrawn"][0]["withdrawn_reason"],
+ "BOOK-118 is already with CoderHelm"
+ );
+ assert_eq!(
+ out["sprint"]["tickets"][0]["delegated"]["stage"],
+ "starting"
+ );
+ assert!(out["sprint"]["tickets"][0]["fit"].is_null());
+}
+
+fn rec(repo: &str, number: u64, author: &str, files: &[&str]) -> PrRecord {
+ PrRecord {
+ repo: repo.into(),
+ number,
+ author: author.into(),
+ files: files.iter().map(|f| f.to_string()).collect(),
+ ..Default::default()
+ }
+}
+
+fn merged_by(login: &str, n: u64, files: &[&str]) -> History {
+ History {
+ repo: "acme/billing".into(),
+ number: n,
+ author: login.into(),
+ merged: true,
+ merged_at: NOW - 5 * DAY,
+ closed_at: NOW - 5 * DAY,
+ files: files.iter().map(|f| f.to_string()).collect(),
+ ..Default::default()
+ }
+}
+
+#[test]
+fn a_review_nobody_was_asked_for_is_suggested_on_its_own_row_and_withdrawn_when_taken() {
+ let mut r = reads();
+ r.history = vec![
+ merged_by("dana-ortiz", 200, &["invoice/tax.ts"]),
+ merged_by("dana-ortiz", 201, &["invoice/tax.ts", "invoice/pdf.ts"]),
+ merged_by("dana-ortiz", 202, &["README.md"]),
+ merged_by("mara", 203, &["invoice/tax.ts"]),
+ ];
+ let mut open = row(
+ "acme/billing",
+ 218,
+ "jun",
+ "needs_reviewer",
+ "person",
+ &["nobody"],
+ );
+ open.stage = Some("first_review".into());
+ let records = vec![rec("acme/billing", 218, "jun", &["invoice/tax.ts"])];
+ let mut p = Prefs::default();
+ let out = page(&dana(), &[open.clone()], &records, &r, &mut p);
+ let s = &out["suggestions"][0];
+ assert_eq!(s["key"], "review:acme/billing#218");
+ assert_eq!(s["action"], "Add to my reviews");
+ assert_eq!(
+ s["reason"],
+ "You changed invoice/tax.ts in 2 of your 3 merged pull requests here; no reviewer yet"
+ );
+ assert_eq!(s["effort"], "84 lines, about 8 min");
+ assert_eq!(
+ s["effect"],
+ "Adds you as a reviewer on GitHub. No comment is posted."
+ );
+ let row_out = &out["needs"]["suggested_reviews"][0];
+ assert_eq!(row_out["label"], "Not requested of you");
+ assert_eq!(row_out["why"], "Opened by @jun \u{b7} no reviewer yet");
+ assert_eq!(
+ out["header"]["needs"], 0,
+ "a suggested review isn't counted as waiting on you"
+ );
+ // Mara takes the review: withdrawn, saying who.
+ open.reviews.requested = vec!["mara".into()];
+ let out = page(&dana(), &[open], &records, &r, &mut p);
+ assert!(keys(&out["suggestions"]).is_empty());
+ assert!(keys(&out["needs"]["suggested_reviews"]).is_empty());
+ assert_eq!(
+ out["withdrawn"][0]["withdrawn_reason"],
+ "Someone else picked it up: @mara took the review of acme/billing#218"
+ );
+ assert_eq!(out["withdrawn"][0]["target"], "pr:acme/billing#218");
+}
+
+#[test]
+fn review_turnaround_is_only_yours() {
+ let mut r = reads();
+ let mut h = merged_by("jun", 300, &[]);
+ h.request_log = vec![
+ RequestEvent {
+ who: "dana-ortiz".into(),
+ at: NOW - 3 * DAY,
+ removed_at: 0,
+ },
+ RequestEvent {
+ who: "mara".into(),
+ at: NOW - 3 * DAY,
+ removed_at: 0,
+ },
+ ];
+ h.review_log = vec![
+ ReviewEvent {
+ who: "dana-ortiz".into(),
+ state: "APPROVED".into(),
+ sha: String::new(),
+ at: NOW - 3 * DAY + 15_000,
+ human: true,
+ has_body: false,
+ },
+ ReviewEvent {
+ who: "mara".into(),
+ state: "APPROVED".into(),
+ sha: String::new(),
+ at: NOW - 3 * DAY + 60,
+ human: true,
+ has_body: false,
+ },
+ ];
+ r.history = vec![h];
+ let mut p = Prefs::default();
+ let out = page(&dana(), &[], &[], &r, &mut p);
+ assert_eq!(out["stats"]["review_turnaround"]["median_secs"], 15_000);
+ assert_eq!(out["stats"]["review_turnaround"]["reviews"], 1);
+ assert_eq!(out["stats"]["review_turnaround"]["days"], 28);
+ let mut mara = dana();
+ mara.github = Some("mara".into());
+ let out = page(&mara, &[], &[], &r, &mut Prefs::default());
+ assert_eq!(out["stats"]["review_turnaround"]["median_secs"], 60);
+}
+
+#[test]
+fn an_unlinked_person_gets_a_suggestion_never_a_link() {
+ let mut r = reads();
+ r.sprint = Sprint::NotLinked;
+ r.seen_users = vec![foryou::SeenJiraUser {
+ account_id: "557058:dana0001".into(),
+ name: "Dana Ortiz".into(),
+ email: "dana@example.com".into(),
+ linked: false,
+ }];
+ let mut v = dana();
+ v.jira = None;
+ let mut p = Prefs::default();
+ let out = page(&v, &[], &[], &r, &mut p);
+ assert_eq!(out["accounts"]["jira"]["state"], "not_linked");
+ assert_eq!(out["accounts"]["jira"]["suggestion"]["name"], "Dana Ortiz");
+ assert_eq!(out["sprint"]["state"], "not_linked");
+ assert!(out["sprint"]["tickets"].as_array().unwrap().is_empty());
+ // "No" makes it go.
+ p.identity_no.insert("557058:dana0001".into());
+ let out = page(&v, &[], &[], &r, &mut p);
+ assert!(out["accounts"]["jira"]["suggestion"].is_null());
+}
+
+#[test]
+fn snoozes_end_later_today_tomorrow_or_after_the_sprint() {
+ assert_eq!(snooze_until("later_today", NOW, 0), Some(NOW + 4 * 3600));
+ assert_eq!(
+ snooze_until("tomorrow", NOW, 0),
+ Some(foryou::tomorrow_nine(NOW))
+ );
+ assert_eq!(
+ snooze_until("after_sprint", NOW, NOW + 2 * DAY),
+ Some(NOW + 2 * DAY + 3600)
+ );
+ assert_eq!(snooze_until("after_sprint", NOW, 0), Some(NOW + 7 * DAY));
+ assert_eq!(snooze_until("someday", NOW, 0), None);
+}
+
+#[test]
+fn repositories_are_known_from_a_label_the_ticket_or_past_runs() {
+ let t = |labels: &[&str], desc: &str| SprintTicket {
+ key: "BOOK-7".into(),
+ labels: labels.iter().map(|s| s.to_string()).collect(),
+ description: desc.into(),
+ ..Default::default()
+ };
+ let repos = vec!["acme/web".to_string(), "acme/api".to_string()];
+ assert_eq!(
+ repo_hints(&t(&["coderhelm:acme/web"], ""), &repos, &[]),
+ (vec!["acme/web".into()], "label")
+ );
+ assert_eq!(
+ repo_hints(&t(&[], "In acme/api, retry"), &repos, &[]),
+ (vec!["acme/api".into()], "ticket")
+ );
+ let run = |tk: &str, repo: &str| -> Item {
+ HashMap::from([
+ ("ticket_id".to_string(), AttributeValue::S(tk.into())),
+ ("repo".to_string(), AttributeValue::S(repo.into())),
+ ])
+ };
+ let runs = vec![
+ run("BOOK-1", "acme/web"),
+ run("BOOK-2", "acme/web"),
+ run("OTHER-1", "acme/api"),
+ ];
+ assert_eq!(
+ repo_hints(&t(&[], ""), &repos, &runs),
+ (vec!["acme/web".into()], "history")
+ );
+ assert_eq!(
+ repo_hints(&t(&[], ""), &repos, &runs[..1]),
+ (Vec::new(), "")
+ );
+}
diff --git a/services/gateway/src/routes/foryou_give.rs b/services/gateway/src/routes/foryou_give.rs
new file mode 100644
index 000000000..d2550d9d3
--- /dev/null
+++ b/services/gateway/src/routes/foryou_give.rs
@@ -0,0 +1,347 @@
+//! Give to CoderHelm, from the For you page.
+//!
+//! - `GET /api/foryou/give?key=BOOK-112` ([`preview`]): what CoderHelm knows
+//! before it starts: the fit, the repositories, the files the ticket names,
+//! the tests, and that the plan comes first. The planner has no dry-run
+//! mode, so the preview says what is known and that the plan is written
+//! at the start of the run (and, with "Draft a plan first", waits for the
+//! person's OK before any code).
+//! - `POST /api/foryou/give` ([`give`]): records the person as the owner
+//! (`FORYOU#GIVE#`), then asks the team's Jira app to add the
+//! team's trigger label to the ticket. Jira sends that change like any
+//! person's label, and the run starts through the label path
+//! (`jira_webhook::ticket_triggers`), crediting the owner
+//! ([`owner_for_event`]). CoderHelm is the delegate; the ticket stays
+//! assigned to the person. Answered at once; the page then shows the run
+//! from the runs table as it starts.
+
+use std::sync::Arc;
+
+use axum::{
+ extract::{Query, State},
+ http::StatusCode,
+ Extension, Json,
+};
+use common::foryou::{self, Given};
+use serde::Deserialize;
+use serde_json::{json, Value};
+use tracing::{info, warn};
+
+use super::foryou::{reads, repo_hints, sprint_ticket, Sprint};
+use super::foryou_link::user_of;
+use crate::models::Claims;
+use crate::AppState;
+
+type Refusal = (StatusCode, Json);
+
+fn refuse(code: StatusCode, msg: &str) -> Refusal {
+ (code, Json(json!({ "error": msg })))
+}
+
+#[derive(Deserialize)]
+pub struct KeyQuery {
+ pub key: String,
+}
+
+/// The ticket, from the person's own sprint: only a ticket assigned to them.
+async fn own_ticket(
+ state: &Arc,
+ claims: &Claims,
+ key: &str,
+) -> Result<
+ (
+ super::foryou::SprintTicket,
+ String,
+ Arc,
+ ),
+ Refusal,
+> {
+ if !super::chat_work_tickets::valid_key(key) {
+ return Err(refuse(StatusCode::BAD_REQUEST, "That isn't a Jira key."));
+ }
+ let user = user_of(claims);
+ let Some(account) = super::foryou_link::linked_jira(state, &claims.team_id, &user).await else {
+ return Err(refuse(
+ StatusCode::CONFLICT,
+ "Link your Jira account first (Connect Jira on the For you page).",
+ ));
+ };
+ let r = reads(state, claims, Some(&account)).await;
+ let Sprint::Ok(list) = &r.sprint else {
+ return Err(refuse(
+ StatusCode::CONFLICT,
+ "Your sprint couldn't be read from Jira, so nothing was started.",
+ ));
+ };
+ let Some(raw) = list.iter().find(|v| v["key"].as_str() == Some(key)) else {
+ return Err(refuse(
+ StatusCode::FORBIDDEN,
+ "Only a ticket in your open sprint, assigned to you, can be given from here.",
+ ));
+ };
+ Ok((sprint_ticket(raw), account, r))
+}
+
+/// GET /api/foryou/give?key= — what is known before anything starts.
+pub async fn preview(
+ State(state): State>,
+ Extension(claims): Extension,
+ Query(q): Query,
+) -> Result, Refusal> {
+ let (t, _, r) = own_ticket(&state, &claims, q.key.trim()).await?;
+ let repos = super::brain::load_repos(&state, &claims.team_id).await;
+ let names: Vec = repos.iter().map(|x| x.name.clone()).collect();
+ let (hint, source) = repo_hints(&t, &names, &r.runs);
+ let facts = foryou::TicketFacts {
+ key: t.key.clone(),
+ title: t.title.clone(),
+ description: t.description.clone(),
+ issue_type: t.issue_type.clone(),
+ labels: t.labels.clone(),
+ components: t.components.clone(),
+ priority: t.priority.clone(),
+ points: t.points,
+ repos: hint.clone(),
+ repo_source: source.into(),
+ tests: None,
+ };
+ let fit = foryou::fit(&facts);
+ let criteria: Vec = t
+ .description
+ .lines()
+ .map(str::trim)
+ .filter(|l| l.starts_with("- [ ]") || l.starts_with("[ ]") || l.starts_with("AC:"))
+ .map(|l| {
+ l.trim_start_matches("- [ ]")
+ .trim_start_matches("[ ]")
+ .trim_start_matches("AC:")
+ .trim()
+ .to_string()
+ })
+ .filter(|l| !l.is_empty())
+ .take(8)
+ .collect();
+ Ok(Json(json!({
+ "key": t.key,
+ "title": t.title,
+ "points": t.points,
+ "fit": fit,
+ "repos": hint,
+ "repo_source": source,
+ "files": foryou::named_files(&t.description),
+ "criteria": criteria,
+ // No dry-run planner exists: say what is known, and that the plan
+ // comes first.
+ "plan": {
+ "available": false,
+ "text": "CoderHelm writes its plan first, from the ticket and the code, before any change. With \"Pause after the plan\" it waits for your OK on the run page before it codes.",
+ },
+ "plan_first_default": fit.band != foryou::Band::Good,
+ "owner": "you",
+ "delegate": "CoderHelm",
+ "effect": "The ticket stays assigned to you in Jira. CoderHelm opens one pull request on its own branch, and someone other than you approves it. You can stop it at any time.",
+ })))
+}
+
+#[derive(Deserialize)]
+pub struct GiveBody {
+ pub key: String,
+ #[serde(default)]
+ pub plan_first: bool,
+}
+
+/// POST /api/foryou/give — start CoderHelm on one of your sprint tickets.
+pub async fn give(
+ State(state): State>,
+ Extension(claims): Extension,
+ Json(body): Json,
+) -> Result<(StatusCode, Json), Refusal> {
+ let allowed = claims.require_role(1);
+ allowed.map_err(|_| refuse(StatusCode::FORBIDDEN, "Your role can't start runs."))?;
+ let key = body.key.trim().to_string();
+ let (_, account, r) = own_ticket(&state, &claims, &key).await?;
+ // A run already working on it: nothing doubles.
+ let busy = r.runs.iter().any(|i| {
+ i.get("ticket_id")
+ .and_then(|v| v.as_s().ok())
+ .map(String::as_str)
+ == Some(key.as_str())
+ && i.get("status")
+ .and_then(|v| v.as_s().ok())
+ .is_some_and(|s| {
+ common::pr_view::RUN_ACTIVE.contains(&s.as_str())
+ || s == common::run_status::NEEDS_INPUT
+ })
+ });
+ if busy {
+ return Err(refuse(
+ StatusCode::CONFLICT,
+ &format!("CoderHelm is already working on {key}."),
+ ));
+ }
+ let jira = super::chat_work_tickets::load(&state, &claims.team_id).await;
+ let Some(app) = jira.app.as_ref() else {
+ return Err(refuse(StatusCode::CONFLICT, jira.off_words()));
+ };
+ let label = super::jira_webhook::trigger_label_of(&state, &claims.team_id).await;
+ let t_now = chrono::Utc::now().timestamp();
+ let owner_name = super::run_close::profile_name(&state, &claims)
+ .await
+ .unwrap_or_default();
+ let given = Given {
+ ticket: key.clone(),
+ owner: claims.sub.clone(),
+ owner_name,
+ owner_jira: account.clone(),
+ plan_first: body.plan_first,
+ given_at: t_now,
+ approved_at: 0,
+ started_at: 0,
+ };
+ foryou::put_given(
+ &state.dynamo,
+ &state.config.settings_table_name,
+ &claims.team_id,
+ &given,
+ )
+ .await
+ .map_err(|e| {
+ warn!(error = %e, "For you: give not recorded");
+ refuse(
+ StatusCode::INTERNAL_SERVER_ERROR,
+ "That couldn't be saved. Try again.",
+ )
+ })?;
+ let http = common::mcp_remote::http::GuardedHttps;
+ match ask_give(&http, app, &key, &label, &account).await {
+ GiveAnswer::Given => {}
+ GiveAnswer::Old => {
+ return Err(refuse(
+ StatusCode::CONFLICT,
+ &format!(
+ "Your Jira site runs an older CoderHelm app that can't start work from here. Add the label {label} to {key} in Jira (you stay the owner), or ask your Jira admin to update the app."
+ ),
+ ))
+ }
+ GiveAnswer::Refused(why) => {
+ return Err(refuse(StatusCode::CONFLICT, &format!("Jira didn't take it: {why}.")))
+ }
+ }
+ super::foryou::forget(&state, &claims).await;
+ info!(team_id = %claims.team_id, plan_first = body.plan_first, "For you: a ticket was given to CoderHelm");
+ Ok((
+ StatusCode::ACCEPTED,
+ Json(json!({
+ "state": "starting",
+ "ticket": key,
+ "plan_first": body.plan_first,
+ "owner": "you",
+ "delegate": "CoderHelm",
+ "message": format!("CoderHelm picked up {key}. You stay the owner."),
+ })),
+ ))
+}
+
+/// What the Jira app said to a give.
+#[derive(Debug, PartialEq)]
+pub enum GiveAnswer {
+ Given,
+ /// The site's app predates the give mode.
+ Old,
+ Refused(String),
+}
+
+pub async fn ask_give(
+ http: &dyn common::mcp_remote::http::Http,
+ app: &super::chat_work_tickets::JiraApp,
+ key: &str,
+ label: &str,
+ account: &str,
+) -> GiveAnswer {
+ use common::mcp_remote::http::{HttpRequest, Limit};
+ let body = json!({"forge_secret": app.secret, "give": {"key": key, "label": label, "account_id": account}});
+ let r = match http
+ .send(HttpRequest::json(&app.issues_url, &body, Limit::Metadata))
+ .await
+ {
+ Ok(r) => r,
+ Err(e) => return GiveAnswer::Refused(format!("Jira couldn't be reached ({e})")),
+ };
+ if r.status != 200 {
+ return GiveAnswer::Refused(format!("Jira's app answered {}", r.status));
+ }
+ let v = r.json().unwrap_or(Value::Null);
+ if !v["given"].is_object() {
+ return GiveAnswer::Old;
+ }
+ if v["given"]["ok"] == true {
+ GiveAnswer::Given
+ } else {
+ GiveAnswer::Refused(
+ v["given"]["why"]
+ .as_str()
+ .unwrap_or("it gave no reason")
+ .to_string(),
+ )
+ }
+}
+
+/// The owner to credit for a Jira event on `ticket`: the person who gave it
+/// from For you in the last minutes, once. `None` for any other event.
+pub async fn owner_for_event(
+ state: &AppState,
+ team: &str,
+ ticket: &str,
+) -> Option {
+ let table = &state.config.settings_table_name;
+ let mut g = foryou::read_given(&state.dynamo, table, team, ticket).await?;
+ let now = chrono::Utc::now().timestamp();
+ if !foryou::awaits_event(&g, now) {
+ return None;
+ }
+ g.started_at = now;
+ if let Err(e) = foryou::put_given(&state.dynamo, table, team, &g).await {
+ warn!(error = %e, "For you: give not marked started");
+ }
+ common::requester::Requester::jira_user(&json!({
+ "accountId": g.owner_jira,
+ "displayName": g.owner_name,
+ }))
+}
+
+#[cfg(test)]
+mod tests {
+ use super::*;
+ use crate::routes::chat_work_needs::tests::app;
+ use crate::routes::chat_work_prs::tests::fake;
+
+ #[tokio::test]
+ async fn the_jira_app_adds_the_label_or_says_why_not() {
+ let ok = fake(|r| {
+ let body: Value = serde_json::from_slice(r.body.as_deref().unwrap_or(b"{}")).unwrap();
+ assert_eq!(body["give"]["key"], "BOOK-112");
+ assert_eq!(body["give"]["label"], "coderhelm");
+ assert_eq!(body["give"]["account_id"], "557058:a1b2c3d4");
+ (200, json!({"given": {"ok": true, "key": "BOOK-112"}}))
+ });
+ assert_eq!(
+ ask_give(&ok, &app(), "BOOK-112", "coderhelm", "557058:a1b2c3d4").await,
+ GiveAnswer::Given
+ );
+ let old = fake(|_| (200, json!({"issues": []})));
+ assert_eq!(
+ ask_give(&old, &app(), "BOOK-112", "coderhelm", "557058:a1b2c3d4").await,
+ GiveAnswer::Old
+ );
+ let no = fake(|_| {
+ (
+ 200,
+ json!({"given": {"ok": false, "why": "BOOK-112 isn't assigned to you"}}),
+ )
+ });
+ assert_eq!(
+ ask_give(&no, &app(), "BOOK-112", "coderhelm", "557058:a1b2c3d4").await,
+ GiveAnswer::Refused("BOOK-112 isn't assigned to you".into())
+ );
+ }
+}
diff --git a/services/gateway/src/routes/foryou_link.rs b/services/gateway/src/routes/foryou_link.rs
new file mode 100644
index 000000000..3bb4d7314
--- /dev/null
+++ b/services/gateway/src/routes/foryou_link.rs
@@ -0,0 +1,498 @@
+//! Linking a person's Jira account to their CoderHelm user, by them only.
+//!
+//! - `POST /api/foryou/link/jira` ([`make_code`]): the signed-in person gets
+//! a one-time code, signed for their team (`common::foryou::issue_code`),
+//! good for fifteen minutes.
+//! - `POST /webhooks/jira-link` ([`forge_link`]): the Jira app's "Link my
+//! CoderHelm account" action sends the code with the account id Forge
+//! gives for the person who opened it, proven by the site's Forge secret.
+//! The code is used up in the same write that reads it.
+//! - `DELETE /api/foryou/link/jira` ([`unlink`]): the person removes the
+//! link; both rows go.
+//! - `POST /api/foryou/link/jira/not-me` ([`not_me`]): "No" to the "Is this
+//! you?" suggestion.
+//!
+//! The link is kept twice under the team's partition: `FORYOU#JIRA#`
+//! holds the account id, and the account's own `JIRAUSER#` row
+//! holds `linked_user`. An account is linked to one person at a time. An
+//! email never makes a link: it can only make the suggestion.
+
+use std::sync::Arc;
+
+use aws_sdk_dynamodb::types::AttributeValue;
+use axum::extract::rejection::JsonRejection;
+use axum::{extract::State, http::StatusCode, Extension, Json};
+use common::foryou;
+use serde::{Deserialize, Serialize};
+use serde_json::{json, Value};
+use tracing::{info, warn};
+
+use crate::models::Claims;
+use crate::AppState;
+
+fn s(v: &str) -> AttributeValue {
+ AttributeValue::S(v.to_string())
+}
+
+fn get_s(item: &std::collections::HashMap, k: &str) -> String {
+ item.get(k)
+ .and_then(|v| v.as_s().ok())
+ .cloned()
+ .unwrap_or_default()
+}
+
+/// The user part of the session's id (`USER#abc` is `abc`).
+pub fn user_of(claims: &Claims) -> String {
+ claims
+ .sub
+ .strip_prefix("USER#")
+ .unwrap_or(&claims.sub)
+ .to_string()
+}
+
+fn now() -> i64 {
+ chrono::Utc::now().timestamp()
+}
+
+/// The Jira account this user linked themselves, if any.
+pub async fn linked_jira(state: &AppState, team: &str, user: &str) -> Option {
+ let user = user.strip_prefix("USER#").unwrap_or(user);
+ let item = state
+ .dynamo
+ .get_item()
+ .table_name(&state.config.settings_table_name)
+ .key("pk", s(team))
+ .key("sk", s(&foryou::jira_link_sk(user)))
+ .consistent_read(true)
+ .send()
+ .await
+ .ok()?
+ .item?;
+ Some(get_s(&item, "account_id")).filter(|a| foryou::valid_account_id(a))
+}
+
+/// POST /api/foryou/link/jira — a one-time code for the Jira app's "Link my
+/// CoderHelm account" action.
+pub async fn make_code(
+ State(state): State>,
+ Extension(claims): Extension,
+) -> Result, StatusCode> {
+ let user = user_of(&claims);
+ let random: [u8; 5] = rand::random();
+ let (code, sk) =
+ foryou::issue_code(state.secrets.jwt_secret.as_bytes(), &claims.team_id, random);
+ let expires = now() + foryou::CODE_TTL_SECS;
+ state
+ .dynamo
+ .put_item()
+ .table_name(&state.config.settings_table_name)
+ .item("pk", s(&claims.team_id))
+ .item("sk", s(&sk))
+ .item("user", s(&user))
+ .item("expires_at", AttributeValue::N(expires.to_string()))
+ // The table's TTL removes it a while after; the expiry above is
+ // what counts.
+ .item("ttl", AttributeValue::N((expires + 3600).to_string()))
+ .send()
+ .await
+ .map_err(|e| {
+ warn!(error = %e, "For you: link code not stored");
+ StatusCode::INTERNAL_SERVER_ERROR
+ })?;
+ Ok(Json(json!({
+ "code": code,
+ "expires_at": common::pr_view::rfc3339(expires),
+ "steps": [
+ "Open any issue in Jira.",
+ "Open the issue's \u{2022}\u{2022}\u{2022} menu and choose Link my CoderHelm account.",
+ "Paste this code and choose Link my account.",
+ ],
+ })))
+}
+
+/// DELETE /api/foryou/link/jira — the person removes their Jira link.
+pub async fn unlink(
+ State(state): State>,
+ Extension(claims): Extension,
+) -> Result, StatusCode> {
+ let user = user_of(&claims);
+ let account = linked_jira(&state, &claims.team_id, &user).await;
+ let table = &state.config.settings_table_name;
+ state
+ .dynamo
+ .delete_item()
+ .table_name(table)
+ .key("pk", s(&claims.team_id))
+ .key("sk", s(&foryou::jira_link_sk(&user)))
+ .send()
+ .await
+ .map_err(|e| {
+ warn!(error = %e, "For you: unlink failed");
+ StatusCode::INTERNAL_SERVER_ERROR
+ })?;
+ if let Some(a) = &account {
+ release_account(&state, &claims.team_id, a, &user).await;
+ }
+ info!(team_id = %claims.team_id, "For you: a person unlinked their Jira account");
+ Ok(Json(json!({ "unlinked": account.is_some() })))
+}
+
+/// Takes `linked_user` off an account's row, only when it is this user's.
+async fn release_account(state: &AppState, team: &str, account: &str, user: &str) {
+ let r = state
+ .dynamo
+ .update_item()
+ .table_name(&state.config.settings_table_name)
+ .key("pk", s(team))
+ .key("sk", s(&common::requester::jira_user_sk(account)))
+ .update_expression("REMOVE #l, linked_at")
+ .condition_expression("#l = :u")
+ .expression_attribute_names("#l", foryou::FIELD_LINKED_USER)
+ .expression_attribute_values(":u", s(user))
+ .send()
+ .await;
+ if let Err(e) = r {
+ if !e
+ .as_service_error()
+ .is_some_and(|x| x.is_conditional_check_failed_exception())
+ {
+ warn!(error = %e, "For you: account row not released");
+ }
+ }
+}
+
+/// POST /api/foryou/link/jira/not-me — "No" to "Is this you?".
+pub async fn not_me(
+ State(state): State>,
+ Extension(claims): Extension,
+ Json(body): Json,
+) -> Result, StatusCode> {
+ let account = body["account_id"].as_str().unwrap_or("").trim().to_string();
+ if !foryou::valid_account_id(&account) {
+ return Err(StatusCode::BAD_REQUEST);
+ }
+ super::foryou::update_prefs(&state, &claims, |p| {
+ p.identity_no.insert(account.clone());
+ Ok(())
+ })
+ .await?;
+ Ok(Json(json!({ "ok": true })))
+}
+
+/// The largest link request taken. The real one is a few hundred bytes.
+pub const MAX_LINK_BODY: usize = 2048;
+
+/// The team's proof, as the Jira app sends it (`linkBody` in
+/// `coderhelm-jira/src/link.js`). Nothing else is accepted.
+#[derive(Debug, Deserialize, Serialize)]
+#[serde(deny_unknown_fields)]
+pub(crate) struct LinkProof {
+ pub(crate) team_id: String,
+ pub(crate) forge_secret: String,
+ #[serde(default)]
+ pub(crate) app_version: Option,
+ #[serde(default)]
+ pub(crate) app_id: Option,
+}
+
+/// A link request: plain strings only, every field known, nothing dynamic.
+#[derive(Debug, Deserialize, Serialize)]
+#[serde(deny_unknown_fields)]
+pub(crate) struct LinkRequest {
+ pub(crate) coderhelm: LinkProof,
+ #[serde(default)]
+ pub(crate) account_id: String,
+ #[serde(default)]
+ pub(crate) code: String,
+}
+
+/// What the Jira app sent, checked: the team, its proof, the account and
+/// the code. The body was read by axum into [`LinkRequest`] (no field it
+/// doesn't know, at most [`MAX_LINK_BODY`] bytes); each string is bounded
+/// here before anything is read.
+fn read_link(req: &LinkRequest) -> Result<(String, String, String, String), StatusCode> {
+ let short = |v: &Option| v.as_deref().is_none_or(|x| x.len() <= 128);
+ if !short(&req.coderhelm.app_version) || !short(&req.coderhelm.app_id) {
+ return Err(StatusCode::BAD_REQUEST);
+ }
+ let team = req.coderhelm.team_id.trim();
+ let secret = req.coderhelm.forge_secret.as_str();
+ let account = req.account_id.trim();
+ let code = req.code.trim();
+ if team.is_empty() || secret.is_empty() {
+ return Err(StatusCode::UNAUTHORIZED);
+ }
+ if team.len() > 128 || secret.len() > 256 {
+ return Err(StatusCode::BAD_REQUEST);
+ }
+ if !foryou::valid_account_id(account) || code.is_empty() || code.len() > 40 {
+ return Err(StatusCode::BAD_REQUEST);
+ }
+ let team = if team.starts_with("TEAM#") {
+ team.to_string()
+ } else {
+ format!("TEAM#{team}")
+ };
+ Ok((
+ team,
+ secret.to_string(),
+ account.to_string(),
+ code.to_string(),
+ ))
+}
+
+fn answer(code: StatusCode, message: &str) -> (StatusCode, Json) {
+ (code, Json(json!({ "message": message })))
+}
+
+/// POST /webhooks/jira-link — the Jira app's "Link my CoderHelm account".
+///
+/// The team is proven by its own Forge secret (as every Forge event is);
+/// the person by the account id Forge gives for whoever opened the action;
+/// the dashboard user by the one-time code they made, signed for this team
+/// and used up here.
+pub async fn forge_link(
+ State(state): State>,
+ body: Result, JsonRejection>,
+) -> (StatusCode, Json) {
+ let Ok(Json(body)) = body else {
+ return answer(StatusCode::BAD_REQUEST, "That request couldn't be read.");
+ };
+ let (team, secret, account, code) = match read_link(&body) {
+ Ok(x) => x,
+ Err(c) => return answer(c, "That request is missing what CoderHelm needs."),
+ };
+ if common::hybrid::sign::is_install_id(team.trim_start_matches("TEAM#")) {
+ return answer(
+ StatusCode::CONFLICT,
+ "This Jira site sends its work to a self-hosted CoderHelm: link your account there.",
+ );
+ }
+ let config = state
+ .dynamo
+ .get_item()
+ .table_name(&state.config.jira_config_table_name)
+ .key("pk", s(&team))
+ .key("sk", s("JIRA#config"))
+ .send()
+ .await
+ .ok()
+ .and_then(|r| r.item);
+ let stored = config
+ .as_ref()
+ .map(|c| get_s(c, "forge_secret"))
+ .unwrap_or_default();
+ if !super::jira_webhook::forge_secret_matches(&stored, &secret) {
+ warn!(team_id = %team, "Jira link: invalid or missing forge_secret");
+ return answer(StatusCode::FORBIDDEN, "");
+ }
+ // The signature first: a guessed code, or another team's, costs no read.
+ if !foryou::verify_code(state.secrets.jwt_secret.as_bytes(), &team, &code) {
+ return answer(
+ StatusCode::BAD_REQUEST,
+ "That isn't a CoderHelm code for this team. Copy it again from the For you page.",
+ );
+ }
+ // Used up in the read: a second use finds nothing.
+ let taken = state
+ .dynamo
+ .delete_item()
+ .table_name(&state.config.settings_table_name)
+ .key("pk", s(&team))
+ .key("sk", s(&foryou::code_sk(&team, &code)))
+ .condition_expression("attribute_exists(sk) AND expires_at > :now")
+ .expression_attribute_values(
+ ":now",
+ aws_sdk_dynamodb::types::AttributeValue::N(now().to_string()),
+ )
+ .return_values(aws_sdk_dynamodb::types::ReturnValue::AllOld)
+ .send()
+ .await;
+ let row = match taken {
+ Ok(o) => o.attributes.unwrap_or_default(),
+ Err(e) => {
+ if e.as_service_error()
+ .is_some_and(|x| x.is_conditional_check_failed_exception())
+ {
+ return answer(
+ StatusCode::GONE,
+ "That code has expired or was already used. Make a new one on the For you page.",
+ );
+ }
+ warn!(error = %e, "Jira link: code not read");
+ return answer(StatusCode::INTERNAL_SERVER_ERROR, "");
+ }
+ };
+ let expires: i64 = row
+ .get("expires_at")
+ .and_then(|v| v.as_n().ok())
+ .and_then(|n| n.parse().ok())
+ .unwrap_or(0);
+ let user = get_s(&row, "user");
+ if user.is_empty() || expires <= now() {
+ return answer(
+ StatusCode::GONE,
+ "That code has expired or was already used. Make a new one on the For you page.",
+ );
+ }
+ match link(&state, &team, &user, &account).await {
+ Ok(()) => {
+ info!(team_id = %team, "For you: a person linked their Jira account");
+ let name = user_name(&state, &team, &user).await;
+ answer(
+ StatusCode::OK,
+ &match name {
+ Some(n) => format!("Linked to {n} in CoderHelm. Your sprint now shows on the For you page."),
+ None => "Linked. Your sprint now shows on CoderHelm's For you page.".into(),
+ },
+ )
+ }
+ Err(LinkError::Taken) => answer(
+ StatusCode::CONFLICT,
+ "This Jira account is already linked to another CoderHelm user. They unlink it on their For you page first.",
+ ),
+ Err(LinkError::Store) => answer(StatusCode::INTERNAL_SERVER_ERROR, ""),
+ }
+}
+
+#[derive(Debug)]
+enum LinkError {
+ Taken,
+ Store,
+}
+
+/// Writes both rows. The account row first, claimed only when it is
+/// nobody's or already this user's; then the user's row (a link to another
+/// account is replaced and that account released).
+async fn link(state: &AppState, team: &str, user: &str, account: &str) -> Result<(), LinkError> {
+ let at = chrono::Utc::now().to_rfc3339();
+ let claimed = state
+ .dynamo
+ .update_item()
+ .table_name(&state.config.settings_table_name)
+ .key("pk", s(team))
+ .key("sk", s(&common::requester::jira_user_sk(account)))
+ .update_expression("SET #l = :u, linked_at = :t")
+ .condition_expression("attribute_not_exists(#l) OR #l = :u")
+ .expression_attribute_names("#l", foryou::FIELD_LINKED_USER)
+ .expression_attribute_values(":u", s(user))
+ .expression_attribute_values(":t", s(&at))
+ .send()
+ .await;
+ if let Err(e) = claimed {
+ if e.as_service_error()
+ .is_some_and(|x| x.is_conditional_check_failed_exception())
+ {
+ return Err(LinkError::Taken);
+ }
+ warn!(error = %e, "Jira link: account row not written");
+ return Err(LinkError::Store);
+ }
+ let before = linked_jira(state, team, user).await;
+ state
+ .dynamo
+ .put_item()
+ .table_name(&state.config.settings_table_name)
+ .item("pk", s(team))
+ .item("sk", s(&foryou::jira_link_sk(user)))
+ .item("account_id", s(account))
+ .item("linked_at", s(&at))
+ .send()
+ .await
+ .map_err(|e| {
+ warn!(error = %e, "Jira link: user row not written");
+ LinkError::Store
+ })?;
+ if let Some(old) = before.filter(|o| o != account) {
+ release_account(state, team, &old, user).await;
+ }
+ Ok(())
+}
+
+async fn user_name(state: &AppState, team: &str, user: &str) -> Option {
+ state
+ .dynamo
+ .get_item()
+ .table_name(&state.config.users_table_name)
+ .key("pk", s(team))
+ .key("sk", s(&format!("USER#{user}")))
+ .send()
+ .await
+ .ok()?
+ .item
+ .map(|i| get_s(&i, "name"))
+ .filter(|n| !n.trim().is_empty())
+}
+
+/// The team's Jira users CoderHelm has seen, for the "Is this you?"
+/// suggestion only (bounded read).
+pub async fn seen_jira_users(state: &AppState, team: &str) -> Vec {
+ let prefix = common::requester::JIRA_USER_PREFIX;
+ let mut out = Vec::new();
+ let mut start = None;
+ for _ in 0..5 {
+ let Ok(r) = state
+ .dynamo
+ .query()
+ .table_name(&state.config.settings_table_name)
+ .key_condition_expression("pk = :p AND begins_with(sk, :s)")
+ .expression_attribute_values(":p", s(team))
+ .expression_attribute_values(":s", s(prefix))
+ .set_exclusive_start_key(start.take())
+ .send()
+ .await
+ else {
+ break;
+ };
+ for i in r.items() {
+ if get_s(i, "pk") != team {
+ continue;
+ }
+ out.push(foryou::SeenJiraUser {
+ account_id: get_s(i, "sk").trim_start_matches(prefix).to_string(),
+ name: get_s(i, "name"),
+ email: get_s(i, "email"),
+ linked: !get_s(i, foryou::FIELD_LINKED_USER).is_empty(),
+ });
+ }
+ match r.last_evaluated_key() {
+ Some(k) if !k.is_empty() => start = Some(k.clone()),
+ _ => break,
+ }
+ }
+ out
+}
+
+#[cfg(test)]
+mod tests {
+ use super::*;
+
+ fn req(v: Value) -> Result {
+ serde_json::from_value(v)
+ }
+
+ #[test]
+ fn a_link_request_needs_the_team_its_proof_an_account_and_a_code() {
+ let ok = req(json!({"coderhelm": {"team_id": "acme1", "forge_secret": "x", "app_version": "7.1.0"}, "account_id": "557058:a1b2c3d4", "code": "ABCD-EFGH-JKMN-PQRS"})).unwrap();
+ let (team, _, account, _) = read_link(&ok).unwrap();
+ assert_eq!(team, "TEAM#acme1");
+ assert_eq!(account, "557058:a1b2c3d4");
+ let no_secret = req(json!({"coderhelm": {"team_id": "acme1", "forge_secret": ""}, "account_id": "557058:a1b2c3d4", "code": "x"})).unwrap();
+ assert_eq!(read_link(&no_secret).unwrap_err(), StatusCode::UNAUTHORIZED);
+ let bad_id = req(json!({"coderhelm": {"team_id": "acme1", "forge_secret": "x"}, "account_id": "x\" OR 1=1", "code": "c"})).unwrap();
+ assert_eq!(read_link(&bad_id).unwrap_err(), StatusCode::BAD_REQUEST);
+ let no_code = req(json!({"coderhelm": {"team_id": "acme1", "forge_secret": "x"}, "account_id": "557058:a1b2c3d4"})).unwrap();
+ assert_eq!(read_link(&no_code).unwrap_err(), StatusCode::BAD_REQUEST);
+ }
+
+ #[test]
+ fn a_link_request_is_plain_and_has_no_field_it_doesnt_know() {
+ assert!(req(json!({"coderhelm": {"team_id": "acme1", "forge_secret": "x"}, "account_id": "557058:a1b2c3d4", "code": "c", "user": "u_other"})).is_err());
+ assert!(req(json!({"coderhelm": {"team_id": {"$ne": ""}, "forge_secret": "x"}, "account_id": "557058:a1b2c3d4", "code": "c"})).is_err());
+ let long_version = req(json!({"coderhelm": {"team_id": "acme1", "forge_secret": "x", "app_version": "9".repeat(200)}, "account_id": "557058:a1b2c3d4", "code": "c"})).unwrap();
+ assert_eq!(
+ read_link(&long_version).unwrap_err(),
+ StatusCode::BAD_REQUEST
+ );
+ }
+}
diff --git a/services/gateway/src/routes/jira_webhook.rs b/services/gateway/src/routes/jira_webhook.rs
index ef9c45e91..cc6cd9565 100644
--- a/services/gateway/src/routes/jira_webhook.rs
+++ b/services/gateway/src/routes/jira_webhook.rs
@@ -365,6 +365,11 @@ pub(crate) fn ticket_triggers(issue: &Value, trigger_label: &str) -> (bool, bool
(has_label, is_assigned)
}
+/// The team's trigger label, for For you's Give to CoderHelm.
+pub(crate) async fn trigger_label_of(state: &AppState, team_id: &str) -> String {
+ team_trigger_label(state, team_id).await
+}
+
/// The team's trigger label (`coderhelm` unless it set another).
async fn team_trigger_label(state: &AppState, team_id: &str) -> String {
state
@@ -707,9 +712,14 @@ async fn process_jira_payload(
})
.unwrap_or("jira")
.to_string();
- let requester = payload
- .get("user")
- .and_then(common::requester::Requester::jira_user);
+ // A ticket given from For you: the label came from the Jira app, so the
+ // event names the app; the person who gave it is the owner.
+ let requester = match super::foryou_give::owner_for_event(state, team_id, ticket_key).await {
+ Some(owner) => Some(owner),
+ None => payload
+ .get("user")
+ .and_then(common::requester::Requester::jira_user),
+ };
remember_jira_users(state, team_id, payload).await;
info!(
@@ -1577,22 +1587,30 @@ fn named_jira_users(payload: &Value) -> Vec {
/// Keeps the name and email of every Jira user a payload names, by account
/// id, so runs that recorded only the account id can show the person's name.
+/// An update, never a put: the row also holds who linked the account
+/// (`common::foryou::FIELD_LINKED_USER`), which an event must not erase. The
+/// email kept here is only ever a suggestion on For you, never a link.
async fn remember_jira_users(state: &AppState, team_id: &str, payload: &Value) {
let now = chrono::Utc::now().to_rfc3339();
for r in named_jira_users(payload) {
let Some(id) = r.jira_id() else { continue };
- let mut put = state
+ let mut update = state
.dynamo
- .put_item()
+ .update_item()
.table_name(&state.config.settings_table_name)
- .item("pk", attr_s(team_id))
- .item("sk", attr_s(&common::requester::jira_user_sk(id)))
- .item("name", attr_s(&r.name))
- .item("seen_at", attr_s(&now));
- if !r.email.is_empty() {
- put = put.item("email", attr_s(&r.email));
- }
- if let Err(e) = put.send().await {
+ .key("pk", attr_s(team_id))
+ .key("sk", attr_s(&common::requester::jira_user_sk(id)))
+ .expression_attribute_names("#n", "name")
+ .expression_attribute_values(":n", attr_s(&r.name))
+ .expression_attribute_values(":t", attr_s(&now));
+ update = if r.email.is_empty() {
+ update.update_expression("SET #n = :n, seen_at = :t")
+ } else {
+ update
+ .update_expression("SET #n = :n, seen_at = :t, email = :e")
+ .expression_attribute_values(":e", attr_s(&r.email))
+ };
+ if let Err(e) = update.send().await {
warn!(team_id, error = %e, "Could not keep a Jira user's name");
}
}
diff --git a/services/gateway/src/routes/mod.rs b/services/gateway/src/routes/mod.rs
index 7335d1de1..c77b0f93e 100644
--- a/services/gateway/src/routes/mod.rs
+++ b/services/gateway/src/routes/mod.rs
@@ -39,6 +39,9 @@ pub mod email_metrics;
pub mod email_settings;
pub mod entra_sso;
pub mod followup_dedupe;
+pub mod foryou;
+pub mod foryou_give;
+pub mod foryou_link;
pub mod github;
pub mod github_hybrid;
pub mod github_webhook;
diff --git a/services/gateway/src/routes/run_answer.rs b/services/gateway/src/routes/run_answer.rs
index afe263bc7..76d43c6eb 100644
--- a/services/gateway/src/routes/run_answer.rs
+++ b/services/gateway/src/routes/run_answer.rs
@@ -215,6 +215,12 @@ pub async fn answer(
// history (the worker merges them in).
ticket.answers = answers.clone();
ticket.new_run_id = Some(new_run_id.clone());
+ // An approved plan (For you's "Draft a plan first") is coded as shown:
+ // the new run takes up this run's plan instead of planning again with
+ // the answer in its key.
+ if common::foryou::plan_approved(&answers) {
+ ticket.resume_from = Some(run_id.to_string());
+ }
claim(
state,
diff --git a/services/worker/src/passes/incidents/bm_teams_never_cross.rs b/services/worker/src/passes/incidents/bm_teams_never_cross.rs
index 2d58121a6..c00906272 100644
--- a/services/worker/src/passes/incidents/bm_teams_never_cross.rs
+++ b/services/worker/src/passes/incidents/bm_teams_never_cross.rs
@@ -112,6 +112,12 @@ const INBOUND: &[(&str, &str, &str, &str)] = &[
"forge_secret_matches(stored_secret, request_secret)",
"the team named, proven by that team's own Forge secret; the work runs under the team's stored installation",
),
+ (
+ "routes::foryou_link::forge_link",
+ "gateway/src/routes/foryou_link.rs",
+ "forge_secret_matches(&stored, &secret)",
+ "the team named, proven by that team's own Forge secret; the dashboard user from a one-time code signed for that team and used up in the read",
+ ),
(
"routes::alerts::handle_sns",
"gateway/src/routes/alerts.rs",
@@ -353,6 +359,7 @@ const CACHES: &[(&str, &str)] = &[
("gateway/src/permissions.rs::ROUTES", "route table; no data"),
("gateway/src/routes/chat_work_prs.rs::CACHE", "URL, reused only on a 304 to the team's own token; repo checked against the team's repos first"),
("gateway/src/routes/github_webhook.rs::SEEN", "installation id; log throttle"),
+ ("gateway/src/routes/foryou.rs::READS", "installation id plus the team and the session user (read_key(installation_id, \"foryou##\")): one person's own reads, never another's"),
(
"gateway/src/routes/prs_overview.rs::OVERVIEW",
"installation id plus the team id, org, repo and window (read_key(installation_id, \"prs_overview##...\")); built only from that team's records, history and snapshots",
diff --git a/services/worker/src/passes/incidents/ya_for_you_is_only_yours.rs b/services/worker/src/passes/incidents/ya_for_you_is_only_yours.rs
new file mode 100644
index 000000000..c43f0124a
--- /dev/null
+++ b/services/worker/src/passes/incidents/ya_for_you_is_only_yours.rs
@@ -0,0 +1,282 @@
+//! ya. The For you page shows one person their own reviews, pull requests,
+//! sprint tickets and private numbers. Three ways it could have gone wrong
+//! were found in its design:
+//!
+//! - a route taking a user (`?user=`) would let anyone read anyone's page;
+//! - the private numbers (what waits on you, your median review turnaround)
+//! read for another person would turn a private rail into a ranking;
+//! - Chat's "what needs me" matched a dashboard user to a Jira account by
+//! email, and the page was to reuse it: an email can be hidden in
+//! Atlassian or differ from the sign-in email, so the wrong person's sprint
+//! could show, or another person's account could be taken over by anyone
+//! whose email matched.
+//!
+//! Guarantees:
+//! - every For you route reads only the session's team and user; none takes
+//! a user, an email or a login from the request, and the short cache is
+//! keyed by the installation, the team and the session user;
+//! - the stats are computed for the session's own GitHub login only, and
+//! nothing outside the For you page computes them;
+//! - a Jira account is linked only by a one-time code the person makes on
+//! the dashboard (signed for their team, used up once) redeemed from the
+//! Jira app as that account; an email match is at most an "Is this you?"
+//! suggestion, and Chat reads only the link.
+
+use std::path::{Path, PathBuf};
+
+use common::foryou;
+use common::pr_record::{RequestEvent, ReviewEvent};
+
+fn services() -> PathBuf {
+ Path::new(env!("CARGO_MANIFEST_DIR"))
+ .parent()
+ .expect("services dir")
+ .to_path_buf()
+}
+
+fn read(rel: &str) -> String {
+ std::fs::read_to_string(services().join(rel)).unwrap_or_else(|e| panic!("{rel}: {e}"))
+}
+
+const FILES: &[&str] = &[
+ "gateway/src/routes/foryou.rs",
+ "gateway/src/routes/foryou_give.rs",
+ "gateway/src/routes/foryou_link.rs",
+];
+
+/// Every struct that derives `Deserialize`, from its derive to its closing
+/// brace: the shapes a request can fill.
+fn request_shapes(src: &str) -> String {
+ let mut out = String::new();
+ let mut rest = src;
+ while let Some(i) = rest.find("#[derive(") {
+ let tail = &rest[i..];
+ let derive_end = tail.find(")]").map(|e| e + 2).unwrap_or(tail.len());
+ let deserialized = tail[..derive_end].contains("Deserialize");
+ let item_end = tail.find("\n}").map(|e| e + 2).unwrap_or(tail.len());
+ if deserialized {
+ out.push_str(&tail[..item_end]);
+ out.push('\n');
+ }
+ rest = &tail[derive_end..];
+ }
+ out
+}
+
+#[test]
+fn a_request_shape_is_found_and_an_internal_one_is_not() {
+ let src = "#[derive(Debug, Deserialize)]\npub struct Q {\n pub user: String,\n}\n#[derive(Debug, Clone)]\npub struct Viewer {\n pub login: String,\n}\n";
+ let shapes = request_shapes(src);
+ assert!(shapes.contains("pub user:"));
+ assert!(!shapes.contains("pub login:"));
+}
+
+/// The source without its test module.
+fn code(rel: &str) -> String {
+ let src = read(rel);
+ match src.find("#[cfg(test)]") {
+ Some(i) => src[..i].to_string(),
+ None => src,
+ }
+}
+
+#[test]
+fn every_for_you_route_is_the_sessions_and_takes_no_user() {
+ let main = read("gateway/src/main.rs");
+ let routes: Vec<&str> = main.lines().filter(|l| l.contains("\"/foryou")).collect();
+ assert!(routes.len() >= 6, "{routes:?}");
+ for r in &routes {
+ // The path literal alone: `:name` or `{name}` would take a person.
+ let path = r.split('"').nth(1).unwrap_or_default();
+ assert!(
+ !path.contains(':') && !path.contains('{'),
+ "a For you path takes no parameter: {r}"
+ );
+ }
+ for f in FILES {
+ let src = code(f);
+ // No request shape (a struct read from a query or a body) names a
+ // person. Internal structs, like the page's own viewer, are filled
+ // from the session and are not read here.
+ let shapes = request_shapes(&src);
+ for field in [
+ "pub user:",
+ "pub user_id:",
+ "pub email:",
+ "pub login:",
+ "pub person:",
+ "pub sub:",
+ ] {
+ assert!(
+ !shapes.contains(field),
+ "{f} reads a person from the request ({field})"
+ );
+ }
+ for q in [
+ "q.user",
+ "body.user",
+ "q.email",
+ "body.email",
+ "q.login",
+ "body.login",
+ ] {
+ assert!(
+ !src.contains(q),
+ "{f} reads a person from the request ({q})"
+ );
+ }
+ }
+ // Every person's settings and links are keyed by the session's user.
+ let page = code("gateway/src/routes/foryou.rs");
+ assert!(page.contains(
+ "let key = read_key(installation, &format!(\"foryou#{}#{user}\", claims.team_id));"
+ ));
+ assert!(page.contains("pub async fn get_for_you(\n State(state): State>,\n Extension(claims): Extension,\n) -> Result, StatusCode> {"),
+ "GET /api/foryou has no query and no body: only the session");
+ let link = code("gateway/src/routes/foryou_link.rs");
+ assert!(link.contains(".strip_prefix(\"USER#\")"));
+ assert_ne!(foryou::user_sk("dana"), foryou::user_sk("mara"));
+ assert_ne!(foryou::jira_link_sk("dana"), foryou::jira_link_sk("mara"));
+}
+
+#[test]
+fn stats_are_never_computed_for_another_person() {
+ // The numbers are one login's: another reviewer's reviews never count.
+ let logs = vec![(
+ vec![
+ RequestEvent {
+ who: "dana".into(),
+ at: 1_000,
+ removed_at: 0,
+ },
+ RequestEvent {
+ who: "mara".into(),
+ at: 1_000,
+ removed_at: 0,
+ },
+ ],
+ vec![
+ ReviewEvent {
+ who: "mara".into(),
+ state: "APPROVED".into(),
+ sha: String::new(),
+ at: 1_060,
+ human: true,
+ has_body: false,
+ },
+ ReviewEvent {
+ who: "dana".into(),
+ state: "APPROVED".into(),
+ sha: String::new(),
+ at: 4_600,
+ human: true,
+ has_body: false,
+ },
+ ],
+ )];
+ assert_eq!(
+ foryou::review_turnaround(&logs, "dana", 10_000),
+ Some((3_600, 1))
+ );
+ // Only the For you page computes them, and only for the session's login.
+ for dir in ["gateway/src", "worker/src"] {
+ for e in walk(&services().join(dir)) {
+ let rel = e
+ .strip_prefix(services())
+ .unwrap()
+ .to_string_lossy()
+ .replace('\\', "/");
+ let src = std::fs::read_to_string(&e).unwrap_or_default();
+ if src.contains("review_turnaround(")
+ && !rel.ends_with("incidents/ya_for_you_is_only_yours.rs")
+ {
+ assert_eq!(
+ rel, "gateway/src/routes/foryou.rs",
+ "{rel} computes a person's review turnaround"
+ );
+ }
+ }
+ }
+ let page = code("gateway/src/routes/foryou.rs");
+ assert!(page.contains("foryou::review_turnaround(&logs, &login, now)"));
+ assert!(page.contains("let login = v.github.clone().unwrap_or_default();"));
+ assert!(page.contains("github: claims.github_login.clone().filter(|g| !g.trim().is_empty()),"));
+}
+
+fn walk(p: &Path) -> Vec {
+ let mut out = Vec::new();
+ if let Ok(rd) = std::fs::read_dir(p) {
+ for e in rd.flatten() {
+ let path = e.path();
+ if path.is_dir() {
+ out.extend(walk(&path));
+ } else if path.extension().is_some_and(|x| x == "rs") {
+ out.push(path);
+ }
+ }
+ }
+ out
+}
+
+#[test]
+fn email_alone_never_links_an_identity() {
+ // The suggestion is all an email can make, and only for one unlinked
+ // account seen with exactly that email.
+ let seen = vec![foryou::SeenJiraUser {
+ account_id: "557058:dana0001".into(),
+ name: "Dana Ortiz".into(),
+ email: "dana@example.com".into(),
+ linked: false,
+ }];
+ assert!(foryou::identity_suggestion(&seen, "dana@example.com", &Default::default()).is_some());
+ // A link needs a code signed for the team: no email in it, and another
+ // team's code or a changed one is refused before any read.
+ let (made, _) = foryou::issue_code(b"k", "TEAM#a", [9, 9, 9, 9, 9]);
+ assert!(foryou::verify_code(b"k", "TEAM#a", &made));
+ assert!(!foryou::verify_code(b"k", "TEAM#b", &made));
+ // Only the link route writes a link, and only after the code is
+ // checked and used up.
+ for dir in ["gateway/src", "worker/src", "common/src"] {
+ for e in walk(&services().join(dir)) {
+ let rel = e
+ .strip_prefix(services())
+ .unwrap()
+ .to_string_lossy()
+ .replace('\\', "/");
+ if rel.contains("/incidents/") || rel.ends_with("common/src/foryou.rs") {
+ continue;
+ }
+ let src = std::fs::read_to_string(&e).unwrap_or_default();
+ if src.contains("foryou::jira_link_sk(") && src.contains(".put_item()") {
+ assert_eq!(
+ rel, "gateway/src/routes/foryou_link.rs",
+ "{rel} writes a Jira link"
+ );
+ }
+ assert!(
+ !src.contains("fn jira_accounts("),
+ "{rel} finds Jira accounts by email"
+ );
+ }
+ }
+ let link = code("gateway/src/routes/foryou_link.rs");
+ let verify = link.find("foryou::verify_code(").unwrap();
+ // Used up only while unexpired, in the same conditional delete.
+ let used_up = link
+ .find("condition_expression(\"attribute_exists(sk) AND expires_at > :now\")")
+ .unwrap();
+ let write = link.find("match link(").unwrap();
+ assert!(verify < used_up && used_up < write);
+ // Chat's "what needs me" reads only the link, never an email match.
+ let needs = code("gateway/src/routes/chat_work_needs.rs");
+ assert!(needs.contains("src.store.jira_link(src.team, &me.user)"));
+ assert!(
+ !needs.contains("requester_email\").eq_ignore_ascii_case"),
+ "no Jira id from runs by email"
+ );
+ // A Jira event refreshing a user's name never erases who linked it.
+ let hook = code("gateway/src/routes/jira_webhook.rs");
+ let remember = &hook[hook.find("async fn remember_jira_users").unwrap()..];
+ let remember = &remember[..remember.find("\n}\n").unwrap()];
+ assert!(remember.contains(".update_item()") && !remember.contains(".put_item()"));
+}
diff --git a/services/worker/src/passes/mod.rs b/services/worker/src/passes/mod.rs
index 02052361f..06d527eb2 100644
--- a/services/worker/src/passes/mod.rs
+++ b/services/worker/src/passes/mod.rs
@@ -4364,6 +4364,116 @@ async fn run_passes(
return Ok(());
}
+ // Given from For you with "Draft a plan first" (`common::foryou`): the
+ // plan is shown and the run waits for the person's OK before any code.
+ // Their own ask, so the judge settles it by rule: no default, no
+ // deadline. An approval on the run page starts the next run, which
+ // codes.
+ if let Some(mut given) = common::foryou::read_given(
+ &state.dynamo,
+ &state.config.settings_table_name,
+ &msg.team_id,
+ &msg.ticket_id,
+ )
+ .await
+ .filter(|g| g.plan_first && g.approved_at == 0)
+ {
+ if common::foryou::plan_approved(&msg.answers) {
+ given.approved_at = chrono::Utc::now().timestamp();
+ if let Err(e) = common::foryou::put_given(
+ &state.dynamo,
+ &state.config.settings_table_name,
+ &msg.team_id,
+ &given,
+ )
+ .await
+ {
+ warn!(run_id, error = %e, "Plan approval not recorded on the give");
+ }
+ add_progress_note(
+ state,
+ &msg.team_id,
+ run_id,
+ "The plan was approved: coding starts.",
+ )
+ .await;
+ } else {
+ let steps = plan_result
+ .tasks
+ .lines()
+ .filter(|l| l.trim_start().starts_with("- ["))
+ .count();
+ let mut picture = stop_judge::Picture::new(
+ stop_judge::Kind::Ask,
+ "plan_first",
+ &format!("{steps} planned steps for {}", msg.ticket_id),
+ );
+ picture.plan_first_for = if given.owner_name.trim().is_empty() {
+ "The person who gave the ticket".into()
+ } else {
+ given.owner_name.clone()
+ };
+ picture.plan = plan_result.design.clone();
+ let judged = stop_judge::decide(
+ state,
+ &provider,
+ usage,
+ &msg.team_id,
+ &stop_judge::run_subject(run_id),
+ "",
+ picture,
+ )
+ .await;
+ let questions = stop_judge::questions_for(&judged, &[]);
+ let list_md =
+ stop_judge::stop_text(&judged, &common::run_questions::markdown(&questions));
+ let list_plain =
+ stop_judge::stop_text(&judged, &common::run_questions::plain(&questions));
+ let github_comment = format!(
+ "**Plan ready for your OK**\n\n{list_md}\n\nApprove it on the run page in CoderHelm, \
+ or reply here, and I'll start coding."
+ );
+ let jira_comment = format!(
+ "{list_plain}\n\nApprove it on the run page in CoderHelm, or reply here, and I'll start coding."
+ );
+ ask_on_ticket(
+ state,
+ msg,
+ run_id,
+ &github,
+ &questions,
+ &github_comment,
+ &jira_comment,
+ "Plan ready for your OK",
+ &judged,
+ )
+ .await;
+ let wait = WaitingOn::answer_or(
+ &questions,
+ None,
+ WaitingOn::fixed(
+ "Approve the plan on the run page",
+ "You asked to see the plan before any code.",
+ &ticket_url(msg),
+ ),
+ );
+ mark_run_needs_input(
+ state,
+ msg,
+ run_id,
+ usage,
+ start,
+ &used_mcp_ids,
+ &wait,
+ &judged,
+ supervisor::HumanOnly::Approval,
+ )
+ .await;
+ close_memory(state, agent_memory.take()).await;
+ return Ok(());
+ }
+ }
+
// The plan passed every check and is the one implemented: its
// follow-ups are filed now, once.
if let (Some(due), Some(decision)) = (followups_due.take(), plan_result.fix.as_mut()) {