mirror of
https://github.com/Crosstalk-Solutions/project-nomad.git
synced 2026-10-17 05:14:19 +02:00
chore(dashboard): label the link tile field URL, drop the scheme hint
"Address" was vague for a field that takes a URL. "No scheme? We'll default to http://" named a concept most people do not have a word for, and it was not needed: the live preview already shows http:// appearing the moment someone types a bare address, which demonstrates the behaviour rather than describing it. The preview stays, the sentence goes. The two link tile validation messages follow the same wording. The custom URL override message is left alone; it belongs to a different feature. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F8Mgg1vd2eKSs8StZiuyMV
This commit is contained in:
parent
c33af6a605
commit
ce7c82a72f
|
|
@ -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.',
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user