softr-vibe-coding 1.10.1 → 1.10.2

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/CHANGELOG.md CHANGED
@@ -4,6 +4,9 @@ All notable changes to this skill are documented here. Versions follow [Semantic
4
4
 
5
5
  Entries from 1.3.1 onward are generated automatically from git commit subjects between version bumps (see `.github/workflows/publish.yml`). Entries before 1.3.1 were backfilled by hand from the existing commit history.
6
6
 
7
+ ## [1.10.2] - 2026-06-12
8
+ - Document the autoNumber-formula blank-read gotcha — a formula that references an Airtable autoNumber field frequently reads back empty through Softr's data layer even though Airtable shows the value and a data re-sync doesn't fix it (sibling formulas without an autoNumber dependency read fine). Add to datasources/airtable.md Gotchas + the Formula row of the field table, with the JS rebuild-from-autoNumber fix and the plain-text-stamped-by-automation alternative; bump to 1.10.2
9
+
7
10
  ## [1.10.1] - 2026-06-12
8
11
  - Document useFieldOptions companion-useRecords requirement — the hook only populates once an active useRecords in the same block has loaded the table schema; without it options settles to [] with isLoading false (bites write-only/helper blocks hardest). Add the required companion query to the example, correct the return shape to { options, isLoading } with options { id, label, color }, note the cross-table helper-block pattern, and add a prefer-live-fall-back-to-hardcoded recommendation; bump to 1.10.1
9
12
 
@@ -128,7 +128,7 @@ This script reads only **metadata**, never records. To inspect record contents i
128
128
  | Phone | Yes | |
129
129
  | Linked Record | Read/Write | Returns as `{ label, id }` objects |
130
130
  | Rollup | Read-only | |
131
- | Formula | Read-only | |
131
+ | Formula | Read-only | Reads fine for most formulas — BUT a formula that references an **autoNumber** field often comes back blank through Softr's data layer. See Gotchas → "Formulas depending on autoNumber". |
132
132
  | Lookup | Read-only | |
133
133
  | Computed | Read-only | |
134
134
  | Created Time | Read-only | |
@@ -151,6 +151,21 @@ Mitigation: Use PAT authentication. Cache data where possible. Avoid unnecessary
151
151
  - **Linked records are objects** with `{ label, id }` structure, not plain text.
152
152
  - **View connections** apply Airtable-side filters and sorts before data reaches Softr. This is useful for pre-filtering but means the Softr block only sees the view's subset.
153
153
  - **Column names are case-sensitive.** `"First name"` and `"First Name"` are different.
154
+ - **Formulas that depend on an `autoNumber` field can read back blank** (verified 2026-06-12). Softr serves most formulas fine — a `CONCATENATE` of text fields reads correctly — but a formula like `"WIG-" & RIGHT("0000" & {Autonumber}, 4)` frequently comes through as `""`, even though Airtable shows the value and a data re-sync doesn't fix it. The autoNumber dependency is the differentiator: a sibling formula on the same record (no autoNumber) reads fine.
155
+ - **Symptom:** one computed field is empty in `record.fields` while the rest populate; re-syncing the Softr data source doesn't help.
156
+ - **Fix:** don't read the formula — read the raw `autoNumber` field and rebuild the value in JS:
157
+ ```jsx
158
+ // q.select({ tag: "Wig Tag ID", auto: "Autonumber", ... })
159
+ function buildTag(f) {
160
+ var raw = getFieldValue(f.tag);
161
+ if (raw) return raw; // formula populated — use it
162
+ var n = f.auto;
163
+ if (n != null && typeof n === "object") n = (n.value != null) ? n.value : "";
164
+ var s = (n == null) ? "" : String(n).trim();
165
+ return s ? "WIG-" + ("0000" + s).slice(-4) : ""; // mirror the Airtable formula in JS
166
+ }
167
+ ```
168
+ - **Alternative (most robust):** add a plain single-line-text field and stamp the value into it with an Airtable automation on record create. Softr reads plain text 100% reliably, with no formula/autoNumber dependency.
154
169
 
155
170
  ## Best For
156
171
  - Teams already managing data in Airtable
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "softr-vibe-coding",
3
- "version": "1.10.1",
3
+ "version": "1.10.2",
4
4
  "description": "Claude Code skill for generating production-ready Softr Vibe Coding blocks (JSX). Installs into ~/.claude/skills/ and auto-updates on each Claude Code session.",
5
5
  "bin": {
6
6
  "softr-vibe-coding": "./bin/cli.js"