@taprootio/site-authoring 0.59.0 → 0.60.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 CHANGED
@@ -729,7 +729,16 @@ push of the whole workspace, even when Taproot changed it since the pull. If the
729
729
  site no longer has the page (its folder is gone, or Taproot retired its kind),
730
730
  a whole-workspace push reports the file under `pages.staleGeneratedSources` and
731
731
  sends nothing for it, and `pull` says so; delete the file. Naming that path in
732
- `pages push <page-path>` is refused with `pages.generated_create`. A description over 160 characters is warned about,
732
+ `pages push <page-path>` is refused with `pages.generated_create`. A folder index
733
+ lives while a page is listed in its folder, as a draft, approved or published.
734
+ When approving a move leaves none there, an index with no live version (never
735
+ published, or already retired) is deleted, if the approver may delete any page,
736
+ and the next `pull` reports its source as gone. While no page is listed in
737
+ a folder, an approved edit of its index is left out of `deploy`, `status` and the
738
+ page estimate, and a published index is retired by the promotion that publishes
739
+ the move. An index the navigation links to is kept and marked unavailable: remove
740
+ the link, unapprove the index on the site's Pages page (the CLI cannot
741
+ unapprove), then save any page to delete it. A description over 160 characters is warned about,
733
742
  since search results cut it off, and one over 1000 is refused.
734
743
 
735
744
  `pages push [page-path...]` validates and sends the selected pages, or every
@@ -1513,6 +1522,10 @@ without the leading slash, and a query is allowed. When a requested handoff cann
1513
1522
  next; `staging review` mints another on any surface. `status` checks that exact current candidate, so a
1514
1523
  completed CLI stage counts as successful until that candidate changes.
1515
1524
 
1525
+ A page Taproot cannot stage, such as a folder index no page in the release is
1526
+ listed on, refuses deployment as `deploy.page_not_stageable` with Taproot's
1527
+ reason, naming the page's title, path and ID.
1528
+
1516
1529
  A retained failed preview of selected page content refuses deployment as
1517
1530
  `deploy.preview_failed`, naming the page and snapshot. Render a new successful
1518
1531
  preview or change the content; `--allow-failed-preview` is the explicit override.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taprootio/site-authoring",
3
- "version": "0.59.0",
3
+ "version": "0.60.0",
4
4
  "description": "Taproot site authoring CLI: sign in once in the browser, then pull, validate, push, preview, approve, and deploy a site from the terminal",
5
5
  "type": "module",
6
6
  "license": "ISC",
package/src/api.js CHANGED
@@ -2010,6 +2010,15 @@ export async function deploySite(client, siteId, body) {
2010
2010
  { field: "ExpectedPageCount", status: error.status },
2011
2011
  );
2012
2012
  }
2013
+ if (error instanceof ApiError && error.hasField("StagedPageIds")) {
2014
+ // The server names the page and says why it cannot be staged (TR01430); the bare field name did not.
2015
+ const fallback = "Taproot cannot stage a page in this release. Nothing was staged.";
2016
+ throw new SiteAuthoringError(
2017
+ "deploy.page_not_stageable",
2018
+ sanitizeDiagnostic(error.descriptionFor("StagedPageIds") ?? fallback, fallback),
2019
+ { field: "StagedPageIds", status: error.status },
2020
+ );
2021
+ }
2013
2022
  throw error;
2014
2023
  }
2015
2024
  const deployment = normalizeDeployment(response.deployment);
