feature: Infer status from provided parameters (#122)

* Mark status as deprecated

* Make userFraction required & provide a default
We'll use this to infer `inProgress` or `completed`

* Infer status from userFraction

* Fix workflow

* Update README

* Run build

* Add support for drafts again

* Pass in isDraft

* Warn about setting draft and userFraction simultaneously

* Expose isDraft

* Do a build

* Allow passing status in again
This will be required for draft/halted
It is optional though, if it's not specified, we have updated logic for inferring it

* Update userFraction description

* Revert "Fix workflow"

This reverts commit ad98b3d449f0f36c9d4f0a3d0b2eb49a4c3e1aa9.

* Remove deprecated tag from status

* Move status back

* Allow 0 userFraction

* Run build
This commit is contained in:
Jack Boswell
2022-09-11 20:53:18 +12:00
committed by GitHub
parent 7406d2c7a1
commit c16321c553
5 changed files with 54 additions and 28 deletions

File diff suppressed because one or more lines are too long