napkin-cli-2.0.0
Safe HaskellNone
LanguageGHC2024

Napkin.Cli.Web.Graph

Documentation

tasksTableView :: HasBackendQueryStats b => DisplayPlanCol -> DisplayStateCol -> (TaskStateInfo b -> Maybe Text) -> (TaskId -> Either Text AppRoute) -> (TaskId -> Text) -> (SpecTableName -> Ref Table) -> TableOrdering -> Map TaskId TopSortPrio -> Map TaskId (UITask b) -> View c () #

data TableOrdering #

Instances

Instances details
FromJSON TableOrdering # 
Instance details

Defined in Napkin.Cli.Web.Graph.Types

ToJSON TableOrdering # 
Instance details

Defined in Napkin.Cli.Web.Graph.Types

Bounded TableOrdering # 
Instance details

Defined in Napkin.Cli.Web.Graph.Types

Enum TableOrdering # 
Instance details

Defined in Napkin.Cli.Web.Graph.Types

Generic TableOrdering # 
Instance details

Defined in Napkin.Cli.Web.Graph.Types

Associated Types

type Rep TableOrdering 
Instance details

Defined in Napkin.Cli.Web.Graph.Types

type Rep TableOrdering = D1 ('MetaData "TableOrdering" "Napkin.Cli.Web.Graph.Types" "napkin-cli-2.0.0-4ha97GXrcwU2qMy5j7dc75" 'False) ((C1 ('MetaCons "OrderByTable" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "OrderByTopSort" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "OrderByTaskId" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "OrderByTaskState" 'PrefixI 'False) (U1 :: Type -> Type)))
Show TableOrdering # 
Instance details

Defined in Napkin.Cli.Web.Graph.Types

Eq TableOrdering # 
Instance details

Defined in Napkin.Cli.Web.Graph.Types

Param TableOrdering # 
Instance details

Defined in Napkin.Cli.Web.Graph.Types

type Rep TableOrdering # 
Instance details

Defined in Napkin.Cli.Web.Graph.Types

type Rep TableOrdering = D1 ('MetaData "TableOrdering" "Napkin.Cli.Web.Graph.Types" "napkin-cli-2.0.0-4ha97GXrcwU2qMy5j7dc75" 'False) ((C1 ('MetaCons "OrderByTable" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "OrderByTopSort" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "OrderByTaskId" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "OrderByTaskState" 'PrefixI 'False) (U1 :: Type -> Type)))

data TableFilter #

Instances

Instances details
FromJSON TableFilter # 
Instance details

Defined in Napkin.Cli.Web.Graph.Types

ToJSON TableFilter # 
Instance details

Defined in Napkin.Cli.Web.Graph.Types

Generic TableFilter # 
Instance details

Defined in Napkin.Cli.Web.Graph.Types

Associated Types

type Rep TableFilter 
Instance details

Defined in Napkin.Cli.Web.Graph.Types

type Rep TableFilter = D1 ('MetaData "TableFilter" "Napkin.Cli.Web.Graph.Types" "napkin-cli-2.0.0-4ha97GXrcwU2qMy5j7dc75" 'False) ((C1 ('MetaCons "FilterAll" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FilterState" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SimpleTaskState))) :+: (C1 ('MetaCons "FilterType" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TableTaskTypeFilter)) :+: C1 ('MetaCons "FilterTag" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))))
Show TableFilter # 
Instance details

Defined in Napkin.Cli.Web.Graph.Types

Eq TableFilter # 
Instance details

Defined in Napkin.Cli.Web.Graph.Types

type Rep TableFilter # 
Instance details

Defined in Napkin.Cli.Web.Graph.Types

type Rep TableFilter = D1 ('MetaData "TableFilter" "Napkin.Cli.Web.Graph.Types" "napkin-cli-2.0.0-4ha97GXrcwU2qMy5j7dc75" 'False) ((C1 ('MetaCons "FilterAll" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FilterState" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SimpleTaskState))) :+: (C1 ('MetaCons "FilterType" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TableTaskTypeFilter)) :+: C1 ('MetaCons "FilterTag" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))))

tasksGraphView :: forall {k} (ind :: k) b c. GraphType -> (TaskId -> Text) -> TasksDAG ind b -> Map TaskId SimpleTaskState -> View c () #

applyTableFiltering :: forall b l. l ~ Map TaskId (UITask b) => TableFilter -> l -> l #