Skip to content

Commit 3d2daa8

Browse files
committed
fix(tui): pluralize sessions command category
1 parent 7954d02 commit 3d2daa8

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

src/cortex-tui/src/cards/commands.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ impl CommandCategory {
3434
/// Returns the display name for the category.
3535
pub fn display_name(&self) -> &'static str {
3636
match self {
37-
CommandCategory::Session => "Session",
37+
CommandCategory::Session => "Sessions",
3838
CommandCategory::Model => "Model",
3939
CommandCategory::View => "View",
4040
CommandCategory::Settings => "Settings",
@@ -425,7 +425,7 @@ mod tests {
425425

426426
#[test]
427427
fn test_command_category_display_name() {
428-
assert_eq!(CommandCategory::Session.display_name(), "Session");
428+
assert_eq!(CommandCategory::Session.display_name(), "Sessions");
429429
assert_eq!(CommandCategory::Model.display_name(), "Model");
430430
assert_eq!(CommandCategory::View.display_name(), "View");
431431
assert_eq!(CommandCategory::Settings.display_name(), "Settings");

src/cortex-tui/src/commands/types.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ impl CommandCategory {
4040
CommandCategory::General => "General",
4141
CommandCategory::Auth => "Auth",
4242
CommandCategory::Billing => "Billing",
43-
CommandCategory::Session => "Session",
43+
CommandCategory::Session => "Sessions",
4444
CommandCategory::Navigation => "Navigation",
4545
CommandCategory::Files => "Files",
4646
CommandCategory::Model => "Model",
@@ -55,7 +55,7 @@ impl CommandCategory {
5555
CommandCategory::General => "General application commands",
5656
CommandCategory::Auth => "Authentication and account management",
5757
CommandCategory::Billing => "Billing, usage, and subscription information",
58-
CommandCategory::Session => "Session and conversation management",
58+
CommandCategory::Session => "Sessions and conversation management",
5959
CommandCategory::Navigation => "Navigate through content and history",
6060
CommandCategory::Files => "File and context management",
6161
CommandCategory::Model => "Model and provider configuration",
@@ -451,6 +451,7 @@ mod tests {
451451
#[test]
452452
fn test_command_category_name() {
453453
assert_eq!(CommandCategory::General.name(), "General");
454+
assert_eq!(CommandCategory::Session.name(), "Sessions");
454455
assert_eq!(CommandCategory::Mcp.name(), "MCP");
455456
}
456457

src/cortex-tui/src/modal/commands.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ impl CommandCategory {
4040
/// Returns the display name for the category.
4141
pub fn display_name(&self) -> &'static str {
4242
match self {
43-
CommandCategory::Session => "Session",
43+
CommandCategory::Session => "Sessions",
4444
CommandCategory::Model => "Model",
4545
CommandCategory::View => "View",
4646
CommandCategory::Settings => "Settings",
@@ -712,7 +712,7 @@ mod tests {
712712

713713
#[test]
714714
fn test_command_category_display_name() {
715-
assert_eq!(CommandCategory::Session.display_name(), "Session");
715+
assert_eq!(CommandCategory::Session.display_name(), "Sessions");
716716
assert_eq!(CommandCategory::Model.display_name(), "Model");
717717
assert_eq!(CommandCategory::View.display_name(), "View");
718718
assert_eq!(CommandCategory::Settings.display_name(), "Settings");

0 commit comments

Comments
 (0)