create-heresay 0.2.10 → 0.2.12

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.
@@ -23,7 +23,11 @@
23
23
  s.src = '/sdk/v1.js';
24
24
  s.dataset.key = q.get('key') || '';
25
25
  s.dataset.version = '0.0.1-demo';
26
- if (q.get('accent')) s.dataset.accent = q.get('accent');
26
+ // The design options, so a look can be tried here before it goes in the app's code.
27
+ ['accent', 'position', 'offset', 'button', 'label', 'style', 'size', 'fill', 'shadow', 'mark', 'theme',
28
+ 'font', 'lang', 'placeholder', 'types', 'thanks', 'panel', 'width', 'backdrop', 'preferences', 'intro']
29
+ .forEach(function (k) { if (q.get(k) != null) s.setAttribute('data-' + k, q.get(k)); });
30
+ if (q.has('preview')) s.setAttribute('data-preview', '');
27
31
  document.body.appendChild(s);
28
32
  </script>
29
33
  </body>
@@ -20,7 +20,7 @@
20
20
  <div class="docs">
21
21
  <aside class="toc">
22
22
  <b>START</b><a href="#self-host">Set up Heresay</a><a href="#quick-start">Add it to an app</a><a href="#what-users-see">What your users see</a><a href="#dashboard">The dashboard</a>
23
- <b>REFERENCE</b><a href="#options">Script tag options</a><a href="#api">JavaScript API</a><a href="#statuses">Report types and statuses</a><a href="#agents">Coding agents</a>
23
+ <b>REFERENCE</b><a href="#options">Script tag options</a><a href="#design">Look and placement</a><a href="#api">JavaScript API</a><a href="#statuses">Report types and statuses</a><a href="#agents">Coding agents</a>
24
24
  <b>MORE</b><a href="#security">Security and limits</a><a href="#privacy">Privacy</a><a href="#csp">Content Security Policy</a><a href="#apple">iOS and macOS</a><a href="#rest">Other platforms</a><a href="#trouble">Troubleshooting</a>
25
25
  </aside>
26
26
 
@@ -68,8 +68,8 @@
68
68
  <tr><td><code>data-user-id</code></td><td><code>u_1842</code></td><td>Who the user is, in your system.</td></tr>
69
69
  <tr><td><code>data-user-label</code></td><td><code>Asha K.</code></td><td>A name to show in your dashboard.</td></tr>
70
70
  <tr><td><code>data-user-email</code></td><td><code>asha@example.com</code></td><td>Their email, so you can reply. Or use <code>identify</code> below.</td></tr>
71
- <tr><td><code>data-accent</code></td><td><code>#6d28d9</code></td><td>Your brand colour for the Send button and selected states. Hex only. Text on it switches to white or black automatically.</td></tr>
72
- <tr><td><code>data-position</code></td><td><code>left</code></td><td>Put the button in the bottom-left corner instead of the right.</td></tr>
71
+ <tr><td><code>data-accent</code></td><td><code>#6d28d9</code></td><td>Your brand colour for the Send button, selected states and the logo. Hex only. Text on it switches to white or black automatically.</td></tr>
72
+ <tr><td><code>data-position</code></td><td><code>left</code></td><td>Put the button in the bottom-left corner instead of the right. More in <a href="#design">Look and placement</a>.</td></tr>
73
73
  <tr><td><code>data-api</code></td><td><code>https://…/v1</code></td><td>Rarely needed. Where your Heresay API lives, if it is not at the same address as <code>sdk.js</code>.</td></tr></table>
74
74
  <pre><code><span class="k">&lt;script</span> src="ORIGIN/sdk/v1.js"
75
75
  data-key="pk_your_key"
@@ -77,14 +77,40 @@
77
77
  data-accent="#6d28d9"
78
78
  defer<span class="k">&gt;&lt;/script&gt;</span></code></pre>
79
79
 
