@happyvertical/smrt-projects 0.60.15 → 0.60.17
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/AGENTS.md +3 -1
- package/dist/chunks/{Issue-DgcFTkMw.js → Issue-CaSl5aDc.js} +2 -2
- package/dist/chunks/{Issue-DgcFTkMw.js.map → Issue-CaSl5aDc.js.map} +1 -1
- package/dist/chunks/{PullRequest-CXLB1StU.js → PullRequest-CwT0TlLk.js} +2 -2
- package/dist/chunks/{PullRequest-CXLB1StU.js.map → PullRequest-CwT0TlLk.js.map} +1 -1
- package/dist/collections/Repositories.d.ts +22 -0
- package/dist/collections/Repositories.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +225 -10
- package/dist/index.js.map +1 -1
- package/dist/manifest.json +234 -5
- package/dist/models/Issue.d.ts.map +1 -1
- package/dist/models/Repository.d.ts +56 -1
- package/dist/models/Repository.d.ts.map +1 -1
- package/dist/repository-token.d.ts +18 -0
- package/dist/repository-token.d.ts.map +1 -0
- package/dist/services/index.d.ts +1 -0
- package/dist/services/index.d.ts.map +1 -1
- package/dist/services/repository-organization-sync.d.ts +118 -0
- package/dist/services/repository-organization-sync.d.ts.map +1 -0
- package/dist/smrt-knowledge.json +104 -6
- package/dist/smrt-knowledge.okf.md +2 -2
- package/dist/svelte/AssistanceLauncher.svelte +23 -13
- package/dist/svelte/DeliveryStatus.svelte +23 -13
- package/dist/svelte/DevelopmentBoard.svelte +10 -4
- package/dist/svelte/DevelopmentRequestDetail.svelte +15 -9
- package/dist/svelte/PreviewApprovalPanel.svelte +16 -10
- package/dist/svelte/ProjectBoard.svelte +4 -0
- package/dist/svelte/ProjectInterview.svelte +123 -37
- package/dist/svelte/ProjectQuestionsAndDecisions.svelte +128 -35
- package/dist/svelte/ServiceEvidenceList.svelte +35 -23
- package/dist/svelte/components/ApprovalActions.svelte +15 -13
- package/dist/svelte/components/BulkActions.svelte +40 -37
- package/dist/svelte/components/DevelopmentRequestForm.svelte +37 -6
- package/dist/svelte/components/DevelopmentRequestList.svelte +68 -69
- package/dist/svelte/components/RejectDialog.svelte +54 -45
- package/dist/types.d.ts +2 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +18 -18
package/dist/smrt-knowledge.json
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
"sensitiveFieldsExcluded": true,
|
|
4
4
|
"generatedAt": "1970-01-01T00:00:00.000Z",
|
|
5
5
|
"packageName": "@happyvertical/smrt-projects",
|
|
6
|
-
"packageVersion": "0.60.
|
|
6
|
+
"packageVersion": "0.60.17",
|
|
7
7
|
"sourceManifestPath": "dist/manifest.json",
|
|
8
8
|
"agentDocPath": "AGENTS.md",
|
|
9
9
|
"sourceHashes": {
|
|
10
|
-
"manifest": "
|
|
11
|
-
"packageJson": "
|
|
12
|
-
"agents": "
|
|
10
|
+
"manifest": "0f1b13b2f5202664ca24a34ef8ad0fa67547d355b6f251e6b2fc1fb7df1bd4e6",
|
|
11
|
+
"packageJson": "02bb23be22be64aa0432efc0e2a7233d0729b5048e6dc201214facd00b0fecf9",
|
|
12
|
+
"agents": "cc2f0a3d37e3b77af9cc27e41d7bd47acd0114aaa27aa551eac0ea147e886afe"
|
|
13
13
|
},
|
|
14
14
|
"exports": [
|
|
15
15
|
".",
|
|
@@ -1240,7 +1240,9 @@
|
|
|
1240
1240
|
"findWithGlobals",
|
|
1241
1241
|
"findWithOpenIssues",
|
|
1242
1242
|
"getOrCreate",
|
|
1243
|
-
"
|
|
1243
|
+
"listActive",
|
|
1244
|
+
"syncAll",
|
|
1245
|
+
"syncOrganization"
|
|
1244
1246
|
],
|
|
1245
1247
|
"methodSignatures": [
|
|
1246
1248
|
{
|
|
@@ -1304,6 +1306,14 @@
|
|
|
1304
1306
|
],
|
|
1305
1307
|
"returns": "Promise<Repository>"
|
|
1306
1308
|
},
|
|
1309
|
+
{
|
|
1310
|
+
"name": "listActive",
|
|
1311
|
+
"async": true,
|
|
1312
|
+
"params": [
|
|
1313
|
+
"options?: object"
|
|
1314
|
+
],
|
|
1315
|
+
"returns": "Promise<Repository[]>"
|
|
1316
|
+
},
|
|
1307
1317
|
{
|
|
1308
1318
|
"name": "syncAll",
|
|
1309
1319
|
"async": true,
|
|
@@ -1311,6 +1321,14 @@
|
|
|
1311
1321
|
"options?: object"
|
|
1312
1322
|
],
|
|
1313
1323
|
"returns": "Promise<Repository[]>"
|
|
1324
|
+
},
|
|
1325
|
+
{
|
|
1326
|
+
"name": "syncOrganization",
|
|
1327
|
+
"async": true,
|
|
1328
|
+
"params": [
|
|
1329
|
+
"options: SyncOrganizationOptions"
|
|
1330
|
+
],
|
|
1331
|
+
"returns": "Promise<SyncOrganizationResult>"
|
|
1314
1332
|
}
|
|
1315
1333
|
],
|
|
1316
1334
|
"surfaces": [],
|
|
@@ -1371,12 +1389,26 @@
|
|
|
1371
1389
|
"reason": "not listed in api.include",
|
|
1372
1390
|
"objectName": "@happyvertical/smrt-projects:RepositoryCollection"
|
|
1373
1391
|
},
|
|
1392
|
+
{
|
|
1393
|
+
"kind": "api",
|
|
1394
|
+
"operation": "listActive",
|
|
1395
|
+
"code": "not-included",
|
|
1396
|
+
"reason": "not listed in api.include",
|
|
1397
|
+
"objectName": "@happyvertical/smrt-projects:RepositoryCollection"
|
|
1398
|
+
},
|
|
1374
1399
|
{
|
|
1375
1400
|
"kind": "api",
|
|
1376
1401
|
"operation": "syncAll",
|
|
1377
1402
|
"code": "not-included",
|
|
1378
1403
|
"reason": "not listed in api.include",
|
|
1379
1404
|
"objectName": "@happyvertical/smrt-projects:RepositoryCollection"
|
|
1405
|
+
},
|
|
1406
|
+
{
|
|
1407
|
+
"kind": "api",
|
|
1408
|
+
"operation": "syncOrganization",
|
|
1409
|
+
"code": "not-included",
|
|
1410
|
+
"reason": "not listed in api.include",
|
|
1411
|
+
"objectName": "@happyvertical/smrt-projects:RepositoryCollection"
|
|
1380
1412
|
}
|
|
1381
1413
|
],
|
|
1382
1414
|
"relationshipFeatures": [
|
|
@@ -4819,6 +4851,72 @@
|
|
|
4819
4851
|
"type": "datetime",
|
|
4820
4852
|
"required": false,
|
|
4821
4853
|
"columnType": "TIMESTAMP"
|
|
4854
|
+
},
|
|
4855
|
+
{
|
|
4856
|
+
"name": "url",
|
|
4857
|
+
"type": "text",
|
|
4858
|
+
"required": false,
|
|
4859
|
+
"columnType": "TEXT",
|
|
4860
|
+
"default": ""
|
|
4861
|
+
},
|
|
4862
|
+
{
|
|
4863
|
+
"name": "archived",
|
|
4864
|
+
"type": "boolean",
|
|
4865
|
+
"required": false,
|
|
4866
|
+
"columnType": "BOOLEAN",
|
|
4867
|
+
"default": false
|
|
4868
|
+
},
|
|
4869
|
+
{
|
|
4870
|
+
"name": "lastPushedAt",
|
|
4871
|
+
"type": "datetime",
|
|
4872
|
+
"required": false,
|
|
4873
|
+
"columnType": "TIMESTAMP"
|
|
4874
|
+
},
|
|
4875
|
+
{
|
|
4876
|
+
"name": "openPullRequestCount",
|
|
4877
|
+
"type": "integer",
|
|
4878
|
+
"required": false,
|
|
4879
|
+
"columnType": "INTEGER",
|
|
4880
|
+
"default": 0
|
|
4881
|
+
},
|
|
4882
|
+
{
|
|
4883
|
+
"name": "ciState",
|
|
4884
|
+
"type": "text",
|
|
4885
|
+
"required": false,
|
|
4886
|
+
"columnType": "TEXT",
|
|
4887
|
+
"default": "unknown"
|
|
4888
|
+
},
|
|
4889
|
+
{
|
|
4890
|
+
"name": "latestReleaseTag",
|
|
4891
|
+
"type": "text",
|
|
4892
|
+
"required": false,
|
|
4893
|
+
"columnType": "TEXT",
|
|
4894
|
+
"default": ""
|
|
4895
|
+
},
|
|
4896
|
+
{
|
|
4897
|
+
"name": "latestReleaseDate",
|
|
4898
|
+
"type": "datetime",
|
|
4899
|
+
"required": false,
|
|
4900
|
+
"columnType": "TIMESTAMP"
|
|
4901
|
+
},
|
|
4902
|
+
{
|
|
4903
|
+
"name": "latestReleaseUrl",
|
|
4904
|
+
"type": "text",
|
|
4905
|
+
"required": false,
|
|
4906
|
+
"columnType": "TEXT",
|
|
4907
|
+
"default": ""
|
|
4908
|
+
},
|
|
4909
|
+
{
|
|
4910
|
+
"name": "lastObservedAt",
|
|
4911
|
+
"type": "datetime",
|
|
4912
|
+
"required": false,
|
|
4913
|
+
"columnType": "TIMESTAMP"
|
|
4914
|
+
},
|
|
4915
|
+
{
|
|
4916
|
+
"name": "missingSince",
|
|
4917
|
+
"type": "datetime",
|
|
4918
|
+
"required": false,
|
|
4919
|
+
"columnType": "TIMESTAMP"
|
|
4822
4920
|
}
|
|
4823
4921
|
],
|
|
4824
4922
|
"relationships": [],
|
|
@@ -6195,7 +6293,7 @@
|
|
|
6195
6293
|
"polymorphicAssociations": 4,
|
|
6196
6294
|
"uuidColumns": 103
|
|
6197
6295
|
},
|
|
6198
|
-
"agentDoc": "# @happyvertical/smrt-projects\n\nProvider-agnostic project management plus the managed-application delivery\ncontrol plane. Repository and board providers remain canonical; managed apps\nonly receive scoped Project Integration credentials and provider-neutral\nrequest/delivery projections.\n\n## Managed application delivery (#1949)\n\n- `ProjectIntegration` stores capability grants and a sensitive credential\n hash; the raw credential is returned once by\n `ProjectIntegrationCollection.provision()`/`rotate()` and is never persisted.\n Provisioning, rotation, and revocation are append-only audited.\n- The stable requester identity is supplied when authenticating\n `ManagedProjectClient`; request reads are always restricted to that requester\n and integration.\n- `DevelopmentRequest` preserves evidence, origin, discussion, visibility, and\n lifecycle history. `ManagedProjectClient` owns managed intake and\n `DevelopmentRequestService` adds internal triage and work projection.\n- `DevelopmentRequestWorkLink` connects zero-to-many provider-neutral work\n items. Canonical status stays on the link and drives request lifecycle\n projection without granting the managed app provider credentials.\n- `ProjectDeliveryEvent` is idempotent per integration key and sequenced for\n replay. Preview decisions flow through the control-plane adapter, never\n directly to repository providers.\n- `AssistanceRequest` preserves conversational intake before lossless routing\n to Support, Development, or both. `smrt-support` supplies the concrete\n `ProjectAssistanceSupportAdapter`.\n- `ManagedProjectClient` deliberately exposes no repository or board client;\n delivery and assistance use separate capability-gated service facades.\n\n## Shared Professional Service evidence (#1955, #3288)\n\n`ServiceTimeEntry`, `ServiceChargeSnapshot`, `ServiceCompensationSnapshot`,\ntheir collections, and `ServiceEvidenceService` are owned by\n`@happyvertical/smrt-timesheets` (#3288) and **re-exported** here unchanged,\non the unchanged `service_time_entries` / snapshot tables. Do not reintroduce\na projects subclass: a third same-named class on the table breaks the\nsingle-table-family resolution (see `packages/timesheets/AGENTS.md`).\n`caseId` / `specialistId` exist only on smrt-support's subtype;\n`SubscriptionServiceCommercialResolver` reads them duck-typed when a support\nentry is priced. It prices client work through `smrt-subscriptions` (#1925);\nprovider compensation remains a separate resolver and snapshot. The\ntime-entry Svelte components are re-exported from smrt-timesheets too. See\n`SERVICE_TIME_MIGRATION.md`.\n\n## Models\n\n| Model | Key Fields | Notes |\n|-------|-----------|-------|\n| **Repository** | `owner`, `name`, `providerType`, `tokenConfigKey` | `sync()`, `getIssues()`, `getPullRequests()
|
|
6296
|
+
"agentDoc": "# @happyvertical/smrt-projects\n\nProvider-agnostic project management plus the managed-application delivery\ncontrol plane. Repository and board providers remain canonical; managed apps\nonly receive scoped Project Integration credentials and provider-neutral\nrequest/delivery projections.\n\n## Managed application delivery (#1949)\n\n- `ProjectIntegration` stores capability grants and a sensitive credential\n hash; the raw credential is returned once by\n `ProjectIntegrationCollection.provision()`/`rotate()` and is never persisted.\n Provisioning, rotation, and revocation are append-only audited.\n- The stable requester identity is supplied when authenticating\n `ManagedProjectClient`; request reads are always restricted to that requester\n and integration.\n- `DevelopmentRequest` preserves evidence, origin, discussion, visibility, and\n lifecycle history. `ManagedProjectClient` owns managed intake and\n `DevelopmentRequestService` adds internal triage and work projection.\n- `DevelopmentRequestWorkLink` connects zero-to-many provider-neutral work\n items. Canonical status stays on the link and drives request lifecycle\n projection without granting the managed app provider credentials.\n- `ProjectDeliveryEvent` is idempotent per integration key and sequenced for\n replay. Preview decisions flow through the control-plane adapter, never\n directly to repository providers.\n- `AssistanceRequest` preserves conversational intake before lossless routing\n to Support, Development, or both. `smrt-support` supplies the concrete\n `ProjectAssistanceSupportAdapter`.\n- `ManagedProjectClient` deliberately exposes no repository or board client;\n delivery and assistance use separate capability-gated service facades.\n\n## Shared Professional Service evidence (#1955, #3288)\n\n`ServiceTimeEntry`, `ServiceChargeSnapshot`, `ServiceCompensationSnapshot`,\ntheir collections, and `ServiceEvidenceService` are owned by\n`@happyvertical/smrt-timesheets` (#3288) and **re-exported** here unchanged,\non the unchanged `service_time_entries` / snapshot tables. Do not reintroduce\na projects subclass: a third same-named class on the table breaks the\nsingle-table-family resolution (see `packages/timesheets/AGENTS.md`).\n`caseId` / `specialistId` exist only on smrt-support's subtype;\n`SubscriptionServiceCommercialResolver` reads them duck-typed when a support\nentry is priced. It prices client work through `smrt-subscriptions` (#1925);\nprovider compensation remains a separate resolver and snapshot. The\ntime-entry Svelte components are re-exported from smrt-timesheets too. See\n`SERVICE_TIME_MIGRATION.md`.\n\n## Models\n\n| Model | Key Fields | Notes |\n|-------|-----------|-------|\n| **Repository** | `owner`, `name`, `providerType`, `tokenConfigKey`, `archived`, `lastPushedAt`, `openPullRequestCount`, `ciState`, `latestReleaseTag/Date/Url`, `lastObservedAt`, `missingSince` | `sync()`, `getIssues()`, `getPullRequests()`. Unique per (tenant, provider, owner, name); independent of any project |\n| **Issue** | `repositoryId` (optional FK), `projectId` (optional FK), `number`, `title`, `body`, `state`, `labels[]` | `incorporateFeedback()`, `rollback()`, `suggestLabels()` |\n| **PullRequest** | extends Issue + `headRef`, `baseRef`, `merged`, `draft` | STI on Issue table. `summarize()`, `merge()` |\n| **Project** | `projectId`, `title`, `statuses[]`, `statusFieldId` | GitHub Projects V2. `addItem()`, `moveItem()`, `analyzeHealth()` |\n| **ProjectQuestion** | polymorphic project target, `prompt`, `answer`, owner, `status`, `revision` | Owner question lifecycle; mutate through `ProjectGovernanceService`. |\n| **ProjectDecision** | polymorphic project target, options, `outcome`, `rationale`, owner, `status`, `revision` | Project choice lifecycle; mutate through `ProjectGovernanceService`. |\n| **ProjectGovernanceEvent** | question/decision target, actor, action, status, revision | Immutable lifecycle history. |\n| **Comment** | `issueId` (FK), `body`, `authorLogin` | AI analysis support |\n| **Label** | `repositoryId` (optional FK), `projectId` (optional FK), `name`, `color` | Scope: repository, project, or neither |\n\n## Key Patterns\n\n- **Organization sync (#4905)**: `RepositoryCollection.syncOrganization({ owner, tokenConfigKey, tenantId?, force?, throttleMs?, lister? })` lists the owner through `@happyvertical/repos` `listOrganizationRepositories` (needs >= 0.111.11), upserts one `Repository` per listed repo, sets `archived` and the activity snapshot (`lastPushedAt`, `openPullRequestCount`, `ciState` of the default-branch head, `latestRelease*`), and sets `missingSince` on same-owner rows no longer listed (cleared if they return; an empty listing withholds vanish detection). Throttled by the newest `lastObservedAt` (`SYNC_THROTTLE_MS`); `force` bypasses. Opens no transaction, so a failed run leaves earlier rows saved and a rerun converges. Works with a read-only token named by `tokenConfigKey`; run it from a scheduled job. `listActive()` hides archived and missing rows. Repositories outside the org are added with `getOrCreate(owner, name)` and are never touched by another owner's sync. The default `lister` is injectable; tests stub it. Project links (H2) attach by repository id and must not change the unique key. Scope: the ambient tenant (or `tenantId`); with no tenant context only null-tenant rows are touched. `lastObservedAt` is stamped only when a pass completes. Owner/name match case-insensitively. Migration: `db:migrate` adds the columns and a unique index `repositories_tenant_provider_owner_name_key`; databases that already hold duplicate (tenant, provider, owner, name) rows must dedupe them first or the index fails. NULL-tenant rows are not DB-unique (SQL NULL semantics); the service dedupes them.\n\n- **Repository is optional (project-native issues)**: an Issue/Label may carry only a `projectId`. `issue.hasRepository()` gates every provider call: `sync()` is a no-op, `close/addLabels/removeLabel/assign/addComment/rollback/incorporateFeedback(apply)` change local state only, `getComments()` reads stored `Comment` rows, `getRepository()` throws, `getUrl()` returns `''`. No unique key spans `repositoryId`+`number` (lookups only), so NULL repositories need no partial index. Schema change adds `issues.project_id`/`labels.project_id` and relaxes `repository_id` to nullable on both; `db:migrate` generates it from the manifest.\n\n- **Token config reference**: stores env var name (`tokenConfigKey: 'GITHUB_TOKEN'`), not the token itself. Resolved at runtime from `process.env` or `getModuleConfig()`\n- **Living spec** (`incorporateFeedback()`): AI synthesizes issue comments into updated body. Supports preview mode and `rollback()`. Prompt `projects.issue.incorporateFeedback` declares tier `great` (persisted synthesis, #4755 rule in `../prompts/AGENTS.md`); `do()` binds it, while a configured same-named profile's provider path runs that profile instead\n- **Provider-agnostic**: GitHub primary, GitLab/Bitbucket/Azure planned. Uses `@happyvertical/repos` and `@happyvertical/projects` SDK packages\n- **PullRequest is STI on Issue**: shares table, discriminated by `_meta_type`\n\n## Collection Methods\n\nAll collections provide: `discover({ repository, filters })`, `findByRepository(repoId)`, `findOpen(repoId?)`, `batchSync(repository)`.\n\n## Gotchas\n\n- **Money is integer minor units** (cents) — `$19.99` is `1999`.\n `ServiceChargeSnapshot.amount` and `ServiceCompensationSnapshot.amount`\n (declared in smrt-timesheets)\n initialize `= 0`, never `= 0.0`: the integer literal is what maps them to\n INTEGER columns (BIGINT on fresh PostgreSQL/DuckDB databases; #2401, #2373). The two convert as a pair — the delivery margin is\n `charge - compensation`, an exact integer subtraction with no tolerance —\n and both are fed verbatim by `CommercialSnapshot.amount`, so a resolver that\n returns major units is wrong on every engine: snapshot `save()` refuses a\n fractional value (`19.99`) on SQLite and PostgreSQL alike, but a whole\n major-unit value (`150` for $150.00) is a valid integer and is stored\n 100× too small. `pnpm --filter @happyvertical/smrt-timesheets\n test:postgres` is the lane that holds the line (moved with the snapshots in\n #3288).\n- **UI formats by dividing, never by `toFixed`**: `formatCurrency()` and\n `ServiceEvidenceList`'s `money()` scale back to major units using the\n currency's own minor-unit exponent, so zero-decimal currencies (JPY, KRW) are\n not divided.\n- **Migrating an existing database**: `preflightProjectsMoneyMinorUnits(db)`\n reports which columns still hold major units and which rows would be rounded\n or exceed JavaScript's safe-integer range; `migrateProjectsMoneyToMinorUnits(db)` converts them\n (idempotent via `_smrt_backfills`). On SQLite the values are rescaled but the\n declared type needs the table-rebuild path (#2370). Fresh PostgreSQL/DuckDB\n INTEGER columns are BIGINT and hydration rejects values outside JavaScript's\n safe-integer range; existing PostgreSQL `int4` columns require #2424.\n- **SDK dependency**: requires `@happyvertical/repos` and `@happyvertical/projects` from SDK\n- **tokenConfigKey not tokenValue**: never store actual tokens in the database\n- **synthesisCount tracks incorporateFeedback calls**: incremented on each apply\n",
|
|
6199
6297
|
"recipes": [
|
|
6200
6298
|
{
|
|
6201
6299
|
"id": "projects.tracker",
|
|
@@ -5,10 +5,10 @@ description: "Provider-agnostic project management models (Issues, PRs, Reposito
|
|
|
5
5
|
status: "stable"
|
|
6
6
|
generated:
|
|
7
7
|
by: "smrt/scripts/generate-knowledge-okf.ts"
|
|
8
|
-
at: "2026-11-
|
|
8
|
+
at: "2026-11-10T23:37:37Z"
|
|
9
9
|
audience: "internal"
|
|
10
10
|
evidence_level: "source-inspected"
|
|
11
|
-
source_revision: "sha256:
|
|
11
|
+
source_revision: "sha256:45cda087530f33b674181e8fb95d6811325859b6d11e54b12f1fa754ee774306"
|
|
12
12
|
sources:
|
|
13
13
|
- id: "manifest"
|
|
14
14
|
resource: "https://github.com/happyvertical/smrt/blob/main/packages/projects/package.json"
|
|
@@ -47,7 +47,7 @@ async function submit(event: SubmitEvent) {
|
|
|
47
47
|
}
|
|
48
48
|
</script>
|
|
49
49
|
|
|
50
|
-
<section class="assistance" data-smrt-component="AssistanceLauncher">
|
|
50
|
+
<section class="smrt-assistance-launcher__root" data-smrt-component="AssistanceLauncher">
|
|
51
51
|
<Form onsubmit={submit}>
|
|
52
52
|
<header>
|
|
53
53
|
<h2>{t(M['projects.assistance.title'])}</h2>
|
|
@@ -71,34 +71,44 @@ async function submit(event: SubmitEvent) {
|
|
|
71
71
|
|
|
72
72
|
<style>
|
|
73
73
|
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
74
|
-
@layer smrt.
|
|
75
|
-
.assistance {
|
|
74
|
+
@layer smrt.structure {
|
|
75
|
+
.smrt-assistance-launcher__root {
|
|
76
76
|
max-width: 42rem;
|
|
77
77
|
}
|
|
78
|
-
.assistance :global(form) {
|
|
78
|
+
.smrt-assistance-launcher__root :global(form) {
|
|
79
79
|
display: grid;
|
|
80
80
|
gap: var(--smrt-spacing-4);
|
|
81
81
|
}
|
|
82
|
-
.assistance header {
|
|
83
|
-
border-bottom: var(--smrt-hairline);
|
|
82
|
+
.smrt-assistance-launcher__root header {
|
|
84
83
|
padding-bottom: var(--smrt-spacing-3);
|
|
85
84
|
}
|
|
86
|
-
.assistance h2,
|
|
87
|
-
.assistance p {
|
|
85
|
+
.smrt-assistance-launcher__root h2,
|
|
86
|
+
.smrt-assistance-launcher__root p {
|
|
88
87
|
margin: 0;
|
|
89
88
|
}
|
|
90
|
-
.assistance p {
|
|
91
|
-
color: var(--smrt-color-on-surface-variant);
|
|
89
|
+
.smrt-assistance-launcher__root p {
|
|
92
90
|
margin-top: var(--smrt-spacing-1);
|
|
93
91
|
}
|
|
94
|
-
.assistance label {
|
|
92
|
+
.smrt-assistance-launcher__root label {
|
|
95
93
|
display: grid;
|
|
96
|
-
font-weight: 600;
|
|
97
94
|
gap: var(--smrt-spacing-1);
|
|
98
95
|
}
|
|
99
|
-
.assistance footer {
|
|
96
|
+
.smrt-assistance-launcher__root footer {
|
|
100
97
|
display: flex;
|
|
101
98
|
justify-content: flex-end;
|
|
102
99
|
}
|
|
103
100
|
}
|
|
101
|
+
|
|
102
|
+
@layer smrt.theme {
|
|
103
|
+
.smrt-assistance-launcher__root header {
|
|
104
|
+
border-bottom: var(--smrt-hairline);
|
|
105
|
+
}
|
|
106
|
+
.smrt-assistance-launcher__root p {
|
|
107
|
+
color: var(--smrt-color-on-surface-variant);
|
|
108
|
+
}
|
|
109
|
+
.smrt-assistance-launcher__root label {
|
|
110
|
+
font-weight: 600;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
104
114
|
</style>
|
|
@@ -17,10 +17,10 @@ const format = (value: Date | string) =>
|
|
|
17
17
|
}).format(new Date(value));
|
|
18
18
|
</script>
|
|
19
19
|
|
|
20
|
-
<ol class="delivery" aria-label={t(M['projects.delivery_status.aria'])} data-smrt-component="DeliveryStatus">
|
|
20
|
+
<ol class="smrt-delivery-status__root" aria-label={t(M['projects.delivery_status.aria'])} data-smrt-component="DeliveryStatus">
|
|
21
21
|
{#each [...events].sort((a, b) => a.sequence - b.sequence) as event (event.id)}
|
|
22
22
|
<li>
|
|
23
|
-
<span class="marker" aria-hidden="true"></span>
|
|
23
|
+
<span class="smrt-delivery-status__marker" data-smrt-part="marker" aria-hidden="true"></span>
|
|
24
24
|
<div>
|
|
25
25
|
<strong>{event.label ?? event.type.replaceAll('_', ' ')}</strong>
|
|
26
26
|
{#if event.detail}<p>{event.detail}</p>{/if}
|
|
@@ -34,42 +34,52 @@ const format = (value: Date | string) =>
|
|
|
34
34
|
|
|
35
35
|
<style>
|
|
36
36
|
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
37
|
-
@layer smrt.
|
|
38
|
-
.delivery {
|
|
37
|
+
@layer smrt.structure {
|
|
38
|
+
.smrt-delivery-status__root {
|
|
39
39
|
list-style: none;
|
|
40
40
|
margin: 0;
|
|
41
41
|
padding: 0;
|
|
42
42
|
}
|
|
43
|
-
.delivery li {
|
|
43
|
+
.smrt-delivery-status__root li {
|
|
44
44
|
display: grid;
|
|
45
45
|
gap: var(--smrt-spacing-3);
|
|
46
46
|
grid-template-columns: 1rem 1fr;
|
|
47
47
|
padding-bottom: var(--smrt-spacing-5);
|
|
48
48
|
position: relative;
|
|
49
49
|
}
|
|
50
|
-
.delivery li:not(:last-child)::before {
|
|
51
|
-
background: var(--smrt-color-outline-variant);
|
|
52
|
-
content: '';
|
|
50
|
+
.smrt-delivery-status__root li:not(:last-child)::before {
|
|
53
51
|
height: 100%;
|
|
54
52
|
left: 0.35rem;
|
|
55
53
|
position: absolute;
|
|
56
54
|
top: 0.65rem;
|
|
57
55
|
width: 1px;
|
|
58
56
|
}
|
|
59
|
-
.
|
|
60
|
-
background: var(--smrt-color-primary);
|
|
61
|
-
border-radius: var(--smrt-radius-full);
|
|
57
|
+
.smrt-delivery-status__marker {
|
|
62
58
|
height: 0.7rem;
|
|
63
59
|
margin-top: var(--smrt-spacing-1);
|
|
64
60
|
width: 0.7rem;
|
|
65
61
|
z-index: 1;
|
|
66
62
|
}
|
|
67
|
-
.delivery p {
|
|
63
|
+
.smrt-delivery-status__root p {
|
|
68
64
|
margin: var(--smrt-spacing-1) 0;
|
|
69
65
|
}
|
|
70
|
-
.delivery
|
|
66
|
+
.smrt-delivery-status__root li:not(:last-child)::before {
|
|
67
|
+
content: '';
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@layer smrt.theme {
|
|
72
|
+
.smrt-delivery-status__root li:not(:last-child)::before {
|
|
73
|
+
background: var(--smrt-color-outline-variant);
|
|
74
|
+
}
|
|
75
|
+
.smrt-delivery-status__marker {
|
|
76
|
+
background: var(--smrt-color-primary);
|
|
77
|
+
border-radius: var(--smrt-radius-full);
|
|
78
|
+
}
|
|
79
|
+
.smrt-delivery-status__root time {
|
|
71
80
|
color: var(--smrt-color-on-surface-variant);
|
|
72
81
|
font-size: var(--smrt-typography-label-small-size);
|
|
73
82
|
}
|
|
74
83
|
}
|
|
84
|
+
|
|
75
85
|
</style>
|
|
@@ -47,7 +47,7 @@ const cardLabel = (card: DevelopmentBoardCard) =>
|
|
|
47
47
|
|
|
48
48
|
{#if requests.length === 0}
|
|
49
49
|
<section
|
|
50
|
-
class="
|
|
50
|
+
class="smrt-development-board__root"
|
|
51
51
|
aria-label={t(M['projects.development_board.aria'])} data-smrt-component="DevelopmentBoard"
|
|
52
52
|
>
|
|
53
53
|
<p>{t(M['projects.development_board.empty'])}</p>
|
|
@@ -76,14 +76,20 @@ const cardLabel = (card: DevelopmentBoardCard) =>
|
|
|
76
76
|
|
|
77
77
|
<style>
|
|
78
78
|
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
79
|
-
@layer smrt.
|
|
80
|
-
.
|
|
81
|
-
color: var(--smrt-color-on-surface-variant);
|
|
79
|
+
@layer smrt.structure {
|
|
80
|
+
.smrt-development-board__root {
|
|
82
81
|
margin: 0;
|
|
83
82
|
padding: var(--smrt-spacing-5) var(--smrt-spacing-1);
|
|
84
83
|
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@layer smrt.theme {
|
|
87
|
+
.smrt-development-board__root {
|
|
88
|
+
color: var(--smrt-color-on-surface-variant);
|
|
89
|
+
}
|
|
85
90
|
small {
|
|
86
91
|
color: var(--smrt-color-on-surface-variant);
|
|
87
92
|
}
|
|
88
93
|
}
|
|
94
|
+
|
|
89
95
|
</style>
|
|
@@ -19,7 +19,7 @@ const { t } = useI18n();
|
|
|
19
19
|
</script>
|
|
20
20
|
|
|
21
21
|
<article
|
|
22
|
-
class="
|
|
22
|
+
class="smrt-development-request-detail__root"
|
|
23
23
|
aria-label={t(M['projects.development_request.detail_aria'])} data-smrt-component="DevelopmentRequestDetail"
|
|
24
24
|
>
|
|
25
25
|
<header>
|
|
@@ -56,14 +56,13 @@ const { t } = useI18n();
|
|
|
56
56
|
|
|
57
57
|
<style>
|
|
58
58
|
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
59
|
-
@layer smrt.
|
|
60
|
-
.
|
|
59
|
+
@layer smrt.structure {
|
|
60
|
+
.smrt-development-request-detail__root {
|
|
61
61
|
display: grid;
|
|
62
62
|
gap: var(--smrt-spacing-5);
|
|
63
63
|
}
|
|
64
64
|
header {
|
|
65
65
|
align-items: start;
|
|
66
|
-
border-bottom: var(--smrt-hairline);
|
|
67
66
|
display: flex;
|
|
68
67
|
gap: var(--smrt-spacing-5);
|
|
69
68
|
justify-content: space-between;
|
|
@@ -73,11 +72,6 @@ const { t } = useI18n();
|
|
|
73
72
|
display: grid;
|
|
74
73
|
gap: var(--smrt-spacing-1);
|
|
75
74
|
}
|
|
76
|
-
header span,
|
|
77
|
-
dt {
|
|
78
|
-
color: var(--smrt-color-on-surface-variant);
|
|
79
|
-
font-size: var(--smrt-typography-label-medium-size);
|
|
80
|
-
}
|
|
81
75
|
h2,
|
|
82
76
|
p,
|
|
83
77
|
dl,
|
|
@@ -94,4 +88,16 @@ const { t } = useI18n();
|
|
|
94
88
|
gap: var(--smrt-spacing-1);
|
|
95
89
|
}
|
|
96
90
|
}
|
|
91
|
+
|
|
92
|
+
@layer smrt.theme {
|
|
93
|
+
header {
|
|
94
|
+
border-bottom: var(--smrt-hairline);
|
|
95
|
+
}
|
|
96
|
+
header span,
|
|
97
|
+
dt {
|
|
98
|
+
color: var(--smrt-color-on-surface-variant);
|
|
99
|
+
font-size: var(--smrt-typography-label-medium-size);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
97
103
|
</style>
|
|
@@ -29,7 +29,7 @@ $effect(() =>
|
|
|
29
29
|
);
|
|
30
30
|
</script>
|
|
31
31
|
|
|
32
|
-
<section class="preview" data-smrt-component="PreviewApprovalPanel">
|
|
32
|
+
<section class="smrt-preview-approval-panel__root" data-smrt-component="PreviewApprovalPanel">
|
|
33
33
|
<div>
|
|
34
34
|
<span>{t(M['projects.preview.label'], { id: preview.previewId })}</span>
|
|
35
35
|
<strong>{preview.status}</strong>
|
|
@@ -57,25 +57,31 @@ $effect(() =>
|
|
|
57
57
|
|
|
58
58
|
<style>
|
|
59
59
|
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
60
|
-
@layer smrt.
|
|
61
|
-
.preview {
|
|
62
|
-
border-block: var(--smrt-hairline);
|
|
60
|
+
@layer smrt.structure {
|
|
61
|
+
.smrt-preview-approval-panel__root {
|
|
63
62
|
display: grid;
|
|
64
63
|
gap: var(--smrt-spacing-4);
|
|
65
64
|
padding: var(--smrt-spacing-4) 0;
|
|
66
65
|
}
|
|
67
|
-
.preview > div {
|
|
66
|
+
.smrt-preview-approval-panel__root > div {
|
|
68
67
|
display: flex;
|
|
69
68
|
justify-content: space-between;
|
|
70
69
|
}
|
|
71
|
-
.preview
|
|
72
|
-
color: var(--smrt-color-primary);
|
|
73
|
-
font-weight: 600;
|
|
74
|
-
}
|
|
75
|
-
.preview footer {
|
|
70
|
+
.smrt-preview-approval-panel__root footer {
|
|
76
71
|
display: flex;
|
|
77
72
|
gap: var(--smrt-spacing-3);
|
|
78
73
|
justify-content: flex-end;
|
|
79
74
|
}
|
|
80
75
|
}
|
|
76
|
+
|
|
77
|
+
@layer smrt.theme {
|
|
78
|
+
.smrt-preview-approval-panel__root {
|
|
79
|
+
border-block: var(--smrt-hairline);
|
|
80
|
+
}
|
|
81
|
+
.smrt-preview-approval-panel__root a {
|
|
82
|
+
color: var(--smrt-color-primary);
|
|
83
|
+
font-weight: 600;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
81
87
|
</style>
|
|
@@ -152,9 +152,13 @@ function cardLabel(card: ProjectBoardCard): string {
|
|
|
152
152
|
|
|
153
153
|
<style>
|
|
154
154
|
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
155
|
+
@layer smrt.structure {
|
|
156
|
+
}
|
|
157
|
+
|
|
155
158
|
@layer smrt.theme {
|
|
156
159
|
small {
|
|
157
160
|
color: var(--smrt-color-on-surface-variant);
|
|
158
161
|
}
|
|
159
162
|
}
|
|
163
|
+
|
|
160
164
|
</style>
|