@realiizlabs/admin 0.15.2 → 0.15.3

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.
@@ -407,7 +407,7 @@ declare function UpdateBody({ update, onLater, compact }: {
407
407
  }): react.JSX.Element;
408
408
 
409
409
  /** The Help center's data shapes. Articles are plain data so the page and the assistant read the same text. */
410
- type HelpSectionId = "start" | "publishing" | "blog" | "pictures" | "markdown" | "events" | "account" | "trouble";
410
+ type HelpSectionId = "start" | "publishing" | "blog" | "pictures" | "markdown" | "events" | "account" | "updates" | "trouble";
411
411
  interface HelpSection {
412
412
  id: HelpSectionId;
413
413
  title: string;
@@ -407,7 +407,7 @@ declare function UpdateBody({ update, onLater, compact }: {
407
407
  }): react.JSX.Element;
408
408
 
409
409
  /** The Help center's data shapes. Articles are plain data so the page and the assistant read the same text. */
410
- type HelpSectionId = "start" | "publishing" | "blog" | "pictures" | "markdown" | "events" | "account" | "trouble";
410
+ type HelpSectionId = "start" | "publishing" | "blog" | "pictures" | "markdown" | "events" | "account" | "updates" | "trouble";
411
411
  interface HelpSection {
412
412
  id: HelpSectionId;
413
413
  title: string;
@@ -710,7 +710,7 @@ function Tabs({ options, value, onChange, label = "Sections" }) {
710
710
  }
711
711
 
712
712
  // src/version.ts
713
- var ADMIN_VERSION = "0.15.2" ;
713
+ var ADMIN_VERSION = "0.15.3" ;
714
714
 
715
715
  // src/studio-ui/css.ts
716
716
  var STUDIO_CSS = `
@@ -3976,7 +3976,11 @@ function StudioTab({ update, version, role }) {
3976
3976
  supportName,
3977
3977
  " 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 ",
3978
3978
  /* @__PURE__ */ jsx("b", { children: "Update" }),
3979
- ". If the update would break anything, the button never unlocks."
3979
+ ". If the update would break anything, the button never unlocks. Your site looks for new versions once a week, on Monday morning."
3980
+ ] }),
3981
+ /* @__PURE__ */ jsxs("p", { className: "acct-blurb", style: { marginTop: ".5rem" }, children: [
3982
+ /* @__PURE__ */ jsx("a", { href: "/admin/help#s-updates", children: "Everything about updates, in the Help center" }),
3983
+ " \u2014 when they arrive, what they can and can\u2019t change, and what to do if one fails."
3980
3984
  ] })
3981
3985
  ] })
3982
3986
  ] });
@@ -4016,6 +4020,7 @@ var HELP_SECTIONS = [
4016
4020
  { id: "markdown", title: "Writing in Markdown", blurb: "Headings, lists, links, tables \u2014 the formatting the editor understands." },
4017
4021
  { id: "events", title: "Events", blurb: "Dates, times, time zones, kinds, and what to do when plans change." },
4018
4022
  { id: "account", title: "Account & team", blurb: "Your profile, your password, who else can sign in, your branding." },
4023
+ { id: "updates", title: "Studio updates", blurb: "How new versions reach you, what the Update button does, and what could go wrong (not much)." },
4019
4024
  { id: "trouble", title: "Troubleshooting", blurb: "When something doesn't look right \u2014 what it means and what to do." }
4020
4025
  ];
4021
4026
 
@@ -4984,37 +4989,161 @@ Pictures save the moment you choose them (**Choose a picture**, **Replace**, **R
4984
4989
 
4985
4990
  In Studio's own secure storage \u2014 not in your website's files, so they don't go through Save/Publish.
4986
4991
  `
4987
- },
4992
+ }
4993
+ ];
4994
+
4995
+ // src/studio-ui/help/updates.ts
4996
+ var UPDATES = [
4988
4997
  {
4989
4998
  id: "updating-studio",
4990
- section: "account",
4999
+ section: "updates",
4991
5000
  title: "Updating Studio",
4992
5001
  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.",
4993
- keywords: ["update", "upgrade", "new version", "release", "what's new", "studio version"],
5002
+ keywords: ["update", "upgrade", "new version", "release", "what's new", "studio version", "update button"],
4994
5003
  body: `
4995
5004
  ## What it is
4996
5005
 
4997
- 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.
5006
+ 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.
4998
5007
 
4999
5008
  ## Where you see it
5000
5009
 
5001
- - 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.
5010
+ - 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.
5002
5011
  - **Settings \u2192 Studio**: the version you're running, the pending update with its notes, and the same Update button.
5012
+ - The version you're running is always printed in small type at the bottom of the sidebar, under **Collapse**.
5003
5013
 
5004
- 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.
5014
+ 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.
5005
5015
 
5006
5016
  ## How to update
5007
5017
 
5008
- 1. Read **What's new** (a few lines, plain English).
5018
+ 1. Read **What's new** \u2014 a few lines, plain English.
5009
5019
  2. Optional: press **Preview** to open your website running the new Studio.
5010
5020
  3. Press **Update**. The tracker shows *Updated \u2192 Live*; about two minutes later the website has rebuilt.
5011
- 4. Reload Studio to use the new version.
5021
+ 4. Reload Studio. The number at the bottom of the sidebar changes \u2014 that's how you know it landed.
5012
5022
 
5013
5023
  ## Good to know
5014
5024
 
5015
- - **Later** hides the strip for this browser tab; it comes back next time.
5016
- - Nothing on your public website changes because of a Studio update \u2014 only the dashboard does.
5025
+ - **Later** hides the strip for this browser tab; it comes back next time you open Studio.
5026
+ - Nothing on your public website changes because of a Studio update \u2014 only the dashboard does. Your posts, pictures and events are untouched.
5017
5027
  - You can't skip a version or go back from here; if something looks wrong after an update, tell {supportName}.
5028
+ `
5029
+ },
5030
+ {
5031
+ id: "when-updates-arrive",
5032
+ section: "updates",
5033
+ title: "When updates arrive",
5034
+ 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.",
5035
+ keywords: ["monday", "schedule", "when", "how often", "weekly", "check for updates", "notification"],
5036
+ body: `
5037
+ ## The rhythm
5038
+
5039
+ 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.
5040
+
5041
+ 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.
5042
+
5043
+ ## Why weekly and not instantly
5044
+
5045
+ {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.
5046
+
5047
+ ## What if I'm away that Monday?
5048
+
5049
+ 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.
5050
+
5051
+ ## Will I get an email?
5052
+
5053
+ 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.
5054
+ `
5055
+ },
5056
+ {
5057
+ id: "what-an-update-changes",
5058
+ section: "updates",
5059
+ title: "What an update does and doesn't change",
5060
+ summary: "The dashboard, yes. Your website's content, design and visitors' experience, no.",
5061
+ keywords: ["safe", "risk", "what changes", "content", "design", "visitors", "break", "downtime"],
5062
+ body: `
5063
+ ## What changes
5064
+
5065
+ 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.
5066
+
5067
+ ## What doesn't change
5068
+
5069
+ - **Your content.** Posts, pictures, events, pages: untouched. An update never edits, moves or deletes anything you've published or saved.
5070
+ - **Your website's design.** How {siteName} looks to visitors is separate from Studio. An update can't restyle your site.
5071
+ - **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.
5072
+ - **Your sign-ins and team.** Everyone keeps their access and role.
5073
+
5074
+ ## Why it's safe to press
5075
+
5076
+ 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.
5077
+ `
5078
+ },
5079
+ {
5080
+ id: "update-questions",
5081
+ section: "updates",
5082
+ title: "Update questions, answered",
5083
+ summary: "Do I have to? Who can? Can I undo it? What if I press it twice? The short answers.",
5084
+ keywords: ["faq", "questions", "must i update", "who can update", "undo update", "roll back", "editors", "pressed twice"],
5085
+ body: `
5086
+ ## Do I have to update?
5087
+
5088
+ 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.
5089
+
5090
+ ## Who can press Update?
5091
+
5092
+ 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.
5093
+
5094
+ ## Can I see what's coming before I press it?
5095
+
5096
+ 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.
5097
+
5098
+ ## Can I undo an update?
5099
+
5100
+ 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.
5101
+
5102
+ ## I pressed Update and nothing seems different
5103
+
5104
+ 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.
5105
+
5106
+ ## I pressed Update twice
5107
+
5108
+ No harm done. The second press finds nothing to update and does nothing.
5109
+
5110
+ ## The strip disappeared before I pressed anything
5111
+
5112
+ 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.
5113
+
5114
+ ## What does the version number mean?
5115
+
5116
+ 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.
5117
+ `
5118
+ },
5119
+ {
5120
+ id: "update-problems",
5121
+ section: "updates",
5122
+ title: "When an update isn't offered, or fails",
5123
+ summary: "Settings \u2192 Studio says checking or failed; the Update button gave an error. What each means and who's handling it.",
5124
+ keywords: ["checks failed", "checking", "failed", "error", "not available", "stuck", "no update", "problem"],
5125
+ body: `
5126
+ ## Settings \u2192 Studio says "Checking\u2026"
5127
+
5128
+ 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.
5129
+
5130
+ ## Settings \u2192 Studio says "The checks failed"
5131
+
5132
+ 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.
5133
+
5134
+ ## I pressed Update and got a message
5135
+
5136
+ - **"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.
5137
+ - **"The checks failed."** Same as above: a fresh check found a problem. {supportName} can see it.
5138
+ - **"That isn't a Studio update."** The offer you were looking at is no longer current \u2014 reload Studio for the latest one.
5139
+
5140
+ ## The tracker is stuck on "Live"
5141
+
5142
+ 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.
5143
+
5144
+ ## I'm not seeing updates at all
5145
+
5146
+ 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.
5018
5147
  `
5019
5148
  }
5020
5149
  ];
@@ -5135,7 +5264,7 @@ Nothing you do in Studio can damage the live website \u2014 every edit is checke
5135
5264
  ];
5136
5265
 
5137
5266
  // src/studio-ui/help/index.ts
5138
- var HELP_ARTICLES = [...QUICK_START, ...PUBLISHING, ...BLOG, ...PICTURES, ...MARKDOWN, ...EVENTS, ...ACCOUNT, ...TROUBLE];
5267
+ var HELP_ARTICLES = [...QUICK_START, ...PUBLISHING, ...BLOG, ...PICTURES, ...MARKDOWN, ...EVENTS, ...ACCOUNT, ...UPDATES, ...TROUBLE];
5139
5268
  var GENERIC_VARS = { siteName: "your website", supportName: "your web team", types: "blog posts and events" };
5140
5269
  function joinTypes(labels) {
5141
5270
  if (labels.length === 0) return GENERIC_VARS.types;