80
+ <h2 id="design">Look and placement</h2>
81
+ <p>The defaults are what we recommend: change only what your app needs. The easiest way is the dashboard: open an app and choose <b>Design</b> to try each option on the real widget and copy the tag. The first value is the default.</p>
82
+ <table><tr><th>Attribute</th><th>Values</th></tr>
83
+ <tr><td><code>data-position</code></td><td><code>right</code> · <code>left</code> · <code>top-right</code> · <code>top-left</code> · <code>center</code></td></tr>
84
+ <tr><td><code>data-offset</code></td><td><code>20</code> px from the edges, or <code>x,y</code> like <code>24,96</code> to clear a chat bubble</td></tr>
85
+ <tr><td><code>data-button</code></td><td><code>always</code> · <code>none</code> (open it from your own menu with <code>Heresay.open()</code>) · <code>desktop</code> (not on phones) · <code>scroll</code> (after the first scroll)</td></tr>
86
+ <tr><td><code>data-label</code></td><td><code>Report</code>, or your own words up to 40 characters</td></tr>
87
+ <tr><td><code>data-style</code></td><td><code>pill</code> · <code>icon</code> · <code>tab</code> (on the side edge)</td></tr>
88
+ <tr><td><code>data-size</code></td><td><code>regular</code> · <code>small</code> · <code>large</code></td></tr>
89
+ <tr><td><code>data-fill</code></td><td><code>neutral</code> · <code>accent</code> (filled with your colour)</td></tr>
90
+ <tr><td><code>data-shadow</code></td><td><code>soft</code> · <code>none</code> · <code>strong</code></td></tr>
91
+ <tr><td><code>data-hide-on</code></td><td>paths where the button stays hidden, like <code>/checkout,/login</code></td></tr>
92
+ <tr><td><code>data-mark</code></td><td><code>accent</code> (the logo follows your colour) · <code>heresay</code> (keep the Heresay teal)</td></tr>
93
+ <tr><td><code>data-theme</code></td><td><code>auto</code> (follows the device) · <code>light</code> · <code>dark</code></td></tr>
94
+ <tr><td><code>data-font</code></td><td><code>system</code> · <code>inherit</code> (your page's font)</td></tr>
95
+ <tr><td><code>data-lang</code></td><td>your page's <code>&lt;html lang&gt;</code> · <code>auto</code> (the browser's) · <code>en</code> · <code>fr</code> · <code>ta</code> (Tamil) · <code>hi</code> (Hindi)</td></tr>
96
+ <tr><td><code>data-placeholder</code></td><td>the question in the text box</td></tr>
97
+ <tr><td><code>data-types</code></td><td>all four, or some of <code>broken,confusing,improvement,idea</code>. Their names don't change: the type sets the priority.</td></tr>
98
+ <tr><td><code>data-thanks</code></td><td>a line shown after sending</td></tr>
99
+ <tr><td><code>data-panel</code></td><td><code>corner</code> · <code>sheet</code> (full height on that side) · <code>center</code></td></tr>
100
+ <tr><td><code>data-width</code></td><td><code>regular</code> · <code>narrow</code> · <code>wide</code></td></tr>
101
+ <tr><td><code>data-backdrop</code></td><td><code>dim</code> · <code>clear</code> · <code>blur</code></td></tr>
102
+ <tr><td><code>data-preferences</code></td><td><code>show</code> · <code>hide</code></td></tr></table>
103
+ <p>Always there, whatever you choose: the Heresay mark on the button, the <b>Your reports</b> tab (people read why a report was declined), and <b>Powered by Heresay</b> in the panel and the introduction, so people can tell your app uses an outside tool. The widget lives in a shadow root, so your CSS can't restyle it.</p>
104
+
80
105
  <h2 id="api">JavaScript API</h2>
81
106
  <p>The script creates <code>window.Heresay</code> (also available as <code>window.Feedback</code>). Call these any time after it loads.</p>
82
107
  <table><tr><th>Call</th><th>What it does</th></tr>
83
108
  <tr><td><code>Heresay.identify({ id, label, email })</code></td><td>Tell Heresay who is signed in. Call it after login; pass nothing to clear it. Then nobody is asked their name to send a report, and with <code>email</code> you can reply to them. Apps with many users and logins need nothing more: it follows whoever is signed in on that device.</td></tr>
84
109
  <tr><td><code>Heresay.setVersion("1.4.0")</code></td><td>Set or change the app version.</td></tr>
85
110
  <tr><td><code>Heresay.setScreen("Checkout")</code></td><td>Name the current screen, for apps whose URL doesn't change between screens.</td></tr>
