Commit Graph
46 Commits
Author SHA1 Message Date
BlackAngelTV e81f5ee0cd test(flatpak): point flatpak tests at the external plugin sources
Rewires the flatpak unit, integration and plugin-manager tests to compile
against plugins/flatpak-provider, and updates plugin-manager.test to treat
flatpak as a runtime-loaded plugin rather than a registered built-in.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-08-29 20:34:50 +02:00
BlackAngelTV bd13a1404b build(flatpak): add plugin target building a runtime flatpak provider
Introduces the flatpak-provider-plugin module target, producing
libflatpak-provider.so and copying it next to the executable so
PluginManager can load it at runtime.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-08-29 20:34:37 +02:00
BlackAngelTV 48ed73bdba build(flatpak): stop compiling the flatpak provider into the app
Removes FlatpakManager from the built-in sources and from MainWindow's
registration, so only pacman ships inside the binary. Flatpak is now
provided exclusively by the external plugin.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-08-29 20:33:45 +02:00
BlackAngelTV e57d5dbb99 refactor(flatpak): move provider into plugins/flatpak-provider
Moves FlatpakManager out of the core sources and adds the plugin entry
point exporting the provider-plugin C ABI, so Flatpak can be built and
loaded as an external plugin instead of a compiled-in provider.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-08-29 20:32:11 +02:00
BlackAngelTV 8fda7636f9 docs: add restrictive source-available license
Adds a proprietary license allowing personal modification but forbidding
distribution and resale, documented in the LICENSE file and both READMEs.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-08-29 20:17:57 +02:00
BlackAngelTV cd5bed0f4d feat(ui): stream search results and show real download progress
Search now publishes provider results in small batches as they arrive, so
the first matches appear in the table while slower providers keep running.

The bottom status-bar bar is now a determinate indicator: pacman output is
streamed live and its (n/Total) package counter is parsed into a percentage
that fills the bar during install/update, instead of an indeterminate spinner.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-08-29 20:17:45 +02:00
BlackAngelTV 26ca0e4d88 docs: document install and desktop-launcher setup commands
Modernize the build instructions (cmake -B build) and document the three
install paths: per-user without sudo, system-wide with sudo, and the desktop
launcher integration that turns PacManager into a regular app shown by any
application menu (wofi, GNOME, KDE...).

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-08-29 17:40:09 +02:00
BlackAngelTV 7c8e981845 docs: align READMEs with AGENTS.md conventions
Add the development & conventions section that AGENTS.md points to, so the
README documents the branch/commit/naming/comment/test/issue/.gitignore rules
it summarizes, and refresh the Flatpak provider paragraph with the new
desktop-launcher integration, honest search status and integration tests.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
V1.0.0
2026-08-29 17:07:03 +02:00
BlackAngelTV 3320e60805 test(flatpak): verify desktop integration in end-to-end test
Extend the live-CLI integration test to assert that installing an app links
its .desktop entry into ~/.local/share/applications, and that uninstalling
cleans the link back up.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-08-29 16:54:39 +02:00
BlackAngelTV a1d8c96e4e feat(flatpak): link installed apps into the desktop launcher
When a flatpak app is installed through the app, its .desktop entries and
icons are now symlinked into the user's standard XDG dirs
(~/.local/share/{applications,icons}), which every desktop scans by default.
This makes flatpak apps appear in any launcher (wofi, GNOME, KDE...) the same
way a pacman install would, without relying on XDG_DATA_DIRS or any
desktop-specific configuration. The links are removed on uninstall, and a
refresh re-links every installed app so ones installed before this feature
(or outside the app) self-heal.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-08-29 16:54:39 +02:00
BlackAngelTV 6224a94df6 test(flatpak): add end-to-end CLI integration test
Drives the real FlatpakManager against the live flatpak CLI: install a small
app through the provider's own fallback logic, verify it is listed and
flagged as installed in search, run update and refresh, then uninstall. The
test is non-destructive for pre-existing installs and skips when flatpak is
absent.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-08-29 15:05:14 +02:00
BlackAngelTV 1b3f11aad8 fix(flatpak): show honest search status and harden install
Search results now report whether each app is already installed or has a
pending update, like pacman does with its [installed] marker, so the UI no
longer shows "Disponible" for apps that are already managed. Install is also
idempotent (already-deployed apps short-circuit) and skips the doomed bare
retry when both a system and a user flathub remote make the ref ambiguous.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-08-29 15:05:14 +02:00
BlackAngelTV 6aef549eb0 fix(flatpak): per-user install fallback and real error reporting
Installing through a system-wide remote fails under polkit and, when a
remote exists in both installations, flatpak refuses non-interactive
installs ("Multiple remotes have refs matching"). Retry with an explicit
`--user flathub` target, refresh appstream metadata before giving up on
stale refs, and let update/refresh fall back to the user installation as
well. Expose the last command output through IPackageManager::lastError
and show it in a dialog on failure instead of failing silently.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-08-29 13:57:03 +02:00
BlackAngelTV 5cc85cac4a feat(ui): sort search results by provider then name
Group aggregated search results per provider (in query order, pacman
first) and sort each group alphabetically, case-insensitively.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-08-29 13:56:27 +02:00
BlackAngelTV d8a70eabf8 feat(ui): merge duplicate packages across providers
When the same package name comes from several providers (pacman, flatpak,
plugins), collapse the rows into one: the Fournisseur column lists every
provider offering it and installed/updateAvailable are combined, while
the first provider stays the routing default. Applies to search and to
the aggregated installed/updates lists.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-08-29 13:55:56 +02:00
BlackAngelTV 4fe4c7287e docs: document providers, flatpak and the plugin system
Explain multi-provider search with the Provider column, the Providers
page (enable/disable, rescan, install-tool) and how to write a plugin
using the example provider as a template.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-08-29 13:34:53 +02:00
BlackAngelTV 71eb962b00 test: cover flatpak parsing and plugin discovery
Unit-test the flatpak parsers (search rows, installed/update columns)
and the plugin manager end-to-end: built-in registration, runtime
discovery of the sample plugin, enable/disable persistence, reload and
install-hint exposure.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-08-29 13:34:50 +02:00
BlackAngelTV bc737d356e feat(ui): browse every provider from one search
Search now queries all active providers at once and each row shows its
origin in a Provider column; installed and updates pages are aggregated,
and install/remove/update are routed to the owning manager automatically.
Add a Providers page listing built-in and plugin managers with
enable/disable, plugin rescan, and an install-tool button that pulls the
missing backend through pacman (e.g. flatpak).

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-08-29 13:34:41 +02:00
BlackAngelTV f355c97940 feat(providers): add flatpak provider
Implement IPackageManager over the flatpak CLI: search, installed list,
updates, install/remove/update and appstream refresh. Runs per-user so it
needs no sudo. Parsing is exposed as statics so it can be unit-tested
without the flatpak binary.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-08-29 13:34:36 +02:00
BlackAngelTV a2cef3d256 feat(providers): add provider plugin system
Introduce a registry (PluginManager) that owns package managers and can
load additional providers at runtime from shared-library plugins dropped
in a plugins directory. Providers declare their metadata and a factory
through a C ABI (provider-plugin.h); requiresPassword() tells the UI
whether a provider needs sudo. Ships a sample external plugin as a
template for adding new backends.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-08-29 13:34:29 +02:00
BlackAngelTV a4a345984b style(ui): remove card frames for a flat design
Cards and tables no longer draw a border or background so content sits
directly on the page background, matching the requested flat look.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-08-28 17:55:00 +02:00
BlackAngelTV ad31e5c597 fix(crashes): stop destroying QThread workers while still running
Deleting SearchWorker/ListWorker/InstallWorker from the `finished` ->
`deleteLater` connection aborted the app with
"QThread: Destroyed while thread is still running" (SIGABRT) whenever a
list loaded or a package op finished. The deferred delete raced the
thread teardown because these workers have no event loop to process it
after run() returns.

