@realiizlabs/admin 0.15.2 → 0.15.4

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.
@@ -1116,7 +1116,7 @@ function makeHandlers(ctx) {
1116
1116
  }
1117
1117
 
1118
1118
  // src/version.ts
1119
- var ADMIN_VERSION = "0.15.2" ;
1119
+ var ADMIN_VERSION = "0.15.4" ;
1120
1120
 
1121
1121
  // src/studio/update.ts
1122
1122
  var PACKAGE_NAME = "@realiizlabs/admin";
@@ -1104,7 +1104,7 @@ function makeHandlers(ctx) {
1104
1104
  }
1105
1105
 
1106
1106
  // src/version.ts
1107
- var ADMIN_VERSION = "0.15.2" ;
1107
+ var ADMIN_VERSION = "0.15.4" ;
1108
1108
 
1109
1109
  // src/studio/update.ts
1110
1110
  var PACKAGE_NAME = "@realiizlabs/admin";
@@ -716,7 +716,7 @@ function Tabs({ options, value, onChange, label = "Sections" }) {
716
716
  }
717
717
 
718
718
  // src/version.ts
719
- var ADMIN_VERSION = "0.15.2" ;
719
+ var ADMIN_VERSION = "0.15.4" ;
720
720
 
721
721
  // src/studio-ui/css.ts
722
722
  var STUDIO_CSS = `
@@ -1010,7 +1010,13 @@ function UpdateBody({ update, onLater, compact = false }) {
1010
1010
  ];
1011
1011
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `rz-update${compact ? " rz-update--strip" : ""}`, role: "status", children: [
1012
1012
  /* @__PURE__ */ jsxRuntime.jsx(Steps, { steps }),
1013
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "rz-update__done", children: live ? `Studio ${update.version} is live. Reload and the version at the foot of the sidebar will change.` : "The version shown in Studio changes once the site has rebuilt." })
1013
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "rz-update__done", children: live ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1014
+ "Studio ",
1015
+ update.version,
1016
+ " is live. ",
1017
+ /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", className: "rz-update__link", onClick: () => window.location.reload(), children: "Reload Studio" }),
1018
+ " to start using it \u2014 the version at the foot of the sidebar will change."
1019
+ ] }) : "Nothing to do meanwhile \u2014 keep working. The website is rebuilding with the new Studio; the version at the foot of the sidebar changes when it's done, in about two minutes." })
1014
1020
  ] });
1015
1021
  }
1016
1022
  const problem = outcome && outcome.state !== "pending" ? outcome.state === "stale" ? "The site changed since the checks ran. Try again in a minute." : outcome.state === "red" ? `The checks failed${outcome.failingCheck ? ` (${outcome.failingCheck})` : ""}. Your web team has been able to see this.` : outcome.state === "error" ? outcome.message : null : null;
@@ -3982,7 +3988,11 @@ function StudioTab({ update, version, role }) {
3982
3988
  supportName,
3983
3989
  " releases a new version, your site prepares the update as a checked change \u2014 the same way a blog post is checked before it goes live \u2014 and builds a private preview. Nothing changes until you press ",
3984
3990
  /* @__PURE__ */ jsxRuntime.jsx("b", { children: "Update" }),
3985
- ". If the update would break anything, the button never unlocks."
3991
+ ". If the update would break anything, the button never unlocks. Your site looks for new versions once a week, on Monday morning."
3992
+ ] }),
3993
+ /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "acct-blurb", style: { marginTop: ".5rem" }, children: [
3994
+ /* @__PURE__ */ jsxRuntime.jsx("a", { href: "/admin/help#s-updates", children: "Everything about updates, in the Help center" }),
3995
+ " \u2014 when they arrive, what they can and can\u2019t change, and what to do if one fails."
3986
3996
  ] })
3987
3997
  ] })
3988
3998
  ] });
@@ -4022,6 +4032,7 @@ var HELP_SECTIONS = [
4022
4032
  { id: "markdown", title: "Writing in Markdown", blurb: "Headings, lists, links, tables \u2014 the formatting the editor understands." },
4023
4033
  { id: "events", title: "Events", blurb: "Dates, times, time zones, kinds, and what to do when plans change." },
4024
4034
  { id: "account", title: "Account & team", blurb: "Your profile, your password, who else can sign in, your branding." },
4035
+ { id: "updates", title: "Studio updates", blurb: "How new versions reach you, what the Update button does, and what could go wrong (not much)." },
4025
4036
  { id: "trouble", title: "Troubleshooting", blurb: "When something doesn't look right \u2014 what it means and what to do." }
4026
4037
  ];
4027
4038
 
@@ -4990,37 +5001,161 @@ Pictures save the moment you choose them (**Choose a picture**, **Replace**, **R
4990
5001
 
4991
5002
  In Studio's own secure storage \u2014 not in your website's files, so they don't go through Save/Publish.
4992
5003
  `
