Skip to content

serve, web: record approve and decline from the browser #347

In review

Description

@shunsuke-shimomura

Description

Part of #340. The Web UI stops being strictly read-only: a decision taken on a local view appends the record
inka review writes, through the same core operation (#343).

  • inka serve --as <approver> (and --key-id) turns recording on. Without it no route writes.
  • A recording server listens on loopback only; any other --host with --as is refused at startup.
  • A decision is accepted only from a page this server served for this run.
  • A decision names the view hash that was on screen; the server refuses it when the target's current hash
    differs, writes nothing, and the page shows the current content.
  • Approve, decline (a comment is required) and skip, offered only on a local view shown in full for a target that
    can take a decision. The page always shows who it records as.

Closing conditions

  • A record written from the browser is identical in form to one inka review writes.
  • Each condition above has a test: no write route without --as, refusal off loopback, refusal of a request
    from another origin, refusal of a stale hash.
  • No retraction, edit or deletion of a record is reachable.
  • After a decision the queue and the node statuses reflect it.

Supplementary information

Depends on #346. Design: docs/en/design/web-ui.md, Recording a decision (#342).

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

    enhancement ✨sys::SE

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions