fix: resolve CI/CD issues - remove unused dependencies and imports
Some checks failed
CI / test (push) Has been cancelled
Some checks failed
CI / test (push) Has been cancelled
This commit is contained in:
@@ -1,18 +1,3 @@
|
||||
use crossterm::{
|
||||
event::{self, Event, KeyCode, KeyEventKind},
|
||||
terminal::{disable_raw_mode, enable_raw_mode, Clear},
|
||||
ExecutableCommand,
|
||||
};
|
||||
use ratatui::{
|
||||
backend::CrosstermBackend,
|
||||
layout::{Constraint, Direction, Layout, Rect},
|
||||
style::{Color, Modifier, Style, Stylize},
|
||||
text::{Line, Span, Text},
|
||||
widgets::{
|
||||
Block, Borders, Cell, Gauge, List, ListItem, Paragraph, Row, Table, Tabs, Widget, Wrap,
|
||||
},
|
||||
Frame, Terminal,
|
||||
};
|
||||
use std::io::Stdout;
|
||||
use std::path::PathBuf;
|
||||
|
||||
@@ -65,7 +50,7 @@ impl TuiState {
|
||||
pub fn filtered_items(&self) -> Vec<&TechDebtItem> {
|
||||
let mut items: Vec<&TechDebtItem> = self.items.iter().collect();
|
||||
|
||||
if !self.filter_text.is_empty() {
|
||||
if !self.filter_text.is_empty()) {
|
||||
items.retain(|item| {
|
||||
item.content.to_lowercase().contains(&self.filter_text.to_lowercase())
|
||||
|| item
|
||||
@@ -265,7 +250,7 @@ fn draw_dashboard(f: &mut Frame<CrosstermBackend<Stdout>>, state: &TuiState, are
|
||||
f.render_widget(help_para, right_content[1].inner);
|
||||
|
||||
let status_bar = Line::from(vec![
|
||||
Span::styled(" Press ", Style::default().fg(Color::Gray)),
|
||||
Span::styled(" ", Style::default().fg(Color::Gray)),
|
||||
Span::styled("TAB", Style::default().fg(Color::Yellow).bold()),
|
||||
Span::styled(" to view items | ", Style::default().fg(Color::Gray)),
|
||||
Span::styled("q", Style::default().fg(Color::Yellow).bold()),
|
||||
|
||||
Reference in New Issue
Block a user