@tideworthy/tidysites-platform 0.10.9 → 0.10.11

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.10.11
4
+
5
+ - Editor bar: Request a change comes first and carries the blue; Edit follows it plain.
6
+
7
+ ## 0.10.10
8
+
9
+ - Editor: the bar reads Edit, Request a change, Revisions, Publish live; Publish live is green.
10
+
3
11
  ## 0.10.9
4
12
 
5
13
  - Editor: the request panel greets the person by name and speaks plainly; the floating button is a pen, not a chat bubble. `GET /_tidy/change` says who is signed in.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tideworthy/tidysites-platform",
3
- "version": "0.10.9",
3
+ "version": "0.10.11",
4
4
  "description": "The Tidysites platform integration for EmDash sites: bootstrap, sessions, maintenance, health, and publish hooks under /_tidy/*.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -58,7 +58,7 @@ const htmlClass = !signedIn ? (signInUrl ? "tidy-has-bar tidy-idle" : "") : !act
58
58
  <span class="tidy-bar-label"><span class="tidy-bar-dot" aria-hidden="true"></span>{label} website<span class="tidy-bar-note">A private copy to see working changes on the website, not publicly accessible.</span></span>
59
59
  <div class="tidy-bar-actions" id="tidy-bar-actions">
60
60
  {!signedIn && <a class="tidy-btn tidy-btn-primary" href={signInUrl!}>Sign in to edit</a>}
61
- {signedIn && !active && <a class="tidy-btn tidy-btn-primary" href={toggle(true)}>Edit</a>}
61
+ {signedIn && !active && <a class="tidy-btn" href={toggle(true)}>Edit</a>}
62
62
  {signedIn && active && !editable && <a class="tidy-btn" href={toggle(false)}>Done</a>}
63
63
  </div>
64
64
  </div>
@@ -110,6 +110,8 @@ const htmlClass = !signedIn ? (signInUrl ? "tidy-has-bar tidy-idle" : "") : !act
110
110
  .tidy-btn-primary { background: #2b7fd1; border-color: #2b7fd1; color: #fff; }
111
111
  .tidy-btn-primary:hover { background: #2470bd; }
112
112
  .tidy-btn-danger:hover { background: #b3261e; border-color: #b3261e; }
113
+ .tidy-btn-go { background: #1f9d55; border-color: #1f9d55; color: #fff; }
114
+ .tidy-btn-go:hover { background: #1a8a4a; }
113
115
  .tidy-btn-sm { padding: 3px 8px; font-size: 12px; }
114
116
  .tidy-add-end { display: block; width: calc(100% - 32px); margin: 16px; padding: 14px; border: 2px dashed #2b7fd1; border-radius: 10px; background: rgba(43,127,209,.06); color: #2b7fd1; font: 600 14px system-ui, sans-serif; cursor: pointer; }
115
117
  .tidy-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); z-index: 2147483001; overflow: auto; background: #fff; color: #17211c; border-left: 1px solid #d3dcd6; box-shadow: -12px 0 40px rgba(0,0,0,.18); padding: 20px; font: 14px/1.45 system-ui, sans-serif; }
@@ -85,8 +85,9 @@ export function mountRequestChange(): void {
85
85
  body.focus();
86
86
  }
87
87
 
88
- const barBtn = el("button", { type: "button", class: "tidy-btn", text: "Request a change" });
88
+ const barBtn = el("button", { type: "button", class: "tidy-btn tidy-btn-primary", text: "Request a change" });
89
89
  barBtn.addEventListener("click", render);
90
+ // First on the bar: most people are here to ask for a change, not to edit.
90
91
  actions.prepend(barBtn);
91
92
 
92
93
  const fab = el("button", { type: "button", class: "tidy-fab", title: "Request a change", "aria-label": "Request a change" });
@@ -41,8 +41,9 @@ export function startRevisions(): void {
41
41
  if (!actions) return;
42
42
  const here = location.pathname;
43
43
  const revBtn = el("button", { type: "button", class: "tidy-btn", text: "Revisions" });
44
- const liveBtn = el("button", { type: "button", class: "tidy-btn", text: "Publish live" });
45
- actions.prepend(revBtn, liveBtn);
44
+ const liveBtn = el("button", { type: "button", class: "tidy-btn tidy-btn-go", text: "Publish live" });
45
+ // Edit, Request a change, Revisions, Publish live: the bar reads left to right in that order.
46
+ actions.append(revBtn, liveBtn);
46
47
 
47
48
  // --- the panel --------------------------------------------------------
48
49
  const panel = el("div", { class: "tidy-panel", hidden: "" });
package/src/version.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  /** Kept in step with package.json by the release checklist in MAINTAINING.md. */
2
- export const VERSION = "0.10.9";
2
+ export const VERSION = "0.10.11";
3
3
  export const PLUGIN_ID = "tidy-platform";