@crombolo/backoffice-host 0.63.0 → 0.64.0

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.
@@ -20,75 +20,79 @@ export const CARDS = {
20
20
  'Crombolo.Dashboard.ContentSettings': {
21
21
  group: 'Site',
22
22
  title: 'Content settings',
23
- description: 'Page URLs, the redirects from old ones, and how items relate to each other.',
23
+ description: 'Page URL settings, redirects, and content relations',
24
24
  },
25
25
  'Crombolo.Dashboard.Seo': {
26
26
  group: 'Site',
27
27
  title: 'Search',
28
- description:
29
- 'What pages say in search results and when shared, the robots file, and the search indexes.',
28
+ description: 'Site and page search index settings',
30
29
  },
31
30
  'Umb.MenuItem.Webhook': {
32
31
  group: 'Site',
33
32
  title: 'Webhooks',
34
- description: 'Tell other systems when content changes.',
33
+ description: 'Tell other systems when content changes',
34
+ },
35
+ 'Crombolo.Dashboard.Email': {
36
+ group: 'Site',
37
+ title: 'E-mail',
38
+ description: 'The site email provider settings',
35
39
  },
36
40
  'Umb.MenuItem.LogViewer': {
37
41
  group: 'Site',
38
42
  title: 'Logs',
39
- description: 'Search and read what the server has logged.',
43
+ description: 'Search and read what the server has logged',
40
44
  },
41
45
  'Crombolo.Dashboard.BackgroundJobs': {
42
46
  group: 'Site',
43
47
  title: 'Background jobs',
44
- description: 'Scheduled and queued work, how far each got, and running a failed one again.',
48
+ description: 'View scheduled and queued tasks',
45
49
  },
46
50
  'Umb.Dashboard.HealthCheck': {
47
51
  group: 'Health',
48
- title: 'Health check',
49
- description: "Checks on the site's setup and data, with a fix where there is one.",
52
+ title: 'Service status',
53
+ description: 'Run site service health checks',
50
54
  },
51
55
  'Umb.Dashboard.PublishedStatus': {
52
56
  group: 'Health',
53
- title: 'Published status',
54
- description: 'The published cache visitors are served from, and rebuilding it.',
57
+ title: 'Caching',
58
+ description: 'The published cache visitors are served from, and rebuilding it',
55
59
  },
56
60
  'Crombolo.Dashboard.Changes': {
57
61
  group: 'History',
58
62
  title: 'Changes',
59
- description: 'What an upgrade or an arriving bundle needs from you, and what is resolved.',
63
+ description: 'View or approve system changes',
60
64
  },
61
65
  'Crombolo.Dashboard.AuditLog': {
62
66
  group: 'History',
63
67
  title: 'Audit log',
64
- description: 'Who did what, when and from where.',
68
+ description: 'Who did what, when and from where',
65
69
  },
66
70
  // Story 238: a developer's view of what is loaded, apart from installing bundles.
67
71
  'Umb.MenuItem.Extensions': {
68
72
  group: 'Developers',
69
73
  title: 'Extension insights',
70
- description: 'What the back office has loaded, and from which extension.',
74
+ description: 'What the back office has loaded, and from which extension',
71
75
  },
72
76
  'Crombolo.Dashboard.CiAccess': {
73
77
  group: 'Developers',
74
- title: 'CI access',
75
- description: 'The CI jobs that may pull and push here without a person, and what each may do.',
78
+ title: 'Deployment pipelines',
79
+ description: 'The deployment pipelines trusted to deploy to this site',
76
80
  },
77
81
  'Crombolo.Dashboard.TrustedSigners': {
78
82
  group: 'Developers',
79
83
  title: 'Trusted signers',
80
84
  description:
81
- 'The keys and builds whose site bundles this site applies: yours, other sites, and CI.',
85
+ 'The keys and builds whose site bundles this site applies: yours, other sites, and CI',
82
86
  },
83
- 'Umb.Dashboard.ModelsBuilder': {
87
+ 'Crombolo.Dashboard.Schema': {
84
88
  group: 'Developers',
85
- title: 'Types for code',
86
- description: 'The TypeScript types written from the schema, and whether they are out of date.',
89
+ title: 'Schema',
90
+ description: 'Import or export the model data types',
87
91
  },
88
92
  'Crombolo.Dashboard.Bundles': {
89
93
  group: 'Extensions',
90
94
  title: 'Extensions',
91
- description: 'Find, install and build extensions: what they add, and turning them off.',
95
+ description: 'Find, install and build extensions',
92
96
  },
93
97
  }
94
98
 
@@ -144,7 +148,7 @@ export function settingsCards({ dashboards = [], advanced = [] }) {
144
148
  group: card.bundle?.name ?? 'Other',
145
149
  bundle: card.bundle,
146
150
  title: card.label ?? card.alias,
147
- description: card.description,
151
+ description: card.description?.replace(/\.$/, ''),
148
152
  }
149
153
  })
