diff --git a/README.md b/README.md index f5d39c01..eac136dc 100644 --- a/README.md +++ b/README.md @@ -21,8 +21,8 @@ command-line interface (CLI) that encourages focused work sessions, thoughtful reflection on task durations, and a harmonious balance between work and rest. Whether you're a developer, a writer, or anyone who values structured time -management, pace provides the framework to log activities, review progress, and -optimize how you spend your time. +management, pace provides the framework to log activities, reflect on progress, +and optimize how you spend your time. ⚠️ **Note:** `pace` is currently in active development and is not yet ready for production use. Expect breaking changes and incomplete features. We encourage diff --git a/config/README.md b/config/README.md index 6cc80ca2..7586c654 100644 --- a/config/README.md +++ b/config/README.md @@ -48,12 +48,12 @@ possible values, and descriptions to help you configure Pace to your liking. | `category_separator` | `"::"` | - | The separator used for categories in the CLI. | | | `default_priority` | `"medium"` | `"low"`, `"medium"`, `"high"` | Default priority for new tasks. | | -## Reviews +## Reflections -| Option | Default Value | Possible Values | Description | -| ------------------ | -------------------------- | ------------------------------------------ | ---------------------------------------- | -| `review_format` | `"console"` | `"console", "pdf"`, `"html"`, `"markdown"` | Format of the reviews generated by Pace. | -| `review_directory` | `"/path/to/your/reviews/"` | - | Directory where reviews will be stored. | +| Option | Default Value | Possible Values | Description | +| ----------- | ------------------------------ | ------------------------------------------ | -------------------------------------------- | +| `format` | `"console"` | `"console", "pdf"`, `"html"`, `"markdown"` | Format of the reflections generated by Pace. | +| `directory` | `"/path/to/your/reflections/"` | - | Directory where reflections will be stored. | ## Export diff --git a/config/pace.toml b/config/pace.toml index 91350a68..0e728243 100644 --- a/config/pace.toml +++ b/config/pace.toml @@ -10,11 +10,11 @@ category-separator = "::" # Default priority for new tasks default-priority = "medium" -[reviews] -# Format of the review generated by the pace: "pdf", "html", "markdown", etc. -review-format = "html" -# Directory where the reviews will be stored -review-directory = "/path/to/your/reviews/" +[reflections] +# Format of the reflections generated by the pace: "pdf", "html", "markdown", etc. +format = "html" +# Directory where the reflections will be stored +directory = "/path/to/your/reflections/" [export] include-tags = true diff --git a/crates/core/src/commands.rs b/crates/core/src/commands.rs index 13c53a4d..dd3cdd2b 100644 --- a/crates/core/src/commands.rs +++ b/crates/core/src/commands.rs @@ -4,8 +4,8 @@ pub mod docs; pub mod end; pub mod hold; pub mod now; +pub mod reflect; pub mod resume; -pub mod review; use getset::Getters; use typed_builder::TypedBuilder; diff --git a/crates/core/src/commands/review.rs b/crates/core/src/commands/reflect.rs similarity index 74% rename from crates/core/src/commands/review.rs rename to crates/core/src/commands/reflect.rs index 3cd8f5fa..0d10310e 100644 --- a/crates/core/src/commands/review.rs +++ b/crates/core/src/commands/reflect.rs @@ -11,7 +11,7 @@ use clap::Parser; use crate::{ config::PaceConfig, domain::{ - activity::ActivityKind, filter::FilterOptions, review::ReviewFormatKind, + activity::ActivityKind, filter::FilterOptions, reflection::ReflectionsFormatKind, time::get_time_frame_from_flags, }, error::{PaceResult, UserMessage}, @@ -19,11 +19,11 @@ use crate::{ storage::get_storage_from_config, }; -/// `review` subcommand options +/// `reflect` subcommand options #[derive(Debug, Getters)] #[getset(get = "pub")] #[cfg_attr(feature = "clap", derive(Parser))] -pub struct ReviewCommandOptions { +pub struct ReflectCommandOptions { /// Filter by activity kind (e.g., activity, task) #[cfg_attr( feature = "clap", @@ -44,9 +44,9 @@ pub struct ReviewCommandOptions { feature = "clap", clap(short, long, name = "Output Format", alias = "format") )] - output_format: Option, + output_format: Option, - /// Export the review report to a specified file + /// Export the reflections to a specified file #[cfg_attr( feature = "clap", clap(short, long, name = "Export File", alias = "export") @@ -79,19 +79,19 @@ pub struct ReviewCommandOptions { expensive_flags: ExpensiveFlags, } -impl ReviewCommandOptions { +impl ReflectCommandOptions { #[tracing::instrument(skip(self))] - pub fn handle_review(&self, config: &PaceConfig) -> PaceResult { + pub fn handle_reflect(&self, config: &PaceConfig) -> PaceResult { let activity_store = ActivityStore::with_storage(get_storage_from_config(config)?)?; let activity_tracker = ActivityTracker::with_activity_store(activity_store); let time_frame = get_time_frame_from_flags(self.time_flags(), self.date_flags())?; - debug!("Displaying review for time frame: {}", time_frame); + debug!("Displaying reflection for time frame: {}", time_frame); - let Some(review_summary) = - activity_tracker.generate_review_summary(FilterOptions::from(self), time_frame)? + let Some(reflections) = + activity_tracker.generate_reflection(FilterOptions::from(self), time_frame)? else { return Ok(UserMessage::new( "No activities found for the specified time frame", @@ -99,20 +99,20 @@ impl ReviewCommandOptions { }; match self.output_format() { - Some(ReviewFormatKind::Console) | None => { - return Ok(UserMessage::new(review_summary.to_string())); + Some(ReflectionsFormatKind::Console) | None => { + return Ok(UserMessage::new(reflections.to_string())); } - Some(ReviewFormatKind::Json) => { - let json = serde_json::to_string_pretty(&review_summary)?; + Some(ReflectionsFormatKind::Json) => { + let json = serde_json::to_string_pretty(&reflections)?; - debug!("Review summary: {}", json); + debug!("Reflection: {}", json); // write to file if export file is specified if let Some(export_file) = self.export_file() { std::fs::write(export_file, json)?; return Ok(UserMessage::new(format!( - "Review report generated: {}", + "Reflection generated: {}", export_file.display() ))); } @@ -120,10 +120,12 @@ impl ReviewCommandOptions { return Ok(UserMessage::new(json)); } - Some(ReviewFormatKind::Html) => unimplemented!("HTML format not yet supported"), - Some(ReviewFormatKind::Csv) => unimplemented!("CSV format not yet supported"), - Some(ReviewFormatKind::Markdown) => unimplemented!("Markdown format not yet supported"), - Some(ReviewFormatKind::PlainText) => { + Some(ReflectionsFormatKind::Html) => unimplemented!("HTML format not yet supported"), + Some(ReflectionsFormatKind::Csv) => unimplemented!("CSV format not yet supported"), + Some(ReflectionsFormatKind::Markdown) => { + unimplemented!("Markdown format not yet supported") + } + Some(ReflectionsFormatKind::PlainText) => { unimplemented!("Plain text format not yet supported") } } @@ -136,7 +138,7 @@ impl ReviewCommandOptions { #[cfg_attr( feature = "clap", clap(group = clap::ArgGroup::new("date-flag").multiple(true)))] pub struct DateFlags { - /// Show the review for a specific date, mutually exclusive with `from` and `to`. Format: YYYY-MM-DD + /// Show the reflection for a specific date, mutually exclusive with `from` and `to`. Format: YYYY-MM-DD #[cfg_attr( feature = "clap", clap(long, group = "date-flag", name = "Specific Date", exclusive = true) @@ -144,12 +146,12 @@ pub struct DateFlags { #[builder(setter(strip_option))] date: Option, - /// Start date for the review period. Format: YYYY-MM-DD + /// Start date for the reflection period. Format: YYYY-MM-DD #[cfg_attr(feature = "clap", clap(long, group = "date-flag", name = "Start Date"))] #[builder(setter(strip_option))] from: Option, - /// End date for the review period. Format: YYYY-MM-DD + /// End date for the reflection period. Format: YYYY-MM-DD #[cfg_attr(feature = "clap", clap(long, group = "date-flag", name = "End Date"))] #[builder(setter(strip_option))] to: Option, @@ -160,7 +162,7 @@ pub struct DateFlags { )] #[cfg_attr(feature = "clap", derive(Parser))] pub struct ExpensiveFlags { - /// Include detailed time logs in the review + /// Include detailed time logs in the reflection #[cfg_attr(feature = "clap", clap(long))] detailed: bool, @@ -168,7 +170,7 @@ pub struct ExpensiveFlags { #[cfg_attr(feature = "clap", clap(long))] comparative: bool, - /// Enable personalized recommendations based on review data + /// Enable personalized recommendations based on reflection data #[cfg_attr(feature = "clap", clap(long))] recommendations: bool, } @@ -181,32 +183,32 @@ pub struct ExpensiveFlags { // and because it's easier to deal with clap in this way. #[allow(clippy::struct_excessive_bools)] pub struct TimeFlags { - /// Show the review for the current day + /// Show the reflection for the current day #[cfg_attr(feature = "clap", clap(long, group = "time-flag"))] #[builder(setter(strip_bool))] today: bool, - /// Show the review for the previous day + /// Show the reflection for the previous day #[cfg_attr(feature = "clap", clap(long, group = "time-flag"))] #[builder(setter(strip_bool))] yesterday: bool, - /// Show the review for the current week + /// Show the reflection for the current week #[cfg_attr(feature = "clap", clap(long, group = "time-flag"))] #[builder(setter(strip_bool))] current_week: bool, - /// Show the review for the previous week + /// Show the reflection for the previous week #[cfg_attr(feature = "clap", clap(long, group = "time-flag"))] #[builder(setter(strip_bool))] last_week: bool, - /// Show the review for the current month + /// Show the reflection for the current month #[cfg_attr(feature = "clap", clap(long, group = "time-flag"))] #[builder(setter(strip_bool))] current_month: bool, - /// Show the review for the previous month + /// Show the reflection for the previous month #[cfg_attr(feature = "clap", clap(long, group = "time-flag"))] #[builder(setter(strip_bool))] last_month: bool, diff --git a/crates/core/src/config.rs b/crates/core/src/config.rs index 37fa9a7a..ca03e5db 100644 --- a/crates/core/src/config.rs +++ b/crates/core/src/config.rs @@ -10,7 +10,7 @@ use directories::ProjectDirs; use strum_macros::EnumString; use crate::{ - domain::{priority::ItemPriorityKind, review::ReviewFormatKind}, + domain::{priority::ItemPriorityKind, reflection::ReflectionsFormatKind}, error::{PaceErrorKind, PaceResult}, }; @@ -26,10 +26,10 @@ pub struct PaceConfig { #[getset(get = "pub", get_mut = "pub")] general: GeneralConfig, - /// Review configuration for the pace application + /// Reflections configuration for the pace application #[serde(default, skip_serializing_if = "Option::is_none")] #[getset(get = "pub", get_mut = "pub")] - reviews: Option, + reflections: Option, /// Export configuration for the pace application #[serde(default, skip_serializing_if = "Option::is_none")] @@ -152,16 +152,16 @@ impl Default for GeneralConfig { } } -/// The review configuration for the pace application +/// The reflections configuration for the pace application #[derive(Debug, Deserialize, Default, Serialize, Getters, Clone)] #[getset(get = "pub")] #[serde(rename_all = "kebab-case")] -pub struct ReviewConfig { - /// The directory to store the review files - review_directory: PathBuf, +pub struct ReflectionsConfig { + /// The directory to store the reflections + directory: PathBuf, - /// The format for the review - review_format: ReviewFormatKind, + /// The format for the reflections + format: ReflectionsFormatKind, } /// The export configuration for the pace application diff --git a/crates/core/src/domain.rs b/crates/core/src/domain.rs index 20b77c3e..66330f6e 100644 --- a/crates/core/src/domain.rs +++ b/crates/core/src/domain.rs @@ -15,7 +15,7 @@ pub mod inbox; pub mod intermission; pub mod priority; pub mod project; -pub mod review; +pub mod reflection; pub mod status; pub mod tag; pub mod task; diff --git a/crates/core/src/domain/activity.rs b/crates/core/src/domain/activity.rs index e7150346..15a7fbd8 100644 --- a/crates/core/src/domain/activity.rs +++ b/crates/core/src/domain/activity.rs @@ -694,6 +694,9 @@ mod tests { kind = "activity" "#; + // 2022-08-17T21:43:13+08:00 + // Local::now().to_rfc3339() + let activity: Activity = toml::from_str(toml)?; assert_eq!(activity.category.as_ref().ok_or("No category.")?, "Work"); diff --git a/crates/core/src/domain/filter.rs b/crates/core/src/domain/filter.rs index 930c836b..f23ecf76 100644 --- a/crates/core/src/domain/filter.rs +++ b/crates/core/src/domain/filter.rs @@ -4,7 +4,7 @@ use strum::EnumIter; use typed_builder::TypedBuilder; use crate::{ - commands::review::ReviewCommandOptions, + commands::reflect::ReflectCommandOptions, domain::{activity::ActivityGuid, time::TimeRangeOptions}, }; @@ -98,16 +98,16 @@ pub struct FilterOptions { case_sensitive: bool, } -impl From for FilterOptions { - fn from(options: ReviewCommandOptions) -> Self { +impl From for FilterOptions { + fn from(options: ReflectCommandOptions) -> Self { Self { category: options.category().clone(), case_sensitive: *options.case_sensitive(), } } } -impl From<&ReviewCommandOptions> for FilterOptions { - fn from(options: &ReviewCommandOptions) -> Self { +impl From<&ReflectCommandOptions> for FilterOptions { + fn from(options: &ReflectCommandOptions) -> Self { Self { category: options.category().clone(), case_sensitive: *options.case_sensitive(), diff --git a/crates/core/src/domain/review.rs b/crates/core/src/domain/reflection.rs similarity index 98% rename from crates/core/src/domain/review.rs rename to crates/core/src/domain/reflection.rs index 4d363308..bdba1c02 100644 --- a/crates/core/src/domain/review.rs +++ b/crates/core/src/domain/reflection.rs @@ -22,7 +22,7 @@ use crate::domain::{ #[cfg_attr(feature = "clap", derive(clap::ValueEnum))] #[serde(rename_all = "kebab-case")] #[non_exhaustive] -pub enum ReviewFormatKind { +pub enum ReflectionsFormatKind { #[default] Console, Json, @@ -48,7 +48,7 @@ pub type SummaryGroupByCategory = BTreeMap, } -impl ReviewSummary { +impl ReflectionSummary { #[must_use] pub fn new( time_range: TimeRangeOptions, @@ -97,7 +97,7 @@ impl ReviewSummary { } // TODO!: Refine the display of the review summary -impl std::fmt::Display for ReviewSummary { +impl std::fmt::Display for ReflectionSummary { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { let mut builder = Builder::new(); diff --git a/crates/core/src/domain/time.rs b/crates/core/src/domain/time.rs index effb1e09..8ddf2b3f 100644 --- a/crates/core/src/domain/time.rs +++ b/crates/core/src/domain/time.rs @@ -17,7 +17,7 @@ use tracing::debug; use typed_builder::TypedBuilder; use crate::{ - commands::review::{DateFlags, TimeFlags}, + commands::reflect::{DateFlags, TimeFlags}, error::{PaceError, PaceOptResult, PaceResult, PaceTimeErrorKind}, }; @@ -994,6 +994,26 @@ pub fn get_local_time_zone_offset() -> i32 { #[derive(Debug, Serialize, Deserialize, Hash, Clone, Copy, Eq, PartialEq, PartialOrd, Ord)] pub struct PaceStorageDateTime(DateTime); +impl std::ops::DerefMut for PaceStorageDateTime { + fn deref_mut(&mut self) -> &mut Self::Target { + &mut self.0 + } +} + +impl std::ops::Deref for PaceStorageDateTime { + type Target = DateTime; + + fn deref(&self) -> &Self::Target { + &self.0 + } +} + +impl Default for PaceStorageDateTime { + fn default() -> Self { + Self(Local::now().to_utc()) + } +} + impl From> for PaceStorageDateTime { fn from(time: DateTime) -> Self { Self(time) diff --git a/crates/core/src/lib.rs b/crates/core/src/lib.rs index 20f60fcf..3ec2267b 100644 --- a/crates/core/src/lib.rs +++ b/crates/core/src/lib.rs @@ -34,15 +34,16 @@ pub mod prelude { end::EndCommandOptions, hold::{HoldCommandOptions, HoldOptions}, now::NowCommandOptions, + reflect::{DateFlags, ExpensiveFlags, ReflectCommandOptions, TimeFlags}, resume::{ResumeCommandOptions, ResumeOptions}, - review::{DateFlags, ExpensiveFlags, ReviewCommandOptions, TimeFlags}, DeleteOptions, EndOptions, KeywordOptions, UpdateOptions, }, config::{ find_root_config_file_path, find_root_project_file, get_activity_log_paths, get_config_paths, get_home_activity_log_path, get_home_config_path, ActivityLogFormatKind, ActivityLogStorageKind, AutoArchivalConfig, DatabaseConfig, - ExportConfig, GeneralConfig, InboxConfig, PaceConfig, PomodoroConfig, ReviewConfig, + ExportConfig, GeneralConfig, InboxConfig, PaceConfig, PomodoroConfig, + ReflectionsConfig, }, domain::{ activity::{ @@ -53,8 +54,8 @@ pub mod prelude { category::split_category_by_category_separator, filter::{ActivityFilterKind, FilterOptions, FilteredActivities}, intermission::IntermissionAction, - review::{ - Highlights, ReviewFormatKind, ReviewSummary, SummaryActivityGroup, + reflection::{ + Highlights, ReflectionSummary, ReflectionsFormatKind, SummaryActivityGroup, SummaryCategories, SummaryGroupByCategory, }, status::ActivityStatus, diff --git a/crates/core/src/service/activity_store.rs b/crates/core/src/service/activity_store.rs index 08df9373..933921c7 100644 --- a/crates/core/src/service/activity_store.rs +++ b/crates/core/src/service/activity_store.rs @@ -20,7 +20,7 @@ use crate::{ }, category, filter::{ActivityFilterKind, FilterOptions, FilteredActivities}, - review::{SummaryActivityGroup, SummaryGroupByCategory}, + reflection::{SummaryActivityGroup, SummaryGroupByCategory}, status::ActivityStatus, time::{PaceDate, PaceDurationRange, TimeRangeOptions}, }, diff --git a/crates/core/src/service/activity_tracker.rs b/crates/core/src/service/activity_tracker.rs index 9df319c1..1f3fb38a 100644 --- a/crates/core/src/service/activity_tracker.rs +++ b/crates/core/src/service/activity_tracker.rs @@ -5,7 +5,7 @@ use tracing::debug; use crate::{ domain::{ filter::FilterOptions, - review::ReviewSummary, + reflection::ReflectionSummary, time::{PaceTimeFrame, TimeRangeOptions}, }, error::PaceOptResult, @@ -29,13 +29,13 @@ impl ActivityTracker { // - [ ] implement the `comparative` flag // - [ ] implement the `recommendations` flag - /// Generate a review summary for the specified time frame. + /// Generate a reflection for the specified time frame. #[tracing::instrument(skip(self))] - pub fn generate_review_summary( + pub fn generate_reflection( &self, filter_opts: FilterOptions, time_frame: PaceTimeFrame, - ) -> PaceOptResult { + ) -> PaceOptResult { let time_range_opts = TimeRangeOptions::try_from(time_frame)?; let Some(summary_groups) = self @@ -45,9 +45,9 @@ impl ActivityTracker { return Ok(None); }; - let summary = ReviewSummary::new(time_range_opts, summary_groups); + let summary = ReflectionSummary::new(time_range_opts, summary_groups); - debug!("Generated review summary: {:#?}", summary); + debug!("Generated reflection: {:#?}", summary); Ok(Some(summary)) } diff --git a/src/commands.rs b/src/commands.rs index ce5c2056..ad5120ae 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -16,8 +16,8 @@ pub mod docs; pub mod end; pub mod hold; pub mod now; +pub mod reflect; pub mod resume; -pub mod review; pub mod setup; use abscissa_core::{ @@ -61,8 +61,8 @@ pub enum PaceCmd { Resume(resume::ResumeCmd), /// 📈 Get sophisticated insights on your activities. - #[clap(visible_alias = "rev")] - Review(review::ReviewCmd), + #[clap(visible_alias = "ref")] + Reflect(reflect::ReflectCmd), /// 🛠️ Set up a pace configuration, a new project, or generate shell completions. #[clap(visible_alias = "s")] @@ -71,12 +71,12 @@ pub enum PaceCmd { /// 📚 Open the online documentation for pace. #[clap(visible_alias = "d")] Docs(docs::DocsCmd), - // /// Exports your tracked data and reviews in JSON or CSV format, suitable for analysis or record-keeping. + // /// Exports your tracked data and reflections in JSON or CSV format, suitable for analysis or record-keeping. // Export(export::ExportCmd), // /// Starts a Pomodoro session for the specified task, integrating the Pomodoro technique directly with your tasks. // Pomo(pomo::PomoCmd), - // /// Sets various application configurations, including Pomodoro lengths and preferred review formats. + // /// Sets various application configurations, including Pomodoro lengths and preferred reflection formats. // Set(set::SetCmd), // /// Lists all tasks with optional filters. Use this to view active, completed, or today's tasks. diff --git a/src/commands/review.rs b/src/commands/reflect.rs similarity index 69% rename from src/commands/review.rs rename to src/commands/reflect.rs index b2ee9778..331f3f2d 100644 --- a/src/commands/review.rs +++ b/src/commands/reflect.rs @@ -6,20 +6,20 @@ use abscissa_core::{status_err, Application, Command, Runnable, Shutdown}; use clap::Parser; -use pace_core::prelude::ReviewCommandOptions; +use pace_core::prelude::ReflectCommandOptions; use crate::prelude::PACE_APP; /// `review` subcommand #[derive(Command, Debug, Parser)] -pub struct ReviewCmd { +pub struct ReflectCmd { #[clap(flatten)] - review_opts: ReviewCommandOptions, + review_opts: ReflectCommandOptions, } -impl Runnable for ReviewCmd { +impl Runnable for ReflectCmd { fn run(&self) { - match self.review_opts.handle_review(&PACE_APP.config()) { + match self.review_opts.handle_reflect(&PACE_APP.config()) { Ok(user_message) => user_message.display(), Err(err) => { status_err!("{}", err); diff --git a/tests/cli.rs b/tests/cli.rs index e38183ec..45203ef8 100644 --- a/tests/cli.rs +++ b/tests/cli.rs @@ -214,7 +214,7 @@ fn test_adjust_activity_snapshot_passes() -> TestResult<()> { } #[test] -fn test_review_from_to_snapshot_passes() -> TestResult<()> { +fn test_reflect_from_to_snapshot_passes() -> TestResult<()> { let path = PathBuf::from("./tests/fixtures/activity_tracker/activities.pace.toml"); let activities = path.to_str().ok_or("Could not convert path to string")?; @@ -223,7 +223,7 @@ fn test_review_from_to_snapshot_passes() -> TestResult<()> { "tests/fixtures/configs/pace.toml", "--activity-log-file", &activities, - "review", + "reflect", "--from", "2024-02-26", "--to", @@ -234,7 +234,7 @@ fn test_review_from_to_snapshot_passes() -> TestResult<()> { } #[test] -fn test_review_date_snapshot_passes() -> TestResult<()> { +fn test_reflect_date_snapshot_passes() -> TestResult<()> { let path = PathBuf::from("./tests/fixtures/activity_tracker/activities.pace.toml"); let activities = path.to_str().ok_or("Could not convert path to string")?; @@ -243,7 +243,7 @@ fn test_review_date_snapshot_passes() -> TestResult<()> { "tests/fixtures/configs/pace.toml", "--activity-log-file", &activities, - "review", + "reflect", "--date", "2024-02-26", ])); @@ -252,7 +252,7 @@ fn test_review_date_snapshot_passes() -> TestResult<()> { } #[test] -fn test_review_today_snapshot_passes() -> TestResult<()> { +fn test_reflect_today_snapshot_passes() -> TestResult<()> { let path = PathBuf::from("./tests/fixtures/activity_tracker/activities.pace.toml"); let activities = path.to_str().ok_or("Could not convert path to string")?; @@ -261,14 +261,14 @@ fn test_review_today_snapshot_passes() -> TestResult<()> { "tests/fixtures/configs/pace.toml", "--activity-log-file", &activities, - "review", + "reflect", ])); Ok(()) } #[test] -fn test_review_current_week_snapshot_passes() -> TestResult<()> { +fn test_reflect_current_week_snapshot_passes() -> TestResult<()> { let path = PathBuf::from("./tests/fixtures/activity_tracker/activities.pace.toml"); let activities = path.to_str().ok_or("Could not convert path to string")?; @@ -277,7 +277,7 @@ fn test_review_current_week_snapshot_passes() -> TestResult<()> { "tests/fixtures/configs/pace.toml", "--activity-log-file", &activities, - "review", + "reflect", "--current-week", ])); @@ -285,7 +285,7 @@ fn test_review_current_week_snapshot_passes() -> TestResult<()> { } #[test] -fn test_review_current_month_snapshot_passes() -> TestResult<()> { +fn test_reflect_current_month_snapshot_passes() -> TestResult<()> { let path = PathBuf::from("./tests/fixtures/activity_tracker/activities.pace.toml"); let activities = path.to_str().ok_or("Could not convert path to string")?; @@ -294,7 +294,7 @@ fn test_review_current_month_snapshot_passes() -> TestResult<()> { "tests/fixtures/configs/pace.toml", "--activity-log-file", &activities, - "review", + "reflect", "--current-month", ])); @@ -302,7 +302,7 @@ fn test_review_current_month_snapshot_passes() -> TestResult<()> { } #[test] -fn test_review_from_to_filter_category_glob_front_snapshot_passes() -> TestResult<()> { +fn test_reflect_from_to_filter_category_glob_front_snapshot_passes() -> TestResult<()> { let path = PathBuf::from("./tests/fixtures/activity_tracker/activities.pace.toml"); let activities = path.to_str().ok_or("Could not convert path to string")?; @@ -311,7 +311,7 @@ fn test_review_from_to_filter_category_glob_front_snapshot_passes() -> TestResul "tests/fixtures/configs/pace.toml", "--activity-log-file", &activities, - "review", + "reflect", "--from", "2024-02-26", "--to", @@ -324,7 +324,7 @@ fn test_review_from_to_filter_category_glob_front_snapshot_passes() -> TestResul } #[test] -fn test_review_from_to_filter_category_case_sensitive_snapshot_passes() -> TestResult<()> { +fn test_reflect_from_to_filter_category_case_sensitive_snapshot_passes() -> TestResult<()> { let path = PathBuf::from("./tests/fixtures/activity_tracker/activities.pace.toml"); let activities = path.to_str().ok_or("Could not convert path to string")?; @@ -333,7 +333,7 @@ fn test_review_from_to_filter_category_case_sensitive_snapshot_passes() -> TestR "tests/fixtures/configs/pace.toml", "--activity-log-file", &activities, - "review", + "reflect", "--from", "2024-02-26", "--to", @@ -347,7 +347,7 @@ fn test_review_from_to_filter_category_case_sensitive_snapshot_passes() -> TestR } #[test] -fn test_review_from_to_filter_category_full_snapshot_passes() -> TestResult<()> { +fn test_reflect_from_to_filter_category_full_snapshot_passes() -> TestResult<()> { let path = PathBuf::from("./tests/fixtures/activity_tracker/activities.pace.toml"); let activities = path.to_str().ok_or("Could not convert path to string")?; @@ -356,7 +356,7 @@ fn test_review_from_to_filter_category_full_snapshot_passes() -> TestResult<()> "tests/fixtures/configs/pace.toml", "--activity-log-file", &activities, - "review", + "reflect", "--from", "2024-02-26", "--to", @@ -369,7 +369,7 @@ fn test_review_from_to_filter_category_full_snapshot_passes() -> TestResult<()> } #[test] -fn test_review_from_to_filter_category_glob_back_snapshot_passes() -> TestResult<()> { +fn test_reflect_from_to_filter_category_glob_back_snapshot_passes() -> TestResult<()> { let path = PathBuf::from("./tests/fixtures/activity_tracker/activities.pace.toml"); let activities = path.to_str().ok_or("Could not convert path to string")?; @@ -378,7 +378,7 @@ fn test_review_from_to_filter_category_glob_back_snapshot_passes() -> TestResult "tests/fixtures/configs/pace.toml", "--activity-log-file", &activities, - "review", + "reflect", "--from", "2024-02-26", "--to", @@ -391,7 +391,7 @@ fn test_review_from_to_filter_category_glob_back_snapshot_passes() -> TestResult } #[test] -fn test_review_from_to_filter_category_glob_back_case_sensitive_snapshot_passes() -> TestResult<()> +fn test_reflect_from_to_filter_category_glob_back_case_sensitive_snapshot_passes() -> TestResult<()> { let path = PathBuf::from("./tests/fixtures/activity_tracker/activities.pace.toml"); let activities = path.to_str().ok_or("Could not convert path to string")?; @@ -401,7 +401,7 @@ fn test_review_from_to_filter_category_glob_back_case_sensitive_snapshot_passes( "tests/fixtures/configs/pace.toml", "--activity-log-file", &activities, - "review", + "reflect", "--from", "2024-02-26", "--to", diff --git a/tests/fixtures/activity_tracker/activities.pace.toml b/tests/fixtures/activity_tracker/activities.pace.toml index 8fcc39df..11e3f05f 100644 --- a/tests/fixtures/activity_tracker/activities.pace.toml +++ b/tests/fixtures/activity_tracker/activities.pace.toml @@ -1,6 +1,6 @@ [01HQKEJTPFPY2WPBYT8NG6W2HY] category = "development::pace" -description = "Implementing Review" +description = "Implementing Reflection" begin = "2024-02-26T20:34:33" end = "2024-02-26T20:41:59" duration = 446 @@ -9,7 +9,7 @@ status = "ended" [01HQKEKX9PA24T5GB17PNW0N9K] category = "development::pace" -description = "Implementing Review" +description = "Implementing Reflection" begin = "2024-02-26T20:35:09" end = "2024-02-26T20:39:13" duration = 244 diff --git a/tests/fixtures/configs/pace.toml b/tests/fixtures/configs/pace.toml index 91350a68..0e728243 100644 --- a/tests/fixtures/configs/pace.toml +++ b/tests/fixtures/configs/pace.toml @@ -10,11 +10,11 @@ category-separator = "::" # Default priority for new tasks default-priority = "medium" -[reviews] -# Format of the review generated by the pace: "pdf", "html", "markdown", etc. -review-format = "html" -# Directory where the reviews will be stored -review-directory = "/path/to/your/reviews/" +[reflections] +# Format of the reflections generated by the pace: "pdf", "html", "markdown", etc. +format = "html" +# Directory where the reflections will be stored +directory = "/path/to/your/reflections/" [export] include-tags = true diff --git a/tests/snapshots/cli__review_current_month_snapshot_passes.snap b/tests/snapshots/cli__reflect_current_month_snapshot_passes.snap similarity index 96% rename from tests/snapshots/cli__review_current_month_snapshot_passes.snap rename to tests/snapshots/cli__reflect_current_month_snapshot_passes.snap index b6f00ad6..9c169953 100644 --- a/tests/snapshots/cli__review_current_month_snapshot_passes.snap +++ b/tests/snapshots/cli__reflect_current_month_snapshot_passes.snap @@ -7,7 +7,7 @@ info: - tests/fixtures/configs/pace.toml - "--activity-log-file" - "./tests/fixtures/activity_tracker/activities.pace.toml" - - review + - reflect - "--current-month" --- success: true diff --git a/tests/snapshots/cli__review_current_week_snapshot_passes.snap b/tests/snapshots/cli__reflect_current_week_snapshot_passes.snap similarity index 96% rename from tests/snapshots/cli__review_current_week_snapshot_passes.snap rename to tests/snapshots/cli__reflect_current_week_snapshot_passes.snap index d0a8d4bd..0307d06c 100644 --- a/tests/snapshots/cli__review_current_week_snapshot_passes.snap +++ b/tests/snapshots/cli__reflect_current_week_snapshot_passes.snap @@ -7,7 +7,7 @@ info: - tests/fixtures/configs/pace.toml - "--activity-log-file" - "./tests/fixtures/activity_tracker/activities.pace.toml" - - review + - reflect - "--current-week" --- success: true diff --git a/tests/snapshots/cli__reflect_date_snapshot_passes.snap b/tests/snapshots/cli__reflect_date_snapshot_passes.snap new file mode 100644 index 00000000..0cc90bce --- /dev/null +++ b/tests/snapshots/cli__reflect_date_snapshot_passes.snap @@ -0,0 +1,31 @@ +--- +source: tests/cli.rs +info: + program: pace + args: + - "--config" + - tests/fixtures/configs/pace.toml + - "--activity-log-file" + - "./tests/fixtures/activity_tracker/activities.pace.toml" + - reflect + - "--date" + - 2024-02-26 +--- +success: true +exit_code: 0 +----- stdout ----- +╭─────────────┬─────────────────────────┬─────────────────────┬─────────────────╮ +│ Your activity insights for the period: │ +│ │ +│ 2024-02-26 00:00:00 - 2024-02-26 23:59:59 │ +├─────────────┼─────────────────────────┼─────────────────────┼─────────────────┤ +│ Category │ Description │ Duration (Sessions) │ Breaks (Amount) │ +├─────────────┼─────────────────────────┼─────────────────────┼─────────────────┤ +│ development │ │ 3m 22s │ 4m 4s │ +├─────────────┼─────────────────────────┼─────────────────────┼─────────────────┤ +│ pace │ Implementing Reflection │ 3m 22s (1) │ 4m 4s (1) │ +├─────────────┼─────────────────────────┼─────────────────────┼─────────────────┤ +│ Total │ │ 3m 22s │ 4m 4s │ +╰─────────────┴─────────────────────────┴─────────────────────┴─────────────────╯ + +----- stderr ----- diff --git a/tests/snapshots/cli__review_from_to_filter_category_case_sensitive_snapshot_passes.snap b/tests/snapshots/cli__reflect_from_to_filter_category_case_sensitive_snapshot_passes.snap similarity index 99% rename from tests/snapshots/cli__review_from_to_filter_category_case_sensitive_snapshot_passes.snap rename to tests/snapshots/cli__reflect_from_to_filter_category_case_sensitive_snapshot_passes.snap index 7d98b70c..b0e0d7d6 100644 --- a/tests/snapshots/cli__review_from_to_filter_category_case_sensitive_snapshot_passes.snap +++ b/tests/snapshots/cli__reflect_from_to_filter_category_case_sensitive_snapshot_passes.snap @@ -7,7 +7,7 @@ info: - tests/fixtures/configs/pace.toml - "--activity-log-file" - "./tests/fixtures/activity_tracker/activities.pace.toml" - - review + - reflect - "--from" - 2024-02-26 - "--to" diff --git a/tests/snapshots/cli__reflect_from_to_filter_category_full_snapshot_passes.snap b/tests/snapshots/cli__reflect_from_to_filter_category_full_snapshot_passes.snap new file mode 100644 index 00000000..9711e108 --- /dev/null +++ b/tests/snapshots/cli__reflect_from_to_filter_category_full_snapshot_passes.snap @@ -0,0 +1,35 @@ +--- +source: tests/cli.rs +info: + program: pace + args: + - "--config" + - tests/fixtures/configs/pace.toml + - "--activity-log-file" + - "./tests/fixtures/activity_tracker/activities.pace.toml" + - reflect + - "--from" + - 2024-02-26 + - "--to" + - 2024-02-28 + - "--category" + - "development::pace" +--- +success: true +exit_code: 0 +----- stdout ----- +╭─────────────┬─────────────────────────┬─────────────────────┬─────────────────╮ +│ Your activity insights for the period: │ +│ │ +│ 2024-02-26 00:00:00 - 2024-02-28 00:00:00 │ +├─────────────┼─────────────────────────┼─────────────────────┼─────────────────┤ +│ Category │ Description │ Duration (Sessions) │ Breaks (Amount) │ +├─────────────┼─────────────────────────┼─────────────────────┼─────────────────┤ +│ development │ │ 3m 22s │ 4m 4s │ +├─────────────┼─────────────────────────┼─────────────────────┼─────────────────┤ +│ pace │ Implementing Reflection │ 3m 22s (1) │ 4m 4s (1) │ +├─────────────┼─────────────────────────┼─────────────────────┼─────────────────┤ +│ Total │ │ 3m 22s │ 4m 4s │ +╰─────────────┴─────────────────────────┴─────────────────────┴─────────────────╯ + +----- stderr ----- diff --git a/tests/snapshots/cli__review_from_to_filter_category_glob_back_case_sensitive_snapshot_passes.snap b/tests/snapshots/cli__reflect_from_to_filter_category_glob_back_case_sensitive_snapshot_passes.snap similarity index 99% rename from tests/snapshots/cli__review_from_to_filter_category_glob_back_case_sensitive_snapshot_passes.snap rename to tests/snapshots/cli__reflect_from_to_filter_category_glob_back_case_sensitive_snapshot_passes.snap index 82f3aec8..95d57a9e 100644 --- a/tests/snapshots/cli__review_from_to_filter_category_glob_back_case_sensitive_snapshot_passes.snap +++ b/tests/snapshots/cli__reflect_from_to_filter_category_glob_back_case_sensitive_snapshot_passes.snap @@ -7,7 +7,7 @@ info: - tests/fixtures/configs/pace.toml - "--activity-log-file" - "./tests/fixtures/activity_tracker/activities.pace.toml" - - review + - reflect - "--from" - 2024-02-26 - "--to" diff --git a/tests/snapshots/cli__reflect_from_to_filter_category_glob_back_snapshot_passes.snap b/tests/snapshots/cli__reflect_from_to_filter_category_glob_back_snapshot_passes.snap new file mode 100644 index 00000000..b860e380 --- /dev/null +++ b/tests/snapshots/cli__reflect_from_to_filter_category_glob_back_snapshot_passes.snap @@ -0,0 +1,39 @@ +--- +source: tests/cli.rs +info: + program: pace + args: + - "--config" + - tests/fixtures/configs/pace.toml + - "--activity-log-file" + - "./tests/fixtures/activity_tracker/activities.pace.toml" + - reflect + - "--from" + - 2024-02-26 + - "--to" + - 2024-02-28 + - "--category" + - dev* +--- +success: true +exit_code: 0 +----- stdout ----- +╭─────────────┬─────────────────────────┬─────────────────────┬─────────────────╮ +│ Your activity insights for the period: │ +│ │ +│ 2024-02-26 00:00:00 - 2024-02-28 00:00:00 │ +├─────────────┼─────────────────────────┼─────────────────────┼─────────────────┤ +│ Category │ Description │ Duration (Sessions) │ Breaks (Amount) │ +├─────────────┼─────────────────────────┼─────────────────────┼─────────────────┤ +│ development │ │ 3m 22s │ 4m 4s │ +├─────────────┼─────────────────────────┼─────────────────────┼─────────────────┤ +│ pace │ Implementing Reflection │ 3m 22s (1) │ 4m 4s (1) │ +├─────────────┼─────────────────────────┼─────────────────────┼─────────────────┤ +│ development │ │ 51s │ 10s │ +├─────────────┼─────────────────────────┼─────────────────────┼─────────────────┤ +│ rustic │ More Testing │ 51s (2) │ 10s (1) │ +├─────────────┼─────────────────────────┼─────────────────────┼─────────────────┤ +│ Total │ │ 4m 13s │ 4m 14s │ +╰─────────────┴─────────────────────────┴─────────────────────┴─────────────────╯ + +----- stderr ----- diff --git a/tests/snapshots/cli__reflect_from_to_filter_category_glob_front_snapshot_passes.snap b/tests/snapshots/cli__reflect_from_to_filter_category_glob_front_snapshot_passes.snap new file mode 100644 index 00000000..2d891c9e --- /dev/null +++ b/tests/snapshots/cli__reflect_from_to_filter_category_glob_front_snapshot_passes.snap @@ -0,0 +1,35 @@ +--- +source: tests/cli.rs +info: + program: pace + args: + - "--config" + - tests/fixtures/configs/pace.toml + - "--activity-log-file" + - "./tests/fixtures/activity_tracker/activities.pace.toml" + - reflect + - "--from" + - 2024-02-26 + - "--to" + - 2024-02-28 + - "--category" + - "*pace" +--- +success: true +exit_code: 0 +----- stdout ----- +╭─────────────┬─────────────────────────┬─────────────────────┬─────────────────╮ +│ Your activity insights for the period: │ +│ │ +│ 2024-02-26 00:00:00 - 2024-02-28 00:00:00 │ +├─────────────┼─────────────────────────┼─────────────────────┼─────────────────┤ +│ Category │ Description │ Duration (Sessions) │ Breaks (Amount) │ +├─────────────┼─────────────────────────┼─────────────────────┼─────────────────┤ +│ development │ │ 3m 22s │ 4m 4s │ +├─────────────┼─────────────────────────┼─────────────────────┼─────────────────┤ +│ pace │ Implementing Reflection │ 3m 22s (1) │ 4m 4s (1) │ +├─────────────┼─────────────────────────┼─────────────────────┼─────────────────┤ +│ Total │ │ 3m 22s │ 4m 4s │ +╰─────────────┴─────────────────────────┴─────────────────────┴─────────────────╯ + +----- stderr ----- diff --git a/tests/snapshots/cli__reflect_from_to_snapshot_passes.snap b/tests/snapshots/cli__reflect_from_to_snapshot_passes.snap new file mode 100644 index 00000000..f31add4f --- /dev/null +++ b/tests/snapshots/cli__reflect_from_to_snapshot_passes.snap @@ -0,0 +1,37 @@ +--- +source: tests/cli.rs +info: + program: pace + args: + - "--config" + - tests/fixtures/configs/pace.toml + - "--activity-log-file" + - "./tests/fixtures/activity_tracker/activities.pace.toml" + - reflect + - "--from" + - 2024-02-26 + - "--to" + - 2024-02-28 +--- +success: true +exit_code: 0 +----- stdout ----- +╭─────────────┬─────────────────────────┬─────────────────────┬─────────────────╮ +│ Your activity insights for the period: │ +│ │ +│ 2024-02-26 00:00:00 - 2024-02-28 00:00:00 │ +├─────────────┼─────────────────────────┼─────────────────────┼─────────────────┤ +│ Category │ Description │ Duration (Sessions) │ Breaks (Amount) │ +├─────────────┼─────────────────────────┼─────────────────────┼─────────────────┤ +│ development │ │ 3m 22s │ 4m 4s │ +├─────────────┼─────────────────────────┼─────────────────────┼─────────────────┤ +│ pace │ Implementing Reflection │ 3m 22s (1) │ 4m 4s (1) │ +├─────────────┼─────────────────────────┼─────────────────────┼─────────────────┤ +│ development │ │ 51s │ 10s │ +├─────────────┼─────────────────────────┼─────────────────────┼─────────────────┤ +│ rustic │ More Testing │ 51s (2) │ 10s (1) │ +├─────────────┼─────────────────────────┼─────────────────────┼─────────────────┤ +│ Total │ │ 4m 13s │ 4m 14s │ +╰─────────────┴─────────────────────────┴─────────────────────┴─────────────────╯ + +----- stderr ----- diff --git a/tests/snapshots/cli__review_today_snapshot_passes.snap b/tests/snapshots/cli__reflect_today_snapshot_passes.snap similarity index 95% rename from tests/snapshots/cli__review_today_snapshot_passes.snap rename to tests/snapshots/cli__reflect_today_snapshot_passes.snap index c5d104f6..c427e131 100644 --- a/tests/snapshots/cli__review_today_snapshot_passes.snap +++ b/tests/snapshots/cli__reflect_today_snapshot_passes.snap @@ -7,7 +7,7 @@ info: - tests/fixtures/configs/pace.toml - "--activity-log-file" - "./tests/fixtures/activity_tracker/activities.pace.toml" - - review + - reflect --- success: true exit_code: 0 diff --git a/tests/snapshots/cli__review_date_snapshot_passes.snap b/tests/snapshots/cli__review_date_snapshot_passes.snap deleted file mode 100644 index 4ddf2caf..00000000 --- a/tests/snapshots/cli__review_date_snapshot_passes.snap +++ /dev/null @@ -1,31 +0,0 @@ ---- -source: tests/cli.rs -info: - program: pace - args: - - "--config" - - tests/fixtures/configs/pace.toml - - "--activity-log-file" - - "./tests/fixtures/activity_tracker/activities.pace.toml" - - review - - "--date" - - 2024-02-26 ---- -success: true -exit_code: 0 ------ stdout ----- -╭─────────────┬─────────────────────┬─────────────────────┬─────────────────╮ -│ Your activity insights for the period: │ -│ │ -│ 2024-02-26 00:00:00 - 2024-02-26 23:59:59 │ -├─────────────┼─────────────────────┼─────────────────────┼─────────────────┤ -│ Category │ Description │ Duration (Sessions) │ Breaks (Amount) │ -├─────────────┼─────────────────────┼─────────────────────┼─────────────────┤ -│ development │ │ 3m 22s │ 4m 4s │ -├─────────────┼─────────────────────┼─────────────────────┼─────────────────┤ -│ pace │ Implementing Review │ 3m 22s (1) │ 4m 4s (1) │ -├─────────────┼─────────────────────┼─────────────────────┼─────────────────┤ -│ Total │ │ 3m 22s │ 4m 4s │ -╰─────────────┴─────────────────────┴─────────────────────┴─────────────────╯ - ------ stderr ----- diff --git a/tests/snapshots/cli__review_from_to_filter_category_full_snapshot_passes.snap b/tests/snapshots/cli__review_from_to_filter_category_full_snapshot_passes.snap deleted file mode 100644 index b5cc24e3..00000000 --- a/tests/snapshots/cli__review_from_to_filter_category_full_snapshot_passes.snap +++ /dev/null @@ -1,35 +0,0 @@ ---- -source: tests/cli.rs -info: - program: pace - args: - - "--config" - - tests/fixtures/configs/pace.toml - - "--activity-log-file" - - "./tests/fixtures/activity_tracker/activities.pace.toml" - - review - - "--from" - - 2024-02-26 - - "--to" - - 2024-02-28 - - "--category" - - "development::pace" ---- -success: true -exit_code: 0 ------ stdout ----- -╭─────────────┬─────────────────────┬─────────────────────┬─────────────────╮ -│ Your activity insights for the period: │ -│ │ -│ 2024-02-26 00:00:00 - 2024-02-28 00:00:00 │ -├─────────────┼─────────────────────┼─────────────────────┼─────────────────┤ -│ Category │ Description │ Duration (Sessions) │ Breaks (Amount) │ -├─────────────┼─────────────────────┼─────────────────────┼─────────────────┤ -│ development │ │ 3m 22s │ 4m 4s │ -├─────────────┼─────────────────────┼─────────────────────┼─────────────────┤ -│ pace │ Implementing Review │ 3m 22s (1) │ 4m 4s (1) │ -├─────────────┼─────────────────────┼─────────────────────┼─────────────────┤ -│ Total │ │ 3m 22s │ 4m 4s │ -╰─────────────┴─────────────────────┴─────────────────────┴─────────────────╯ - ------ stderr ----- diff --git a/tests/snapshots/cli__review_from_to_filter_category_glob_back_snapshot_passes.snap b/tests/snapshots/cli__review_from_to_filter_category_glob_back_snapshot_passes.snap deleted file mode 100644 index 44ed680d..00000000 --- a/tests/snapshots/cli__review_from_to_filter_category_glob_back_snapshot_passes.snap +++ /dev/null @@ -1,39 +0,0 @@ ---- -source: tests/cli.rs -info: - program: pace - args: - - "--config" - - tests/fixtures/configs/pace.toml - - "--activity-log-file" - - "./tests/fixtures/activity_tracker/activities.pace.toml" - - review - - "--from" - - 2024-02-26 - - "--to" - - 2024-02-28 - - "--category" - - dev* ---- -success: true -exit_code: 0 ------ stdout ----- -╭─────────────┬─────────────────────┬─────────────────────┬─────────────────╮ -│ Your activity insights for the period: │ -│ │ -│ 2024-02-26 00:00:00 - 2024-02-28 00:00:00 │ -├─────────────┼─────────────────────┼─────────────────────┼─────────────────┤ -│ Category │ Description │ Duration (Sessions) │ Breaks (Amount) │ -├─────────────┼─────────────────────┼─────────────────────┼─────────────────┤ -│ development │ │ 3m 22s │ 4m 4s │ -├─────────────┼─────────────────────┼─────────────────────┼─────────────────┤ -│ pace │ Implementing Review │ 3m 22s (1) │ 4m 4s (1) │ -├─────────────┼─────────────────────┼─────────────────────┼─────────────────┤ -│ development │ │ 51s │ 10s │ -├─────────────┼─────────────────────┼─────────────────────┼─────────────────┤ -│ rustic │ More Testing │ 51s (2) │ 10s (1) │ -├─────────────┼─────────────────────┼─────────────────────┼─────────────────┤ -│ Total │ │ 4m 13s │ 4m 14s │ -╰─────────────┴─────────────────────┴─────────────────────┴─────────────────╯ - ------ stderr ----- diff --git a/tests/snapshots/cli__review_from_to_filter_category_glob_front_snapshot_passes.snap b/tests/snapshots/cli__review_from_to_filter_category_glob_front_snapshot_passes.snap deleted file mode 100644 index 669a4bbe..00000000 --- a/tests/snapshots/cli__review_from_to_filter_category_glob_front_snapshot_passes.snap +++ /dev/null @@ -1,35 +0,0 @@ ---- -source: tests/cli.rs -info: - program: pace - args: - - "--config" - - tests/fixtures/configs/pace.toml - - "--activity-log-file" - - "./tests/fixtures/activity_tracker/activities.pace.toml" - - review - - "--from" - - 2024-02-26 - - "--to" - - 2024-02-28 - - "--category" - - "*pace" ---- -success: true -exit_code: 0 ------ stdout ----- -╭─────────────┬─────────────────────┬─────────────────────┬─────────────────╮ -│ Your activity insights for the period: │ -│ │ -│ 2024-02-26 00:00:00 - 2024-02-28 00:00:00 │ -├─────────────┼─────────────────────┼─────────────────────┼─────────────────┤ -│ Category │ Description │ Duration (Sessions) │ Breaks (Amount) │ -├─────────────┼─────────────────────┼─────────────────────┼─────────────────┤ -│ development │ │ 3m 22s │ 4m 4s │ -├─────────────┼─────────────────────┼─────────────────────┼─────────────────┤ -│ pace │ Implementing Review │ 3m 22s (1) │ 4m 4s (1) │ -├─────────────┼─────────────────────┼─────────────────────┼─────────────────┤ -│ Total │ │ 3m 22s │ 4m 4s │ -╰─────────────┴─────────────────────┴─────────────────────┴─────────────────╯ - ------ stderr ----- diff --git a/tests/snapshots/cli__review_from_to_snapshot_passes.snap b/tests/snapshots/cli__review_from_to_snapshot_passes.snap deleted file mode 100644 index db7e6ff1..00000000 --- a/tests/snapshots/cli__review_from_to_snapshot_passes.snap +++ /dev/null @@ -1,37 +0,0 @@ ---- -source: tests/cli.rs -info: - program: pace - args: - - "--config" - - tests/fixtures/configs/pace.toml - - "--activity-log-file" - - "./tests/fixtures/activity_tracker/activities.pace.toml" - - review - - "--from" - - 2024-02-26 - - "--to" - - 2024-02-28 ---- -success: true -exit_code: 0 ------ stdout ----- -╭─────────────┬─────────────────────┬─────────────────────┬─────────────────╮ -│ Your activity insights for the period: │ -│ │ -│ 2024-02-26 00:00:00 - 2024-02-28 00:00:00 │ -├─────────────┼─────────────────────┼─────────────────────┼─────────────────┤ -│ Category │ Description │ Duration (Sessions) │ Breaks (Amount) │ -├─────────────┼─────────────────────┼─────────────────────┼─────────────────┤ -│ development │ │ 3m 22s │ 4m 4s │ -├─────────────┼─────────────────────┼─────────────────────┼─────────────────┤ -│ pace │ Implementing Review │ 3m 22s (1) │ 4m 4s (1) │ -├─────────────┼─────────────────────┼─────────────────────┼─────────────────┤ -│ development │ │ 51s │ 10s │ -├─────────────┼─────────────────────┼─────────────────────┼─────────────────┤ -│ rustic │ More Testing │ 51s (2) │ 10s (1) │ -├─────────────┼─────────────────────┼─────────────────────┼─────────────────┤ -│ Total │ │ 4m 13s │ 4m 14s │ -╰─────────────┴─────────────────────┴─────────────────────┴─────────────────╯ - ------ stderr -----