You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5ef8c95
Browse filesBrowse the repository at this point in the historyBrowse files
* docs(how-to): add preview_mode + Smart Notebook canonical example (#20)
- Documents preview_mode behavior (banner, disabled buttons, "Preview"
label) and when to use it
- Points the recipe at the Smart Notebook seeder as the canonical
reference implementation — every field exercised, real numbers
- Bumps scaffold manifest to 2026.05.05 so installer picks up the
updated how-to
Pairs with fl-api PR #67 + fl-elon-web-ui PR #70.
Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
* feat(opportunities): wire crowdfunding + preview_mode fields through CLI (1.3.26) (#21)
The May 3 push/pull/diff/create commands silently dropped every
crowdfunding field — funding_goal_cents, equity_pool_bps, roles[],
pitch_sections[], plus the new preview_mode boolean. Round-tripping
JSON appeared to work but never persisted any of the new fields.
Fixes:
- push: forwards funding_goal_cents/equity_pool_bps/roles/pitch_sections/preview_mode/is_public
- diff: compares those fields plus correct skills_required key
- create: --funding-goal (dollars), --equity-pool-pct, --roles-file, --pitch-file, --preview
- new `iris opportunities preview <id>` command — toggles preview_mode
with optional --on/--off flags; without flags it auto-detects current
state and flips it
How-to recipe documents the CLI-only flow + manifest bumped to
2026.05.06 so installer picks up the new docs.
Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
* chore: bump to 1.3.27 (1.3.26 already used by sync-comms release)
---------
Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
Copy file name to clipboardExpand all lines: scaffold/how-to/crowdfunding-opportunities.md
+34Lines changed: 34 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,40 @@ A marketplace opportunity isn't just a job posting — it's a **pitch page**. Ea
6
6
7
7
This recipe covers authoring those rich opportunity pages from the CLI.
8
8
9
+
## Canonical example
10
+
11
+
The reference implementation is the **Smart Notebook — Encrypted Personal Server** opportunity (Andrew Escher / Good Deals Hardware). It exercises every field — funding goal, 4 roles with mixed pay types, 6 pitch sections, board members, 4 milestones, sample backer.
12
+
13
+
Seed it locally:
14
+
15
+
```bash
16
+
docker compose exec api php artisan atlas:seed-opportunity-schemas
17
+
docker compose exec api php artisan db:seed --class=SmartNotebookOpportunitySeeder
18
+
```
19
+
20
+
It seeds with `preview_mode=true` — the page renders fully but Apply/Invest are disabled and a yellow `PREVIEW — NOT LIVE` banner sits at the top. Flip `preview_mode=false` (via `iris opportunities push` or directly in DB) to make it live.
21
+
22
+
## Preview mode
23
+
24
+
Set `preview_mode=true` on any opportunity to:
25
+
26
+
- Render a `PREVIEW — NOT LIVE` banner at the top of the page
27
+
- Show a `PREVIEW` pill next to the status badge
28
+
- Disable the per-role Apply buttons (label changes to "Preview")
29
+
- Replace the bottom Apply/Invest tabs with a "Preview Mode" notice
30
+
31
+
Use this when you want a shareable URL for founder/investor feedback before opening real applications.
32
+
33
+
**Toggle preview mode from the CLI:**
34
+
35
+
```bash
36
+
$ iris opportunities preview 494 # toggle (auto-detects current state)
37
+
$ iris opportunities preview 494 --on # force preview
38
+
$ iris opportunities preview 494 --off # go live
39
+
```
40
+
41
+
Or create directly in preview mode: `iris opportunities create ... --preview`. Or set `preview_mode: true` in the JSON and `iris opportunities push <id>`.
Copy file name to clipboardExpand all lines: scaffold/manifest.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
{
2
-
"version": "2026.05.04",
2
+
"version": "2026.05.06",
3
3
"description": "IRIS CLI scaffold manifest. The installer fetches this file from GitHub raw (or heyiris.io when configured), then downloads each entry to the user's ~/.iris/ directory. Adding a new how-to is just a PR adding the file + a line here.",
0 commit comments