150
154
  .sort((a, b) => rank(order, a.alias) - rank(order, b.alias))
@@ -34,6 +34,7 @@ import './breadcrumb.js'
34
34
  import './settings-title.js'
35
35
  import { readOnlyWords } from './definition-tree-model.js'
36
36
  import './settings-card.js'
37
+ import { needsAttention } from './email-settings-words.js'
37
38
 
38
39
  const base = () =>
39
40
  (document.querySelector('base')?.getAttribute('href') ?? '/umbraco/').replace(/\/$/, '')
@@ -420,7 +421,7 @@ export class CromboloSettingsSectionElement extends UmbLitElement {
420
421
  ]
421
422
  }
422
423
 
423
- /** The landing page: a box of cards per group, and e-mail when it is not set up. */
424
+ /** The landing page: a box of cards per group, E-mail's marked while it is not set up. */
424
425
  export class CromboloSettingsLandingElement extends UmbLitElement {
425
426
  static properties = { groups: { attribute: false }, _email: { state: true } }
426
427
 
@@ -435,32 +436,8 @@ export class CromboloSettingsLandingElement extends UmbLitElement {
435
436
  )
436
437
  }
437
438
 
438
- #email() {
439
- const status = this._email
440
- if (!status || status.available) return nothing
441
- return html`<details class="banner" role="status">
442
- <summary>
443
- <uui-icon name="icon-alert"></uui-icon>
444
- <strong>E-mail is not set up.</strong>
445
- <uui-icon class="chevron" name="icon-navigation-right"></uui-icon>
446
- </summary>
447
- <div class="banner-details">
448
- <p>${status.reason}</p>
449
- ${
450
- status.affects?.length > 0
451
- ? html`<p>Until it is, these are unavailable:</p>
452
- <ul class="affected">
453
- ${status.affects.map((feature) => html`<li>${feature}</li>`)}
454
- </ul>`
455
- : nothing
456
- }
457
- </div>
458
- </details>`
459
- }
460
-
461
439
  render() {
462
440
  return html`
463
- ${this.#email()}
464
441
  ${(this.groups ?? []).map(
465
442
  ({ group, bundle, cards }) => html`<section>
466
443
  <h2>
@@ -480,6 +457,11 @@ export class CromboloSettingsLandingElement extends UmbLitElement {
480
457
  href=${`section/settings/${card.path}`}
481
458
  heading=${card.title}
482
459
  description=${card.description ?? ''}
460
+ warning=${
461
+ card.alias === 'Crombolo.Dashboard.Email' && needsAttention(this._email)
462
+ ? 'E-mail is not set up'
463
+ : nothing
464
+ }
483
465
  ></crombolo-settings-card>`,
484
466
  )}
485
467
  </div>
@@ -527,68 +509,6 @@ export class CromboloSettingsLandingElement extends UmbLitElement {
527
509
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
528
510
  gap: var(--uui-size-space-5);
529
511
  }
530
- .banner {
531
- margin-bottom: var(--uui-size-layout-1);
532
- padding: var(--uui-size-space-4) var(--uui-size-space-5);
533
- border: 1px solid color-mix(in srgb, var(--uui-color-warning) 45%, transparent);
534
- border-left-width: 4px;
535
- border-radius: 8px;
536
- background: color-mix(in srgb, var(--uui-color-warning) 12%, var(--uui-color-surface));
537
- color: var(--uui-color-text);
538
- }
539
- .banner summary {
540
- display: flex;
541
- gap: var(--uui-size-space-4);
542
- align-items: center;
543
- cursor: pointer;
544
- list-style: none;
545
- }
546
- .banner summary::-webkit-details-marker {
547
- display: none;
548
- }
549
- .banner summary:focus-visible {
550
- outline: 2px solid var(--uui-color-focus);
551
- outline-offset: 2px;
552
- }
553
- .banner uui-icon {
554
- flex: none;
555
- color: var(--uui-color-warning-standalone, var(--uui-color-warning));
556
- }
557
- .banner .chevron {
558
- margin-left: auto;
559
- transition: transform 120ms;
560
- }
561
- .banner[open] .chevron {
562
- transform: rotate(90deg);
563
- }
564
- .banner-details {
565
- margin-top: var(--uui-size-space-3);
566
- padding-left: calc(1em + var(--uui-size-space-4));
567
- }
568
- .banner p {
569
- margin: 0 0 var(--uui-size-space-2);
570
- line-height: 1.5;
571
- }
572
- .affected {
573
- margin: 0;
574
- padding: 0;
575
- list-style: none;
576
- }
577
- .affected li {
578
- position: relative;
579
- padding-left: var(--uui-size-space-5);
580
- line-height: 1.6;
581
- }
582
- .affected li::before {
583
- content: '';
584
- position: absolute;
585
- left: 0.2em;
586
- top: 0.6em;
587
- width: 0.45em;
588
- height: 0.45em;
589
- border-radius: 50%;
590
- background: var(--uui-color-warning-standalone, var(--uui-color-warning));
591
- }
592
512
  `,
593
513
  ]
594
514
  }