86
- <tr><td><code>Heresay.open()</code></td><td>Open the report form from your own button or menu item.</td></tr>
87
- <tr><td><code>Heresay.introduce()</code></td><td>Once per device, a small bubble over the button says what it's for, so people know it exists. Call it when your main screen is up (after sign-in or onboarding), or add <code>data-intro="auto"</code> to the tag. Later calls do nothing.</td></tr>
111
+ <tr><td><code>Heresay.open({ type, text })</code></td><td>Open the report form from your own button or menu item. <code>type</code> and <code>text</code> are optional and fill it in, for example from an error screen; the person still reviews and sends it.</td></tr>
112
+ <tr><td><code>Heresay.on("sent", fn)</code></td><td>Calls <code>fn({ id, type })</code> after each report is sent, to thank people or count it in your analytics. Returns a function that stops it.</td></tr>
113
+ <tr><td><code>Heresay.introduce({ title, body })</code></td><td>Once per device, a small bubble over the button says what it's for, so people know it exists. Call it when your main screen is up (after sign-in or onboarding), or add <code>data-intro="auto"</code> to the tag. Later calls do nothing. <code>title</code> and <code>body</code> are optional, to use your own words.</td></tr>
88
114
  <tr><td><code>Heresay.openPreferences()</code></td><td>Open the Preferences tab: a note about their setup, sent with every report. People who aren't signed in can also add a name and an email for replies. It's all optional and saved on their device. Where the button sits is yours to choose, with <code>data-position</code>.</td></tr>
89
115
  <tr><td><code>Heresay.close()</code></td><td>Close the panel.</td></tr></table>
90
116
  <p>Each report also carries the page it came from: its title, its address without the query string, and the window size.</p>
@@ -157,7 +183,7 @@ connect-src ORIGIN;</code></pre>
157
183
  WindowGroup { ContentView().heresayReportButton() } <span class="k">// iOS: a Report button in the corner</span>
158
184
  }
159
185
  }</code></pre>
160
- <p>On macOS, use <code>ContentView().heresay()</code> and add <code>.commands { HeresayCommands() }</code> for <b>Help › Report a Problem…</b> (⌥⌘R). The same calls as the web SDK exist: <code>Heresay.identify(id:label:email:)</code>, <code>Heresay.presentPreferences()</code>, <code>Heresay.introduce()</code> (once per install, an alert saying where to find it; call it when the main screen appears), <code>Heresay.setScreen(_:)</code>, <code>Heresay.present()</code>, and <code>Heresay.send(_:text:)</code> for your own UI. The app version comes from the bundle. Native apps have no web origin to lock the key to; the rate limits still apply.</p>
186
+ <p>On macOS, use <code>ContentView().heresay()</code> and add <code>.commands { HeresayCommands() }</code> for <b>Help › Report a Problem…</b> (⌥⌘R). The same calls as the web SDK exist: <code>Heresay.identify(id:label:email:)</code>, <code>Heresay.presentPreferences()</code>, <code>Heresay.introduce()</code> (once per install, a welcome sheet on iOS or a small window on macOS saying where to find it; call it when the main screen appears), <code>Heresay.setScreen(_:)</code>, <code>Heresay.present(type:text:)</code>, <code>Heresay.onSent</code>, and <code>Heresay.send(_:text:)</code> for your own UI. How it looks is one <code>HeresayStyle</code> passed to <code>configure(…, style:)</code>, with the same choices as the web (corner, offset, text, pill or icon, size, fill, shadow, screens to hide it on, theme, typeface, English, French, Tamil or Hindi, report types, a thank-you line, sheet size, the Preferences tab). The defaults are recommended; the dashboard's <b>Design</b> page shows each choice and gives the Swift. The app version comes from the bundle. Native apps have no web origin to lock the key to; the rate limits still apply.</p>
161
187
 
162
188
  <h2 id="rest">Other platforms</h2>
163
189
  <p>Android, React Native and Flutter SDKs are on the way. Until then, any app can talk to the same API. Both calls take a JSON body.</p>
