Skip to content

Project NOMAD is an offline-first knowledge and education server. Wikipedia, thousands of books, courses, maps, and optional local AI, all running on hardware you own with no internet required.

TypeScript

chore(dashboard): label the link tile field URL, drop the scheme hint

Chris Sherwoodce7c82a72fcd
diff --git a/admin/app/controllers/system_controller.ts b/admin/app/controllers/system_controller.ts
index c8eedeba..16efea6d 100644
--- a/admin/app/controllers/system_controller.ts
+++ b/admin/app/controllers/system_controller.ts
@@ -550,7 +550,7 @@ export default class SystemController {
if (!normalized) {
return response.status(422).send({
success: false,
- message: 'Enter a valid http(s) address, for example 192.168.1.50:8080 or https://nas.local.',
+ message: 'Enter a valid URL, for example 192.168.1.50:8080 or https://nas.local.',
})
}
@@ -617,7 +617,7 @@ export default class SystemController {
if (!normalized) {
return response.status(422).send({
success: false,
- message: 'Enter a valid http(s) address, for example 192.168.1.50:8080 or https://nas.local.',
+ message: 'Enter a valid URL, for example 192.168.1.50:8080 or https://nas.local.',
})
}
diff --git a/admin/inertia/components/LinkTileModal.tsx b/admin/inertia/components/LinkTileModal.tsx
index bd954a75..7f3d6c4f 100644
--- a/admin/inertia/components/LinkTileModal.tsx
+++ b/admin/inertia/components/LinkTileModal.tsx
@@ -117,7 +117,7 @@ export default function LinkTileModal({
<div>
<Input
name="linkUrl"
- label="Address"
+ label="URL"
placeholder="192.168.1.50:8080"
value={url}
onChange={(e) => setUrl(e.target.value)}
@@ -125,11 +125,11 @@ export default function LinkTileModal({
/>
{urlInvalid ? (
<p className="mt-1.5 text-xs text-red-500">
- Enter a valid http(s) address, for example 192.168.1.50:8080 or https://nas.local.
+ Enter a valid URL, for example 192.168.1.50:8080 or https://nas.local.
</p>
) : (
<p className="mt-1.5 text-xs text-text-muted">
- No scheme? We'll default to <span className="font-mono">http://</span>. Opens as:{' '}
+ Opens as:{' '}
<span className="font-mono break-all text-text-primary">
{normalized || 'not set yet'}
</span>