diff --git a/frontend/src/lib/features/layout/SettingsDialog.svelte b/frontend/src/lib/features/layout/SettingsDialog.svelte
index 228bf73..19aebab 100644
--- a/frontend/src/lib/features/layout/SettingsDialog.svelte
+++ b/frontend/src/lib/features/layout/SettingsDialog.svelte
@@ -68,7 +68,7 @@
type="checkbox"
checked={layoutState.wide}
onchange={(event) => layoutState.setWide(event.currentTarget.checked)}
- class="size-4 rounded border-border accent-primary"
+
/>
diff --git a/shared/.changeset/remove-page-header.md b/shared/.changeset/remove-page-header.md
new file mode 100644
index 0000000..688a634
--- /dev/null
+++ b/shared/.changeset/remove-page-header.md
@@ -0,0 +1,5 @@
+---
+"@gabriel20xx/web-ui": minor
+---
+
+Remove the `PageHeader` title card. `AppShell` no longer renders a per-page title/description card, and its `showPageHeader` and `pageHeaderActions` props are gone, as are the `PageHeader` export and the `.sc-page-header` styles. Buttons or status pills that lived in the title card now belong in a card inside the page content.
diff --git a/shared/.changeset/user-management-projects.md b/shared/.changeset/user-management-projects.md
deleted file mode 100644
index e4d5f61..0000000
--- a/shared/.changeset/user-management-projects.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-"@gabriel20xx/web-ui": minor
----
-
-`UserManagement` accepts an optional `projects` prop (`KnownProject[]`): when present, each account gets a per-project login-access picker (checkboxes in the edit row, a summary in the read-only row) and `onUpdate` receives a `projects: string[]` field. Only AuthGuard's own admin UI passes this prop today; every other consumer is unaffected.
diff --git a/shared/.changeset/user-management-roles.md b/shared/.changeset/user-management-roles.md
new file mode 100644
index 0000000..fea0f60
--- /dev/null
+++ b/shared/.changeset/user-management-roles.md
@@ -0,0 +1,5 @@
+---
+"@gabriel20xx/web-ui": minor
+---
+
+`UserManagement` accepts an optional `roles` prop (`KnownRole[]`) in place of the `projects` prop it replaces: when present, each account gets a role picker (checkboxes in the add and edit rows, the role names in the read-only row), and `onCreate`/`onUpdate` receive a `roleIds: number[]` field. An account's projects now come from its roles, so per-account project checkboxes are gone. `ManagedUser` carries `roleIds` instead of `projects`. Only AuthGuard's own admin UI passes this prop today; every other consumer is unaffected.
diff --git a/shared/.githooks/post-commit b/shared/.githooks/post-commit
old mode 100644
new mode 100755
diff --git a/shared/README.md b/shared/README.md
index aef1431..d195268 100644
--- a/shared/README.md
+++ b/shared/README.md
@@ -54,7 +54,7 @@ These are the complete Svelte component exports from `packages/web-ui/src/lib/in
| `StatusDialog` | Detailed service health/readiness status modal with refresh support. |
| `StatusWidget` | Header-friendly health/readiness indicator that polls `/healthz` and `/ready` and opens `StatusDialog`. |
| `TotpSettings` | TOTP status, setup, enable, and disable controls. |
-| `UserManagement` | Role-aware user administration with listing, creation, editing, deletion, project scopes, and pagination. |
+| `UserManagement` | Role-aware user administration with listing, creation, editing, deletion, role assignment, and pagination. |
This inventory describes the public component API only; the package also exports notification helpers, primary-color helpers, and TypeScript types. When a public component is added, removed, renamed, or materially changes responsibility, update this table in the same change as `packages/web-ui/src/lib/index.ts`. Keep the table aligned with that barrel file, and do not add internal or generated components to it.
diff --git a/shared/backend/carriernodeclient/carriernodeclient.go b/shared/backend/carriernodeclient/carriernodeclient.go
index de39f6e..9d2379a 100644
--- a/shared/backend/carriernodeclient/carriernodeclient.go
+++ b/shared/backend/carriernodeclient/carriernodeclient.go
@@ -14,6 +14,7 @@ import (
"bytes"
"context"
"encoding/json"
+ "errors"
"fmt"
"io"
"net/http"
@@ -264,9 +265,19 @@ func (c *Client) ProxyMount(w http.ResponseWriter, r *http.Request, project, mou
c.Proxy(w, r, path)
}
+// ErrMountNotFound is returned by ListMountFiles when every CarrierNode
+// instance that answered said the directory does not exist and none failed
+// some other way. It is a definitive "not there", unlike an unreachable
+// instance or an error response, where the directory may well exist but could
+// not be checked - callers can use errors.Is to tell the two apart.
+var ErrMountNotFound = errors.New("carriernode mount directory not found")
+
// ListMountFiles lists the direct children of a project/type mount directory.
// An empty relative path lists the mount root. The CarrierNode endpoint
// returns both files and directories so callers can build directory browsers.
+// When no instance can list the directory, the error wraps ErrMountNotFound
+// only if every instance answered 404; any unreachable instance or other
+// failure yields a plain error instead, since the directory may live there.
func (c *Client) ListMountFiles(ctx context.Context, project, mountType, relative string) ([]MountFileEntry, error) {
candidates := c.candidateBaseURLs(ctx)
if len(candidates) == 0 {
@@ -286,6 +297,7 @@ func (c *Client) ListMountFiles(ctx context.Context, project, mountType, relativ
var entries []MountFileEntry
var lastErr error
loaded := false
+ missing := false
for _, baseURL := range candidates {
request, err := c.newRequest(ctx, baseURL, http.MethodGet, path, nil)
if err != nil {
@@ -297,6 +309,11 @@ func (c *Client) ListMountFiles(ctx context.Context, project, mountType, relativ
lastErr = err
continue
}
+ if response.StatusCode == http.StatusNotFound {
+ response.Body.Close()
+ missing = true
+ continue
+ }
if response.StatusCode != http.StatusOK {
response.Body.Close()
lastErr = fmt.Errorf("carriernode mount listing failed: %s", response.Status)
@@ -314,8 +331,13 @@ func (c *Client) ListMountFiles(ctx context.Context, project, mountType, relativ
loaded = true
entries = append(entries, payload.Files...)
}
- if !loaded && lastErr != nil {
- return nil, lastErr
+ if !loaded {
+ if lastErr != nil {
+ return nil, lastErr
+ }
+ if missing {
+ return nil, ErrMountNotFound
+ }
}
unique := make([]MountFileEntry, 0, len(entries))
seen := make(map[string]struct{}, len(entries))
@@ -421,6 +443,103 @@ func (c *Client) DeleteMountFile(ctx context.Context, project, mountType, relati
return nil
}
+// ThumbnailMountType is the mount type ProjectConfigurator configures for a project's
+// generated thumbnails. Each thumbnail is one ".jpg" file under that mount.
+const ThumbnailMountType = "thumbnails"
+
+// thumbnailFile is the file name a thumbnail id is stored under. Ids are UUIDs that
+// ContentScanner generates, so anything that could name a path outside the thumbnails
+// directory is refused.
+func thumbnailFile(id string) (string, error) {
+ if id == "" || id == "." || id == ".." || strings.ContainsAny(id, `/\`) {
+ return "", fmt.Errorf("invalid thumbnail id %q", id)
+ }
+ return id + ".jpg", nil
+}
+
+// thumbnailPaths lists every CarrierNode path a thumbnail may live at, in lookup order: the
+// project's thumbnails mount first, then CarrierNode's legacy thumbnail root. Thumbnails
+// stored before the mount existed sit in the legacy root, and reads keep finding them there
+// until they are regenerated or deleted.
+func thumbnailPaths(project, id string) ([]string, error) {
+ file, err := thumbnailFile(id)
+ if err != nil {
+ return nil, err
+ }
+ var paths []string
+ if path := MountPath(project, ThumbnailMountType, file); path != "" {
+ paths = append(paths, path)
+ }
+ return append(paths, "/thumbnails/"+file), nil
+}
+
+// StoreThumbnail uploads a generated thumbnail into the project's thumbnails mount on the
+// primary CarrierNode and returns its size in bytes. CarrierNode only accepts mount writes
+// under its /mount volume, so the configured thumbnails path has to be there.
+func (c *Client) StoreThumbnail(ctx context.Context, project, id, localPath string) (int64, error) {
+ file, err := thumbnailFile(id)
+ if err != nil {
+ return 0, err
+ }
+ info, err := os.Stat(localPath)
+ if err != nil {
+ return 0, err
+ }
+ if err := c.UploadMountFile(ctx, project, ThumbnailMountType, file, localPath); err != nil {
+ return 0, err
+ }
+ return info.Size(), nil
+}
+
+// DeleteStoredThumbnail removes a thumbnail from the project's thumbnails mount and from the
+// legacy root, since one stored before the mount existed may still be there. A thumbnail
+// missing from both is already deleted.
+func (c *Client) DeleteStoredThumbnail(ctx context.Context, project, id string) error {
+ file, err := thumbnailFile(id)
+ if err != nil {
+ return err
+ }
+ mountErr := c.DeleteMountFile(ctx, project, ThumbnailMountType, file)
+ legacyErr := c.DeleteThumbnail(ctx, id)
+ return errors.Join(mountErr, legacyErr)
+}
+
+// ProxyThumbnail streams a stored thumbnail to the original client, looking in the project's
+// thumbnails mount and then the legacy root. It reports false without writing anything when
+// neither holds the thumbnail, so the caller can fall back to another source.
+func (c *Client) ProxyThumbnail(w http.ResponseWriter, r *http.Request, project, id string) bool {
+ paths, err := thumbnailPaths(project, id)
+ if err != nil {
+ return false
+ }
+ for _, path := range paths {
+ if exists, _, _, probeErr := c.Probe(r.Context(), path); probeErr == nil && exists {
+ c.Proxy(w, r, path)
+ return true
+ }
+ }
+ return false
+}
+
+// FetchThumbnailToScratch downloads a stored thumbnail into an ephemeral local file, looking
+// in the project's thumbnails mount and then the legacy root. Callers must invoke the returned
+// cleanup once done.
+func (c *Client) FetchThumbnailToScratch(ctx context.Context, project, id, suffix string) (string, func(), error) {
+ paths, err := thumbnailPaths(project, id)
+ if err != nil {
+ return "", nil, err
+ }
+ var lastErr error
+ for _, path := range paths {
+ scratch, cleanup, fetchErr := c.FetchToScratch(ctx, path, suffix)
+ if fetchErr == nil {
+ return scratch, cleanup, nil
+ }
+ lastErr = fetchErr
+ }
+ return "", nil, lastErr
+}
+
// probeOne runs Probe's HEAD request against a single base URL.
func (c *Client) probeOne(ctx context.Context, baseURL, carrierNodePath string) (exists bool, size int64, modTime time.Time, err error) {
request, err := c.newRequest(ctx, baseURL, http.MethodHead, carrierNodePath, nil)
diff --git a/shared/backend/carriernodeclient/carriernodeclient_test.go b/shared/backend/carriernodeclient/carriernodeclient_test.go
index 8931aa8..1fe24b7 100644
--- a/shared/backend/carriernodeclient/carriernodeclient_test.go
+++ b/shared/backend/carriernodeclient/carriernodeclient_test.go
@@ -2,6 +2,7 @@ package carriernodeclient
import (
"context"
+ "errors"
"net/http"
"net/http/httptest"
"testing"
@@ -194,3 +195,71 @@ func TestProxyForwardsLastInstanceErrorWhenNoneHaveTheFile(t *testing.T) {
t.Fatalf("status = %d, want 404 forwarded from the last instance", rec.Code)
}
}
+
+func mountListingServer(status int, body string) *httptest.Server {
+ return httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ w.Header().Set("Content-Type", "application/json")
+ w.WriteHeader(status)
+ _, _ = w.Write([]byte(body))
+ }))
+}
+
+func TestListMountFilesReportsNotFoundWhenEveryInstanceMisses(t *testing.T) {
+ first := mountListingServer(http.StatusNotFound, `{"error":"mount directory not found"}`)
+ defer first.Close()
+ second := mountListingServer(http.StatusNotFound, `{"error":"mount directory not found"}`)
+ defer second.Close()
+
+ client := NewMulti("", func(ctx context.Context) []string { return []string{first.URL, second.URL} })
+
+ _, err := client.ListMountFiles(context.Background(), "autocode", "repos", "gone")
+ if !errors.Is(err, ErrMountNotFound) {
+ t.Fatalf("ListMountFiles error = %v, want ErrMountNotFound", err)
+ }
+}
+
+func TestListMountFilesDoesNotReportNotFoundWhenAnInstanceIsUnreachable(t *testing.T) {
+ missing := mountListingServer(http.StatusNotFound, `{"error":"mount directory not found"}`)
+ defer missing.Close()
+ down := httptest.NewServer(nil)
+ down.Close() // closed immediately so requests to it fail outright
+
+ client := NewMulti("", func(ctx context.Context) []string { return []string{missing.URL, down.URL} })
+
+ _, err := client.ListMountFiles(context.Background(), "autocode", "repos", "maybe-on-the-down-instance")
+ if err == nil {
+ t.Fatal("ListMountFiles succeeded, want an error")
+ }
+ if errors.Is(err, ErrMountNotFound) {
+ t.Fatalf("ListMountFiles error = %v, must not claim the directory is missing when an instance could not be checked", err)
+ }
+}
+
+func TestListMountFilesDoesNotReportNotFoundOnServerError(t *testing.T) {
+ broken := mountListingServer(http.StatusInternalServerError, `{"error":"boom"}`)
+ defer broken.Close()
+
+ client := NewMulti("", func(ctx context.Context) []string { return []string{broken.URL} })
+
+ _, err := client.ListMountFiles(context.Background(), "autocode", "repos", "")
+ if err == nil || errors.Is(err, ErrMountNotFound) {
+ t.Fatalf("ListMountFiles error = %v, want a non-ErrMountNotFound failure", err)
+ }
+}
+
+func TestListMountFilesUsesTheInstanceThatHasTheDirectory(t *testing.T) {
+ missing := mountListingServer(http.StatusNotFound, `{"error":"mount directory not found"}`)
+ defer missing.Close()
+ present := mountListingServer(http.StatusOK, `{"files":[{"name":"repo","path":"repo","directory":true}]}`)
+ defer present.Close()
+
+ client := NewMulti("", func(ctx context.Context) []string { return []string{missing.URL, present.URL} })
+
+ files, err := client.ListMountFiles(context.Background(), "autocode", "repos", "")
+ if err != nil {
+ t.Fatalf("ListMountFiles error: %v", err)
+ }
+ if len(files) != 1 || files[0].Name != "repo" || !files[0].Directory {
+ t.Fatalf("ListMountFiles = %+v, want the one directory from the instance that has it", files)
+ }
+}
diff --git a/shared/backend/carriernodeclient/thumbnails_test.go b/shared/backend/carriernodeclient/thumbnails_test.go
new file mode 100644
index 0000000..976e7ae
--- /dev/null
+++ b/shared/backend/carriernodeclient/thumbnails_test.go
@@ -0,0 +1,183 @@
+package carriernodeclient
+
+import (
+ "context"
+ "io"
+ "net/http"
+ "net/http/httptest"
+ "os"
+ "path/filepath"
+ "slices"
+ "strings"
+ "sync"
+ "testing"
+)
+
+const testThumbnailID = "3f1c2a9e-6b1d-4e8a-9f0e-2d7c5b4a1e00"
+
+// recordingCarrierNode serves bodies at the paths it is given, accepts every write, and
+// records each request so a test can see which CarrierNode paths were touched.
+type recordingCarrierNode struct {
+ mu sync.Mutex
+ bodies map[string]string
+ requests []string
+}
+
+func (n *recordingCarrierNode) ServeHTTP(w http.ResponseWriter, r *http.Request) {
+ n.mu.Lock()
+ n.requests = append(n.requests, r.Method+" "+r.URL.Path)
+ body, found := n.bodies[r.URL.Path]
+ n.mu.Unlock()
+
+ if r.Method == http.MethodPost || r.Method == http.MethodDelete {
+ w.WriteHeader(http.StatusOK)
+ return
+ }
+ if !found {
+ w.WriteHeader(http.StatusNotFound)
+ return
+ }
+ w.Header().Set("Content-Type", "image/jpeg")
+ w.WriteHeader(http.StatusOK)
+ if r.Method != http.MethodHead {
+ _, _ = io.WriteString(w, body)
+ }
+}
+
+func (n *recordingCarrierNode) seen() []string {
+ n.mu.Lock()
+ defer n.mu.Unlock()
+ return append([]string(nil), n.requests...)
+}
+
+func newThumbnailTestClient(t *testing.T, bodies map[string]string) (*Client, *recordingCarrierNode) {
+ t.Helper()
+ node := &recordingCarrierNode{bodies: bodies}
+ server := httptest.NewServer(node)
+ t.Cleanup(server.Close)
+ return New("", func(context.Context) string { return server.URL }), node
+}
+
+func thumbnailRequest() *http.Request {
+ return httptest.NewRequest(http.MethodGet, "/api/media/thumb", nil)
+}
+
+func TestStoreThumbnailWritesToProjectThumbnailsMount(t *testing.T) {
+ client, node := newThumbnailTestClient(t, nil)
+ local := filepath.Join(t.TempDir(), "thumb.jpg")
+ if err := os.WriteFile(local, []byte("jpeg bytes"), 0o600); err != nil {
+ t.Fatal(err)
+ }
+
+ size, err := client.StoreThumbnail(context.Background(), "ContentScanner", testThumbnailID, local)
+ if err != nil {
+ t.Fatalf("StoreThumbnail error: %v", err)
+ }
+ if size != int64(len("jpeg bytes")) {
+ t.Fatalf("StoreThumbnail size = %d, want %d", size, len("jpeg bytes"))
+ }
+ want := []string{"POST /api/mount/ContentScanner/thumbnails/" + testThumbnailID + ".jpg"}
+ if got := node.seen(); !slices.Equal(got, want) {
+ t.Fatalf("requests = %v, want %v", got, want)
+ }
+}
+
+func TestProxyThumbnailPrefersProjectMount(t *testing.T) {
+ mount := "/api/mount/MediaViewer/thumbnails/" + testThumbnailID + ".jpg"
+ legacy := "/thumbnails/" + testThumbnailID + ".jpg"
+ client, node := newThumbnailTestClient(t, map[string]string{mount: "from mount", legacy: "from legacy"})
+
+ rec := httptest.NewRecorder()
+ if !client.ProxyThumbnail(rec, thumbnailRequest(), "MediaViewer", testThumbnailID) {
+ t.Fatal("ProxyThumbnail missed although the mount holds the thumbnail")
+ }
+ if rec.Body.String() != "from mount" {
+ t.Fatalf("body = %q, want the mount copy", rec.Body.String())
+ }
+ for _, request := range node.seen() {
+ if !strings.Contains(request, "/api/mount/") {
+ t.Fatalf("legacy root was consulted although the mount had the thumbnail: %v", node.seen())
+ }
+ }
+}
+
+func TestProxyThumbnailFallsBackToLegacyRoot(t *testing.T) {
+ legacy := "/thumbnails/" + testThumbnailID + ".jpg"
+ client, _ := newThumbnailTestClient(t, map[string]string{legacy: "from legacy"})
+
+ rec := httptest.NewRecorder()
+ if !client.ProxyThumbnail(rec, thumbnailRequest(), "ContentScanner", testThumbnailID) {
+ t.Fatal("ProxyThumbnail missed although the legacy root holds the thumbnail")
+ }
+ if rec.Body.String() != "from legacy" {
+ t.Fatalf("body = %q, want the legacy copy", rec.Body.String())
+ }
+}
+
+func TestProxyThumbnailReportsMissingWithoutWriting(t *testing.T) {
+ client, _ := newThumbnailTestClient(t, nil)
+
+ rec := httptest.NewRecorder()
+ if client.ProxyThumbnail(rec, thumbnailRequest(), "ContentScanner", testThumbnailID) {
+ t.Fatal("ProxyThumbnail reported a hit for a thumbnail neither location holds")
+ }
+ if rec.Body.Len() != 0 {
+ t.Fatalf("ProxyThumbnail wrote %q on a miss; the caller needs a clean fallback", rec.Body.String())
+ }
+}
+
+func TestFetchThumbnailToScratchFallsBackToLegacyRoot(t *testing.T) {
+ legacy := "/thumbnails/" + testThumbnailID + ".jpg"
+ client, _ := newThumbnailTestClient(t, map[string]string{legacy: "from legacy"})
+
+ path, cleanup, err := client.FetchThumbnailToScratch(context.Background(), "ContentScanner", testThumbnailID, ".jpg")
+ if err != nil {
+ t.Fatalf("FetchThumbnailToScratch error: %v", err)
+ }
+ defer cleanup()
+ data, err := os.ReadFile(path)
+ if err != nil {
+ t.Fatal(err)
+ }
+ if string(data) != "from legacy" {
+ t.Fatalf("scratch contents = %q, want the legacy copy", data)
+ }
+}
+
+func TestDeleteStoredThumbnailRemovesMountAndLegacyCopies(t *testing.T) {
+ client, node := newThumbnailTestClient(t, nil)
+
+ if err := client.DeleteStoredThumbnail(context.Background(), "ContentScanner", testThumbnailID); err != nil {
+ t.Fatalf("DeleteStoredThumbnail error: %v", err)
+ }
+ want := []string{
+ "DELETE /api/mount/ContentScanner/thumbnails/" + testThumbnailID + ".jpg",
+ "DELETE /api/thumbnails/" + testThumbnailID,
+ }
+ if got := node.seen(); !slices.Equal(got, want) {
+ t.Fatalf("requests = %v, want %v", got, want)
+ }
+}
+
+func TestThumbnailIDsCannotEscapeTheThumbnailsDirectory(t *testing.T) {
+ client, node := newThumbnailTestClient(t, nil)
+ ctx := context.Background()
+
+ for _, id := range []string{"", ".", "..", "../secret", "nested/id"} {
+ if client.ProxyThumbnail(httptest.NewRecorder(), thumbnailRequest(), "ContentScanner", id) {
+ t.Errorf("ProxyThumbnail accepted id %q", id)
+ }
+ if _, _, err := client.FetchThumbnailToScratch(ctx, "ContentScanner", id, ".jpg"); err == nil {
+ t.Errorf("FetchThumbnailToScratch accepted id %q", id)
+ }
+ if _, err := client.StoreThumbnail(ctx, "ContentScanner", id, filepath.Join(t.TempDir(), "x.jpg")); err == nil {
+ t.Errorf("StoreThumbnail accepted id %q", id)
+ }
+ if err := client.DeleteStoredThumbnail(ctx, "ContentScanner", id); err == nil {
+ t.Errorf("DeleteStoredThumbnail accepted id %q", id)
+ }
+ }
+ if got := node.seen(); len(got) != 0 {
+ t.Fatalf("invalid thumbnail ids reached CarrierNode: %v", got)
+ }
+}
diff --git a/shared/backend/mediacore/mediacore.go b/shared/backend/mediacore/mediacore.go
index 86fc629..9351990 100644
--- a/shared/backend/mediacore/mediacore.go
+++ b/shared/backend/mediacore/mediacore.go
@@ -198,9 +198,7 @@ func (c *Core) thumbnailMediaIdentifier(w http.ResponseWriter, r *http.Request,
return
}
if !strings.Contains(id, string(filepath.Separator)) && !strings.Contains(id, "/") {
- thumbnailPath := "/thumbnails/" + id + ".jpg"
- if exists, _, _, err := c.carrierNode.Probe(r.Context(), thumbnailPath); err == nil && exists {
- c.carrierNode.Proxy(w, r, thumbnailPath)
+ if c.carrierNode.ProxyThumbnail(w, r, c.serviceName, id) {
return
}
}
@@ -212,8 +210,11 @@ func (c *Core) thumbnailMediaIdentifier(w http.ResponseWriter, r *http.Request,
WHERE m.media_key=$1 OR CAST(m.id AS TEXT)=$1
ORDER BY t.created_at DESC
LIMIT 1`, id).Scan(&thumbnailID); err == nil && SafeRelative(thumbnailID) {
- c.carrierNode.Proxy(w, r, "/thumbnails/"+thumbnailID+".jpg")
- return
+ // A row whose file CarrierNode no longer has falls through to the original image below,
+ // rather than proxying CarrierNode's 404.
+ if c.carrierNode.ProxyThumbnail(w, r, c.serviceName, thumbnailID) {
+ return
+ }
}
record, err := c.findMedia(r.Context(), id)
if err != nil || !isImagePath(record.FilePath) {
diff --git a/shared/packages/web-ui/package.json b/shared/packages/web-ui/package.json
index 2b6bb27..7807788 100644
--- a/shared/packages/web-ui/package.json
+++ b/shared/packages/web-ui/package.json
@@ -1,42 +1,42 @@
{
- "name": "@gabriel20xx/web-ui",
- "version": "0.1.1",
- "description": "Shared Svelte UI, layout, authentication, and account components for Gabriel20xx web projects.",
- "license": "MIT",
- "type": "module",
- "files": [
- "src",
- "README.md"
- ],
- "sideEffects": [
- "**/*.css"
- ],
- "peerDependencies": {
- "svelte": "^5.0.0"
- },
- "dependencies": {
- "@lucide/svelte": "1.28.0"
- },
- "devDependencies": {
- "@sveltejs/package": "^2.5.0",
- "@sveltejs/vite-plugin-svelte": "^6.0.0",
- "svelte": "^5.0.0",
- "svelte-check": "^4.0.0",
- "typescript": "^5.0.0"
- },
- "scripts": {
- "check": "svelte-check --tsconfig ./tsconfig.json",
- "package": "svelte-package"
- },
- "svelte": "./src/index.ts",
- "types": "./src/index.ts",
- "exports": {
- ".": {
- "types": "./src/index.ts",
- "svelte": "./src/index.ts",
- "import": "./src/index.ts"
- },
- "./styles.css": "./src/lib/styles.css",
- "./package.json": "./package.json"
- }
+ "name": "@gabriel20xx/web-ui",
+ "version": "0.1.1",
+ "description": "Shared Svelte UI, layout, authentication, and account components for Gabriel20xx web projects.",
+ "license": "MIT",
+ "type": "module",
+ "files": [
+ "src",
+ "README.md"
+ ],
+ "sideEffects": [
+ "**/*.css"
+ ],
+ "peerDependencies": {
+ "svelte": "^5.0.0"
+ },
+ "dependencies": {
+ "@lucide/svelte": "1.28.0"
+ },
+ "devDependencies": {
+ "@sveltejs/package": "^2.5.0",
+ "@sveltejs/vite-plugin-svelte": "^6.0.0",
+ "svelte": "^5.0.0",
+ "svelte-check": "^4.0.0",
+ "typescript": "^5.0.0"
+ },
+ "scripts": {
+ "check": "svelte-check --tsconfig ./tsconfig.json",
+ "package": "svelte-package"
+ },
+ "svelte": "./src/index.ts",
+ "types": "./src/index.ts",
+ "exports": {
+ ".": {
+ "types": "./src/index.ts",
+ "svelte": "./src/index.ts",
+ "import": "./src/index.ts"
+ },
+ "./styles.css": "./src/lib/styles.css",
+ "./package.json": "./package.json"
+ }
}
diff --git a/shared/packages/web-ui/src/lib/components/UserManagement.svelte b/shared/packages/web-ui/src/lib/components/UserManagement.svelte
index 557fab2..ae3a5c4 100644
--- a/shared/packages/web-ui/src/lib/components/UserManagement.svelte
+++ b/shared/packages/web-ui/src/lib/components/UserManagement.svelte
@@ -1,6 +1,6 @@