Skip to content
This repository has been archived by the owner on May 11, 2023. It is now read-only.

issue: TUI #172

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open

issue: TUI #172

wants to merge 16 commits into from

Conversation

erak
Copy link
Contributor

@erak erak commented Jul 8, 2022

Demo

rad-issue-tui.mp4

Description

Requires #171

pub struct CommentList<R> {
props: Props,
comments: ListState<Comment<R>>,
}
Copy link
Contributor

@cloudhead cloudhead Oct 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// before
SpecificListComponent<R> {
   state: GenericState<Specific<R>>
}
// after
GenericList<ChildComponent> {
   children: Vec<ChildComponent>,
   state: SpecificState
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure this will work since every component must provide a component-specific implementation of Component in order to receive events: https://github.com/radicle-dev/radicle-cli/pull/172/files#diff-dcbc1cad867aa6da05adc9efaa047bda13bfcdf930b86e9b17bcb8544163eb1bR365.

They usually call self.perform() which would need to generate component-specific command results like "index changed in issue list". Might need to experiment with a generic implementation and see if that would fit in.

Signed-off-by: Erik Kundt <[email protected]>
@erak erak marked this pull request as ready for review November 9, 2022 07:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants