21 Commits
Author SHA1 Message Date
BlackAngelTV 9043632ba9 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.
2026-08-27 20:39:22 +02:00
BlackAngelTV bd3b3e48b3 docs: add agent guidelines and english readme
Document the project conventions for AI agents and provide an English
translation of the README. Update the interface description to match
the new sidebar layout and the listUpdates/refresh manager methods.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-08-27 19:29:39 +02:00
BlackAngelTV e538ed619e test: add unit tests for pacman manager parsing
Cover the pacman -Q output parser: simple lines, hyphenated names,
empty lines and empty input.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-08-27 19:29:35 +02:00
BlackAngelTV 0f7c3a6c2b feat(ui): redesign main window with sidebar navigation
Replace the single-screen layout with a sidebar and stacked pages:
Search, Installed, Updates, History and Logs. Also fix the update-all
and refresh actions, which previously called install with an empty
package name instead of running the proper pacman commands.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-08-27 19:29:31 +02:00
BlackAngelTV 5054f04c54 refactor: replace plugin system with native pacman manager
Remove the dynamic plugin loader (pacman/apt/pkg/universal) and drive
the UI directly through PacmanManager. Rename sources and headers to
kebab-case to match the project's file naming convention.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-08-27 19:29:24 +02:00
BlackAngelTV 4a773c63ce fix(build): cmake 2026-08-26 20:49:05 +02:00
BlackAngelTV 1242753962 Merge branch 'main' of https://gitea.nocode-var.tech/FWS/FWS---PacManage 2026-08-24 21:57:48 +02:00
BlackAngelTV ad67daa3ee build: add Windows build script and clean gitignore 2026-08-24 21:56:34 +02:00
BlackAngelTV a7f8893bf2 fix: make PluginManager compatible with Windows and Linux 2026-08-24 21:56:29 +02:00
BlackAngelTV de9fbdc7c3 refactor: add abstraction layer for dynamic libraries 2026-08-24 21:56:24 +02:00
BlackAngelTV bbe29962e4 docs: update README 2026-08-24 19:23:41 +00:00
BlackAngelTV efd0df5019 style(readme): align formatting 2026-08-24 19:20:46 +00:00
BlackAngelTV cb4c68638a build: add build scripts and documentation 2026-08-24 21:13:51 +02:00
BlackAngelTV bd0c9bf37c feat(plugin): add universal multi-source plugin 2026-08-24 21:13:51 +02:00
BlackAngelTV 29abaf3189 feat(plugin): add apt and pkg plugins 2026-08-24 21:13:51 +02:00
BlackAngelTV f2704527b0 feat(plugin): add pacman plugin for Arch Linux 2026-08-24 21:13:51 +02:00
BlackAngelTV 7541b29996 feat(ui): add Qt6 graphical interface 2026-08-24 21:13:50 +02:00
BlackAngelTV 6dd3bc7b8f feat: add action history management 2026-08-24 21:13:50 +02:00
BlackAngelTV 829e30750b feat: add dynamic plugin loading via dlopen 2026-08-24 21:13:50 +02:00
BlackAngelTV 776662c9ab feat: add plugin interface and data model 2026-08-24 21:13:50 +02:00
BlackAngelTV 6743d0b5e7 chore: initialize project structure with CMake 2026-08-24 21:13:41 +02:00
5 changed files with 839 additions and 451 deletions

No files matched your search

