From 04751c3ba96422a3682cd712e3950d8f28257c7d Mon Sep 17 00:00:00 2001 From: MayaTheShy Date: Sun, 22 Mar 2026 16:13:28 -0400 Subject: [PATCH] Enhance welcome screen with optional package selection and updated instructions --- sys/apps/Welcome.lua | 49 ++++++++++++++++++++++++++++++-------------- 1 file changed, 34 insertions(+), 15 deletions(-) diff --git a/sys/apps/Welcome.lua b/sys/apps/Welcome.lua index 2f49a11..5943b51 100644 --- a/sys/apps/Welcome.lua +++ b/sys/apps/Welcome.lua @@ -2,6 +2,7 @@ local Ansi = require('opus.ansi') local Security = require('opus.security') local SHA = require('opus.crypto.sha2') local UI = require('opus.ui') +local Util = require('opus.util') local colors = _G.colors local os = _G.os @@ -16,13 +17,9 @@ local labelIntro = [[Set a friendly name for this computer. local passwordIntro = [[A password is required for wireless access. %sLeave blank to skip.]] -local packagesIntro = [[Setup Complete +local packagesIntro = [[Optional Packages -%sOpen the package manager to add software to this computer. - -Recommended packages: -%s- RemoteTurtle%s (turtle control + web dashboard) -%s- Inventory Manager%s (storage automation)]] +%sSelect packages to install with this computer. You can always add more later from the Package Manager.]] local contributorsIntro = [[Contributors%s Anavrins: Encryption/security/custom apps @@ -97,18 +94,40 @@ local page = UI.Page { }, packages = UI.WizardPage { index = 4, - button = UI.Button { - x = 3, y = -3, - text = 'Open Package Manager', - event = 'packages', - }, intro = UI.TextArea { textColor = colors.yellow, inactive = true, - x = 3, ex = -3, y = 2, ey = -4, - value = string.format(packagesIntro, Ansi.white, - Ansi.yellow, Ansi.white, - Ansi.yellow, Ansi.white), + x = 3, ex = -3, y = 2, ey = 5, + value = string.format(packagesIntro, Ansi.white), + }, + chkTurtle = UI.Checkbox { + x = 5, y = 7, + label = 'RemoteTurtle', + textColor = 'yellow', + backgroundColor = 'primary', + value = false, + }, + lblTurtle = UI.Text { + x = 22, y = 7, + value = 'Turtle control + web dashboard', + textColor = colors.lightGray, + }, + chkInventory = UI.Checkbox { + x = 5, y = 9, + label = 'Inventory Manager', + textColor = 'yellow', + backgroundColor = 'primary', + value = false, + }, + lblInventory = UI.Text { + x = 28, y = 9, + value = 'Storage automation system', + textColor = colors.lightGray, + }, + button = UI.Button { + x = 3, y = -3, + text = 'More Packages...', + event = 'packages', }, }, contributors = UI.WizardPage {