Wait for the thread to complete (wait() clears the running flag, and by
then run() already emitted finished) before scheduling deleteLater, and
bind every cross-thread signal to the MainWindow context object so the
handlers run queued on the GUI thread instead of inside the worker.

Also drop the intrusive popups (removal confirmation, pacman/sudo
unavailable, empty-search notice) in favour of status bar messages, and
let sudo take the password via -S so no per-op polkit dialog is shown.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-08-28 15:13:15 +02:00
BlackAngelTV 5df9f2c22a feat(ui): use SVG icons and open package details from dashboard
Adopt the embedded SVG icon set across the interface: sidebar links,
action buttons, stat cards, search/filter fields, table status cells
and badges, replacing the inline emoji glyphs. Inline emoji inside
status-bar and history text are dropped since an SVG cannot be embedded
mid-sentence.

Also let a click on a package in the dashboard's recent activity open
its details on the Installed page with remove/update actions available,
by auto-selecting the package after the list loads.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-08-27 21:45:56 +02:00
BlackAngelTV ca49ad5e63 feat(ui): add embedded SVG icon set
Emoji were used as icons across the interface. Add a self-contained
set of monochrome SVG icons under resources/icons plus a Qt resource
file so the GUI can reference them through :/icons instead of font
glyphs, and register the resource in the build.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-08-27 21:45:48 +02:00
BlackAngelTV f525d52ab2 feat(pacman): report install origin and size for installed packages
listInstalled only returned name and version, leaving the size and the
origin repository empty for installed packages. Enrich each entry with
its installed size (parsed from pacman -Qi) and the repository it was
installed from (parsed from pacman -Sl), defaulting foreign/AUR
packages to "AUR" so the origin is always visible.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-08-27 21:45:38 +02:00
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