@@ -1,5 +1,17 @@
1
1
  {
2
2
  "entries": [
3
+ {
4
+ "version": "0.60.0",
5
+ "note": "An emptied folder index no longer blocks staging: deploys leave it out, approving the move that empties a folder deletes its unpublished index, and deploy shows Taproot's reason when it cannot stage a page.",
6
+ "behavior": [
7
+ "Server side, once this release deploys: an approved edit of a generated page that no staging could produce, such as a folder index no page is listed in any more, is left out of the deploy review's release set, of status readiness (approvedPageCount and the default selection) and of the page estimate, and staging no longer refuses it when it is left unselected. A folder index you customized and approved, whose last page then moved to another folder, used to make deploy --staging fail with StagedPageIds while status reported READY.",
8
+ "When approving a move leaves no draft, approved or published page listed in a folder, that folder's index is deleted if it has no live version (never published, or already retired) and the approver may delete any page; the next pull reports its source as gone. A published index is retired by the promotion that publishes the move. An index the navigation links to is kept and marked unavailable until the link is removed. approve's approved list leaves out an index this deleted. help page generated says so.",
9
+ "deploy fails with deploy.page_not_stageable (field StagedPageIds) and Taproot's reason, naming the page's title, path and ID, when a page in the release cannot be staged; 0.59.0 printed only \"Taproot rejected the request field 'StagedPageIds'.\" The deploy note names the code.",
10
+ "Taproot refuses older authoring clients at sign-in and token exchange once this release deploys. Automation that signs in with TAPROOT_SITE_KEY skips that exchange, so upgrade it explicitly. Upgrade with npm install -g @taprootio/site-authoring@latest.",
11
+ "The help reference version is 84."
12
+ ],
13
+ "help": ["pages", "page"]
14
+ },
3
15
  {
4
16
  "version": "0.59.0",
5
17
  "note": "Follow-ups from the 0.58.0 trial: Espalier 7.8.0 outline buttons, button shadow and footer heading colors, file lines and every section problem in validate, pages and sections behind each context count, and delivery and help fixes.",
package/src/cli.js CHANGED
@@ -934,7 +934,9 @@ const VERBS = Object.freeze([
934
934
  + "rendered, and is null when the server reports none (a production promotion of a staged output, a failed "
935
935
  + "deployment, or an older record); null is not 0. selection.stagedPageCount is the pages selected for this "
936
936
  + "deploy. readiness.pageEstimate.plannedPageCount is the pages staging would generate, the number charged "
937
- + "against the pages-generated allowance. "
937
+ + "against the pages-generated allowance. deploy.page_not_stageable carries Taproot's reason a page in the release "
938
+ + "cannot be staged, naming its title, path and ID, such as a folder index no page in the release is listed on "
939
+ + "(see 'help page generated'). "
938
940
  + STAGING_REVIEW_SESSION_NOTE,
939
941
  },
940
942
  {
@@ -99,7 +99,7 @@ import {
99
99
 
100
100
  export { getAppearanceReference, getFooterReference, getSettingsReference, getThemeReference };
101
101
 
102
- export const REFERENCE_VERSION = 83;
102
+ export const REFERENCE_VERSION = 84;
103
103
 
104
104
  // The date-limit examples `help forms` prints; tests run them through the form validator.
105
105
  export const FORM_DATE_WINDOW_FIELD = Object.freeze({
@@ -382,7 +382,13 @@ const TYPE_DETAILS = Object.freeze({
382
382
  + "pages push updates the page and refuses to create one (pages.generated_create), move it (pages.generated_move) "
383
383
  + "or change its identity (pages.generated_identity). The site derives the page's title and description from "
384
384
  + "customTitle, customDescription and introductionBody, so what a push sends for them is ignored. A source the site "
385
- + "no longer has a page for is reported and skipped by a whole-workspace push.",
385
+ + "no longer has a page for is reported and skipped by a whole-workspace push. "
386
+ + "A folder index lives while a page is listed in its folder, as a draft, approved or published. When approving a "
387
+ + "move leaves none there, an index with no live version (never published, or already retired) is deleted, if the "
388
+ + "approver may delete any page, and the next pull reports its source as gone. While no page is listed in a folder, an approved edit of its index is left out of deploy, status and the "
389
+ + "page estimate, and a published index is retired by the promotion that publishes the move. An index the "
390
+ + "navigation links to is kept and marked unavailable: remove the link, unapprove the index on the site's Pages "
391
+ + "page (the CLI cannot unapprove), then save any page to delete it.",
386
392
  },
387
393
  });
388
394