Commit Graph
92 Commits
Author SHA1 Message Date
BlackAngelTV f0b37bbb44 feat(ui): show the application journal in the Logs screen
The Logs screen only offered /var/log/pacman.log, which is unreadable
without root and says nothing about what the app itself did. Let the user
switch between that file and the new application journal, refresh it live
while an operation runs, and record navigation and dialog events so the
screen tells the whole story.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-09-27 18:18:59 +02:00
BlackAngelTV 8670c02eb3 feat(logs): record every operation and event in an application journal
The app kept no durable trace of what it ran: LogManager existed but was
never instantiated, so only a handful of console-only qCInfo calls survived
a session. Wire it up as a process-wide journal that captures each command's
raw output next to UI, search, plugin and update events, and funnel every Qt
log message into it, so a failure can still be diagnosed after the fact.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-09-27 18:18:55 +02:00
BlackAngelTV 656e365daf Merge pull request 'refactor(logs): optimisation' (#14) from refactor/logs-optimization into main
Reviewed-on: #14
2026-09-24 05:49:25 +00:00
BlackAngelTV a354a0f7fc refactor(logs): optimisation 2026-09-24 07:44:52 +02:00
BlackAngelTV f3ad3ca523 docs: describe automatic build-dependency install and instant updates tab
The self-update docs claimed git, cmake and a compiler had to be
installed by hand: they are now installed by the update itself, and the
Updates tab loads its list on open. Both READMEs and the doc/ pages are
aligned with the new behaviour.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
V1.5.0
2026-09-23 21:58:38 +02:00
BlackAngelTV 2c7d99138d feat(ui): load the updates list as soon as the tab opens
Clicking the Updates tab already triggered the check but showed a bare
empty table until it completed, and an "Update all" button that stayed
disabled for ever. The tab now shows a searching hint, reports "system
is up to date" on an empty result, reloads by itself when the core
frees up, and enables "Update all" without a row selection.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-09-23 21:58:29 +02:00
BlackAngelTV b204d6814a feat(update): install missing build dependencies before rebuilding
A minimal Arch system has no cmake, no compiler and no qt6-base, so the
self-update used to fail or fall back to the releases page. The update
now asks pacman what is missing, installs it through sudo with the
password typed in the update dialog, then resumes the build.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-09-23 21:58:21 +02:00
BlackAngelTV 5b24cea9c8 docs: document the app in a wiki-ready doc/ folder
The README only covers the outside of the project, so anyone touching the
core, the pages or the plugin contracts had to read the sources; the new
pages give each of those areas a single reference, including the plugin
shop that was just added.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
V1.4.3
2026-09-16 22:44:43 +02:00
BlackAngelTV 5033c4e940 feat(plugins): add a plugin shop fed by a JSON catalogue
Installing a plugin meant compiling a shared library and dropping it in a
directory by hand. The shop reads a catalogue (plugins/catalog.json, one
entry per plugin with its description and download URL), lists what can be
installed next to what already is, and installs an entry into
~/.local/share/PacManager/plugins — the directory the registry already
scans — so a plugin becomes usable without root rights and without a
restart. Installing runs third-party code in this process, so the shop only
fetches what the user picked, checks the announced sha256 before writing
anything, and a removal deletes only the files the shop wrote itself.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-09-16 22:41:11 +02:00
BlackAngelTV b26e907221 perf(progress): report real progress instead of a bouncing bar
pacman restarts its "(1/24)" counter at every phase of a transaction, so the
bar was fed 0 percent, 100 percent, 0 percent again a few times per update —
and Flatpak/AUR buffered their whole output, which left it indeterminate for
the entire run. A shared ProgressTracker now folds every counter, file
percentage and package step into one value that only moves forward, the
providers stream their output as it is produced, and each provider owns a
slice of the bar so a multi-provider update keeps advancing. pacman -Qu is
cached like the other read queries, so the sidebar badge, the updates screen
and the update button share a single process.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-09-16 22:40:39 +02:00
BlackAngelTV ed58e87520 style(ui): match the interface to the FWS website's design system
The window carried a palette of its own, so the desktop app and the site
looked like two different products. The stylesheet now uses the website's
tokens (slate surfaces on a #0f172a page, sky-blue accent, serif headings,
pill-shaped badges); the site's rgba() borders are pre-blended because a Qt
stylesheet only takes solid colours, and plain widgets are left transparent
so the page glow shows through them.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-09-16 22:34:32 +02:00
BlackAngelTVandCodebuff 5720c398ef docs: describe the core/pages architecture in both READMEs
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-09-13 11:45:55 +02:00
BlackAngelTV 897c174925 refactor(arch): split the app into a logic core and per-screen pages
All the business logic now lives in AppCore (providers, workers,
history, plugins, sudo and pacman-lock handling), freed from any widget
so it runs headless and is testable on its own. The Qt window becomes a
thin frame around one file per screen under pages/, wired through a
common Page contract and a shared ui-kit. CMake gains the app-core-test
target, which links Qt Core only to enforce the headless guarantee.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-09-13 11:45:48 +02:00
BlackAngelTV 576daf2fae Merge pull request 'Feat/cleanup and ui refresh' (#10) from feat/cleanup-and-ui-refresh into main
Reviewed-on: #10
V1.4.2
2026-09-12 21:13:27 +00:00
BlackAngelTV 6c4a715d73 ci: drop the Gitea release and test workflows
They never produced a usable release: the release workflow expects lowercase
tags (v1.4.1) while the published ones are uppercase (V1.4.1), so its "already
released" check never matched, and the test workflow's version guard compares
the version file with the latest tag, which failed as soon as the two drifted.
Releases are published by hand, so the READMEs no longer describe a prebuilt
archive as something the project produces on its own.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-09-12 23:10:35 +02:00
BlackAngelTV 31b1ccb8d6 chore(release): bump the version file to 1.4.1
The file still said 1.3.1 while the released tags were already at 1.4.x, so a
build from this tree reported 1.3.1 and kept offering the release it already
had.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-09-12 23:10:30 +02:00
BlackAngelTV 5216480d81 fix(update): report the newest known version, not just the compiled one
Trusting the version compiled into the binary alone made the app report a stale
release whenever the build predated a version bump: `version` is read at
configure time, and bumping it is not by itself a reason to configure again, so
`cmake --build` kept the previous number compiled in while the marker it
installed next to the binary said otherwise. The update was then offered again
even though it had just been applied.

The version file is now a configure dependency, so a bump reconfigures the
build, and the reported version is the newest of the two sources, so neither
side can drag the app backwards.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-09-12 23:05:23 +02:00
BlackAngelTV 605cb5bc26 Merge pull request 'Feat/cleanup and ui refresh' (#9) from feat/cleanup-and-ui-refresh into main
tests / version-guard (push) Has been cancelled
tests / build-test (push) Has been cancelled
Reviewed-on: #9
V1.4.1
2026-09-12 20:48:07 +00:00
BlackAngelTV fb5c11e153 feat(pacman): close the manager holding the database lock instead of waiting
tests / version-guard (push) Has been cancelled
tests / build-test (push) Has been cancelled
A locked database ended in "Un autre gestionnaire de paquets utilise déjà la
base. Attendez la fin de l'autre opération puis réessayez": the app knew
something else was running but could not say what, leaving the user to find
and close it before retrying by hand.

The lock is now inspected: the process holding /var/lib/pacman/db.lck is
identified through /proc (with a pgrep fallback for the known managers, whose
fd table is unreadable when they run as root), the dialog names it, and one
click stops it — SIGTERM first, so pacman aborts its transaction and releases
the lock itself, SIGKILL only when it does not react — then the pending
operation resumes on its own. A lock whose owner is gone is dropped the same
way, and one that disappears while the action is unwinding is retried without
a dialog at all.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-09-12 22:47:53 +02:00
BlackAngelTV d8bc17b2aa docs: cover the cleanup page and the version stamp in both READMEs
tests / version-guard (pull_request) Has been cancelled
tests / build-test (pull_request) Has been cancelled
tests / version-guard (push) Has been cancelled
tests / build-test (push) Has been cancelled
The feature list, the page-by-page walkthrough and the interface contract
tables now describe the Nettoyage page and its optional cleanup methods, and
the automatic-update section explains where an update is installed and why the
same release is not offered twice.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-09-12 22:24:52 +02:00
BlackAngelTV 28a2155d3e style(ui): give the interface a clearer visual hierarchy
Cards now read as raised surfaces with a hairline border, the four dashboard
metrics carry a coloured edge, the sidebar is split into named sections and
shows the installed version, and the two most used commands sit in the header
so they are reachable from every page. An empty listing explains itself
instead of showing a bare table header, and the sidebar highlights the updates
entry with the pending count.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-09-12 22:24:03 +02:00
BlackAngelTV b1ad9c619a fix(ui): enable "Tout mettre à jour" once a provider can update
The button was created disabled and nothing ever re-enabled it, so the browse
toolbar offered a dead action while the same command stayed reachable from the
dashboard and the tray.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-09-12 22:23:00 +02:00
BlackAngelTV d789695333 perf(ui): fill the tables in a single repaint batch
A result page inserted its rows one setItem() at a time, so the viewport
repainted per cell and, on the browse page, the row that became "current"
fired the pacman queries behind the details panel in the middle of the fill.
The fill now runs with updates disabled and the table's signals muted,
released just before the row the user actually sees is selected.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-09-12 22:22:16 +02:00
BlackAngelTV 52daeb6d30 perf(pacman): cache the read-only queries the views keep re-asking
One click used to spawn the same pacman processes several times: a search
runs `pacman -Q`, the Installed page runs `-Q`, `-Qi` and `-Sl`, and the
dashboard re-runs them on every visit. Their output is now reused for a few
seconds and dropped as soon as a transaction changes the package set, so the
readings stay correct while a handful of subprocess spawns disappear from each
interaction.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-09-12 22:22:16 +02:00
BlackAngelTV 5756704b03 fix(update): stamp the installed release so it is not offered twice
The checkout path installed with the build's configured prefix instead of
installing into the directory holding the running copy, so the binary in use
and its version marker both stayed at the old release: the app kept reporting
that version and offered the same update again at every launch.

Every method now stages and installs into the running binary's directory, the
install step writes the release it just installed next to the binary, and
currentVersion() reads the version compiled into the running build first,
falling back to the marker file. The repo-root `version` file stays the single
source of truth: CMake compiles it in.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-09-12 22:19:47 +02:00
BlackAngelTV 632cdf1dea feat(cleanup): add a maintenance page for unused and legacy packages
Leftovers pile up on a machine: dependencies that no installed package
requires any more, and installs coming from the AUR or manual builds that the
sync databases know nothing about. The new Nettoyage page lists both (orphans
first, since they are the ones that can be removed in bulk), shows which
provider reported each row, and frees the space held by the caches: paccache
(or pacman -Sc) and flatpak's unused runtimes.

Cleanup is an optional capability of IPackageManager, so providers that only
install packages keep working unchanged.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-09-12 22:17:08 +02:00
BlackAngelTV b8f8dc569f refactor(ui): name the sidebar page ids instead of hardcoding them
A maintenance page is about to be inserted between two existing entries, and
the numeric ids were duplicated across the sidebar, the dashboard shortcuts,
the menu bar and the keyboard shortcuts. Naming them keeps those entry points
in sync.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-09-12 22:11:47 +02:00
BlackAngelTV 4ef37dcda6 fix(update): replace the running binary atomically and relaunch it
tests / version-guard (push) Has been cancelled
tests / build-test (push) Has been cancelled
Copying over the executable the update is running from fails with ETXTBSY, so
the self-update aborted after a successful build and left the user to restart
by hand. Installing through a rename, then handing over to the new build, lets
the update complete on its own.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
V1.3.3 V1.4.0
2026-09-11 21:45:25 +02:00
BlackAngelTV 209e2706ee docs: document the automatic update and the new UI features
tests / version-guard (push) Has been cancelled
tests / build-test (push) Has been cancelled
Users could not tell where the updated binary lands or why an update may need
a compiler. Describe the install location and the four update strategies in
both READMEs, alongside the tray, shortcuts, log filter and CSV exports.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
V1.3.2
2026-09-11 20:17:50 +02:00
BlackAngelTV cddc5f956a ci: guard the version file and publish a prebuilt release asset
A `version` file drifting from the latest tag makes the self-update check
report a phantom update, and installed apps without a toolchain need a binary.
Fail the tests job on a version/tag mismatch, and attach a prebuilt archive to
each release as a best effort so a failed build never blocks the release.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-09-11 20:16:44 +02:00
BlackAngelTV 54bff16369 feat(update): self-update from a cloned repo wherever the app is installed
Self-update assumed a conventional install prefix (silently reinstalling into
~/.local when the binary lived elsewhere) and needed a release tarball to do
anything. Pick the strategy from what the machine actually has -- a local
checkout, git+cmake+compiler for a clone, the prebuilt archive, or the release
sources -- and always write the fresh binary next to the running one, building
in a temp directory so sudo is only needed for the final copy.

Bundles the UI work that depends on it (tray, shortcuts, log filter, CSV
exports, cached package details), the structured log categories, and the new
test targets (update-manager, AUR, plugins) wired into CTest.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-09-11 20:15:41 +02:00
BlackAngelTV 6d5b4274c4 feat(aur): add an AUR provider plugin
Community packages were invisible unless the user ran yay/paru by hand. Wrap
the helper behind the provider interface, like the Flatpak plugin, so AUR
results join search, installed and updates while staying optional.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-09-11 20:13:40 +02:00
BlackAngelTV edc3ef2925 fix(pacman): report database locks and refresh failures
A concurrent manager holding /var/lib/pacman/db.lck, or a partially failed
`pacman -Sy`, surfaced as a generic failure with no explanation. Keep the last
error, tell the user which lock is involved and how to recover, and stop
treating a sync error as success.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-09-11 20:12:43 +02:00
BlackAngelTV f1702932cd chore: add clang-format config
Keep C++ formatting consistent across contributions; the config matches the
existing sources (4-space indent, 100-column limit, attached braces).

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-09-11 20:11:50 +02:00
BlackAngelTV 40a01b0060 fix(update): enable self-update for installed app via release tarball
release / release (push) Has been cancelled
tests / build-test (push) Has been cancelled
The update dialog offered a disabled button when running from an install prefix without a source checkout, and the version file lagged behind the release tag. Add a tarball download + rebuild + reinstall path to the same prefix (sudo only for system prefixes) and bump the version file to 1.3.1.
2026-09-10 20:08:08 +02:00
BlackAngelTVandCodebuff 4200f63b4f docs: describe plugin types, addon template and default Flatpak build
tests / build-test (push) Has been cancelled
Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
V1.3.1
2026-09-10 18:49:48 +02:00
BlackAngelTV 8658855cca feat(plugin): support generic addon plugins and build Flatpak by default
The Plugins page replaces the Providers tab and lists every plugin alike:
package-manager providers and generic C++ addons, which can be any extension
(UI tweak, helper, ...) via IPlugin (onLoad/onUnload/onUiReady) exported with
the new FWS_ADDON_PLUGIN macro. Flatpak now ships as a plugin built by
default (FWS_BUILD_FLATPAK_PLUGIN=ON), so a plain build is Flatpak-enabled.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-09-10 18:49:46 +02:00
BlackAngelTV 3fa306c815 perf(search): mark results as installed via a single pacman -Q call
tests / build-test (push) Has been cancelled
Search previously ran one 'pacman -Qi <name>' subprocess per result,
making queries with many matches (e.g. 'discord') take minutes. It now
loads the installed package names once into an in-memory set and uses
that set for the installed lookup.
2026-09-09 20:01:25 +02:00
BlackAngelTV 44a7e5b396 feat(update): add self-update check via Gitea releases API
tests / build-test (push) Has been cancelled
Adds an UpdateManager that queries the Gitea releases API once per day,
stores the last check state in a JSON file, and offers to pull + rebuild
the source repository when a newer version exists. The running binary is
left untouched until the next launch.

Also sets the app version from the version file at build time instead of
the hardcoded 1.0.0, and copies the version file next to the executable.
V1.3.0
2026-09-09 19:49:45 +02:00
BlackAngelTV 9b357cde63 chore(flatpak): change author
tests / build-test (push) Has been cancelled
Change the provider author to BlackAngelTV.
2026-09-02 08:26:03 +00:00
BlackAngelTV 096553e429 ci(tests): install dependencies via the host package manager
tests / build-test (push) Has been cancelled
Host-mode runners execute jobs directly on the runner machine, so apt
fails on non-Debian hosts. Detect pacman/apt/dnf so the test workflow
runs on any Linux host, and pull in git as a safety net for checkout.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
V1.2.1
2026-08-29 20:50:49 +02:00
BlackAngelTV 7b7962c53f ci: target the self-hosted runner label linux
tests / build-test (push) Has been cancelled
The Gitea runner is registered with the label `linux`, so `ubuntu-latest`
never matched and the workflows could not start. This applies to both the
test and release workflows.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-08-29 20:47:09 +02:00
BlackAngelTV 1903bad336 ci: split tests and release workflows, drop secret requirement
release / release (push) Has been cancelled
tests / build-test (push) Has been cancelled
Release no longer runs or depends on the test suite, and uses the
built-in automatic GITEA_TOKEN with a contents: write permission so no
secret needs to be configured. Tests moved to a dedicated workflow that
runs on every push and pull request.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-08-29 20:43:07 +02:00
BlackAngelTV b3a7bb4b67 ci: create a gitea release on version bump when all tests pass
release / build-test (push) Has been cancelled
release / release (push) Has been cancelled
Adds a Gitea Actions workflow triggered by changes to the `version` file.
It builds and runs the full test suite, then publishes a release and tag
only when every test succeeds and the version is new. Releasing is gated
on the test job succeeding, so a broken suite blocks it automatically.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-08-29 20:35:37 +02:00
BlackAngelTV 53f3e6b5bd chore: add version file as the single source of release versioning
Introduces a root `version` file holding the current release number so the
CI release workflow has one place to read the version from.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-08-29 20:35:22 +02:00
BlackAngelTV ecf38c61f6 docs: describe flatpak as an external plugin in the READMEs
Updates both READMEs so the architecture and providers sections reflect
that pacman is built-in while Flatpak ships as a runtime-loaded plugin.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-08-29 20:35:17 +02:00
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