From b6743da940aa88254fe7cb1a356840f249b3159b Mon Sep 17 00:00:00 2001 From: Amy Gale Ruth Bowersox Date: Fri, 27 Feb 2026 21:30:17 -0700 Subject: [PATCH] Import Users tested --- docs/MISSINGFUNCS.md | 4 ++-- sysadmin.go | 8 +++++--- top.go | 1 - ui/views/import_results.jet | 35 +++++++++++++++++++++++++++++++++++ 4 files changed, 42 insertions(+), 6 deletions(-) create mode 100644 ui/views/import_results.jet diff --git a/docs/MISSINGFUNCS.md b/docs/MISSINGFUNCS.md index 4626b7b..5292617 100644 --- a/docs/MISSINGFUNCS.md +++ b/docs/MISSINGFUNCS.md @@ -12,12 +12,12 @@ _(italicized items can be deferred)_ - _Chat (top menu link)_ - _Documentation (top menu link)_ - Quote banner rotation -- Sysadmin Menu: +- ~~Sysadmin Menu:~~ - ~~Edit Global Properties~~ - ~~View/Edit IP Address Bans~~ - ~~User Account Management~~ - ~~System Audit Logs~~ - - Import User Accounts + - ~~Import User Accounts~~ - ~~Conferences list:~~ - ~~Find~~ - ~~Manage (reorder/show/hide/delete)~~ diff --git a/sysadmin.go b/sysadmin.go index 2f2c99a..fb9f899 100644 --- a/sysadmin.go +++ b/sysadmin.go @@ -801,7 +801,9 @@ func UserImport(ctxt ui.AmContext) (string, any) { return "framed", "import_users.jet" } - _ = count - _ = scroll - return "error", "Not yet implemented" + ctxt.VarMap().Set("backLink", "/sysadmin") + ctxt.VarMap().Set("headline", fmt.Sprintf("%d user(s) were imported successfully.", count)) + ctxt.VarMap().Set("scroll", scroll) + ctxt.SetFrameTitle("Import Results") + return "framed", "import_results.jet" } diff --git a/top.go b/top.go index 9dc7013..1dd13fb 100644 --- a/top.go +++ b/top.go @@ -151,7 +151,6 @@ func init() { Renderer: renderSBOnlineUsers, } sideboxRegistry[database.SideboxIDOnlineUsers] = &sb3 - log.Infof("sidebox registry has %d entries", len(sideboxRegistry)) } // sbRender is a context used for controlling adding variables for sideboxes. diff --git a/ui/views/import_results.jet b/ui/views/import_results.jet new file mode 100644 index 0000000..f4c504f --- /dev/null +++ b/ui/views/import_results.jet @@ -0,0 +1,35 @@ +{* + * Amsterdam Web Communities System + * Copyright (c) 2025-2026 Erbosoft Metaverse Design Solutions, All Rights Reserved + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + *} + +
+
+

Import Results

+
+
+ + +
+ [ + + + Close + + ] +
+ +
{{ headline }}
+ +
+
+ {{ range _, line := scroll }} +

{{ line }}

+ {{ end }} +
+
+