Review my code <3#271
Open
young-the-tiny wants to merge 4 commits into
Open
Conversation
There was a problem hiding this comment.
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.jsonand 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 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> |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.