@@ -2,7 +2,7 @@
2
2
  "$schema": "../../../backoffice-dist/dist/umbraco-package-schema.json",
3
3
  "name": "Crombolo Sign-in Dialog",
4
4
  "id": "Crombolo.SignInDialog",
5
- "version": "0.63.0",
5
+ "version": "0.64.0",
6
6
  "allowPublicAccess": true,
7
7
  "extensions": [
8
8
  {
@@ -2,7 +2,7 @@
2
2
  "$schema": "../../backoffice-dist/dist/umbraco-package-schema.json",
3
3
  "name": "Crombolo",
4
4
  "id": "Crombolo.Core",
5
- "version": "0.63.0",
5
+ "version": "0.64.0",
6
6
  "allowPublicAccess": false,
7
7
  "extensions": [
8
8
  {
@@ -177,7 +177,7 @@
177
177
  "name": "Crombolo CI Access",
178
178
  "element": "/crombolo-plugin/ci-access.js",
179
179
  "meta": {
180
- "label": "CI access",
180
+ "label": "Deployment pipelines",
181
181
  "pathname": "ci-access"
182
182
  },
183
183
  "conditions": [
@@ -190,6 +190,45 @@
190
190
  }
191
191
  ]
192
192
  },
193
+ {
194
+ "type": "dashboard",
195
+ "alias": "Crombolo.Dashboard.Email",
196
+ "name": "Crombolo E-mail",
197
+ "element": "/crombolo-plugin/email-settings.js",
198
+ "meta": {
199
+ "label": "E-mail",
200
+ "pathname": "email"
201
+ },
202
+ "conditions": [
203
+ {
204
+ "alias": "Umb.Condition.SectionAlias",
205
+ "match": "Umb.Section.Settings"
206
+ },
207
+ {
208
+ "alias": "Umb.Condition.CurrentUser.IsAdmin"
209
+ }
210
+ ]
211
+ },
212
+ {
213
+ "type": "dashboard",
214
+ "alias": "Crombolo.Dashboard.Schema",
215
+ "name": "Crombolo Schema",
216
+ "element": "/crombolo-plugin/schema-transfer.js",
217
+ "overwrites": ["Umb.Dashboard.ModelsBuilder"],
218
+ "meta": {
219
+ "label": "Schema",
220
+ "pathname": "schema"
221
+ },
222
+ "conditions": [
223
+ {
224
+ "alias": "Umb.Condition.SectionAlias",
225
+ "match": "Umb.Section.Settings"
226
+ },
227
+ {
228
+ "alias": "Umb.Condition.CurrentUser.IsAdmin"
229
+ }
230
+ ]
231
+ },
193
232
  {
194
233
  "type": "dashboard",
195
234
  "alias": "Crombolo.Dashboard.TrustedSigners",