{"id":18062127,"url":"https://github.com/jexxer/clockblock","last_synced_at":"2026-04-14T03:33:06.669Z","repository":{"id":260184761,"uuid":"878551666","full_name":"Jexxer/ClockBlock","owner":"Jexxer","description":"Productivity tool designed to help users stay focused by blocking access to specific applications during defined working hours. It consists of a Windows background service and a WPF-based GUI application for configuration and viewing usage statistics.","archived":false,"fork":false,"pushed_at":"2024-10-29T23:55:15.000Z","size":92,"stargazers_count":1,"open_issues_count":60,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T13:15:09.422Z","etag":null,"topics":["background-service","gui","rust","windows","wpf"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Jexxer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-25T15:46:14.000Z","updated_at":"2024-10-31T08:30:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"9553adb6-bc71-40e7-b542-baafff5271c8","html_url":"https://github.com/Jexxer/ClockBlock","commit_stats":null,"previous_names":["jexxer/clockblock"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jexxer%2FClockBlock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jexxer%2FClockBlock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jexxer%2FClockBlock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jexxer%2FClockBlock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jexxer","download_url":"https://codeload.github.com/Jexxer/ClockBlock/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247339162,"owners_count":20923014,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["background-service","gui","rust","windows","wpf"],"created_at":"2024-10-31T05:05:47.204Z","updated_at":"2026-04-14T03:33:06.642Z","avatar_url":"https://github.com/Jexxer.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ClockBlock (WIP)\n\nClockBlock is a productivity tool designed to help users stay focused by blocking access to specific applications during defined working hours. It consists of a Windows background service and a WPF-based GUI application for configuration and viewing usage statistics.\n\n## Current Features\n- **Configuration Management**: Set and save working hours to block access to certain applications during specified times.\n- **MVVM Architecture**: Organized code structure in WPF using the MVVM pattern for scalability and testability.\n- **Unit Tests**: Basic tests for configuration loading and saving to ensure robust functionality.\n\n## Project Structure\n- **/gui-app**: Contains the WPF GUI application, including:\n  - **Models**: Application configuration model.\n  - **ViewModels**: Handles data binding and logic between the UI and data models.\n  - **Views**: WPF XAML files for the GUI interface.\n  - **Tests**: Unit tests for validating functionality.\n- **/service**: Will contain the Rust background service responsible for blocking applications outside working hours.\n\n## Roadmap\n\n### 1. WPF GUI\n   - **Goal**: Build a user-friendly interface for configuration and statistics.\n   - **Steps**:\n     - ✅ Set up the initial MVVM project structure in WPF.\n     - ✅ Create `MainViewModel` for managing configuration settings and view logic.\n     - ✅ Implement `IDataErrorInfo` for validating inputs, like working hours.\n     - ✅ Create a `SettingsView` with fields for working hours and save functionality.\n     - ⬜ Develop a statistics view to display blocked application history.\n     - ⬜ Add user notifications for blocked applications.\n     - ⬜ Refine UI components, tooltips, and layout for usability.\n\n### 2. Creating Database\n   - **Goal**: Design and initialize a database to store configuration, blocked applications, and user statistics.\n   - **Steps**:\n     - ⬜ Define database schema (tables for configuration, blocked apps, session history).\n     - ⬜ Choose and configure a lightweight local database solution (e.g., SQLite).\n     - ⬜ Set up database scripts to create initial schema.\n     - ⬜ Ensure proper indexing and optimize queries for statistics and configurations.\n\n### 3. Implementing Entity Framework (EF) Core\n   - **Goal**: Use EF Core for ORM functionality to interact with the database seamlessly.\n   - **Steps**:\n     - ⬜ Install EF Core and set up initial configurations in the WPF project.\n     - ⬜ Define `DbContext` and configure entities (Configuration, BlockedApp, Session).\n     - ⬜ Implement repository or service layer to manage CRUD operations.\n     - ⬜ Seed initial data as needed for testing.\n     - ⬜ Test database interactions for performance and accuracy.\n\n### 4. Background Service (Rust)\n   - **Goal**: Create a Rust-based background service to block application usage outside defined working hours.\n   - **Steps**:\n     - ⬜ Set up the Rust project with a basic structure.\n     - ⬜ Implement application monitoring to detect active processes.\n     - ⬜ Create a configuration file or API to read allowed working hours.\n     - ⬜ Implement blocking logic to terminate or prevent blocked applications.\n     - ⬜ Add communication with the WPF application for real-time status updates.\n     - ⬜ Test and optimize service reliability, performance, and error handling.\n\n### TESTS. Writing Tests for GUI, Database, EF Core, and Service\n   - **Goal**: Ensure application robustness through comprehensive unit and integration tests.\n   - **Steps**:\n     - ✅ Write unit tests for `MainViewModel` (input validation, save/load configuration).\n     - ⬜ Write unit tests for database models and CRUD operations using EF Core.\n     - ⬜ Implement integration tests for WPF data binding and interaction flows.\n     - ⬜ Write tests for statistics tracking and data persistence.\n     - ⬜ Validate and debug with automated tests to ensure full feature coverage.\n\n## Installation\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/yourusername/ClockBlock.git\n   ```\n2. Open the solution in Visual Studio.\n3. Build the project to restore dependencies and run the application.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjexxer%2Fclockblock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjexxer%2Fclockblock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjexxer%2Fclockblock/lists"}