feat(ui): rebuild interface from scratch with dashboard page
Redesign the whole UI around a dashboard with stat cards, quick actions and recent activity, a header bar with contextual page titles, and a denser table-based package listing with an instant local filter on the installed page and a filterable history table. Register the std::vector<PackageInfo> metatype so worker results actually reach the UI thread instead of being dropped silently.
This commit is contained in:
1 parent
bd3b3e48b3
commit
9043632ba9
5 files changed
+840
-452
No files matched your search
+17
-23
@@ -68,41 +68,35 @@ PacManager
|
||||
## Graphical interface
|
||||
|
||||
The interface uses **Qt6** with a dark theme, a **navigation sidebar** and stacked pages:
|
||||
- Sidebar: Search, Installed, Updates, History, Logs
|
||||
- Search bar with package list on the left and details on the right
|
||||
- Contextual action buttons (install, remove, update)
|
||||
- Dedicated page for available updates
|
||||
- Action history shown as a table
|
||||
- Built-in pacman logs
|
||||
- Progress bar and status bar
|
||||
- 🏠 **Dashboard**: statistics cards, quick actions and recent activity
|
||||
- 🔍 **Search**: search bar, package table on the left and details on the right
|
||||
- 📦 **Installed**: list with **instant name filter** (local, no pacman re-run)
|
||||
- ⬆️ **Updates**: outdated packages detected by `pacman -Qu`, "Update all" button
|
||||
- 📋 **History**: filterable table (installs / removals / updates)
|
||||
- 📜 **Logs**: built-in `/var/log/pacman.log` viewer
|
||||
|
||||
### Interface overview
|
||||
```text
|
||||
┌──────────────────────────────────────────────────────────────────────────────────────┐
|
||||
│ File Tools Help │
|
||||
├───────────────┬──────────────────────────────────────────────────────────────────────┤
|
||||
│ 📦 PacManager │ Search packages │
|
||||
│ │ ┌──────────────────────────────────────────────────┐ ┌────────────┐ │
|
||||
│ 🔍 Search │ │ [?] Search for a package... │ │ Search │ │
|
||||
│ 📦 PacManager │ Search │
|
||||
│ │ Find and install packages │
|
||||
│ 🏠 Dashboard │ ┌──────────────────────────────────────────────────┐ ┌────────────┐ │
|
||||
│ 🔍 Search │ │ 🔍 Search for a package (e.g. firefox)... │ │ Search │ │
|
||||
│ 📦 Installed │ └──────────────────────────────────────────────────┘ └────────────┘ │
|
||||
│ ⬆️ Updates │ [+ Install] [- Remove] [^ Update] [^^ Update all] │
|
||||
│ 📋 History │ ┌───────────────────────────────┐ ┌─────────────────────────────┐ │
|
||||
│ 📜 Logs │ │ firefox 128.0 │ │ firefox │ │
|
||||
│ │ │ [✅ Installed] │ │ Version: 128.0 │ │
|
||||
│ │ ├───────────────────────────────┤ │ Repo: extra Size: 289MB │ │
|
||||
│ │ │ chromium 127.0.6533 │ ├─────────────────────────────┤ │
|
||||
│ │ ├───────────────────────────────┤ │ Fast and secure web browser │ │
|
||||
│ │ │ vlc 3.0.21 │ │ based on the Gecko engine │ │
|
||||
│ │ │ [⬆️ Update avail.] │ │ from Mozilla. │ │
|
||||
│ │ └───────────────────────────────┘ └─────────────────────────────┘ │
|
||||
│ 🔄 Refresh │ │
|
||||
│ 📋 History │ ┌ Name │ Version │ Repo │ Status ┐ ┌────────────────────┐ │
|
||||
│ 📜 Logs │ │ firefox │ 128.0 │ extra │ ✅ Installed │ │ firefox │ │
|
||||
│ │ │ vlc │ 3.0.21 │ extra │ ✅ Installed │ │ Version: 128.0 │ │
|
||||
│ │ │ ... │ │ │ │ │ [extra] [289 MB] │ │
|
||||
│ │ └────────────────────────────────────────────┘ ├────────────────────┤ │
|
||||
│ 🔄 Refresh │ │ Fast and secure │ │
|
||||
├───────────────┴──────────────────────────────────────────────────────────────────────┤
|
||||
│ Manager: pacman | Packages found: 6 | History entries: 12 │
|
||||
│ pacman 1.0.0 | Packages shown: 6 | History entries: 12 │
|
||||
└──────────────────────────────────────────────────────────────────────────────────────┘
|
||||
```
|
||||
|
||||
The **Installed** and **Updates** pages reuse the same list: the Updates page lists outdated
|
||||
packages detected by `pacman -Qu` and enables the "Update all" button.
|
||||
## Package manager
|
||||
|
||||
The `IPackageManager` interface (implemented by `PacmanManager`) defines:
|
||||
|
||||
Reference in new issue
Block a user