@brunosouzas/stackledger 0.10.0 → 0.11.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.
- package/README.md +25 -20
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/map/command.js +3 -1
- package/dist/map/command.js.map +1 -1
- package/dist/map/model.d.ts +1 -1
- package/dist/map/neighbourhood.js +1 -1
- package/dist/map/neighbourhood.js.map +1 -1
- package/dist/map/parallel.js +1 -1
- package/dist/map/parallel.js.map +1 -1
- package/dist/map/pieces.d.ts +2 -2
- package/dist/map/relations.js +1 -1
- package/dist/map/relations.js.map +1 -1
- package/dist/map/strip.js +1 -1
- package/dist/map/strip.js.map +1 -1
- package/dist/map/svg.js +2 -2
- package/dist/map/svg.js.map +1 -1
- package/dist/map/themes.js +2 -2
- package/dist/map/themes.js.map +1 -1
- package/dist/map/zones.d.ts +1 -1
- package/dist/mcp.js +3 -1
- package/dist/mcp.js.map +1 -1
- package/dist/schema.d.ts +3 -1
- package/dist/schema.js +4 -1
- package/dist/schema.js.map +1 -1
- package/dist/site/build.d.ts +4 -7
- package/dist/site/build.js +35 -45
- package/dist/site/build.js.map +1 -1
- package/dist/site/command.js +7 -9
- package/dist/site/command.js.map +1 -1
- package/dist/site/policy.d.ts +5 -4
- package/dist/site/policy.js +5 -4
- package/dist/site/policy.js.map +1 -1
- package/dist/site/publish.d.ts +2 -5
- package/dist/site/publish.js +27 -26
- package/dist/site/publish.js.map +1 -1
- package/dist/site/skills-build.js +16 -2
- package/dist/site/skills-build.js.map +1 -1
- package/dist/site/skills-data.d.ts +4 -0
- package/dist/site/skills-data.js +7 -0
- package/dist/site/skills-data.js.map +1 -1
- package/dist/site/staging.d.ts +7 -4
- package/dist/site/staging.js +7 -4
- package/dist/site/staging.js.map +1 -1
- package/dist/site/ui-icons.js +1 -1
- package/dist/site/ui-icons.js.map +1 -1
- package/dist/skills/command.js +4 -3
- package/dist/skills/command.js.map +1 -1
- package/dist/skills/graph.d.ts +3 -0
- package/dist/skills/graph.js +4 -2
- package/dist/skills/graph.js.map +1 -1
- package/dist/skills/lines.d.ts +50 -10
- package/dist/skills/lines.js +78 -15
- package/dist/skills/lines.js.map +1 -1
- package/dist/skills/map-command.js +11 -0
- package/dist/skills/map-command.js.map +1 -1
- package/dist/skills/marketplace.d.ts +24 -0
- package/dist/skills/marketplace.js +179 -0
- package/dist/skills/marketplace.js.map +1 -0
- package/dist/skills/mermaid.js +10 -1
- package/dist/skills/mermaid.js.map +1 -1
- package/dist/skills/metro.js +9 -5
- package/dist/skills/metro.js.map +1 -1
- package/dist/skills/resolve.d.ts +22 -0
- package/dist/skills/resolve.js +47 -0
- package/dist/skills/resolve.js.map +1 -0
- package/dist/skills/source.d.ts +12 -2
- package/dist/skills/source.js +44 -26
- package/dist/skills/source.js.map +1 -1
- package/dist/skills/walk.d.ts +13 -0
- package/dist/skills/walk.js +90 -6
- package/dist/skills/walk.js.map +1 -1
- package/dist/validate.js +19 -0
- package/dist/validate.js.map +1 -1
- package/dist/views.d.ts +5 -4
- package/dist/views.js +4 -6
- package/dist/views.js.map +1 -1
- package/examples/catalogue-repository/.github/workflows/stackledger.yml +14 -14
- package/examples/catalogue-repository/README.md +10 -22
- package/examples/hosting/Caddyfile +14 -17
- package/examples/northwind/stackledger.yaml +1 -12
- package/examples/northwind-journeys/README.md +11 -0
- package/examples/northwind-journeys/catalogue/catalog-info.yaml +19 -0
- package/examples/northwind-journeys/catalogue/stackledger-skills.yaml +55 -0
- package/examples/northwind-journeys/foundry/.claude-plugin/marketplace.json +18 -0
- package/examples/northwind-journeys/foundry/plugins/engineering/agents/reviewer.md +10 -0
- package/examples/northwind-journeys/foundry/plugins/engineering/skills/build/SKILL.md +8 -0
- package/examples/northwind-journeys/foundry/plugins/engineering/skills/review/SKILL.md +8 -0
- package/examples/northwind-journeys/foundry/plugins/engineering/skills/spec/SKILL.md +8 -0
- package/examples/northwind-journeys/foundry/plugins/release/agents/releaser.md +10 -0
- package/examples/northwind-journeys/foundry/plugins/release/skills/ship/SKILL.md +8 -0
- package/examples/northwind-journeys/integration/.claude-plugin/marketplace.json +13 -0
- package/examples/northwind-journeys/integration/plugins/mule/skills/contract/SKILL.md +8 -0
- package/examples/northwind-journeys/integration/plugins/mule/skills/munit/SKILL.md +8 -0
- package/examples/northwind-journeys/loose/skills/notes/SKILL.md +8 -0
- package/examples/northwind-journeys/studio/.claude-plugin/marketplace.json +18 -0
- package/examples/northwind-journeys/studio/plugins/publishing/skills/publish/SKILL.md +8 -0
- package/examples/northwind-journeys/studio/plugins/writing/agents/reviewer.md +10 -0
- package/examples/northwind-journeys/studio/plugins/writing/skills/draft/SKILL.md +8 -0
- package/examples/northwind-journeys/studio/plugins/writing/skills/edit/SKILL.md +8 -0
- package/examples/northwind-marketplace/.claude-plugin/marketplace.json +9 -0
- package/examples/northwind-marketplace/README.md +7 -0
- package/examples/northwind-marketplace/plugins/review/agents/reviewer.md +10 -0
- package/examples/northwind-marketplace/plugins/review/skills/checklist/SKILL.md +8 -0
- package/examples/northwind-marketplace/plugins/writing/.claude-plugin/plugin.json +1 -0
- package/examples/northwind-marketplace/plugins/writing/agents/reviewer.md +10 -0
- package/examples/northwind-marketplace/plugins/writing/skills/draft/SKILL.md +8 -0
- package/examples/northwind-marketplace/plugins/writing/skills/publish/SKILL.md +12 -0
- package/npm-shrinkwrap.json +677 -312
- package/package.json +3 -3
- package/site/public/favicon.svg +9 -6
- package/site/public/link-icons/stackledger-dark.svg +4 -3
- package/site/public/link-icons/stackledger-light.svg +4 -3
- package/site/src/components/Footer.astro +1 -1
- package/site/src/components/Header.astro +1 -1
- package/site/src/components/NewTabLink.astro +24 -0
- package/site/src/components/SkillItem.astro +7 -2
- package/site/src/components/SubNav.astro +2 -2
- package/site/src/pages/[reports].astro +2 -4
- package/site/src/pages/index.astro +6 -4
- package/site/src/pages/licences/[name].astro +2 -2
- package/site/src/pages/map/index.astro +4 -2
- package/site/src/pages/skill-map/[...map].astro +9 -8
- package/site/src/styles/tokens.css +1 -1
- package/site/public/brand-mark-dark.svg +0 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brunosouzas/stackledger",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Govern your software stack and licences, drawn as a metro map",
|
|
6
6
|
"keywords": [
|
|
@@ -41,12 +41,12 @@
|
|
|
41
41
|
"test:perf": "vitest run --config vitest.perf.config.ts"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@brunosouzas/
|
|
44
|
+
"@brunosouzas/signwright": "0.20.0",
|
|
45
45
|
"@fontsource/source-code-pro": "5.3.1",
|
|
46
46
|
"@fontsource/source-sans-3": "5.3.1",
|
|
47
47
|
"@fontsource/source-serif-4": "5.3.1",
|
|
48
48
|
"@modelcontextprotocol/sdk": "1.32.1",
|
|
49
|
-
"astro": "7.
|
|
49
|
+
"astro": "7.4.7",
|
|
50
50
|
"ignore": "7.0.13",
|
|
51
51
|
"yaml": "2.9.1",
|
|
52
52
|
"zod": "4.6.7"
|
package/site/public/favicon.svg
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0
|
|
2
|
-
<
|
|
3
|
-
<
|
|
4
|
-
<
|
|
5
|
-
<
|
|
6
|
-
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 38 38" role="img" aria-labelledby="stackledger-favicon-title stackledger-favicon-desc" font-family="'Source Sans 3', 'Helvetica Neue', Helvetica, Arial, sans-serif">
|
|
2
|
+
<title id="stackledger-favicon-title">stackledger</title>
|
|
3
|
+
<desc id="stackledger-favicon-desc">stackledger's mark: a blue s with an orange moon, on the cream tile of the brunosouzas family.</desc>
|
|
4
|
+
<rect width="38" height="38" rx="7" fill="#F6F3EC"/>
|
|
5
|
+
<g transform="translate(3 3) scale(1)" stroke="none">
|
|
6
|
+
<path d="M19.2 15.4 C18 13.9 16.1 13.2 13.9 13.2 C10.8 13.2 8.6 14.7 8.6 16.9 C8.6 19.2 10.8 19.9 14 20.5 C17.4 21.2 19.6 21.9 19.6 24.2 C19.6 26.4 17.3 27.8 14.1 27.8 C11.6 27.8 9.5 27 8.2 25.4" fill="none" stroke="#3B5BDB" stroke-width="4.6" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7
|
+
<circle cx="27.5" cy="9" r="2.8" fill="#E04E17"/>
|
|
8
|
+
</g>
|
|
9
|
+
</svg>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 46 46" width="46" height="46"><g transform="translate(0 0) scale(1)" stroke="none">
|
|
2
2
|
<rect x="2" y="2" width="38" height="38" rx="9" fill="#FFFFFF" stroke="#ADA79D" stroke-width="2.5"/>
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
<g transform="translate(5.16 5.12) scale(0.875)">
|
|
4
|
+
<path d="M19.2 15.4 C18 13.9 16.1 13.2 13.9 13.2 C10.8 13.2 8.6 14.7 8.6 16.9 C8.6 19.2 10.8 19.9 14 20.5 C17.4 21.2 19.6 21.9 19.6 24.2 C19.6 26.4 17.3 27.8 14.1 27.8 C11.6 27.8 9.5 27 8.2 25.4" fill="none" stroke="#3B5BDB" stroke-width="4.6" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5
|
+
<circle cx="27.5" cy="9" r="2.8" fill="#E04E17"/>
|
|
6
|
+
</g>
|
|
6
7
|
</g></svg>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 46 46" width="46" height="46"><g transform="translate(0 0) scale(1)" stroke="none">
|
|
2
2
|
<rect x="2" y="2" width="38" height="38" rx="9" fill="#FFFFFF" stroke="#121212" stroke-width="2.5"/>
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
<g transform="translate(5.16 5.12) scale(0.875)">
|
|
4
|
+
<path d="M19.2 15.4 C18 13.9 16.1 13.2 13.9 13.2 C10.8 13.2 8.6 14.7 8.6 16.9 C8.6 19.2 10.8 19.9 14 20.5 C17.4 21.2 19.6 21.9 19.6 24.2 C19.6 26.4 17.3 27.8 14.1 27.8 C11.6 27.8 9.5 27 8.2 25.4" fill="none" stroke="#3B5BDB" stroke-width="4.6" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5
|
+
<circle cx="27.5" cy="9" r="2.8" fill="#E04E17"/>
|
|
6
|
+
</g>
|
|
6
7
|
</g></svg>
|
|
@@ -21,6 +21,6 @@ const { root } = Astro.props;
|
|
|
21
21
|
</ul>
|
|
22
22
|
</div>
|
|
23
23
|
<div class="footer-bottom">
|
|
24
|
-
<p class="container">
|
|
24
|
+
<p class="container">stackledger {site.version} · <span class="endorsement"><img class="symbol-mark themed-light" src={href(root, 'symbol-light.svg')} alt="" width="16" height="16" /><img class="symbol-mark themed-dark" src={href(root, 'symbol-dark.svg')} alt="" width="16" height="16" /> by Bruno Souza</span> · Look based on the Astroplate theme (MIT)</p>
|
|
25
25
|
</div>
|
|
26
26
|
</footer>
|
|
@@ -18,7 +18,7 @@ const links = [
|
|
|
18
18
|
|
|
19
19
|
<header class="header">
|
|
20
20
|
<nav class="navbar container" aria-label="Main">
|
|
21
|
-
<a class="navbar-brand" href={href(root, '')}><img class="brand-mark
|
|
21
|
+
<a class="navbar-brand" href={href(root, '')}><img class="brand-mark" src={href(root, 'favicon.svg')} alt="" width="28" height="28" />{site.title}</a>
|
|
22
22
|
<ul class="navbar-nav">
|
|
23
23
|
{
|
|
24
24
|
links.map((link) => (
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
// An anchor to another site (catalogue-site, External links in a new tab): it opens in a new tab,
|
|
3
|
+
// with rel="noopener noreferrer" so the other page gets no window.opener and no referrer, and its
|
|
4
|
+
// accessible name ends with NEW_TAB so a screen reader announces the new tab (WCAG technique G201).
|
|
5
|
+
// With `label` (an icon link, whose anchor holds no text) the name is the aria-label; without it,
|
|
6
|
+
// the anchor's own text is the name and the suffix is visually hidden text, so nothing changes on
|
|
7
|
+
// screen. No `title` attribute: it would be read again as the description (Home link icons).
|
|
8
|
+
// Use it only for an absolute URL to another site: a relative href here would open the site's own
|
|
9
|
+
// page in a new tab, which the integration test "Only external anchors open a new tab" catches.
|
|
10
|
+
interface Props {
|
|
11
|
+
href: string;
|
|
12
|
+
label?: string | undefined;
|
|
13
|
+
}
|
|
14
|
+
const NEW_TAB = ' (opens in a new tab)';
|
|
15
|
+
const { href, label } = Astro.props;
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
{
|
|
19
|
+
label === undefined ? (
|
|
20
|
+
<a href={href} target="_blank" rel="noopener noreferrer"><slot /><span class="visually-hidden">{NEW_TAB}</span></a>
|
|
21
|
+
) : (
|
|
22
|
+
<a href={href} target="_blank" rel="noopener noreferrer" aria-label={`${label}${NEW_TAB}`}><slot /></a>
|
|
23
|
+
)
|
|
24
|
+
}
|
|
@@ -20,6 +20,11 @@ const kinds: Record<string, string> = { skill: 'Skill', playbook: 'Playbook', ag
|
|
|
20
20
|
<article class="container section">
|
|
21
21
|
<p class="kicker"><a href={href(root, 'skills/')}>Skills</a> · {kinds[page.kind]}</p>
|
|
22
22
|
<h1>{page.name}</h1>
|
|
23
|
+
{
|
|
24
|
+
page.plugin !== undefined && (
|
|
25
|
+
<p class="muted" data-plugin>Plugin <strong>{page.plugin}</strong> · Marketplace <strong>{page.marketplace}</strong></p>
|
|
26
|
+
)
|
|
27
|
+
}
|
|
23
28
|
<p class="lead">{page.description}</p>
|
|
24
29
|
|
|
25
30
|
<section aria-labelledby="relations">
|
|
@@ -78,10 +83,10 @@ const kinds: Record<string, string> = { skill: 'Skill', playbook: 'Playbook', ag
|
|
|
78
83
|
</section>
|
|
79
84
|
|
|
80
85
|
<section aria-labelledby="lines">
|
|
81
|
-
<h2 id="lines">
|
|
86
|
+
<h2 id="lines">Journeys</h2>
|
|
82
87
|
{
|
|
83
88
|
page.lines.length === 0 ? (
|
|
84
|
-
<p>No
|
|
89
|
+
<p>No journey stops here.</p>
|
|
85
90
|
) : (
|
|
86
91
|
<ul class="line-chips" data-lines>
|
|
87
92
|
{page.lines.map((line: { badgeSvg: string; title: string }) => (
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
// Sub-navigation of a division (catalogue-site, Layout; skills-site, Skills sub-navigation): the
|
|
3
|
-
// Software division's Map, List, Journeys and
|
|
3
|
+
// Software division's Map, List, Journeys and Reports; the Skills division's List, Map
|
|
4
4
|
// and Rules. The page itself is marked with aria-current; an item page marks nothing.
|
|
5
5
|
import { href, site, type Page } from '../lib/site';
|
|
6
6
|
|
|
@@ -14,7 +14,7 @@ const software = [
|
|
|
14
14
|
{ key: 'map', title: 'Map', path: 'map/' },
|
|
15
15
|
{ key: 'software', title: 'List', path: 'software/' },
|
|
16
16
|
{ key: 'journeys', title: 'Journeys', path: 'journeys/' },
|
|
17
|
-
|
|
17
|
+
{ key: 'reports', title: 'Reports', path: 'reports/' },
|
|
18
18
|
];
|
|
19
19
|
const skills = [
|
|
20
20
|
{ key: 'skills', title: 'List', path: 'skills/' },
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
---
|
|
2
2
|
// Reports page (licence-reports, Reports page): renewals, recurring cost per currency and per
|
|
3
|
-
// group, one-off and planned costs, incomplete licences and the calendar link.
|
|
4
|
-
// the route is dynamic so that getStaticPaths can return no page at all when SiteData has no
|
|
5
|
-
// report (the staff site), instead of a page that would have to hide itself. All text and amounts
|
|
3
|
+
// group, one-off and planned costs, incomplete licences and the calendar link. All text and amounts
|
|
6
4
|
// are prepared by src/site/data.ts; the tables are plain HTML, with no script.
|
|
7
5
|
import Base from '../layouts/Base.astro';
|
|
8
6
|
import LinkOrText from '../components/LinkOrText.astro';
|
|
9
7
|
import { href, rootFor, site } from '../lib/site';
|
|
10
8
|
|
|
11
9
|
export function getStaticPaths() {
|
|
12
|
-
return
|
|
10
|
+
return [{ params: { reports: 'reports' }, props: { report: site.report } }];
|
|
13
11
|
}
|
|
14
12
|
|
|
15
13
|
const { report } = Astro.props;
|
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
// Home page (catalogue-site, Home page, Home page chrome and Home links): a banner with the site title
|
|
3
3
|
// and text, a card per division with the view's counts and links, then the configured links.
|
|
4
4
|
// The links are the only URLs to other sites (site-security, No external requests): validated http(s)
|
|
5
|
-
// URLs from spec.site.home.links, opened in
|
|
5
|
+
// URLs from spec.site.home.links, each opened in a new tab and announced as such (NewTabLink,
|
|
6
|
+
// catalogue-site External links in a new tab).
|
|
6
7
|
import Base from '../layouts/Base.astro';
|
|
8
|
+
import NewTabLink from '../components/NewTabLink.astro';
|
|
7
9
|
import { href, rootFor, site } from '../lib/site';
|
|
8
10
|
|
|
9
11
|
const root = rootFor(Astro.url.pathname);
|
|
@@ -38,7 +40,7 @@ const textLinks = links.filter(link => !link.icon);
|
|
|
38
40
|
<li><a href={href(root, 'map/')}>Map</a></li>
|
|
39
41
|
<li><a href={href(root, 'software/')}>List</a></li>
|
|
40
42
|
<li><a href={href(root, 'journeys/')}>Journeys</a></li>
|
|
41
|
-
|
|
43
|
+
<li><a href={href(root, 'reports/')}>Reports</a></li>
|
|
42
44
|
</ul>
|
|
43
45
|
</article>
|
|
44
46
|
{
|
|
@@ -66,7 +68,7 @@ const textLinks = links.filter(link => !link.icon);
|
|
|
66
68
|
<ul class="home-icon-links" role="list">
|
|
67
69
|
{iconLinks.map(link => (
|
|
68
70
|
<li>
|
|
69
|
-
<
|
|
71
|
+
<NewTabLink href={link.url} label={link.title}><img class="themed-light" src={href(root, `link-icons/${link.icon}-light.svg`)} alt="" width="32" height="32" /><img class="themed-dark" src={href(root, `link-icons/${link.icon}-dark.svg`)} alt="" width="32" height="32" /></NewTabLink>
|
|
70
72
|
</li>
|
|
71
73
|
))}
|
|
72
74
|
</ul>
|
|
@@ -75,7 +77,7 @@ const textLinks = links.filter(link => !link.icon);
|
|
|
75
77
|
<ul class="home-external">
|
|
76
78
|
{textLinks.map(link => (
|
|
77
79
|
<li>
|
|
78
|
-
<
|
|
80
|
+
<NewTabLink href={link.url}>{link.title}</NewTabLink>
|
|
79
81
|
{link.description && <span class="muted"> · {link.description}</span>}
|
|
80
82
|
</li>
|
|
81
83
|
))}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
|
-
// Licence page (catalogue-site, Licence page):
|
|
3
|
-
// that use it and the impact of removing it.
|
|
2
|
+
// Licence page (catalogue-site, Licence page content): every licence field, the components
|
|
3
|
+
// that use it and the impact of removing it.
|
|
4
4
|
import Base from '../../layouts/Base.astro';
|
|
5
5
|
import Impact from '../../components/Impact.astro';
|
|
6
6
|
import LinkOrText from '../../components/LinkOrText.astro';
|
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
// pan, line highlight and zone filter. The map SVG has no title band or legend: the line chips are
|
|
4
4
|
// the legend (buttons that highlight a line) and the symbols are listed under them. Without
|
|
5
5
|
// JavaScript the whole map and both legends are shown; only the zoom and zone tools stay hidden.
|
|
6
|
-
// Over a city backdrop the OpenStreetMap credit sits right under the frame (catalogue-site, Map backdrop)
|
|
6
|
+
// Over a city backdrop the OpenStreetMap credit sits right under the frame (catalogue-site, Map backdrop),
|
|
7
|
+
// its link opened in a new tab and announced as such (NewTabLink, External links in a new tab).
|
|
7
8
|
import Base from '../../layouts/Base.astro';
|
|
9
|
+
import NewTabLink from '../../components/NewTabLink.astro';
|
|
8
10
|
import Themed from '../../components/Themed.astro';
|
|
9
11
|
import { site } from '../../lib/site';
|
|
10
12
|
|
|
@@ -45,7 +47,7 @@ const { lines, zones, symbols } = site.map;
|
|
|
45
47
|
{
|
|
46
48
|
site.map.credit && (
|
|
47
49
|
<p class="map-credit">
|
|
48
|
-
Map data © <
|
|
50
|
+
Map data © <NewTabLink href="https://www.openstreetmap.org/copyright">OpenStreetMap contributors</NewTabLink>
|
|
49
51
|
</p>
|
|
50
52
|
)
|
|
51
53
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
// Skills map page (skills-site, Skills map page): the skills metro map in both themes, with the
|
|
3
3
|
// software map page's zoom, pan, line highlight and, when zones are drawn, the zone filter. The frame
|
|
4
|
-
// is marked data-zone-mode="list" because
|
|
4
|
+
// is marked data-zone-mode="list" because zones (marketplaces, playbooks) overlap (scripts/map.ts). The lines and their
|
|
5
5
|
// stops follow the map as links: the map's text alternative.
|
|
6
6
|
import Base from '../../layouts/Base.astro';
|
|
7
7
|
import Themed from '../../components/Themed.astro';
|
|
@@ -13,7 +13,8 @@ export function getStaticPaths() {
|
|
|
13
13
|
|
|
14
14
|
const { skills } = Astro.props;
|
|
15
15
|
const root = rootFor(Astro.url.pathname);
|
|
16
|
-
const { lines, zones, symbols } = skills.map;
|
|
16
|
+
const { lines, zones, zoneLabel, symbols } = skills.map;
|
|
17
|
+
const zonePlural = zoneLabel === 'Marketplace' ? 'marketplaces' : zoneLabel === 'Playbook' ? 'playbooks' : 'zones';
|
|
17
18
|
---
|
|
18
19
|
|
|
19
20
|
<Base title="Skill map" current="skill-map">
|
|
@@ -21,9 +22,9 @@ const { lines, zones, symbols } = skills.map;
|
|
|
21
22
|
<h1>Skill map</h1>
|
|
22
23
|
{
|
|
23
24
|
skills.map.empty ? (
|
|
24
|
-
<p class="lead">No skill lines yet. Add a Line to <code>stackledger-skills.yaml</code
|
|
25
|
+
<p class="lead">No skill lines yet. A line is a journey, a kind of work. Add a Line to <code>stackledger-skills.yaml</code>, at the top of a skills folder or in the catalogue (<code>spec.skills.map</code> of the Settings), to draw one.</p>
|
|
25
26
|
) : (
|
|
26
|
-
<p class="lead">Each line is a
|
|
27
|
+
<p class="lead">Each line is a journey, a kind of work, through the skills and agents it uses. A station where lines cross is shared by those journeys{zones.length > 0 ? `; each coloured area is a ${zoneLabel.toLowerCase()}` : ''}. Each station opens its page.</p>
|
|
27
28
|
)
|
|
28
29
|
}
|
|
29
30
|
<div class="map-tools" data-map-tools hidden>
|
|
@@ -35,9 +36,9 @@ const { lines, zones, symbols } = skills.map;
|
|
|
35
36
|
{
|
|
36
37
|
zones.length > 0 && (
|
|
37
38
|
<label class="field map-zone">
|
|
38
|
-
|
|
39
|
+
{zoneLabel}
|
|
39
40
|
<select data-zone-filter>
|
|
40
|
-
<option value="">All
|
|
41
|
+
<option value="">All {zonePlural}</option>
|
|
41
42
|
{zones.map((zone: { name: string; title: string }) => <option value={zone.name}>{zone.title}</option>)}
|
|
42
43
|
</select>
|
|
43
44
|
</label>
|
|
@@ -50,7 +51,7 @@ const { lines, zones, symbols } = skills.map;
|
|
|
50
51
|
{
|
|
51
52
|
lines.length > 0 && (
|
|
52
53
|
<div class="map-lines" data-map-lines>
|
|
53
|
-
<h2 class="visually-hidden">
|
|
54
|
+
<h2 class="visually-hidden">Journeys</h2>
|
|
54
55
|
<ul class="line-chips">
|
|
55
56
|
{lines.map((line: { ref: string; title: string; badgeSvg: string }) => (
|
|
56
57
|
<li>
|
|
@@ -80,7 +81,7 @@ const { lines, zones, symbols } = skills.map;
|
|
|
80
81
|
{
|
|
81
82
|
lines.length > 0 && (
|
|
82
83
|
<section aria-labelledby="stops">
|
|
83
|
-
<h2 id="stops">
|
|
84
|
+
<h2 id="stops">Journeys and their stops</h2>
|
|
84
85
|
{lines.map((line: { title: string; stops: { href: string; name: string; kind: string }[] }) => (
|
|
85
86
|
<>
|
|
86
87
|
<h3>{line.title}</h3>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* Design tokens: every colour and size of the site (catalogue-site, Look and theme).
|
|
2
2
|
The font variables (--font-primary, --font-secondary, --font-mono) are not defined here: Astro's
|
|
3
3
|
Fonts API defines them in _astro/fonts.css, and a definition here, loaded later, would win.
|
|
4
|
-
Colours and type scale come from @brunosouzas/
|
|
4
|
+
Colours and type scale come from @brunosouzas/signwright (the site tokens of
|
|
5
5
|
brunosouzas.com), copied by the build next to this file as ds-tokens.css; the accent, which is
|
|
6
6
|
also the focus colour, is stackledger's own brand colour in the package
|
|
7
7
|
(--ds-brand-<theme>-stackledger-accent).
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="32" height="32"><g transform="translate(0 0) scale(1)">
|
|
2
|
-
<rect x="0.625" y="0.625" width="30.75" height="30.75" rx="6.6" fill="#FFFFFF" stroke="#ADA79D" stroke-width="1.25"/>
|
|
3
|
-
<path d="M7 23 L14 16 L25 16" fill="none" stroke="#E04E17" stroke-width="4.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
-
<circle cx="14" cy="16" r="4" fill="#FFFFFF" stroke="#121212" stroke-width="2"/>
|
|
5
|
-
<circle cx="25" cy="16" r="2.6" fill="#FFFFFF" stroke="#121212" stroke-width="1.6"/>
|
|
6
|
-
</g></svg>
|