Skip to content

Review my code <3#271

Open
young-the-tiny wants to merge 4 commits into
the-csharp-academy:mainfrom
young-the-tiny:main
Open

Review my code <3#271
young-the-tiny wants to merge 4 commits into
the-csharp-academy:mainfrom
young-the-tiny:main

Conversation

@young-the-tiny

Copy link
Copy Markdown

No description provided.

Copilot AI review requested due to automatic review settings June 24, 2026 09:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces a new Coding Tracker .NET console application that stores coding sessions in SQLite (via Dapper) and provides an interactive Spectre.Console UI for CRUD operations, a live stopwatch session, and basic reporting.

Changes:

  • Added a Spectre.Console-driven menu UI for viewing/adding/updating/deleting sessions, running a live session, and generating summary reports.
  • Implemented configuration loading from appsettings.json and a Dapper/SQLite data access layer.
  • Added project scaffolding and documentation (README.md, DOCS.md), plus solution/project files and default configuration.

Reviewed changes

Copilot reviewed 10 out of 11 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
CodingTracker/UI/UserInterface.cs Adds the interactive menu UI, live session stopwatch, reporting, and input helpers.
CodingTracker/Database/DatabaseManager.cs Adds SQLite schema init and CRUD operations via Dapper.
CodingTracker/Config/AppConfig.cs Loads connection string/date format from appsettings.json at startup.
CodingTracker/Models/CodingSession.cs Defines the session model with computed Duration.
CodingTracker/Program.cs Adds the app entry point: init DB then run UI.
CodingTracker/appsettings.json Provides default connection string, DB path, and date format.
CodingTracker/CodingTracker.csproj Adds .NET project configuration and package references.
CodingTracker/CodingTracker.slnx Adds a solution container referencing the project.
CodingTracker/README.md Documents features, requirements, running, configuration, and layout.
CodingTracker/DOCS.md Provides a detailed explanation of architecture and data flow.
.gitignore Ignores .claude.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread CodingTracker/UI/UserInterface.cs Outdated
Comment on lines +89 to +103
var start = DateTime.Now;
AnsiConsole.MarkupLine($"[green]Session started at {start.ToString(AppConfig.DateFormat)}.[/] Press any key to stop...");

AnsiConsole.Live(new Markup(""))
.Start(ctx =>
{
while (!Console.KeyAvailable)
{
ctx.UpdateTarget(new Markup($"Time: [yellow]{FormatDuration(DateTime.Now - start)}[/]"));
ctx.Refresh();
Thread.Sleep(1000);
}
});
Console.ReadKey(true);

Comment on lines +19 to +24
<ItemGroup>
<None Update="appsettings.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>

</ItemGroup>
young-the-tiny and others added 3 commits June 24, 2026 16:11
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