feat(tui): upgrade users tab with lipgloss table, edit support, role select
Users tab now matches sites/alerts quality: lipgloss bordered table, click-to-select zones, edit form with role picker, and UpdateUser support across both store backends.
This commit is contained in:
@@ -6,7 +6,7 @@ import (
|
||||
|
||||
type Store interface {
|
||||
Init() error
|
||||
|
||||
|
||||
// Sites
|
||||
GetSites() []models.Site
|
||||
AddSite(name, url, sType string, interval, alertID int, checkSSL bool, threshold, retries int)
|
||||
@@ -23,6 +23,7 @@ type Store interface {
|
||||
// Users
|
||||
GetAllUsers() []models.User
|
||||
AddUser(username, publicKey, role string) error
|
||||
UpdateUser(id int, username, publicKey, role string) error
|
||||
DeleteUser(id int) error
|
||||
|
||||
// Phase 5: Backup & Restore
|
||||
@@ -38,4 +39,4 @@ func SetGlobal(s Store) {
|
||||
|
||||
func Get() Store {
|
||||
return Current
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user