144 Commits
Author SHA1 Message Date
BlackAngelTV d27792975e Merge branch 'main' of https://gitea.nocode-var.tech/FWS/FWS-PacManage V1.6.2 2026-10-30 18:04:51 +01:00
BlackAngelTV c23308f78e Fix(update): chaine de SU 2026-10-30 18:04:04 +01:00
BlackAngelTV 9343f53bae Merge pull request 'Release 1.6.1' (#25) from release-1.6.1 into main
Reviewed-on: #25
V1.6.1
2026-10-30 16:50:02 +00:00
BlackAngelTV 111143cd4c chore(release): 1.6.1
The journal fix and the file feedback of this branch ship together,
with nothing else: 1.6.0 stays the feature release it was.
2026-10-09 19:22:27 +02:00
BlackAngelTV 55718064a6 feat(files): confirm dropped files and refuse the ones already installed
A drop — or "Ouvrir avec PacManager" — answered nothing: a Flatpak
install walked off into the background and a plugin package landed
without a sound, so the gesture read as ignored. Both now open a
dialog saying what was taken and what it starts.

A file the machine already has is refused before anything runs, and
named. The application a file would install is read out of the file
itself (the [Flatpak Ref] section of a .flatpakref, the header of a
.flatpak bundle, the manifest of a .fwspacm) and compared with what
the provider has, so nothing is started to find out: Flatpak would
otherwise skip the install and report a success the user never got,
and a plugin package would silently replace the one in place.
2026-10-09 19:22:24 +02:00
BlackAngelTV f4aa661b54 fix(logging): keep Qt's platform chatter out of the journal
Opening a dialog under Wayland made Qt write a burst of qt.qpa
warnings into the application journal — the text-input focus one,
repeated at every prompt — where the user can do nothing with them:
they describe the display server, not the application. Those
categories stay on stderr from now on, next to everything else, while
what the application logs (its own categories, and a bare qCWarning)
keeps going to the journal.
2026-10-09 19:22:19 +02:00
BlackAngelTV bea3d61045 Merge branch 'release-1.6.0' into main
The release moved every source into its own layer (core/, app/, pages/,
providers/, preferences/, logging/, archive/, update/, translations/) and
replaced the plugin shop with .fwspacm packages. main added the headless update
check run at login. Both sides are kept, the feature moved onto the new layout:

- core/startup-check.{h,cpp} and its test, wired into the CMake targets the
  release renamed (core/startup-check.cpp, startup-check-test);
- app/main.cpp carries the --check-updates branch, ahead of the command line so
  the login unit never opens a window;
- the settings menu keeps the "check at startup" toggle, now through tr(), and
  translations/en.json gains the new strings;
- doc/mise-a-jour.md keeps the release's version and gains the startup-check
  section; the documented test count follows the new target.
V1.6.0
2026-10-09 17:56:53 +02:00
BlackAngelTV 70a933e5ba Merge pull request 'Fix/agents commit doc' (#23) from fix/agents-commit-doc into release-1.6.0
Reviewed-on: #23
2026-10-09 15:39:11 +00:00
BlackAngelTV 62d1d67a09 fix(update): fail fast when install target directory cannot be created
The self-update shell script ran mkdir -p $BIN_DIR without checking the
result, so a silently failed directory creation led to the empty path
error later in the install step. Make the script stop as soon as mkdir
fails and print the directory name in the message.
2026-10-09 17:14:47 +02:00
BlackAngelTV fcb69939a3 docs: bold the commit message rule in Commits requested by the user
The rule about not mentioning the AI, assistant, Codebuff or any tool
in the commit title and body is easy to miss; make it visually stand
out so it is treated as explicitly as the non-co-authorship rule.
2026-10-09 17:13:35 +02:00
BlackAngelTV 494906d3f7 docs(update): document the dependencies an old install must bring
Releases up to 1.4.3 rebuild with whatever toolchain they find, so an
install left on one of them fails on a missing package with nothing
saying why or how to get out of it. The update page now states the
boundary, the manual fallback and what a package-managed install does.
2026-10-07 22:59:06 +02:00
BlackAngelTV 586e4fd0a8 fix(update): keep the output of a failed self-update in the journal
A failure only opened a dialog whose text runs past the screen, and unlike
the success path nothing wrote the build output anywhere, so the line that
names the error was lost as soon as the box was closed.
2026-10-07 22:49:00 +02:00
BlackAngelTV 3ad11318d9 docs: align the 1.6.0 notes with the features actually shipped
The changelog and the readme still described the command line, the provider
traces and the Spanish/German/Italian catalogues, so the release notes claimed
more than the branch delivers.
2026-10-07 22:13:22 +02:00
BlackAngelTVandCodebuff 3a77cb8f42 docs: documenter la vérification des mises à jour au démarrage
Mode --check-updates headless, service systemd --user auto-installé, réglage
Paramètres, notification urgente, et le mode pacman -Qu de repli.

Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-10-04 20:03:12 +02:00
BlackAngelTVandCodebuff 65b3496b42 feat(pkgcheck): vérification des mises à jour au démarrage sans mdp + notif
Le mode headless --check-updates (QT Core uniquement) synchro checkupdates
sans root, classe les paquets critiques (noyau, glibc, systemd, graphics),
envoie une notif urgente via notify-send quand c'est nécessaire, et installe
soi-même son service systemd --user (paramètre actif par défaut) pour
lancer la vérification à chaque ouverture de session. Ajout de tests
d'unité et de doc.

Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-10-04 20:02:41 +02:00
BlackAngelTV 05d9a16fe7 docs(contributing): correct the test count, C++ standard and provider paths
The guides still promised nine tests, C++20 and providers under plugins/,
which no longer reflects the build.
2026-10-03 23:08:24 +02:00
BlackAngelTV ab405d3018 docs(changelog): record the command line, provider traces and new languages
The 1.6.0 changelog stopped before the last three features, so the release
notes no longer matched the branch.
2026-10-03 23:08:16 +02:00
BlackAngelTV 9252261e24 docs: cover the command line, provider traces and the new catalogues
The interface, operations and plugin guides still described the old tree,
the log without provider traces and a single extra language, so a reader
could not tell what the app really runs or that a headless command exists.
2026-10-03 23:08:08 +02:00
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