create-heresay 0.2.52 → 0.2.54
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/package.json +1 -1
- package/release/VERSION +1 -1
- package/release/functions/lib/core/version.js +1 -1
- package/release/public/guides/customize-apple.md +4 -4
- package/release/public/guides/customize-web.md +6 -4
- package/release/public/guides/releases.json +26 -0
- package/release/public/sdk.js +14 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-heresay",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.54",
|
|
4
4
|
"description": "Set up your own Heresay: in-app feedback that every report gets a hearing. Creates a Firebase project in your Google account and deploys the dashboard, API and SDK to it.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
package/release/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.2.
|
|
1
|
+
0.2.54
|
|
@@ -44,15 +44,15 @@ HeresayStyle(layout: .steps) // .composer (default) · .steps · .bar
|
|
|
44
44
|
```
|
|
45
45
|
|
|
46
46
|
**`.composer` (default).** One sheet. Header: mark, "Report", Your reports (with a dot when there
|
|
47
|
-
is a reply), close. Then
|
|
48
|
-
type, Send, and a one-line footer.
|
|
49
|
-
|
|
47
|
+
is a reply), close. Then type pills on iOS or a labelled category menu on Mac, a text box whose
|
|
48
|
+
question follows the type, Send, and a one-line footer. A hint explains which requirement is
|
|
49
|
+
missing while Send is unavailable. Choose it when you have no strong preference: one screen. iPhone: a sheet that fits the form and rises with the keyboard. iPad and Mac: a
|
|
50
50
|
regular sheet.
|
|
51
51
|
|
|
52
52
|
**`.steps`.** Two screens. Screen 1: "What's going on?", Your reports (clock icon with a dot),
|
|
53
53
|
close, and four full-width rows (Broken, Confusing, Could be better, Idea), each with an icon and
|
|
54
54
|
a chevron, then "Powered by Heresay". Tapping a row goes to screen 2: back, the chosen type as a
|
|
55
|
-
pill, the text box, Send. Choose it for a guided, friendlier feel or for people who don't know what
|
|
55
|
+
pill on iOS or a plain heading on Mac, the text box, Send. Choose it for a guided, friendlier feel or for people who don't know what
|
|
56
56
|
to write until they have chosen a kind. `types:` shortens the list. With `present(type:)` it opens
|
|
57
57
|
on screen 2. iPhone: a sheet that fits each screen. iPad and Mac: a regular sheet.
|
|
58
58
|
|
|
@@ -39,10 +39,12 @@ bar (most compact), composer, steps; guidance runs the other way, steps (most gu
|
|
|
39
39
|
**`composer`** (default). Best for most apps: web apps, sites, SaaS, anything with no strong reason
|
|
40
40
|
to pick another.
|
|
41
41
|
- The reporter taps the button. A panel opens beside it with a header (mark, "Report", "Your
|
|
42
|
-
reports" with a dot when something has an update, close),
|
|
43
|
-
Confusing, Could be better, Idea)
|
|
44
|
-
wrong?"), Send, and one footer line.
|
|
45
|
-
-
|
|
42
|
+
reports" with a dot when something has an update, close), individually outlined category
|
|
43
|
+
buttons (Broken, Confusing, Could be better, Idea) that wrap on narrow screens, a text box
|
|
44
|
+
whose placeholder follows the type ("What went wrong?"), Send, and one footer line.
|
|
45
|
+
- A label asks the reporter to choose a category. A visible hint explains whether Send needs
|
|
46
|
+
a category or some report text.
|
|
47
|
+
- Tap a category, type, tap Send. A check and "Sent. You'll see the reply under Your reports." appear,
|
|
46
48
|
with Done.
|
|
47
49
|
- On phones (under 600px) the panel is a bottom sheet over a dimmed page. On wider screens it
|
|
48
50
|
opens beside the button, away from the edge, and never covers the button.
|
|
@@ -1,6 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"about": "What each Heresay release changed, in plain words. `users`: what the people using an app with Heresay will see. `developers`: what a developer can now do or must know. `action`: a code change an app needs, if any. `features`: ids from changes.json that this release introduced. Read by whats_new to explain an update before it is applied. A release cannot be cut without an entry here (scripts/release.mjs).",
|
|
3
3
|
"versions": [
|
|
4
|
+
{
|
|
5
|
+
"version": "0.2.54",
|
|
6
|
+
"date": "2026-11-26",
|
|
7
|
+
"users": [
|
|
8
|
+
"Report categories on the web are separate outlined buttons with icons and a clear selected state; they wrap on narrow screens.",
|
|
9
|
+
"The report form explains whether Send needs a category or some text.",
|
|
10
|
+
"The Mac report sheet uses the system surface, a native category menu, clearer headings, smaller action buttons and a stable writing area."
|
|
11
|
+
],
|
|
12
|
+
"developers": [
|
|
13
|
+
"No integration changes are required. The existing composer, steps and bar layout options remain available.",
|
|
14
|
+
"Browser regression checks cover four languages, both themes and narrow screens. Native accessibility-dependent layout checks report a skip when macOS cannot expose the controls; native cutoff verification remains incomplete."
|
|
15
|
+
],
|
|
16
|
+
"action": "None required."
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"version": "0.2.53",
|
|
20
|
+
"users": [
|
|
21
|
+
"On the Mac, the Report window is on real glass and sized to fit: the text box, the last type row and the footer are never cut off.",
|
|
22
|
+
"The Mac window looks native: glass type buttons, Cancel and a large Send at the bottom right (Esc and ⌘Return), a soft text field and compact rows in the steps layout."
|
|
23
|
+
],
|
|
24
|
+
"developers": [
|
|
25
|
+
"Swift: on macOS 26 the whole panel uses Liquid Glass (older macOS: regular material); no fixed heights or outer scroll view on macOS, so no view can clip."
|
|
26
|
+
],
|
|
27
|
+
"action": "None required.",
|
|
28
|
+
"date": "2026-11-24"
|
|
29
|
+
},
|
|
4
30
|
{
|
|
5
31
|
"version": "0.2.52",
|
|
6
32
|
"users": [
|
package/release/public/sdk.js
CHANGED
|
@@ -95,6 +95,7 @@
|
|
|
95
95
|
close: 'Close', dialog: 'Feedback', back: 'Back to Report',
|
|
96
96
|
mine: 'Your reports', mineAria: 'Your reports, {n} with an update', kindAria: 'What kind of report is this?', reportLabel: 'Your report',
|
|
97
97
|
phNone: 'What’s on your mind?',
|
|
98
|
+
categoryLabel: 'Choose a category', needCategory: 'Choose a category above to send.', needReport: 'Write a short report to send.',
|
|
98
99
|
send: 'Send', sending: 'Sending…', cantSend: 'Could not send. Try again.',
|
|
99
100
|
sentMsg: 'Sent. You’ll see the reply under Your reports.', done: 'Done',
|
|
100
101
|
types: {
|
|
@@ -122,6 +123,7 @@
|
|
|
122
123
|
close: 'Fermer', dialog: 'Signalement', back: 'Retour à Signaler',
|
|
123
124
|
mine: 'Vos signalements', mineAria: 'Vos signalements, {n} avec du nouveau', kindAria: 'De quel type de signalement s’agit-il ?', reportLabel: 'Votre signalement',
|
|
124
125
|
phNone: 'Qu’avez-vous en tête ?',
|
|
126
|
+
categoryLabel: 'Choisissez une catégorie', needCategory: 'Choisissez une catégorie ci-dessus pour envoyer.', needReport: 'Écrivez un court signalement pour envoyer.',
|
|
125
127
|
send: 'Envoyer', sending: 'Envoi…', cantSend: 'Envoi impossible. Réessayez.',
|
|
126
128
|
sentMsg: 'Envoyé. Vous verrez la réponse dans Vos signalements.', done: 'Terminé',
|
|
127
129
|
types: {
|
|
@@ -149,6 +151,7 @@
|
|
|
149
151
|
close: 'மூடு', dialog: 'கருத்து', back: 'தெரிவி பக்கத்துக்குத் திரும்பு',
|
|
150
152
|
mine: 'உங்கள் புகார்கள்', mineAria: 'உங்கள் புகார்கள், {n} இல் புதிய தகவல் உள்ளது', kindAria: 'இது எந்த வகைப் புகார்?', reportLabel: 'உங்கள் புகார்',
|
|
151
153
|
phNone: 'உங்கள் மனதில் என்ன இருக்கிறது?',
|
|
154
|
+
categoryLabel: 'ஒரு வகையைத் தேர்ந்தெடுக்கவும்', needCategory: 'அனுப்ப மேலே ஒரு வகையைத் தேர்ந்தெடுக்கவும்.', needReport: 'அனுப்ப ஒரு சிறு புகாரை எழுதவும்.',
|
|
152
155
|
send: 'அனுப்பு', sending: 'அனுப்புகிறது…', cantSend: 'அனுப்ப முடியவில்லை. மீண்டும் முயலவும்.',
|
|
153
156
|
sentMsg: 'அனுப்பப்பட்டது. பதிலை “உங்கள் புகார்கள்” பகுதியில் பார்க்கலாம்.', done: 'முடிந்தது',
|
|
154
157
|
types: {
|
|
@@ -176,6 +179,7 @@
|
|
|
176
179
|
close: 'बंद करें', dialog: 'फ़ीडबैक', back: 'रिपोर्ट पर वापस जाएँ',
|
|
177
180
|
mine: 'आपकी रिपोर्ट', mineAria: 'आपकी रिपोर्ट, {n} में नई जानकारी है', kindAria: 'यह किस तरह की रिपोर्ट है?', reportLabel: 'आपकी रिपोर्ट',
|
|
178
181
|
phNone: 'आपके मन में क्या है?',
|
|
182
|
+
categoryLabel: 'एक श्रेणी चुनें', needCategory: 'भेजने के लिए ऊपर एक श्रेणी चुनें।', needReport: 'भेजने के लिए एक छोटी रिपोर्ट लिखें।',
|
|
179
183
|
send: 'भेजें', sending: 'भेजा जा रहा है…', cantSend: 'भेजा नहीं जा सका। फिर से कोशिश करें।',
|
|
180
184
|
sentMsg: 'भेज दिया गया। जवाब आपको “आपकी रिपोर्ट” में दिखेगा।', done: 'हो गया',
|
|
181
185
|
types: {
|
|
@@ -1117,9 +1121,10 @@
|
|
|
1117
1121
|
'.ic{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;display:block}',
|
|
1118
1122
|
'.udot{width:7px;height:7px;border-radius:50%;background:var(--fb-dot);flex:none}',
|
|
1119
1123
|
'form.pad{padding:4px 18px;min-height:0;overflow-y:auto}',
|
|
1120
|
-
'.
|
|
1121
|
-
'.seg
|
|
1122
|
-
'.seg button
|
|
1124
|
+
'.category-label{display:block;font-size:13px;font-weight:600;margin:0 0 8px}.requirement{font-size:12px;line-height:1.4;color:var(--fb-mute);margin-top:8px;min-height:17px}',
|
|
1125
|
+
'.seg{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}',
|
|
1126
|
+
'.seg button{display:flex;align-items:center;gap:6px;flex:1 0 auto;white-space:nowrap;border:1px solid var(--fb-line);background:var(--fb-soft);cursor:pointer;font-size:13px;font-weight:550;color:var(--fb-fg);padding:8px 10px;border-radius:9px}.seg button:hover{border-color:var(--fb-acc)}.seg .ic{width:15px;height:15px}',
|
|
1127
|
+
'.seg button[aria-checked=true]{background:var(--fb-acc);border-color:var(--fb-acc);color:var(--fb-acc-fg);font-weight:650}',
|
|
1123
1128
|
'@media (max-width:440px){.seg button{padding:8px 6px;font-size:12.5px}}',
|
|
1124
1129
|
'textarea{display:block;width:100%;min-height:112px;resize:none;border:1px solid var(--fb-line);border-radius:12px;padding:12px 14px;font-size:15px;line-height:1.45;background:none}',
|
|
1125
1130
|
'textarea::placeholder,input::placeholder{color:var(--fb-ph);opacity:1}',
|
|
@@ -1622,17 +1627,19 @@
|
|
|
1622
1627
|
function typeOf(id) { return OFFERED.filter(function (x) { return x.id === id; })[0]; }
|
|
1623
1628
|
|
|
1624
1629
|
function formView() {
|
|
1630
|
+
var requirement = el('div', { class: 'requirement', id: 'report-requirement', 'aria-live': 'polite' });
|
|
1625
1631
|
var err = el('div', { class: 'err', role: 'alert' });
|
|
1626
1632
|
var text = el('textarea', {
|
|
1627
1633
|
'aria-label': S.reportLabel, maxlength: '2000', rows: '4',
|
|
1628
1634
|
oninput: function () { state.draft = text.value; sync(); },
|
|
1629
1635
|
});
|
|
1630
1636
|
text.value = state.draft;
|
|
1631
|
-
var sendBtn = el('button', { class: 'send', type: 'submit', text: S.send });
|
|
1637
|
+
var sendBtn = el('button', { class: 'send', type: 'submit', text: S.send, 'aria-describedby': 'report-requirement' });
|
|
1632
1638
|
function sync() {
|
|
1633
1639
|
var t = typeOf(state.type);
|
|
1634
1640
|
text.placeholder = PLACEHOLDER || (t ? t.ph : S.phNone);
|
|
1635
1641
|
sendBtn.disabled = !(state.type && text.value.trim());
|
|
1642
|
+
requirement.textContent = !state.type ? S.needCategory : !text.value.trim() ? S.needReport : '';
|
|
1636
1643
|
}
|
|
1637
1644
|
function choose(i, focusText) {
|
|
1638
1645
|
state.type = OFFERED[i].id;
|
|
@@ -1645,9 +1652,9 @@
|
|
|
1645
1652
|
var pills = OFFERED.map(function (t, i) {
|
|
1646
1653
|
return el('button', {
|
|
1647
1654
|
type: 'button', role: 'radio', 'aria-checked': String(i === picked), tabindex: i === (picked < 0 ? 0 : picked) ? '0' : '-1',
|
|
1648
|
-
'data-type': t.id,
|
|
1655
|
+
'data-type': t.id,
|
|
1649
1656
|
onclick: function () { choose(i, true); },
|
|
1650
|
-
});
|
|
1657
|
+
}, [typeIcon(t.id), el('span', { text: t.label })]);
|
|
1651
1658
|
});
|
|
1652
1659
|
var seg = el('div', {
|
|
1653
1660
|
class: 'seg', role: 'radiogroup', 'aria-label': S.kindAria,
|
|
@@ -1682,7 +1689,7 @@
|
|
|
1682
1689
|
sync();
|
|
1683
1690
|
});
|
|
1684
1691
|
},
|
|
1685
|
-
}, [seg, text, sendBtn, err]),
|
|
1692
|
+
}, [el('div', { class: 'category-label', text: S.categoryLabel }), seg, text, sendBtn, requirement, err]),
|
|
1686
1693
|
]);
|
|
1687
1694
|
}
|
|
1688
1695
|
|