@@ -1,6 +1,24 @@
1
1
  {
2
2
  "about": "Features added to Heresay since apps were first installed. An agent in a connected repo checks these with whats_new, tells the person what's new, and asks before adding any. `detect` is what the code contains once a feature is in; `platforms` limits it to those apps; `sign_in` limits it to apps that answered that.",
3
3
  "changes": [
4
+ {
5
+ "id": "design-apple",
6
+ "since": "0.2.11",
7
+ "title": "Make Heresay fit the app",
8
+ "summary": "The Swift package takes a HeresayStyle: another corner or clear a tab bar, say “Feedback” instead of “Report”, a quieter button, the app's light or dark theme, French, Tamil or Hindi, a half-height or full-screen sheet, or only some report types. The dashboard's Design page shows each choice and gives the Swift.",
9
+ "platforms": ["ios", "macos"],
10
+ "detect": ["HeresayStyle("],
11
+ "how": { "ios": "guide customize-apple", "macos": "guide customize-apple" }
12
+ },
13
+ {
14
+ "id": "design-web",
15
+ "since": "0.2.11",
16
+ "title": "Make the Report button fit the app",
17
+ "summary": "The web widget can take the app's colour (the logo follows it), sit in another corner or clear a chat bubble, say “Feedback” instead of “Report”, follow the app's light or dark theme, speak French, Tamil or Hindi, or have no floating button when the app has its own feedback menu item. The dashboard's Design page shows each choice on the real widget.",
18
+ "platforms": ["web"],
19
+ "detect": ["data-accent", "data-hide-on", "data-backdrop", "data-preferences"],
20
+ "how": { "web": "guide customize-web" }
21
+ },
4
22
  {
5
23
  "id": "introduce",
6
24
  "since": "0.2.7",
@@ -0,0 +1,74 @@
1
+ # Change how Heresay looks in an iOS or macOS app
2
+
3
+ Goal: Heresay fits the app, with the fewest changes. **The defaults are the recommended
4
+ setup.** Change something only when the person asks, or when the app clearly needs it (see
5
+ "When to change what"). Everything is one `HeresayStyle`, passed to `Heresay.configure`, plus
6
+ the accent colour. Needs the Swift package 0.2.11 or later.
7
+
8
+ The easiest way to choose is the dashboard: open the app, then **Design**. It shows a likeness
9
+ of the button and sheet with the choices applied and gives the exact Swift, plus a prompt for
10
+ you. If the person pasted that prompt, do what it says and nothing more.
11
+
12
+ ```swift
13
+ Heresay.configure(
14
+ key: "KEY",
15
+ url: URL(string: "HERESAY_URL")!,
16
+ accent: Color(red: 0.486, green: 0.227, blue: 0.929),
17
+ style: HeresayStyle(position: .bottomLeading, label: "Feedback")
18
+ )
19
+ ```
20
+
21
+ ## When to change what
22
+
23
+ | The app has... | Do this |
24
+ | --- | --- |
25
+ | Its own feedback or help button | `.heresay()` instead of `.heresayReportButton()`, and that button calls `Heresay.present()` |
26
+ | A macOS app | keep the default: `.heresay()` plus `.commands { HeresayCommands() }` (Help › Report a Problem…, ⌥⌘R) |
27
+ | A tab bar or toolbar in the bottom right | `position: .bottomLeading`, or `offset: 80` to sit above it |
28
+ | A brand colour | `accent:` on `configure` (the mark follows it) |
29
+ | Only a dark theme, or only a light one | `theme: .dark` or `.light`; otherwise leave it following the app |
30
+ | French, Tamil or Hindi users | nothing, if the app is localised into `fr`, `ta` or `hi`; otherwise `language:` with that code |
31
+ | An error screen | a button there that calls `Heresay.present(type: .broken, text: "<what failed>")` |
32
+ | Screens where a corner button gets in the way (checkout, sign-in) | `hiddenOnScreens: ["Checkout"]`, and those screens call `Heresay.setScreen("Checkout")` |
33
+
34
+ ## Every option
35
+
36
+ `HeresayStyle(...)` takes these in this order (Swift needs the order); leave out any you don't
37
+ change. The first value is the default.
38
+
39
+ | Parameter | Values |
40
+ | --- | --- |
41
+ | `position` | `.bottomTrailing` · `.bottomLeading` · `.topTrailing` · `.topLeading` · `.bottom` |
42
+ | `offset` | `16` points from the edges (at most 200) |
43
+ | `label` | `nil` ("Report", in the sheet's language) · any text up to 40 characters |
44
+ | `button` | `.pill` · `.icon` (the label stays as its accessibility label) |
45
+ | `size` | `.regular` · `.small` · `.large` |
46
+ | `fill` | `.accent` (filled with the accent, white text) · `.neutral` (system material, the mark in the accent) |
47
+ | `shadow` | `.soft` · `.none` · `.strong` |
48
+ | `hiddenOnScreens` | `[]` · screen names as set with `Heresay.setScreen` |
49
+ | `markFollowsAccent` | `true` · `false` (keep the Heresay teal) |
50
+ | `theme` | `.system` · `.light` · `.dark` |
51
+ | `typeface` | `.system` · `.rounded` · `.serif` |
52
+ | `language` | `nil` (the app's language) · `"en"` · `"fr"` · `"ta"` (Tamil) · `"hi"` (Hindi). Others show English. |
53
+ | `placeholder` | `nil` · the question in the text box, up to 120 characters |
54
+ | `types` | all four · some of `[.broken, .confusing, .improvement, .idea]`. Their names can't change: the type sets the priority. |
55
+ | `thanks` | `nil` · a line after "Sent. Thank you.", up to 160 characters. Don't promise a fix. |
56
+ | `sheet` | `.regular` · `.compact` (half height on iPhone; narrower on Mac) · `.large` (full screen on iPhone and iPad; wider on Mac) |
57
+ | `showsPreferences` | `true` · `false` (hide it when the app calls `identify` and wants nothing else asked) |
58
+
59
+ `Heresay.setStyle(_:)` changes it later, for example when the app's own theme setting changes.
60
+
61
+ **Calls**
62
+
63
+ - `Heresay.present(type:text:)`: opens the sheet, filled in. The person still reviews and sends it.
64
+ - `Heresay.onSent { event in ... }`: after each report is sent, with `event.id` and `event.type`, never the text.
65
+ - `Heresay.introduce(title:message:)`: the one-time introduction in your own words. Leave the
66
+ words out unless asked; the default says where to find it.
67
+
68
+ ## Can't be changed
69
+
70
+ The Heresay mark, the report types' names, the Your reports tab (people must be able to read why
71
+ a report was declined), and "Powered by Heresay" in the sheet and the introduction. People
72
+ should be able to tell the app uses an outside tool. Don't cover or remove them.
73
+
74
+ After changing it, run the app and look at the button, the open sheet and the introduction.
@@ -0,0 +1,95 @@
1
+ # Change how Heresay looks in a web app
2
+
3
+ Goal: the Report button fits the app, with the fewest changes. **The defaults are the
4
+ recommended setup.** Change something only when the person asks, or when the app clearly needs
5
+ it (see "When to change what"). Every option is a `data-` attribute on the same script tag;
6
+ nothing needs CSS, and the app's CSS can't reach the widget anyway.
7
+
8
+ The easiest way to choose is the dashboard: open the app, then **Design**. It shows the real
9
+ widget with the choices applied and gives the exact tag, plus a prompt for you. If the person
10
+ pasted that prompt, do what it says and nothing more.
11
+
12
+ ## When to change what
13
+
14
+ | The app has... | Do this |
15
+ | --- | --- |
16
+ | Its own "Send feedback" or help menu | `data-button="none"`, and make that menu item call `window.Heresay?.open()` |
17
+ | A chat bubble or cookie banner in the bottom right | `data-position="left"`, or `data-offset="20,96"` to sit above it |
18
+ | A brand colour | `data-accent="#rrggbb"` (the logo follows it) |
19
+ | Only a dark theme, or only a light one | `data-theme="dark"` or `"light"`; otherwise leave it following the device |
20
+ | French, Tamil or Hindi users | nothing, if `<html lang>` is set (`fr`, `ta`, `hi`); otherwise `data-lang` with that code, or `"auto"` |
21
+ | An error screen or "Something went wrong" page | a button there that calls `window.Heresay?.open({ type: 'broken', text: '<what failed>' })` |
22
+ | Pages where a floating button gets in the way (checkout, login) | `data-hide-on="/checkout,/login"` |
23
+
24
+ ## Every option
25
+
26
+ The first value is the default.
27
+
28
+ **The button**
29
+
30
+ | Attribute | Values |
31
+ | --- | --- |
32
+ | `data-position` | `right` · `left` · `top-right` · `top-left` · `center` (bottom centre) |
33
+ | `data-offset` | `20` · any number of px, or `x,y` like `24,96` (at most 400) |
34
+ | `data-button` | `always` · `none` (no button; open it yourself) · `desktop` (not on phones) · `scroll` (after the first scroll; after 10 s on a page that doesn't scroll) |
35
+ | `data-label` | `Report` · any text up to 40 characters, e.g. `Feedback` |
36
+ | `data-style` | `pill` · `icon` (icon only; the label stays as its accessible name) · `tab` (on the side edge) |
37
+ | `data-size` | `regular` · `small` · `large` |
38
+ | `data-fill` | `neutral` · `accent` (filled with the accent colour) |
39
+ | `data-shadow` | `soft` · `none` · `strong` |
40
+ | `data-hide-on` | comma-separated paths; each hides the button on that path and everything under it |
41
+
42
+ **Look**
43
+
44
+ | Attribute | Values |
45
+ | --- | --- |
46
+ | `data-accent` | Heresay peacock · any hex colour, `#rgb` or `#rrggbb`. Anything else is ignored. |
47
+ | `data-mark` | `accent` (the logo follows the accent) · `heresay` (keep the Heresay teal) |
48
+ | `data-theme` | `auto` (follows the device) · `light` · `dark` |
49
+ | `data-font` | `system` · `inherit` (the page's font) |
50
+
51
+ **Words**
52
+
53
+ | Attribute | Values |
54
+ | --- | --- |
55
+ | `data-lang` | the page's `<html lang>` · `auto` (the browser's) · `en` · `fr` · `ta` (Tamil) · `hi` (Hindi). Other languages show English. |
56
+ | `data-placeholder` | the question in the text box, up to 120 characters |
57
+ | `data-types` | all four · a comma list of `broken`, `confusing`, `improvement`, `idea`. Their names can't change: the type sets the priority. |
58
+ | `data-thanks` | none · a line shown after sending, up to 160 characters. Don't promise a fix. |
59
+
60
+ Intro wording: `window.Heresay?.introduce({ title, body })`. Leave it out unless asked; the
61
+ default says what matters.
62
+
63
+ **The panel**
64
+
65
+ | Attribute | Values |
66
+ | --- | --- |
67
+ | `data-panel` | `corner` (next to the button) · `sheet` (full height on that side) · `center` |
68
+ | `data-width` | `regular` · `narrow` · `wide` |
69
+ | `data-backdrop` | `dim` · `clear` · `blur` |
70
+ | `data-preferences` | `show` · `hide` (hide it when the app calls `identify()` and wants nothing else asked) |
71
+ | `data-intro` | not set (the app calls `introduce()`) · `auto` (3 s after the first visit) |
72
+
73
+ **Calls**
74
+
75
+ - `window.Heresay?.open({ type, text })`: opens the form, filled in. The person still reviews and sends it.
76
+ - `window.Heresay?.on('sent', ({ id, type }) => ...)`: after each report is sent, for example to thank them or count it in the app's analytics. It returns a function that stops listening. It never gets the report text.
77
+
78
+ ## Can't be changed
79
+
80
+ The Heresay mark on the button, the report types' names, the "Your reports" tab (people must
81
+ be able to read why a report was declined), and the "Powered by Heresay" line in the panel and
82
+ the introduction. People should be able to tell the app uses an outside tool. Don't hide these
83
+ with CSS, `::part` or scripts.
84
+
85
+ ## Example
86
+
87
+ ```html
88
+ <script src="SDK_URL" data-key="KEY"
89
+ data-position="left" data-accent="#7c3aed" data-label="Feedback"
90
+ defer></script>
91
+ ```
92
+
93
+ In Next.js, Nuxt and the rest, add the same attributes to the tag's existing form (for example
94
+ `<Script ... data-position="left" />`). After changing it, run the app and look at the button,
95
+ the open panel and the introduction.
@@ -1,9 +1,11 @@
1
1
  {
2
- "skill_version": 3,
2
+ "skill_version": 5,
3
3
  "topics": {
4
4
  "start": "What Heresay is, the rules, and which topic to read next",
5
5
  "install-web": "Add the Heresay web SDK to an app, for any framework, and prove it works",
6
+ "customize-web": "Change how the web widget looks and where it sits: every option, the recommended defaults, and when to change them",
6
7
  "install-apple": "Add the Heresay Swift package to an iOS or macOS app",
8
+ "customize-apple": "Change how Heresay looks in an iOS or macOS app: HeresayStyle, the recommended defaults, and when to change them",
7
9
  "fix-brief": "Fix an accepted report: find, claim, fix, hand off, mark fixed",
8
10
  "write-note": "Write the note the reporter reads when a report is fixed",
9
11
  "uninstall": "Remove Heresay from an app, and disconnect the repo",
@@ -55,8 +55,8 @@ Then nobody is asked their name to send a report, and the team can reply to them
55
55
 
56
56
  On macOS the report window lives under Help, and on iOS it's a small button; people who have never
57
57
  seen it won't go looking. Call `Heresay.introduce()` once the person reaches the app's main
58
- screen: after sign-in and after any onboarding, never over a login or first-run screen. It shows a
59
- native alert, once per install, that says where to find it (Help › Report a Problem… (⌥⌘R) on
58
+ screen: after sign-in and after any onboarding, never over a login or first-run screen. Once per
59
+ install it shows a welcome sheet on iOS, or a small window of its own on macOS, that says where to find it (Help › Report a Problem… (⌥⌘R) on
60
60
  macOS, the Report button on iOS) and offers to open it. Later calls do nothing, so this is fine:
61
61
 
62
62
  ```swift
@@ -71,9 +71,11 @@ build a custom dialog for this; `introduce()` is the one.
71
71
 
72
72
  - Screens: `Heresay.setScreen("Checkout")` in `.onAppear` of the main screens.
73
73
  - The app version is read from the bundle (`CFBundleShortVersionString` and build).
74
- - A brand colour: `Heresay.configure(key:url:accent: .purple)`.
74
+ - A brand colour: `Heresay.configure(key:url:accent: .purple)`. The mark follows it.
75
75
 
76
- Change nothing else in the app.
76
+ Everything else about the look (corner, text, size, theme, language, sheet size) is optional and
77
+ has a recommended default: leave it unless the person asks. Guide `customize-apple` lists every
78
+ option; the dashboard's **Design** page shows them. Change nothing else in the app.
77
79
 
78
80
  ## 7. Prove it
79
81
 
@@ -61,9 +61,13 @@ Don't build a custom dialog for this; `introduce()` is the one.
61
61
 
62
62
  - A version: add `data-version="<version>"` to the tag (from package.json, a build env var, ...).
63
63
  - Screens that change without the URL changing: `window.Heresay?.setScreen("<name>")` on each change.
64
- - A brand colour: `data-accent="#rrggbb"` (hex only).
64
+ - A brand colour: `data-accent="#rrggbb"` (hex only). The logo follows it.
65
+ - The app has its own feedback or help menu item: `data-button="none"`, and make that item call
66
+ `window.Heresay?.open()`.
65
67
 
66
- Change nothing else in the app.
68
+ Everything else about the look is optional and has a recommended default: leave it unless the
69
+ person asks. Guide `customize-web` lists every option; the dashboard's **Design** page shows
70
+ them on the real widget. Change nothing else in the app.
67
71
 
68
72
  ## 6. Prove it
69
73
 
@@ -31,6 +31,9 @@ yes; on a no, `skip_update` so nobody asks again.
31
31
  ## Which topic next
32
32
 
33
33
  - Adding Heresay to an app: `install-web` for web apps, `install-apple` for iOS and macOS.
34
+ - Making the web widget fit the app (colour, corner, text, language, no floating button):
35
+ `customize-web`; for iOS and macOS, `customize-apple`. The defaults are the recommended setup;
36
+ change them only when asked.
34
37
  - Fixing reports: `fix-brief`, then `write-note`.
35
38
  - Removing Heresay from an app: `uninstall`.
36
39
  - New features for an app that already has Heresay: `whats-new`.
@@ -8,7 +8,9 @@ This site is one team's own Heresay. Its guides for coding agents are plain Mark
8
8
 
9
9
  - [Start here](/guides/start.md): what Heresay is and the rules
10
10
  - [Install on the web](/guides/install-web.md): where the script tag goes, per framework
11
+ - [Change how it looks on the web](/guides/customize-web.md): every option, and the recommended defaults
11
12
  - [Install on iOS and macOS](/guides/install-apple.md): the Swift package and one line of setup
13
+ - [Change how it looks on iOS and macOS](/guides/customize-apple.md): HeresayStyle, and the recommended defaults
12
14
  - [Fix a brief](/guides/fix-brief.md): claim, fix, hand off, mark fixed
13
15
  - [Write the fix note](/guides/write-note.md): the note the reporter reads
14
16
  - [Docs](/docs.html): script tag options, JavaScript API, limits