+17 -23
View File
@@ -68,41 +68,35 @@ PacManager
## Graphical interface ## Graphical interface
The interface uses **Qt6** with a dark theme, a **navigation sidebar** and stacked pages: The interface uses **Qt6** with a dark theme, a **navigation sidebar** and stacked pages:
- Sidebar: Search, Installed, Updates, History, Logs - 🏠 **Dashboard**: statistics cards, quick actions and recent activity
- Search bar with package list on the left and details on the right - 🔍 **Search**: search bar, package table on the left and details on the right
- Contextual action buttons (install, remove, update) - 📦 **Installed**: list with **instant name filter** (local, no pacman re-run)
- Dedicated page for available updates - ⬆️ **Updates**: outdated packages detected by `pacman -Qu`, "Update all" button
- Action history shown as a table - 📋 **History**: filterable table (installs / removals / updates)
- Built-in pacman logs - 📜 **Logs**: built-in `/var/log/pacman.log` viewer
- Progress bar and status bar
### Interface overview ### Interface overview
```text ```text
┌──────────────────────────────────────────────────────────────────────────────────────┐ ┌──────────────────────────────────────────────────────────────────────────────────────┐
│ File Tools Help │ │ File Tools Help │
├───────────────┬──────────────────────────────────────────────────────────────────────┤ ├───────────────┬──────────────────────────────────────────────────────────────────────┤
│ 📦 PacManager │ Search packages │ │ 📦 PacManager │ Search │
│ │ ┌──────────────────────────────────────────────────┐ ┌────────────┐ │ │ │ Find and install packages │
│ 🔍 Search │ │ [?] Search for a package... │ │ Search │ │ │ 🏠 Dashboard │ ┌──────────────────────────────────────────────────┐ ┌────────────┐ │
│ 🔍 Search │ │ 🔍 Search for a package (e.g. firefox)... │ │ Search │ │
│ 📦 Installed │ └──────────────────────────────────────────────────┘ └────────────┘ │ │ 📦 Installed │ └──────────────────────────────────────────────────┘ └────────────┘ │
│ ⬆️ Updates │ [+ Install] [- Remove] [^ Update] [^^ Update all] │ │ ⬆️ Updates │ [+ Install] [- Remove] [^ Update] [^^ Update all] │
│ 📋 History │ ┌───────────────────────────────┐ ┌─────────────────────────────┐ │ │ 📋 History │ ┌ Name │ Version │ Repo │ Status ┐ ┌────────────────────┐ │
│ 📜 Logs │ │ firefox 128.0 │ │ firefox │ │ │ 📜 Logs │ │ firefox │ 128.0 │ extra │ ✅ Installed │ │ firefox │ │
│ │ │ [✅ Installed] │ │ Version: 128.0 │ │ │ │ │ vlc │ 3.0.21 │ extra │ ✅ Installed │ │ Version: 128.0 │ │
│ │ ├───────────────────────────────┤ │ Repo: extra Size: 289MB │ │ │ │ │ ... │ │ │ │ │ [extra] [289 MB] │ │
│ │ │ chromium 127.0.6533 │ ├─────────────────────────────┤ │ │ │ └────────────────────────────────────────────┘ ├────────────────────┤ │
│ │ ├───────────────────────────────┤ │ Fast and secure web browser │ │ │ 🔄 Refresh │ │ Fast and secure │ │
│ │ │ vlc 3.0.21 │ │ based on the Gecko engine │ │
│ │ │ [⬆️ Update avail.] │ │ from Mozilla. │ │
│ │ └───────────────────────────────┘ └─────────────────────────────┘ │
│ 🔄 Refresh │ │
├───────────────┴──────────────────────────────────────────────────────────────────────┤ ├───────────────┴──────────────────────────────────────────────────────────────────────┤
│ 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 ## Package manager
The `IPackageManager` interface (implemented by `PacmanManager`) defines: The `IPackageManager` interface (implemented by `PacmanManager`) defines:
+17 -23
View File
@@ -68,41 +68,35 @@ PacManager
## Interface graphique ## Interface graphique
L'interface utilise **Qt6** avec un thème sombre, une **sidebar de navigation** et des pages empilées : L'interface utilise **Qt6** avec un thème sombre, une **sidebar de navigation** et des pages empilées :
- Sidebar : Recherche, Installés, Mises à jour, Historique, Logs - 🏠 **Tableau de bord** : cartes de statistiques, actions rapides et activité récente
- Barre de recherche avec liste des paquets à gauche et détails à droite - 🔍 **Recherche** : barre de recherche, tableau de paquets à gauche et détails à droite
- Boutons d'action contextuels (installer, supprimer, mettre à jour) - 📦 **Installés** : liste avec **filtre instantané** par nom (local, sans relancer pacman)
- Page dédiée aux mises à jour disponibles - ⬆️ **Mises à jour** : paquets obsolètes détectés par `pacman -Qu`, bouton « Tout mettre à jour »
- Historique des actions sous forme de tableau - 📋 **Historique** : tableau filtrable (installations / suppressions / mises à jour)
- Logs pacman intégrés - 📜 **Logs** : journal `/var/log/pacman.log` intégré
- Barre de progression et barre d'état
### Aperçu de l'interface ### Aperçu de l'interface
```text ```text
┌──────────────────────────────────────────────────────────────────────────────────────┐ ┌──────────────────────────────────────────────────────────────────────────────────────┐
│ Fichier Outils Aide │ │ Fichier Outils Aide │
├───────────────┬──────────────────────────────────────────────────────────────────────┤ ├───────────────┬──────────────────────────────────────────────────────────────────────┤
│ 📦 PacManager │ Recherche de paquets │ │ 📦 PacManager │ Recherche │
│ │ ┌──────────────────────────────────────────────────┐ ┌────────────┐ │ │ │ Trouvez et installez des paquets │
│ 🔍 Recherche │ │ [?] Rechercher un paquet... │ │ Rechercher │ │ │ 🏠 Tableau │ ┌──────────────────────────────────────────────────┐ ┌────────────┐ │
│ 🔍 Recherche │ │ 🔍 Rechercher un paquet (ex : firefox)... │ │ Rechercher │ │
│ 📦 Installés │ └──────────────────────────────────────────────────┘ └────────────┘ │ │ 📦 Installés │ └──────────────────────────────────────────────────┘ └────────────┘ │
│ ⬆️ Mises à j. │ [+ Installer] [- Supprimer] [^ Mettre à jour] [^^ Tout mettre à j.] │ │ ⬆️ Mises à j. │ [+ Installer] [- Supprimer] [^ Mettre à jour] [^^ Tout mettre à j.] │
│ 📋 Historique │ ┌───────────────────────────────┐ ┌─────────────────────────────┐ │ │ 📋 Historique │ ┌ Nom │ Version │ Dépôt │ Statut ┐ ┌────────────────────┐ │
│ 📜 Logs │ │ firefox 128.0 │ │ firefox │ │ │ 📜 Logs │ │ firefox │ 128.0 │ extra │ ✅ Installé │ │ firefox │ │
│ │ │ [✅ Installé] │ │ Version: 128.0 │ │ │ │ │ vlc │ 3.0.21 │ extra │ ✅ Installé │ │ Version : 128.0 │ │
│ │ ├───────────────────────────────┤ │ Dépôt: extra Taille: 289MB │ │ │ │ │ ... │ │ │ │ │ [extra] [289 Mo] │ │
│ │ │ chromium 127.0.6533 │ ├─────────────────────────────┤ │ │ │ └────────────────────────────────────────────┘ ├────────────────────┤ │
│ │ ├───────────────────────────────┤ │ Navigateur web rapide et │ │ │ 🔄 Rafraîchir │ │ Navigateur web... │ │
│ │ │ vlc 3.0.21 │ │ sécurisé basé sur Gecko. │ │
│ │ │ [⬆️ MAJ dispo] │ │ │ │
│ │ └───────────────────────────────┘ └─────────────────────────────┘ │
│ 🔄 Rafraîchir │ │
├───────────────┴──────────────────────────────────────────────────────────────────────┤ ├───────────────┴──────────────────────────────────────────────────────────────────────┤
│ Plugin: pacman | Paquets trouvés: 6 | Éléments en historique: 12 │ │ pacman 1.0.0 | Paquets affichés : 6 | Actions enregistrées : 12 │
└──────────────────────────────────────────────────────────────────────────────────────┘ └──────────────────────────────────────────────────────────────────────────────────────┘
``` ```
Les pages **Installés** et **Mises à jour** réutilisent la même liste : la page Mises à jour
liste les paquets obsolètes détectés par `pacman -Qu` et active le bouton « Tout mettre à jour ».
## Gestionnaire de paquets ## Gestionnaire de paquets
L'interface `IPackageManager` (implémentée par `PacmanManager`) définit : L'interface `IPackageManager` (implémentée par `PacmanManager`) définit :
+63 -31
View File
@@ -2,26 +2,27 @@
#include <QMainWindow> #include <QMainWindow>
#include <QLineEdit> #include <QLineEdit>
#include <QListWidget>
#include <QPushButton> #include <QPushButton>
#include <QLabel> #include <QLabel>
#include <QVBoxLayout> #include <QVBoxLayout>
#include <QHBoxLayout> #include <QHBoxLayout>
#include <QProgressBar> #include <QProgressBar>
#include <QStatusBar> #include <QComboBox>
#include <QMenuBar>
#include <QMenu>
#include <QAction>
#include <QThread> #include <QThread>
#include <string>
#include <vector>
#include "package-manager.h" #include "package-manager.h"
#include "pacman-manager.h" #include "pacman-manager.h"
#include "history-manager.h" #include "history-manager.h"
class QStackedWidget; class QStackedWidget;
class QButtonGroup;
class QTableWidget; class QTableWidget;
class QTextEdit; class QTextEdit;
class QListWidget;
class QButtonGroup;
class QFrame;
// Runs a package search off the UI thread. // Runs a package search off the UI thread.
class SearchWorker : public QThread { class SearchWorker : public QThread {
@@ -85,62 +86,93 @@ private slots:
void onNavChanged(int id); void onNavChanged(int id);
void onClearHistory(); void onClearHistory();
void onRefreshLogs(); void onRefreshLogs();
void onHistoryFilterChanged();
void onInstalledFilterChanged(const QString& text);
private: private:
enum BrowseMode { ModeSearch, ModeInstalled, ModeUpdates }; enum BrowseMode { ModeSearch, ModeInstalled, ModeUpdates };
void setupUI(); void setupUI();
void setupSidebar();
void setupHeader();
void setupDashboardPage();
void setupBrowsePage(); void setupBrowsePage();
void setupHistoryPage(); void setupHistoryPage();
void setupLogsPage(); void setupLogsPage();
void setupMenuBar(); void setupMenuBar();
void updatePackageInfo(const PackageInfo& pkg); void updatePageTitle();
void updateStatusBar(); void updateStatusBar();
void refreshDashboard();
void refreshRecentActivity();
void updatePackageInfo(const PackageInfo& pkg);
void resetDetailsPanel();
void setBrowseMode(BrowseMode mode); void setBrowseMode(BrowseMode mode);
void performInstall(const std::string& package); void performInstall(const std::string& package);
void performRemove(const std::string& package); void performRemove(const std::string& package);
void populatePackageList(const std::vector<PackageInfo>& results); void populatePackageTable(const std::vector<PackageInfo>& results);
QListWidgetItem* makePackageRow(const PackageInfo& pkg);
void setBusy(bool busy); void setBusy(bool busy);
void reloadCurrentView(); void reloadCurrentView();
void loadInstalled(); void loadInstalled();
void loadUpdates(); void loadUpdates();
void refreshHistoryTable(); void refreshHistoryTable();
void loadLogs(); void loadLogs();
QFrame* makeCard();
QFrame* makeStatCard(const QString& icon, const QString& title, QLabel** valueOut);
// Sidebar // Sidebar
QButtonGroup* m_navGroup; QFrame* m_sidebar = nullptr;
QStackedWidget* m_pages; QButtonGroup* m_navGroup = nullptr;
QPushButton* m_refreshButton; QPushButton* m_refreshButton = nullptr;
// Header
QWidget* m_headerWidget = nullptr;
QLabel* m_headerTitle = nullptr;
QLabel* m_headerSubtitle = nullptr;
// Pages
QStackedWidget* m_pages = nullptr;
// Dashboard
QLabel* m_statInstalled = nullptr;
QLabel* m_statUpdates = nullptr;
QLabel* m_statHistory = nullptr;
QLabel* m_statManager = nullptr;
QListWidget* m_recentList = nullptr;
// Browse page // Browse page
QWidget* m_searchRowWidget; QWidget* m_searchRowWidget = nullptr;
QLabel* m_browseTitle; QLineEdit* m_searchBar = nullptr;
QLineEdit* m_searchBar; QPushButton* m_searchButton = nullptr;
QPushButton* m_searchButton; QWidget* m_filterRowWidget = nullptr;
QPushButton* m_installButton; QLineEdit* m_filterBar = nullptr;
QPushButton* m_removeButton; QLabel* m_resultCount = nullptr;
QPushButton* m_updateButton; QPushButton* m_installButton = nullptr;
QPushButton* m_updateAllButton; QPushButton* m_removeButton = nullptr;
QProgressBar* m_progressBar; QPushButton* m_updateButton = nullptr;
QListWidget* m_packageList; QPushButton* m_updateAllButton = nullptr;
QLabel* m_packageName; QProgressBar* m_progressBar = nullptr;
QLabel* m_packageVersion; QTableWidget* m_packageTable = nullptr;
QLabel* m_packageRepo; QLabel* m_packageName = nullptr;
QLabel* m_packageSize; QLabel* m_packageVersion = nullptr;
QLabel* m_packageDescription; QLabel* m_packageRepo = nullptr;
QLabel* m_packageSize = nullptr;
QLabel* m_packageUpdateBadge = nullptr;
QLabel* m_packageDescription = nullptr;
// History page // History page
QTableWidget* m_historyTable; QTableWidget* m_historyTable = nullptr;
QComboBox* m_historyFilter = nullptr;
QLabel* m_historyCount = nullptr;
// Logs page // Logs page
QTextEdit* m_logsText; QTextEdit* m_logsText = nullptr;
// Backend // Backend
PacmanManager* m_pacman; PacmanManager* m_pacman = nullptr;
HistoryManager* m_historyManager; HistoryManager* m_historyManager = nullptr;
BrowseMode m_browseMode = ModeSearch; BrowseMode m_browseMode = ModeSearch;
std::vector<PackageInfo> m_currentResults; std::vector<PackageInfo> m_currentResults;
std::vector<PackageInfo> m_installedPackages;
PackageInfo m_selectedPackage; PackageInfo m_selectedPackage;
}; };
+740 -372
View File
File diff suppressed because it is too large. Load diff
+2 -2
View File
@@ -9,8 +9,8 @@ int main(int argc, char* argv[]) {
MainWindow window; MainWindow window;
window.setWindowTitle("PacManager - Gestionnaire de Paquets"); window.setWindowTitle("PacManager - Gestionnaire de Paquets");
window.resize(1100, 720); window.resize(1200, 760);
window.setMinimumSize(880, 560); window.setMinimumSize(960, 600);
window.show(); window.show();
return app.exec(); return app.exec();