@alliance-droid/status-feedback-system 1.0.0 → 1.1.0

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/README.md CHANGED
@@ -33,8 +33,8 @@ MSSQL_CONNECTION_STRING=Server=...;Initial Catalog=StatusFeedback;...
33
33
  SESSION_SECRET=your-secret
34
34
 
35
35
  # Optional — stores screenshots in Azure Blob Storage instead of base64 in DB
36
- AZURE_BLOB_CONNECTION_STRING=DefaultEndpointsProtocol=https;AccountName=...
37
- AZURE_BLOB_CONTAINER=screenshots
36
+ AZURE_FEEDBACK_BLOB_CONNECTION_STRING=DefaultEndpointsProtocol=https;AccountName=...
37
+ AZURE_FEEDBACK_BLOB_CONTAINER=screenshots
38
38
  ```
39
39
 
40
40
  ### 2. Create a project and get an API key
@@ -195,6 +195,7 @@ Auto-captures: screenshots (via html2canvas), console errors, viewport size, cur
195
195
  apiUrl="https://status-admin.example.com"
196
196
  apiKey="sf_abc123..."
197
197
  boardUrl="/feedback"
198
+ userEmail={data.user?.email}
198
199
  />
199
200
  ```
200
201
 
@@ -204,12 +205,13 @@ Auto-captures: screenshots (via html2canvas), console errors, viewport size, cur
204
205
  | `apiKey` | `string` | required | Project API key |
205
206
  | `enabled` | `boolean` | auto-detect | Override environment detection |
206
207
  | `boardUrl` | `string` | — | URL for "View Open Issues" link. Hidden if omitted. |
208
+ | `userEmail` | `string` | — | Pre-fill email field (e.g. from logged-in user's session) |
207
209
  | `maxConsoleErrors` | `number` | `20` | Max console errors to capture |
208
210
  | `showOnboarding` | `boolean` | `true` | Show "Ctrl+right-click" toast on first visit |
209
211
 
210
212
  **Environment auto-detection:** Enabled on `localhost`, `127.0.0.1`, `*.local`, and Vercel preview deployments. Disabled in Vercel production. Override with the `enabled` prop or `PUBLIC_FEEDBACK_ENABLED` env var.
211
213
 
212
- **Screenshot storage:** If the admin backend has `AZURE_BLOB_CONNECTION_STRING` configured, screenshots are uploaded to Azure Blob Storage. Otherwise they're stored as base64 in the database.
214
+ **Screenshot storage:** If the admin backend has `AZURE_FEEDBACK_BLOB_CONNECTION_STRING` configured, screenshots are uploaded to Azure Blob Storage. Otherwise they're stored as base64 in the database.
213
215
 
214
216
  ## API Client
215
217
 
@@ -22,6 +22,8 @@
22
22
  showOnboarding?: boolean;
23
23
  /** URL to the feedback board page. If omitted, "View Open Issues" is hidden from the context menu. */
24
24
  boardUrl?: string;
25
+ /** Pre-fill the email field (e.g. from the logged-in user's session) */
26
+ userEmail?: string;
25
27
  }
26
28
 
27
29
  let {
@@ -31,6 +33,7 @@
31
33
  maxConsoleErrors = 20,
32
34
  showOnboarding = true,
33
35
  boardUrl,
36
+ userEmail,
34
37
  }: Props = $props();
35
38
 
36
39
  let client = $derived(createStatusClient({ apiUrl, apiKey }));
@@ -211,7 +214,7 @@
211
214
  formType = type;
212
215
  formTitle = '';
213
216
  formMessage = '';
214
- formEmail = '';
217
+ formEmail = userEmail ?? '';
215
218
  submitResult = null;
216
219
  menuOpen = false;
217
220
  formOpen = true;
@@ -9,6 +9,8 @@ interface Props {
9
9
  showOnboarding?: boolean;
10
10
  /** URL to the feedback board page. If omitted, "View Open Issues" is hidden from the context menu. */
11
11
  boardUrl?: string;
12
+ /** Pre-fill the email field (e.g. from the logged-in user's session) */
13
+ userEmail?: string;
12
14
  }
13
15
  declare const DevFeedback: import("svelte").Component<Props, {}, "">;
14
16
  type DevFeedback = ReturnType<typeof DevFeedback>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alliance-droid/status-feedback-system",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "type": "module",
5
5
  "description": "Drop-in system status pages and user feedback forms for SvelteKit apps",
6
6
  "svelte": "./dist/index.js",