Module

poke/review_ui

src/poke/review_ui.pooka

A review has a name, a place and a decision. Keep those visible around the diff, with the same frame in plain terminals and coloured ones. This module is pure so the whole conversation can be snapshot-tested without a terminal.

API reference

class

Progress

src/poke/review_ui.pooka:14
class Progress(accepted: Int, rejected: Int, skipped: Int)
field

accepted

src/poke/review_ui.pooka:14
accepted: Int
INFERREDInt
field

rejected

src/poke/review_ui.pooka:14
rejected: Int
INFERREDInt
field

skipped

src/poke/review_ui.pooka:14
skipped: Int
INFERREDInt
constructor

new

src/poke/review_ui.pooka:14
INFERREDfn(Int, Int, Int) -> poke/review_ui.Progress
function

header

src/poke/review_ui.pooka:16
header(
  name: String,
  directory: String,
  index: Int,
  total: Int,
  comparison: Comparison,
  _view: View,
  width: Int,
  mode: Mode
) -> String
INFERREDfn(String, String, Int, Int, poke/diff.Comparison, poke/diff.View, Int, poke/palette.Mode) -> String
function

actions

src/poke/review_ui.pooka:51
actions(show_diff: Bool, _view: View, _width: Int, mode: Mode) -> String
INFERREDfn(Bool, poke/diff.View, Int, poke/palette.Mode) -> String
function

feedback

src/poke/review_ui.pooka:75
feedback(action: String, name: String, mode: Mode) -> String
INFERREDfn(String, String, poke/palette.Mode) -> String
function

summary

src/poke/review_ui.pooka:84
summary(progress: Progress, pending: Int, width: Int, mode: Mode) -> String
INFERREDfn(poke/review_ui.Progress, Int, Int, poke/palette.Mode) -> String