Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(tui): dim pane text helpers and remove dead code. #9542

Merged
merged 2 commits into from
Nov 29, 2024
Merged

Conversation

anthonyshew
Copy link
Contributor

@anthonyshew anthonyshew commented Nov 29, 2024

Description

I started noticing that my logs and the text help were looking quite similar. This differentiates the two so its more obvious at a glance.

Testing Instructions

CleanShot 2024-11-29 at 12 52 40

Copy link

vercel bot commented Nov 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 29, 2024 7:55pm
8 Skipped Deployments
Name Status Preview Comments Updated (UTC)
examples-basic-web ⬜️ Ignored (Inspect) Visit Preview Nov 29, 2024 7:55pm
examples-designsystem-docs ⬜️ Ignored (Inspect) Visit Preview Nov 29, 2024 7:55pm
examples-gatsby-web ⬜️ Ignored (Inspect) Visit Preview Nov 29, 2024 7:55pm
examples-kitchensink-blog ⬜️ Ignored (Inspect) Visit Preview Nov 29, 2024 7:55pm
examples-native-web ⬜️ Ignored (Inspect) Visit Preview Nov 29, 2024 7:55pm
examples-svelte-web ⬜️ Ignored (Inspect) Visit Preview Nov 29, 2024 7:55pm
examples-tailwind-web ⬜️ Ignored (Inspect) Visit Preview Nov 29, 2024 7:55pm
examples-vite-web ⬜️ Ignored (Inspect) Visit Preview Nov 29, 2024 7:55pm

@anthonyshew anthonyshew changed the title chore(tui): Dim pane text helpers. chore(tui): Dim pane text helpers and remove dead code. Nov 29, 2024
@@ -34,12 +34,8 @@ impl<'a, W> TerminalPane<'a, W> {
}
}

fn highlight(&self) -> bool {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Dead code! There's no border to highlight anymore.

@@ -77,13 +73,12 @@ impl<'a, W> Widget for &TerminalPane<'a, W> {
{
let screen = self.terminal_output.parser.screen();
let block = Block::default()
.title(self.terminal_output.title(self.task_name))
.title_bottom(self.footer())
.style(if self.highlight() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We don't do these yellow highlights. The only place in the program we do yellow highlights now is in the task table (not here), so we can remove this.

@anthonyshew anthonyshew changed the title chore(tui): Dim pane text helpers and remove dead code. chore(tui): dim pane text helpers and remove dead code. Nov 29, 2024
Copy link
Contributor

@dimitropoulos dimitropoulos left a comment

Choose a reason for hiding this comment

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

nice one!

@anthonyshew anthonyshew enabled auto-merge (squash) November 29, 2024 20:12
@anthonyshew anthonyshew merged commit ed6bf33 into main Nov 29, 2024
41 of 42 checks passed
@anthonyshew anthonyshew deleted the shew-105e1 branch November 29, 2024 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants