@happyvertical/smrt-projects 0.57.20 → 0.57.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/manifest.json +1 -1
- package/dist/smrt-knowledge.json +3 -3
- package/dist/svelte/PreviewApprovalPanel.svelte +13 -1
- package/dist/svelte/PreviewApprovalPanel.svelte.d.ts.map +1 -1
- package/dist/svelte/ProjectQuestionsAndDecisions.svelte +15 -0
- package/dist/svelte/ProjectQuestionsAndDecisions.svelte.d.ts.map +1 -1
- package/package.json +12 -12
package/dist/manifest.json
CHANGED
package/dist/smrt-knowledge.json
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
"sensitiveFieldsExcluded": true,
|
|
4
4
|
"generatedAt": "1970-01-01T00:00:00.000Z",
|
|
5
5
|
"packageName": "@happyvertical/smrt-projects",
|
|
6
|
-
"packageVersion": "0.57.
|
|
6
|
+
"packageVersion": "0.57.22",
|
|
7
7
|
"sourceManifestPath": "dist/manifest.json",
|
|
8
8
|
"agentDocPath": "AGENTS.md",
|
|
9
9
|
"sourceHashes": {
|
|
10
|
-
"manifest": "
|
|
11
|
-
"packageJson": "
|
|
10
|
+
"manifest": "dd4a70f02296e31147d21b4c22d4d0c6f4000390181cf3595d7dcb2af30f3097",
|
|
11
|
+
"packageJson": "6496c5ce16e7e6102c70a3a78e0cc3a3a0ada85812d5f7edd2687c30d5b1e78e",
|
|
12
12
|
"agents": "2879830c12902195bd4f887cf00bdabbe8e7216ebafe2a9b2d007a00d137435c"
|
|
13
13
|
},
|
|
14
14
|
"exports": [
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
+
import {
|
|
3
|
+
createAnalyticsTransitions,
|
|
4
|
+
getAnalyticsContext,
|
|
5
|
+
} from '@happyvertical/smrt-ui/analytics';
|
|
2
6
|
import { useI18n } from '@happyvertical/smrt-ui/i18n';
|
|
3
7
|
import { Button } from '@happyvertical/smrt-ui/ui';
|
|
4
8
|
import type { PreviewApprovalView } from './delivery-types.js';
|
|
@@ -15,6 +19,14 @@ export interface Props {
|
|
|
15
19
|
|
|
16
20
|
let { preview, busy = false, ondecide }: Props = $props();
|
|
17
21
|
const { t } = useI18n();
|
|
22
|
+
const analytics = getAnalyticsContext();
|
|
23
|
+
const observe = createAnalyticsTransitions(analytics);
|
|
24
|
+
$effect(() =>
|
|
25
|
+
observe([preview], 'pending', {
|
|
26
|
+
approved: 'project_preview_approved',
|
|
27
|
+
rejected: 'project_preview_rejected',
|
|
28
|
+
}),
|
|
29
|
+
);
|
|
18
30
|
</script>
|
|
19
31
|
|
|
20
32
|
<section class="preview" data-smrt-component="PreviewApprovalPanel">
|
|
@@ -23,7 +35,7 @@ const { t } = useI18n();
|
|
|
23
35
|
<strong>{preview.status}</strong>
|
|
24
36
|
</div>
|
|
25
37
|
{#if preview.previewUrl}
|
|
26
|
-
<a href={preview.previewUrl} target="_blank" rel="noopener noreferrer">
|
|
38
|
+
<a onclick={() => analytics("project_preview_opened")} href={preview.previewUrl} target="_blank" rel="noopener noreferrer">
|
|
27
39
|
{t(M['projects.preview.open'])}
|
|
28
40
|
</a>
|
|
29
41
|
{/if}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PreviewApprovalPanel.svelte.d.ts","sourceRoot":"","sources":["../../src/svelte/PreviewApprovalPanel.svelte.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PreviewApprovalPanel.svelte.d.ts","sourceRoot":"","sources":["../../src/svelte/PreviewApprovalPanel.svelte.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAI/D,MAAM,WAAW,KAAK;IACpB,+CAA+C;IAC/C,OAAO,EAAE,mBAAmB,CAAC;IAC7B,mDAAmD;IACnD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACxD;AA+CD,QAAA,MAAM,oBAAoB,2CAAwC,CAAC;AACnE,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACpE,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
+
import {
|
|
3
|
+
createAnalyticsTransitions,
|
|
4
|
+
getAnalyticsContext,
|
|
5
|
+
} from '@happyvertical/smrt-ui/analytics';
|
|
2
6
|
import { Form, Input, Select, Textarea } from '@happyvertical/smrt-ui/forms';
|
|
3
7
|
import { useI18n } from '@happyvertical/smrt-ui/i18n';
|
|
4
8
|
import { Button } from '@happyvertical/smrt-ui/ui';
|
|
@@ -32,6 +36,17 @@ let {
|
|
|
32
36
|
}: Props = $props();
|
|
33
37
|
|
|
34
38
|
const { t } = useI18n();
|
|
39
|
+
const analytics = getAnalyticsContext();
|
|
40
|
+
const observeQuestions = createAnalyticsTransitions(analytics);
|
|
41
|
+
const observeDecisions = createAnalyticsTransitions(analytics);
|
|
42
|
+
$effect(() =>
|
|
43
|
+
observeQuestions(questions, 'open', {
|
|
44
|
+
answered: 'project_question_answered',
|
|
45
|
+
}),
|
|
46
|
+
);
|
|
47
|
+
$effect(() =>
|
|
48
|
+
observeDecisions(decisions, 'open', { decided: 'project_decision_resolved' }),
|
|
49
|
+
);
|
|
35
50
|
|
|
36
51
|
function submitAnswer(event: SubmitEvent, question: ProjectQuestionView) {
|
|
37
52
|
event.preventDefault();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectQuestionsAndDecisions.svelte.d.ts","sourceRoot":"","sources":["../../src/svelte/ProjectQuestionsAndDecisions.svelte.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProjectQuestionsAndDecisions.svelte.d.ts","sourceRoot":"","sources":["../../src/svelte/ProjectQuestionsAndDecisions.svelte.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EACV,2BAA2B,EAC3B,mBAAmB,EACnB,0BAA0B,EAC1B,mBAAmB,EACpB,MAAM,+BAA+B,CAAC;AAGvC,MAAM,WAAW,KAAK;IACpB,8DAA8D;IAC9D,SAAS,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAClC,oEAAoE;IACpE,SAAS,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAClC,oEAAoE;IACpE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,gEAAgE;IAChE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,0BAA0B,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACvE,wEAAwE;IACxE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,2BAA2B,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACzE;AAkKD,QAAA,MAAM,4BAA4B,2CAAwC,CAAC;AAC3E,KAAK,4BAA4B,GAAG,UAAU,CAAC,OAAO,4BAA4B,CAAC,CAAC;AACpF,eAAe,4BAA4B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-projects",
|
|
3
|
-
"version": "0.57.
|
|
3
|
+
"version": "0.57.22",
|
|
4
4
|
"smrtJsdoc": "strict",
|
|
5
5
|
"description": "Provider-agnostic project management models (Issues, PRs, Repositories, Projects) for SMRT framework",
|
|
6
6
|
"type": "module",
|
|
@@ -39,15 +39,15 @@
|
|
|
39
39
|
"@happyvertical/logger": "^0.106.0",
|
|
40
40
|
"@happyvertical/projects": "^0.106.0",
|
|
41
41
|
"@happyvertical/repos": "^0.106.0",
|
|
42
|
-
"@happyvertical/smrt-config": "0.57.
|
|
43
|
-
"@happyvertical/smrt-core": "0.57.
|
|
44
|
-
"@happyvertical/smrt-prompts": "0.57.
|
|
45
|
-
"@happyvertical/smrt-svelte": "0.57.
|
|
46
|
-
"@happyvertical/smrt-subscriptions": "0.57.
|
|
47
|
-
"@happyvertical/smrt-tenancy": "0.57.
|
|
48
|
-
"@happyvertical/smrt-timesheets": "0.57.
|
|
49
|
-
"@happyvertical/smrt-types": "0.57.
|
|
50
|
-
"@happyvertical/smrt-ui": "0.57.
|
|
42
|
+
"@happyvertical/smrt-config": "0.57.22",
|
|
43
|
+
"@happyvertical/smrt-core": "0.57.22",
|
|
44
|
+
"@happyvertical/smrt-prompts": "0.57.22",
|
|
45
|
+
"@happyvertical/smrt-svelte": "0.57.22",
|
|
46
|
+
"@happyvertical/smrt-subscriptions": "0.57.22",
|
|
47
|
+
"@happyvertical/smrt-tenancy": "0.57.22",
|
|
48
|
+
"@happyvertical/smrt-timesheets": "0.57.22",
|
|
49
|
+
"@happyvertical/smrt-types": "0.57.22",
|
|
50
|
+
"@happyvertical/smrt-ui": "0.57.22",
|
|
51
51
|
"@happyvertical/sql": "^0.106.0",
|
|
52
52
|
"@happyvertical/utils": "^0.106.0"
|
|
53
53
|
},
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@happyvertical/smrt-cli": "0.57.
|
|
64
|
-
"@happyvertical/smrt-vitest": "0.57.
|
|
63
|
+
"@happyvertical/smrt-cli": "0.57.22",
|
|
64
|
+
"@happyvertical/smrt-vitest": "0.57.22",
|
|
65
65
|
"@sveltejs/package": "^2.5.8",
|
|
66
66
|
"@sveltejs/vite-plugin-svelte": "^7.3.0",
|
|
67
67
|
"@types/node": "24.13.6",
|