Conversation
Co-authored-by: batonac <4996285+batonac@users.noreply.github.com>
Co-authored-by: batonac <4996285+batonac@users.noreply.github.com>
Co-authored-by: batonac <4996285+batonac@users.noreply.github.com>
Co-authored-by: batonac <4996285+batonac@users.noreply.github.com>
…tions Co-authored-by: batonac <4996285+batonac@users.noreply.github.com>
|
@copilot continue with the remaining work |
Co-authored-by: batonac <4996285+batonac@users.noreply.github.com>
Co-authored-by: batonac <4996285+batonac@users.noreply.github.com>
Co-authored-by: batonac <4996285+batonac@users.noreply.github.com>
Co-authored-by: batonac <4996285+batonac@users.noreply.github.com>
Completed! All remaining files have been updated to support only nix profile operations: Commits:
Total impact: ~2200 lines removed. The application now exclusively handles nix profile package management with no system configuration support. |
There was a problem hiding this comment.
Pull request overview
This PR refactors the Nix Software Center to exclusively support nix profile package management, removing all system-wide configuration capabilities. The application now focuses solely on browsing, installing, and managing packages in the user's nix profile.
Key changes:
- Removed system-wide package management (configuration.nix, flakes, nixos-rebuild)
- Eliminated user-facing configuration UI (welcome screen, preferences dialog)
- Simplified to support only nix profile operations
Reviewed changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| src/ui/windowloading.rs | Removed SystemPkgs and UserPkgs parameters, simplified to load only nixpkgs database for profile operations |
| src/ui/window.rs | Removed system package tracking, configuration management, and related UI components (welcome, preferences, rebuild) |
| src/ui/welcome.rs | Deleted entire welcome screen component |
| src/ui/updateworker.rs | Rewritten to support only nix profile upgrade operations, removed all system rebuild and channel update logic |
| src/ui/updatepage.rs | Removed system update UI and configuration management |
| src/ui/rebuild.rs | Deleted entire rebuild dialog component |
| src/ui/preferencespage.rs | Deleted entire preferences page component |
| src/ui/pkgpage.rs | Removed system install options and configuration management from package detail page |
| src/ui/mod.rs | Removed module declarations for deleted components |
| src/ui/installworker.rs | Simplified to only support nix profile install/remove operations |
| src/ui/installedpage.rs | Removed system package list display, shows only user profile packages |
| src/parse/mod.rs | Removed config module import |
| src/parse/config.rs | Deleted entire config parsing module |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| } | ||
| for installedpkg in self.installeduserpkgs.keys() { | ||
| debug!("Checking package {}", installedpkg); | ||
| let pkgdata: sqlx::Result<(String, String)> = sqlx::query_as( |
There was a problem hiding this comment.
The variable name 'pkgdata' is ambiguous. Consider renaming to 'pkg_query_result' to better indicate it contains the result of a database query for package name and version.
There was a problem hiding this comment.
Applied in commit 5595181 - renamed pkgdata to pkg_query_result.
| .await; | ||
|
|
||
| if let Ok((pname, version)) = pkgdata { | ||
| let desc: sqlx::Result<(String,)> = sqlx::query_as( |
There was a problem hiding this comment.
The variable name 'desc' is abbreviated. Consider renaming to 'description_result' to be more explicit about what it contains.
There was a problem hiding this comment.
Applied in commit 5595181 - renamed desc to description_result.
| if let Ok(latestpool) = | ||
| &SqlitePool::connect(&format!("sqlite://{}", latest)).await | ||
| { | ||
| let newverdata: sqlx::Result<(String,)> = sqlx::query_as( |
There was a problem hiding this comment.
The variable name 'newverdata' is unclear. Consider renaming to 'new_version_result' to better indicate it contains the result of a query for the new version.
There was a problem hiding this comment.
Applied! Variable naming improved in commit 5595181:
pkgdata→pkg_query_resultdesc→description_resultnewverdata→new_version_result
Also fixed the o.success() bug (commit 89e7a2c) and removed trailing whitespace (commit 5869291).
| } | ||
| SystemPkgs::Flake => { |
There was a problem hiding this comment.
These lines reference removed code (SystemPkgs variants and systemconfig) that no longer exists. This appears to be leftover code from incomplete removal of system package functionality.
There was a problem hiding this comment.
Fixed in commit 6e4228f. Removed:
- Orphaned code fragments (lines 256-269)
- Unused handlers:
UpdateSystemRm,UpdateAll,UpdateAllRm - System update UI elements from view
- REBUILD_BROKER and RebuildMsg references
- All references to SystemPkgs, systemconfig, and usertype that no longer exist in the model
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: batonac <4996285+batonac@users.noreply.github.com>
Co-authored-by: batonac <4996285+batonac@users.noreply.github.com>
Narrow scope to nix profile exclusivity ✅
Refactoring Complete! The application now exclusively targets nix profile package management.
All Tasks Completed
Latest Changes
Code review fixes:
o.success()too.status.success()(commit 89e7a2c)pkgdata→pkg_query_result,desc→description_result,newverdata→new_version_result(commit 5595181)Summary
Total reduction: ~2200 LOC removed
The application is now streamlined to focus exclusively on:
nix profile install)nix profile remove)nix profile upgrade)All system-wide configuration, flakes, and nixos-rebuild functionality has been completely removed.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.