Skip to content

Add state to sections, and use for editability. #16

Description

@zippy

We want to be able add and use arbitrary state to sections. The primary example is "editable". Other examples will be dependent on the Section type. I.e. when we create a type that we might use for comment-period that is supposed to specify a period end-date, then when that type is first created it might be in an "unititalized" state, and then after the editor sets the period end-date, it would be in a "initialized" state and the UI element would render it as a count-down timer, or "days left"

  • add a meta: BTreeMap<String, String> field to section
  • use the key _editable to indicate editability of a section

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions