Commit Graph
126 Commits
Author SHA1 Message Date
BlackAngelTV 3e4ed92c0a feat(cli): add a simplified command line over the logic layer
The window needs a display, which kept the package manager out of a script and
off a headless machine. The command line runs the same operations through
AppCore, before any widget exists, so providers, the pacman lock, the journal
and the history behave exactly as in the window.

Refs #22.
2026-10-03 22:53:47 +02:00
BlackAngelTV 78b279aeee feat(i18n): ship Spanish, German and Italian catalogues
The runtime catalogues only covered English, so a good part of the install
base had no choice but the language the wording was written in. The three new
catalogues cost one text file each, compiled into the binary: nothing else
changes for a translator.
2026-10-03 22:38:00 +02:00
BlackAngelTV 28bef75bf6 feat(logs): narrate what pacman and flatpak really run
Changing screen is not an operation, and a navigation line per click buried
the entries that matter. Providers now narrate the work itself instead: the
exact command, the fallbacks and the counts, through a Qt-free trace sink that
reaches the journal only, so the status bar stays short.
2026-10-03 22:38:00 +02:00
BlackAngelTV 3ca9c412d2 Chore(lib): add lib for build PLUGIN 2026-09-30 20:26:52 +02:00
BlackAngelTV a364c56d75 docs(release): add a changelog for everything since 1.5.0
The 1.6.0 cycle added a settings screen, an application journal, runtime
translations and the .fwspacm plugin format, and reorganised the whole
source tree. None of that was written down anywhere a user or a
contributor would look, so the only record was the commit log.

The changelog describes each change, maps the old folders to the new
ones, and gives a manual test procedure per feature, since the drag and
drop paths have no automated coverage.

It also records the current ctest state: four suites fail, two of them
regressions introduced on this branch.
2026-09-29 22:02:34 +02:00
BlackAngelTV 768ced5a8f Merge pull request 'Feat/i18n runtime catalogues' (#21) from feat/i18n-runtime-catalogues into release-1.6.0
Reviewed-on: #21
2026-09-29 19:33:01 +00:00
BlackAngelTV 63ad81ef23 docs(tree): point the documentation at the new folders
Every path the documentation named had moved, and the source tree diagram
still showed the two flat folders. The diagram now shows a folder per
domain, and each file is cited where it now lives.

The paths that did not move are left alone on purpose: plugins/ next to the
executable and under ~/.local/share/PacManager/ are where PacManager looks
for plugins at run time, not folders in this repository. The plugin build
command in plugins.md is the one exception, and it is updated to the SDK's
new in-tree location — checked, it still compiles.
2026-09-29 21:28:31 +02:00
BlackAngelTV 3e85db87b2 refactor(pages): group the screens by what the user is doing
pages/ was a flat row of eight screens, so a change to one meant scanning
the whole folder to see what else was in it. The screens now sit in
packages/ (browse, cleanup), overview/ (dashboard, history), system/
(logs, settings) and extensions/ (plugins), with the scaffolding they
all build on — the Page base and the shared widgets — in base/.
2026-09-29 21:26:51 +02:00
BlackAngelTV 5a6aaae244 refactor(tree): give the logic layer and the shell a folder each
src/ and include/ are what is left: the controller the screens delegate
to, its workers and its data model (core/), and the window and entry
point that hold them together (app/). With those moved, src/ and
include/ are empty and go away — a header is now always next to its
source, in a folder named after what it does.
2026-09-29 21:26:04 +02:00
BlackAngelTV c63b231778 refactor(tree): split the plugin host from the providers it loads
plugins/ held two unrelated things: the host that discovers and installs
plugins, and the plugins themselves. The host moves to plugins/ with the
built-in pacman provider beside it in providers/, where the external
providers already live — so plugins/ is now one thing, and the name says
which.

The external plugin projects only change folder, not layout: providers/
holds aur-provider, flatpak-provider, example-provider and example-addon.
2026-09-29 21:25:34 +02:00
BlackAngelTV 2395ba3f17 refactor(tree): give the history, the archive and the self-update a folder
Three self-contained things shared src/ with the rest: the operation
history, the zip reader behind the .fwspacm installer, and the
self-update. Each moves to its own folder — history/, archive/ and
update/ — so a change to one does not have to reason about the others.
2026-09-29 21:25:03 +02:00
BlackAngelTV 9c30268810 refactor(tree): move the journal and the preferences out of src/ and include/
The journal and the preferences were two of the many things src/ held, so
"where does this live" meant reading the file to find out. They now have a
folder each — logging/ and preferences/ — with the header next to its
source, the way pages/ has always been laid out.

Flat #include still resolves: the folders join the include path.
2026-09-29 21:24:27 +02:00
BlackAngelTV 91f88b1acc refactor(sdk): gather the plugin headers under include/sdk
include/ held the public plugin interface (package-manager.h, plugin.h,
provider-plugin.h, progress-tracker.h) next to the application's own
headers, so telling them apart meant knowing which four were special.

They move to include/sdk/. The installed layout does not change: make
install still puts them flat in include/PacManager, so a plugin author's
existing -I keeps working. The include path gains include/sdk, so the
flat #include in the sources and in every plugin stays as it was.
2026-09-29 21:23:37 +02:00
BlackAngelTV 60424c8d50 docs(i18n): describe the runtime catalogues and what a new language costs
The language section still described a .ts compiled by Qt Linguist, which
is no longer how a catalogue is shipped. It now explains the JSON
catalogue, the order they are looked up in, what "system" reads to follow
an FWS install, and how to add a language in one file.
2026-09-29 21:17:54 +02:00
BlackAngelTV 459a8f045e feat(i18n): wrap the interface and the journal wording in tr()
Every label, tooltip, empty state and status message was a bare
QStringLiteral, so nothing could be translated. They now go through tr()
(QCoreApplication::translate from a free helper, QT_TRANSLATE_NOOP where
the code already had it), which is what the catalogues are keyed on.

The journal follows the same rule as the interface: an event, an error and
the two outcomes of a command read in the chosen language. What the tools
print themselves is left alone — that is their output, not our wording —
and so are the qC* developer traces, which keep their technical English.
2026-09-29 21:17:49 +02:00
BlackAngelTV a26051795f feat(i18n): translate the interface and the journal at runtime
The language setting was plumbing with nothing behind it: no catalogue
shipped, and every label was a bare QStringLiteral, so picking English
changed nothing.

A catalogue is now a JSON file read as it is, translations/<code>.json,
keyed by the French source string. No Linguist, no lrelease, no build
step: a new language costs one file. The catalogues the application
ships with are compiled into the binary, so the chosen language works
whatever the install layout is, while one dropped into a translations
folder still wins over it.

"System" reads what the FWS install left behind — LC_ALL, LC_MESSAGES,
LANG, then the LANG= line of /etc/locale.conf — so the interface follows
the language chosen at install time without the user configuring anything.

Fixes #16
2026-09-29 21:17:27 +02:00
BlackAngelTV b6f51a76ff Merge branch 'feat/fwspacm-plugin-packages' into release-1.6.0 2026-09-28 22:08:56 +02:00
BlackAngelTV f6c8cedf93 feat(plugins): replace the shop with drag-and-drop .fwspacm packages
The shop was a catalogue served over HTTP that the application fetched and
listed, which put a network round trip between a user and a plugin that was
almost always one file they already had. It also had to keep its catalogue
URLs in step with every release, since an entry that pointed at a missing
asset was indistinguishable from one that never worked.

A plugin is now distributed as a .fwspacm package: a ZIP archive holding a
plugin.json manifest and the shared library, which the user drops anywhere
on the window. The file is the distribution, so there is no catalogue to
publish, no network, and no catalogue URL setting to explain. The manifest
tells the user what they are about to run, and its checksum is verified
before anything is written, so a package whose library is not the one it
declares never reaches the plugin directory.

Qt exposes no public ZIP API, so the archive is read directly (central
directory plus zlib for the deflated entries) rather than through a private
header that could move between toolchains. The reader stays in the logic
layer: app-core-test still links no QtWidgets, and a unit test builds its
own archives to check both compression methods and every refusal path.
2026-09-28 21:52:50 +02:00
BlackAngelTV 3293de7f6a Merge pull request 'Feat/settings page' (#18) from feat/settings-page into release-1.6.0
Reviewed-on: #18
2026-09-28 19:30:10 +00:00
BlackAngelTV 29ec30e867 fix(ui): stop the platform from drawing a light band around menus
The stylesheet colours a QMenu, but a dropdown is its own native window:
the margin the platform leaves around it is not part of the widget the
stylesheet paints, and it is filled from the application palette. Left at
the desktop default, that margin shows as a white band above and below the
menu on a light theme.

Giving the palette the window's own surface colour covers it, and has the
useful side effect of dragging tooltips and popups onto the dark theme too.
The colours are the same tokens as the stylesheet, spelled as palette
roles: Qt 6 has no Menu role left, and Window is what the popup margin
uses.
2026-09-28 21:27:32 +02:00
BlackAngelTV bbaf39144f fix(ui): reach the settings screen from the menu bar only
The settings screen was given a sidebar entry, but it is not a place to
browse from: the bar lists where the packages are, and preferences are
where you configure the application. It now opens from the Paramètres menu
and Ctrl+, and nowhere else.

Two consequences of it having no navigation button are handled rather than
left to chance: openSettingsPage() does the work a button would have done
(switch, reload, retitle, journal), and the sidebar unchecks itself on the
way in, since leaving the previous entry highlighted would point at the
wrong screen. Clicking a sidebar entry afterwards selects it as usual.
2026-09-28 21:15:16 +02:00
BlackAngelTV aff959bc4b feat(settings): add a dedicated screen for every user preference
The preferences used to be spread across a menu entry and hardcoded paths,
so the user could not see them, let alone change them: where the journal
goes, whether a dropped Flatpak file is accepted, and when the app checks
its own version were all decided in code.

They now live in AppSettings, one model the rest of the app already reads,
and the new Settings screen only writes to it. Nothing keeps a second copy
of a value, so a change is visible everywhere at once — switching directory
moves the journal, unchecking drag & drop makes the window refuse the drop,
blocking the update has the manual check say why instead of silently doing
nothing.

The update block is deliberately limited to PacManager itself: blocking a
system package update is a decision the app has no business making.

The language setting installs a Qt catalogue and asks every widget to
retranslate. The interface is still written in French with QStringLiteral,
so no catalogue ships yet; a language with none is shown in the list but
disabled rather than silently doing nothing, and Qt Linguist stays optional
so the build does not depend on it.
2026-09-28 20:44:21 +02:00
BlackAngelTV ed8185d5fe Actualiser version V1.5.5 2026-09-27 19:37:59 +00:00
BlackAngelTV 56c491f33e docs: add the contribution guide the agent guide points at
The agent guide now sends contributors to CONTRIBUTING.md for the
conventions, and that file did not exist, so the pointer was a dead end
and the conventions lived only in the README, where they sat next to the
feature list.

The guide covers what a contributor needs in one place — the licence
terms that constrain reuse, the build and the four CMake options, the
nine test targets and what each one covers, the code conventions, and the
point of the architecture split that decides where new code goes — plus
the commit rules the agent guide states, including signed commits and no
tool attribution. The READMEs and the doc index now link to it instead of
duplicating the list.
2026-09-27 21:36:13 +02:00
BlackAngelTV 6f9db70698 docs(agents): refresh the guide and require signed commits
The guide still described the project as an Arch fork with its conventions
in the README, and it said nothing about the commit message, so agents kept
producing commits that named the tool they were run from. Point it at
CONTRIBUTING.md for the conventions, and state the commit rules directly:
signed, no tool attribution, no extra confirmation step.
2026-09-27 21:33:41 +02:00
BlackAngelTV baba4bbd70 fix(ui): remove straight away when there is a single installation
The chooser answered an empty list when the provider held one copy, and
the caller read that as "nothing was ticked" — so Supprimer on a package
installed once showed "Aucune installation sélectionnée." and removed
nothing, which is most packages.

The row is now removed directly unless there is something to choose
between, and the message about ticking nothing only appears where it can
happen: after the chooser.
2026-09-27 21:33:41 +02:00
BlackAngelTV 8f4cc14995 fix(credentials): ask for the password before a bulk removal
The cleanup page grouped its packages by provider but never handed those
providers to the credential gate, which saw an empty list, concluded
nothing was privileged and let the request through: pacman was then
driven with an empty password. It only worked by accident, while sudo's
timestamp was still valid.

Every privileged path now goes through the same door, which the new test
walks one by one — including the two ways of acting on a single copy of a
multi-installed package — and asserts the request is refused, kept
pending for the prompt, and refused again on replay. Nothing is ever
replayed, so no test can run pacman as root.
2026-09-27 21:33:41 +02:00
BlackAngelTV eb39905bf5 feat(flatpak): let the user choose which installation to act on
The same application can be present twice — in the user installation
and system-wide, or from two remotes or two branches — and flatpak then
refuses to act on the application id alone: "Multiple installed refs
match 'com.hoptodesk.HopToDesk'". Removing either copy was impossible
from the app.

A row now stands for the application and carries the copies it is made
of, so the details panel lists them and Remove opens one checkbox per
copy; the provider gets back the exact target it listed, and naming a
ref plus its installation is what makes the call unambiguous. Update
gains the same resolution, since it hit the very same refusal, and
removing one copy of two no longer takes the other one's launcher entry
away with it.

The listing that feeds it now asks flatpak for the ref, the branch and
the installation, and reads those columns by position: a branch
installed from a subdirectory has no version, and dropping that empty
column shifted every field after it.
2026-09-27 21:33:41 +02:00
BlackAngelTV f1fbd3cd8a feat(flatpak): report the download flatpak never announces
Installing a .flatpakref looked frozen: flatpak prints two lines and
then stays silent for the minutes a runtime takes to come down, so the
window repeated the same sentence over a stalled bar and the journal
recorded nothing at all.

It has no meter to print — measured here, on a real 658 MB install, it
draws nothing on a pipe nor on a full terminal, only on the deltas the
CDN happens to serve — so the provider now measures the transfer itself:
the bytes landing in flatpak's own staging directory, reported as they
grow. When even those stop, the window takes over and says which step is
running and for how long, in the status bar and in the journal.

Along the way the runner reads with read() instead of stdio so in-place
updates are not held back by a buffer, strips the ANSI escapes some
tools colour their output with (the AUR plugin's own copy is gone), and
turns a rewritten meter line into a journal entry every 10 %.
2026-09-27 21:33:41 +02:00
BlackAngelTV 7c46023489 docs: describe installing flatpak files
The gesture is invisible in a screenshot, so every place that has to match
it says it explicitly: the READMEs, the manual desktop entry (which now
carries the MIME types too), the installer doc, the interface and plugin
contracts, the troubleshooting page and the test coverage.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-09-27 19:39:46 +02:00
BlackAngelTV 5b7107aebf feat(install): declare the flatpak MIME types in the desktop entry
Without them the file manager has no reason to propose "Open with
PacManager", so the drop and the double-click never reach the app.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-09-27 19:39:46 +02:00
BlackAngelTV 20acfd00a4 feat(ui): install the Flatpak files dropped or opened with PacManager
The window accepts a drop and the desktop entry's %U hands over the file
the user picked, so both gestures end up as the same request. The frame
asks the core which files it can install and never names a format itself;
dropped files queue up because the core runs one operation at a time, and
the search and log fields stop swallowing drops so a file dropped on them
reaches the window.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-09-27 19:39:46 +02:00
BlackAngelTV 1e751c7205 feat(flatpak): install packages from a Flatpak file
Dragging a .flatpakref, .flatpakrepo or .flatpak onto the window, or
opening it with the file manager, has to reach flatpak without the user
going through a search. The provider now owns its formats: it claims the
files it handles and builds the matching command, and the core routes the
request to whichever provider recognises it, so a new provider can claim
its own formats the same way.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-09-27 19:39:39 +02:00
BlackAngelTV d44dbc3ccf chore(release): bump the version file to 1.6.0
The journal is a user-facing feature, so the next release warrants a minor
bump rather than a patch.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-09-27 18:19:03 +02:00
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