@nearform/fling 0.7.0 → 0.8.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 +35 -1
- package/dist/cli.js +3049 -689
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -327,6 +327,38 @@ feedback (`reviewUrl` in `--json`); reviewers sign in to use it.
|
|
|
327
327
|
| `fling resolve <name> <id> [--reopen]` | resolve a thread, or reopen it |
|
|
328
328
|
| `fling uncomment <name> <id> [--yes]` | delete a comment (a thread with its replies): your own, or any on your site |
|
|
329
329
|
|
|
330
|
+
## Forms
|
|
331
|
+
|
|
332
|
+
A form collects structured feedback on a site's review page: a label per page, rubric scores, an
|
|
333
|
+
A/B preference, a flagged passage's severity. It is a JSON Schema the review page renders, and
|
|
334
|
+
reviewers' answers (responses) come back as data you can export, instead of codes typed into
|
|
335
|
+
comments. On a Fling with forms (the `forms` capability, on with comments), put a
|
|
336
|
+
`fling.forms.json` at the top of the folder you deploy:
|
|
337
|
+
|
|
338
|
+
```sh
|
|
339
|
+
fling forms init ./dist --template labels --title Labels # a starter: labels, rubric, compare, issue or survey
|
|
340
|
+
fling forms check ./dist # as a deploy will: errors, and the pages each form applies to
|
|
341
|
+
fling deploy ./dist # sends it as the site's forms (never served as a file)
|
|
342
|
+
fling responses my-app # who answered which page, and how far each form has got
|
|
343
|
+
fling responses my-app --format csv -o labels.csv # the export: json, jsonl or csv
|
|
344
|
+
```
|
|
345
|
+
|
|
346
|
+
- `fling deploy` checks the file against the folder's pages and stops on errors. After the deploy
|
|
347
|
+
it lists each form and the pages it applies to (`forms` in `--json`). Without the file, it ends
|
|
348
|
+
with one line on adding a form (`formsHint` in `--json`; `--quiet` leaves it out).
|
|
349
|
+
- Without the file, deploying a whole site removes its forms. A `--path` deploy keeps them, and so
|
|
350
|
+
does a pulled folder, unless it was pulled with a `fling.forms.json` you have since deleted.
|
|
351
|
+
- `fling pull` writes the site's `fling.forms.json` back into the folder.
|
|
352
|
+
- On a form with `"visibility": "own"`, reviewers see only their own answers; the site's owners see
|
|
353
|
+
everyone's.
|
|
354
|
+
|
|
355
|
+
| Command | |
|
|
356
|
+
|---|---|
|
|
357
|
+
| `fling forms <name> [--path <page>]` | the live forms: a line per form, then the config as JSON (`> fling.forms.json` saves it) |
|
|
358
|
+
| `fling forms init [dir] [--template <name>] [--title <title>] [--force]` | write a starter `fling.forms.json` |
|
|
359
|
+
| `fling forms check [path]` | check a folder's `fling.forms.json` (or a file) against the folder's pages |
|
|
360
|
+
| `fling responses <name> [--form <id>] [--path <page>] [--format json\|jsonl\|csv] [-o file]` | the responses as a table with progress, or the export |
|
|
361
|
+
|
|
330
362
|
## Notifications
|
|
331
363
|
|
|
332
364
|
A Fling with email tells you when a site is shared with you (directly or through a group), when
|
|
@@ -409,7 +441,9 @@ The MCP tools:
|
|
|
409
441
|
current), read when called. `{use: <server>}` makes one current, the same as `fling use`.
|
|
410
442
|
- `fling_check_name`, `fling_list`, `fling_info`, `fling_files`, `fling_share`,
|
|
411
443
|
`fling_set_visibility`, `fling_archive`, `fling_rollback`, `fling_delete` (needs
|
|
412
|
-
`confirm: true`), `fling_whoami`, the comment tools when a Fling has comments,
|
|
444
|
+
`confirm: true`), `fling_whoami`, the comment tools when a Fling has comments, the forms tools when it has forms
|
|
445
|
+
(`fling_forms`, `fling_forms_template`, `fling_forms_check`, `fling_responses_list`, and
|
|
446
|
+
`fling_response_submit`, which answers a form as you, only when you ask), and
|
|
413
447
|
`fling_set_audience` (`add`, `remove`, `set` or `clear` the people who can open a private site,
|
|
414
448
|
and `addGroups`, `removeGroups`, `setGroups` for groups) when it can limit sites to listed
|
|
415
449
|
people, `fling_set_owners` and `fling_set_publishers` (the same changes, to a site's owners or
|