@zabaca/zbc 0.19.0 → 0.19.1
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/package.json
CHANGED
|
@@ -872,32 +872,43 @@ function roadmapPulls(caps: Capabilities): string {
|
|
|
872
872
|
}
|
|
873
873
|
|
|
874
874
|
/**
|
|
875
|
-
*
|
|
875
|
+
* `What's next.`, which has to survive its rows leaving — all of them.
|
|
876
876
|
*
|
|
877
877
|
* The two functions above are the page's best rule applied to a promise: a row
|
|
878
878
|
* LEAVES when its deployment ships the thing, so the list is always what is
|
|
879
|
-
* still ahead.
|
|
880
|
-
*
|
|
881
|
-
*
|
|
882
|
-
*
|
|
883
|
-
*
|
|
884
|
-
*
|
|
885
|
-
*
|
|
886
|
-
*
|
|
887
|
-
*
|
|
888
|
-
*
|
|
889
|
-
*
|
|
890
|
-
*
|
|
891
|
-
*
|
|
892
|
-
* that is not rendered from config, so it is the one sentence that has to admit
|
|
893
|
-
* as much however many rows are left to admit it about.
|
|
879
|
+
* still ahead. The section follows the same rule. It used to end in a CI row
|
|
880
|
+
* that never left, because nothing on any deployment could ship it — and that
|
|
881
|
+
* was the tell: CI is a runner, with logs, status and compute of its own,
|
|
882
|
+
* which is a different product, not the next feature of this one. With that
|
|
883
|
+
* row gone the deployment that has shipped the most (agentgit: Signer Lists,
|
|
884
|
+
* Reader Lists, Proposals) has nothing left to promise, and a heading over an
|
|
885
|
+
* empty list would say the roadmap ran out. So the section renders only where
|
|
886
|
+
* a row is left, and the fine print that used to close it (`permanence`,
|
|
887
|
+
* `limits`) stands on its own below, on every deployment.
|
|
888
|
+
*
|
|
889
|
+
* The lede counts rows out of the markup rather than re-deriving them from
|
|
890
|
+
* the flags — a second reading of the same question would eventually
|
|
891
|
+
* disagree with the first. One row gets a sentence that promises no order.
|
|
894
892
|
*/
|
|
895
|
-
function
|
|
896
|
-
const rows =
|
|
893
|
+
function roadmapSection(caps: Capabilities): string {
|
|
894
|
+
const rows = roadmapOwnership(caps) + roadmapPulls(caps)
|
|
895
|
+
const count = rows.split('<h3>').length - 1
|
|
896
|
+
if (count === 0) return ''
|
|
897
897
|
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
898
|
+
const lede =
|
|
899
|
+
count === 1
|
|
900
|
+
? 'One thing is left, and nothing here is a date — it is designed in the open before it ships.'
|
|
901
|
+
: 'Where this is going, in the order it gets there. Nothing here is a date — each one is designed in the open before it ships.'
|
|
902
|
+
|
|
903
|
+
return `
|
|
904
|
+
<section>
|
|
905
|
+
<h2>What's next.</h2>
|
|
906
|
+
<p>${lede}</p>
|
|
907
|
+
<ul class="road">
|
|
908
|
+
${rows}
|
|
909
|
+
</ul>
|
|
910
|
+
</section>
|
|
911
|
+
`
|
|
901
912
|
}
|
|
902
913
|
|
|
903
914
|
/**
|
|
@@ -1084,9 +1095,7 @@ export function renderLanding(
|
|
|
1084
1095
|
.replaceAll('{{META_DESCRIPTION}}', () => metaDescription(caps))
|
|
1085
1096
|
.replace('{{HERO_UNDER}}', () => heroUnder(caps))
|
|
1086
1097
|
.replace('{{CLAIMS}}', () => claims(caps))
|
|
1087
|
-
.replace('{{
|
|
1088
|
-
.replace('{{ROADMAP_OWNERSHIP}}', () => roadmapOwnership(caps))
|
|
1089
|
-
.replace('{{ROADMAP_PULLS}}', () => roadmapPulls(caps))
|
|
1098
|
+
.replace('{{ROADMAP}}', () => roadmapSection(caps))
|
|
1090
1099
|
.replace('{{CLIENT}}', () => clientChapter(caps))
|
|
1091
1100
|
.replace('{{EVENTS}}', () => eventsSection(host, caps))
|
|
1092
1101
|
.replace('{{COLLISION}}', () => collisionSection(host, caps))
|
|
@@ -1629,6 +1638,9 @@ const PAGE = `<!doctype html>
|
|
|
1629
1638
|
max-width: 58ch;
|
|
1630
1639
|
margin: 0;
|
|
1631
1640
|
}
|
|
1641
|
+
/* The fine print stands on its own now that the roadmap can be absent: the
|
|
1642
|
+
same muted line, set a section's distance below whatever came before. */
|
|
1643
|
+
.caveat.fine { margin-top: 5rem; }
|
|
1632
1644
|
|
|
1633
1645
|
/* A chapter break: the rule says "different subject", the kicker names it,
|
|
1634
1646
|
and the paragraph is the widest prose on the page because it has no
|
|
@@ -1732,20 +1744,8 @@ const PAGE = `<!doctype html>
|
|
|
1732
1744
|
</ul>
|
|
1733
1745
|
</section>
|
|
1734
1746
|
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
<p>{{ROADMAP_LEDE}}</p>
|
|
1738
|
-
<ul class="road">
|
|
1739
|
-
{{ROADMAP_OWNERSHIP}}
|
|
1740
|
-
{{ROADMAP_PULLS}}
|
|
1741
|
-
<li>
|
|
1742
|
-
<span class="when">Soon</span>
|
|
1743
|
-
<h3>CI</h3>
|
|
1744
|
-
<p>A ref moving is already an event and the client already runs a command on it, so the step left is running that command somewhere other than your laptop.</p>
|
|
1745
|
-
</li>
|
|
1746
|
-
</ul>
|
|
1747
|
-
<p class="caveat">{{PERMANENCE}} Not a place for anything you cannot lose.{{LIMITS}}</p>
|
|
1748
|
-
</section>
|
|
1747
|
+
{{ROADMAP}}
|
|
1748
|
+
<p class="caveat fine">{{PERMANENCE}} Not a place for anything you cannot lose.{{LIMITS}}</p>
|
|
1749
1749
|
{{OPERATOR}}{{CLOSE}}
|
|
1750
1750
|
</main>
|
|
1751
1751
|
|