diff options
| author | Danilo M. <danix@danix.xyz> | 2026-10-16 09:59:40 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-10-16 09:59:40 +0200 |
| commit | 83a5dc24f6349ba99165dab850a83bf08b0f56c8 (patch) | |
| tree | fea94ab5ec47f1f131f69865f52e315652ca7032 /desktop/modules/user/UserModule.qml | |
| parent | 614bbba4af2c48d396eda90bb458f5cf3271fe1a (diff) | |
| download | quickshell-83a5dc24f6349ba99165dab850a83bf08b0f56c8.tar.gz quickshell-83a5dc24f6349ba99165dab850a83bf08b0f56c8.zip | |
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 <noreply@anthropic.com>
Diffstat (limited to 'desktop/modules/user/UserModule.qml')
| -rw-r--r-- | desktop/modules/user/UserModule.qml | 29 |
1 files changed, 29 insertions, 0 deletions
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. <danix@danix.xyz> +// +// 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 } + } + } +} |
