Statuses should include a viewable status history.
To Do
[x] design data structure
Sequences default to the name "Status"
Checklists default to the name "To Do"
[x] design UI
[ ] add sample data
[ ] add HTML
[ ] "Statuses" field, containing a Definition List of statuses
[ ] Sequences show the name of the sequence, the status, the last modified user, and the last modified date.
[ ] Checklists show the name of the sequence, and a list of the checklist items, with a check or empty box. Next to each item, if completed, is the last modified user and last modified date (maybe in parentheses).
[ ] Public statuses are viewable by anyone.
[ ] Private statuses should only be displayed when the user is logged in and explicitly listed in the permissions.
[ ] A "View Status History" button, which displays a dialog/popover listing the date, the user, the changed status, and its value, in order from newest to oldest.
[ ] add CSS
[ ] add integration tests
Data Structure
name: {name of the sequence/checklist, e.g. "To Do"}
public: true
statusType: sequence|checklist
history:
- status: {status key}
value: true|false
date: {ISO Date String}
user: {UUID}
- status: {status key}
value: true|false
date: {ISO Date String}
user: {UUID}
projects: [{DatabaseReference:Project}]
statuses:
# data format is the same for sequences and checklists
[status key]:
name:
eng: checked by A
done: true|false
lastModified: {ISO Date String}
user:
id: {UUID}
abbreviation: DWH
familyName: Hieber
givenName: Daniel W.
Display any statuses on the Lexeme Details.
Statuses should include a viewable status history.
To Do
Data Structure