4993
- },
5004
+ }
5005
+ ];
5006
+
5007
+ // src/studio-ui/help/updates.ts
5008
+ var UPDATES = [
4994
5009
  {
4995
5010
  id: "updating-studio",
4996
- section: "account",
5011
+ section: "updates",
4997
5012
  title: "Updating Studio",
4998
5013
  summary: "When a new version is out, owners see a strip with what's new, a preview and an Update button. Nothing installs until you press it.",
4999
- keywords: ["update", "upgrade", "new version", "release", "what's new", "studio version"],
5014
+ keywords: ["update", "upgrade", "new version", "release", "what's new", "studio version", "update button"],
5000
5015
  body: `
5001
5016
  ## What it is
5002
5017
 
5003
- Studio is a small package inside your website, and it improves over time. When {supportName} releases a new version, your website prepares the update automatically as a **checked change** \u2014 exactly like a blog post is checked before it goes live \u2014 and builds a private preview of your site with the new Studio in it.
5018
+ Studio is a small package inside your website, and it improves over time \u2014 new features, small fixes, a nicer screen here and there. When {supportName} releases a new version, your website prepares it as a **checked change**, exactly like a blog post is checked before it goes live, and builds a private preview of your site with the new Studio in it.
5004
5019
 
5005
5020
  ## Where you see it
5006
5021
 
5007
- - A quiet strip at the top of every Studio page: **Studio 0.15 is available \xB7 What's new \xB7 Preview \xB7 Update \xB7 Later**. Only owners and {supportName} see it; editors don't.
5022
+ - A quiet strip at the top of every Studio page: **Studio 0.15.2 is available \xB7 What's new \xB7 Preview \xB7 Update \xB7 Later**. Only owners and {supportName} see it; editors don't.
5008
5023
  - **Settings \u2192 Studio**: the version you're running, the pending update with its notes, and the same Update button.
5024
+ - The version you're running is always printed in small type at the bottom of the sidebar, under **Collapse**.
5009
5025
 
5010
- The strip appears only once the update's checks have passed. If they fail, nothing is offered \u2014 {supportName} sees the failure and fixes it.
5026
+ The strip appears only once the update's checks have passed. If they fail, nothing is offered \u2014 {supportName} sees the failure and fixes it before you ever hear about it.
5011
5027
 
5012
5028
  ## How to update
5013
5029
 
5014
- 1. Read **What's new** (a few lines, plain English).
5030
+ 1. Read **What's new** \u2014 a few lines, plain English.
5015
5031
  2. Optional: press **Preview** to open your website running the new Studio.
5016
5032
  3. Press **Update**. The tracker shows *Updated \u2192 Live*; about two minutes later the website has rebuilt.
5017
- 4. Reload Studio to use the new version.
5033
+ 4. Reload Studio. The number at the bottom of the sidebar changes \u2014 that's how you know it landed.
5018
5034
 
5019
5035
  ## Good to know
5020
5036
 
5021
- - **Later** hides the strip for this browser tab; it comes back next time.
5022
- - Nothing on your public website changes because of a Studio update \u2014 only the dashboard does.
5037
+ - **Later** hides the strip for this browser tab; it comes back next time you open Studio.
5038
+ - Nothing on your public website changes because of a Studio update \u2014 only the dashboard does. Your posts, pictures and events are untouched.
5023
5039
  - You can't skip a version or go back from here; if something looks wrong after an update, tell {supportName}.
5040
+ `
5041
+ },
5042
+ {
5043
+ id: "when-updates-arrive",
5044
+ section: "updates",
5045
+ title: "When updates arrive",
5046
+ summary: "Once a week, on Monday morning. You don't have to check anything \u2014 if there's a new version, the strip is waiting.",
5047
+ keywords: ["monday", "schedule", "when", "how often", "weekly", "check for updates", "notification"],
5048
+ body: `
5049
+ ## The rhythm
5050
+
5051
+ Your website looks for a new Studio version **once a week, early Monday morning**. If there's one, it prepares the update, runs the checks, and the strip is waiting the next time an owner opens Studio. If there isn't one, nothing happens and you see nothing.
5052
+
5053
+ There's no button to press and nothing to install on your computer. You don't have to remember to look \u2014 if you don't see a strip, you're up to date.
5054
+
5055
+ ## Why weekly and not instantly
5056
+
5057
+ {supportName} may release more than one version in a week. Batching them means you get **one** update to read about and press, not three. It also means every release has been running on other sites for a few days before it's offered to you.
5058
+
5059
+ ## What if I'm away that Monday?
5060
+
5061
+ Nothing expires. The strip stays until an owner presses **Update** or a newer version replaces it \u2014 in which case the newer one is offered instead, and its notes cover everything since the version you're on.
5062
+
5063
+ ## Will I get an email?
5064
+
5065
+ No. Updates are quiet by design; the strip and **Settings \u2192 Studio** are the only places they appear. If an update is important enough to act on quickly, {supportName} will tell you directly.
5066
+ `
5067
+ },
5068
+ {
5069
+ id: "what-an-update-changes",
5070
+ section: "updates",
5071
+ title: "What an update does and doesn't change",
5072
+ summary: "The dashboard, yes. Your website's content, design and visitors' experience, no.",
5073
+ keywords: ["safe", "risk", "what changes", "content", "design", "visitors", "break", "downtime"],
5074
+ body: `
5075
+ ## What changes
5076
+
5077
+ The Studio dashboard \u2014 the screens you use at **/admin**. A new version might add a field to a form, improve the editor, fix something that was confusing, or add a Help article. **What's new** tells you exactly what, in a sentence or two.
5078
+
5079
+ ## What doesn't change
5080
+
5081
+ - **Your content.** Posts, pictures, events, pages: untouched. An update never edits, moves or deletes anything you've published or saved.
5082
+ - **Your website's design.** How {siteName} looks to visitors is separate from Studio. An update can't restyle your site.
5083
+ - **Your visitors' experience.** The website keeps running the whole time. There's no maintenance page and no downtime \u2014 the new version simply replaces the old one when the rebuild finishes, the same way a published post does.
5084
+ - **Your sign-ins and team.** Everyone keeps their access and role.
5085
+
5086
+ ## Why it's safe to press
5087
+
5088
+ Every update has already been built and checked against **your** website \u2014 not a generic one \u2014 before the strip appears. The **Preview** link is that exact build. If the checks had failed, you'd never have been offered it.
5089
+ `
5090
+ },
5091
+ {
5092
+ id: "update-questions",
5093
+ section: "updates",
5094
+ title: "Update questions, answered",
5095
+ summary: "Do I have to? Who can? Can I undo it? What if I press it twice? The short answers.",
5096
+ keywords: ["faq", "questions", "must i update", "who can update", "undo update", "roll back", "editors", "pressed twice"],
5097
+ body: `
5098
+ ## Do I have to update?
5099
+
5100
+ No \u2014 but you should. Updates are how fixes and improvements reach you, and each one has been checked against your site. If you'd rather wait, press **Later**; it'll be there when you come back.
5101
+
5102
+ ## Who can press Update?
5103
+
5104
+ Owners and {supportName}. Editors don't see the strip or the Settings \u2192 Studio tab at all, so a well-meaning teammate can't update the site by accident.
5105
+
5106
+ ## Can I see what's coming before I press it?
5107
+
5108
+ Yes, two ways: **What's new** shows the notes, and **Preview** opens your real website \u2014 with the new Studio installed \u2014 at a private address. Click around; nothing you do there affects the live site.
5109
+
5110
+ ## Can I undo an update?
5111
+
5112
+ Not from Studio. It's rarely needed, because an update can't touch your content, but if something looks wrong afterwards tell {supportName} \u2014 going back is a quick job for them.
5113
+
5114
+ ## I pressed Update and nothing seems different
5115
+
5116
+ Two things to check. First, the tracker: **Updated** means the update was accepted; **Live** means the website has finished rebuilding, which takes about two minutes. Second, reload Studio \u2014 the number at the bottom of the sidebar should now match the version the strip offered. Until the rebuild finishes you're still running the old one, which is normal.
5117
+
5118
+ ## I pressed Update twice
5119
+
5120
+ No harm done. The second press finds nothing to update and does nothing.
5121
+
5122
+ ## The strip disappeared before I pressed anything
5123
+
5124
+ Either another owner pressed Update, or a newer version arrived and replaced the offer. Either way, **Settings \u2192 Studio** shows what you're running now.
5125
+
5126
+ ## What does the version number mean?
5127
+
5128
+ Just a label \u2014 0.15.2 is newer than 0.15.1. The first two numbers change when a feature is added, the last one when something is fixed or polished. You don't need to track them; the strip does.
5129
+ `
5130
+ },
5131
+ {
5132
+ id: "update-problems",
5133
+ section: "updates",
5134
+ title: "When an update isn't offered, or fails",
5135
+ summary: "Settings \u2192 Studio says checking or failed; the Update button gave an error. What each means and who's handling it.",
5136
+ keywords: ["checks failed", "checking", "failed", "error", "not available", "stuck", "no update", "problem"],
5137
+ body: `
5138
+ ## Settings \u2192 Studio says "Checking\u2026"
5139
+
5140
+ A new version exists and your website is building a test copy with it. That takes a few minutes. The strip appears once the checks pass; you don't need to wait on the page.
5141
+
5142
+ ## Settings \u2192 Studio says "The checks failed"
5143
+
5144
+ The new version didn't build cleanly against your website. Nothing was installed and nothing on your site changed. **This is not something you need to fix** \u2014 {supportName} is told automatically and will either correct the release or adjust your site, after which the update is offered again. If it's still showing after a couple of days, mention it to them.
5145
+
5146
+ ## I pressed Update and got a message
5147
+
5148
+ - **"The site changed since the checks ran."** Someone published a post between the checks and your press. Wait a minute and press again \u2014 the checks re-run with the newest site.
5149
+ - **"The checks failed."** Same as above: a fresh check found a problem. {supportName} can see it.
5150
+ - **"That isn't a Studio update."** The offer you were looking at is no longer current \u2014 reload Studio for the latest one.
5151
+
5152
+ ## The tracker is stuck on "Live"
5153
+
5154
+ The rebuild usually takes about two minutes; occasionally the hosting service is slow and it takes ten. If the tracker says *taking longer than usual*, that's all it means. Leave the page and come back \u2014 the update is already accepted and will finish on its own.
5155
+
5156
+ ## I'm not seeing updates at all
5157
+
5158
+ Only owners see them, and only when one is ready. If you're an owner, it's been a few weeks, and {supportName} says a version has shipped, tell them \u2014 it's a one-minute check on their side.
5024
5159
  `
5025
5160
  }
5026
5161
  ];
@@ -5141,7 +5276,7 @@ Nothing you do in Studio can damage the live website \u2014 every edit is checke
5141
5276
  ];
5142
5277
 
5143
5278
  // src/studio-ui/help/index.ts
5144
- var HELP_ARTICLES = [...QUICK_START, ...PUBLISHING, ...BLOG, ...PICTURES, ...MARKDOWN, ...EVENTS, ...ACCOUNT, ...TROUBLE];
5279
+ var HELP_ARTICLES = [...QUICK_START, ...PUBLISHING, ...BLOG, ...PICTURES, ...MARKDOWN, ...EVENTS, ...ACCOUNT, ...UPDATES, ...TROUBLE];
5145
5280
  var GENERIC_VARS = { siteName: "your website", supportName: "your web team", types: "blog posts and events" };
5146
5281
  function joinTypes(labels) {
5147
5282
  if (labels.length === 0) return GENERIC_VARS.types;