Skip to content

Commit

Permalink
feat: tune UX from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
c-git committed Mar 3, 2024
1 parent b5b6604 commit 067a654
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/commands/unranked_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ pub async fn do_start_event(

// Get the leading idea (winning at this point as it's the end) and the ones above the threshold
let leading = data.unranked.ideas_pop_leading()?;
channel_id
.say(&cache_http, "Extracting leading idea")
.await?;

// Do resets
do_ideas_reset(&cache_http, channel_id, data).await?;
Expand Down
2 changes: 1 addition & 1 deletion src/commands/unranked_cmd/idea.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ pub async fn unvote_all(ctx: Context<'_>) -> anyhow::Result<()> {
change_vote_all(ctx, false).await
}

#[poise::command(prefix_command, slash_command, track_edits)]
#[poise::command(prefix_command, slash_command, track_edits, aliases("disp"))]
#[instrument(name = "unranked-idea-unvote_all", skip(ctx))]
/// Displays all ideas optionally verbosely
pub async fn display(ctx: Context<'_>, #[flag] is_verbose: bool) -> anyhow::Result<()> {
Expand Down
4 changes: 4 additions & 0 deletions src/model/unranked/ideas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,10 @@ impl Ideas {
}
writeln!(result)?; // Add separating line
}
writeln!(
result,
"_Bold is leading idea and underlined is above threshold_"
)?;
Ok(result)
}

Expand Down

0 comments on commit 067a654

Please sign in to comment.