From 83a5dc24f6349ba99165dab850a83bf08b0f56c8 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Fri, 16 Oct 2026 09:59:40 +0200 Subject: feat(user): a drawer page for the user's details Name, email, avatar, language, location and the git signing key, each saved through userctl to every store that holds it. Only changed fields are sent; a field whose write failed keeps its edit and its error, so the next Save retries it. A failed userctl get reports a single error= line. The page shows it in red under the avatar, leaves saved and draft untouched, and disables Save until a later load succeeds. Co-Authored-By: Claude Sonnet 5.5 --- desktop/modules/user/UserModule.qml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 desktop/modules/user/UserModule.qml (limited to 'desktop/modules/user/UserModule.qml') diff --git a/desktop/modules/user/UserModule.qml b/desktop/modules/user/UserModule.qml new file mode 100644 index 0000000..ef49829 --- /dev/null +++ b/desktop/modules/user/UserModule.qml @@ -0,0 +1,29 @@ +// Copyright (C) 2026 Danilo M. +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License version 2 as +// published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +import QtQuick +import "../.." + +// The user's details. No tile: the drawer's greeting row opens the page. +Module { + name: "user" + label: "User" + // nf-fa-user, present in Inconsolata Nerd Font. + icon: "\uf007" + tiled: false + + page: Component { + Page { + title: "User" + UserPage { width: parent.width } + } + } +} -- cgit v1.2.3