[#7681] changed settings app url input to type=text

This commit is contained in:
Gani Georgiev
2026-05-06 19:40:44 +03:00
parent 4396369bb9
commit 3cedf032ca
5 changed files with 10 additions and 3 deletions

View File

@@ -6,6 +6,8 @@
- Serve fixed `Content-Type` for `.xlsx`, `.docx` and `.pptx` files to allow previews on iOS ([#7467](https://github.com/pocketbase/pocketbase/discussions/7467)).
- Changed settings app URL input to `type="text"` for compatibility with earlier versions ([#7681](https://github.com/pocketbase/pocketbase/issues/7681)).
- Added an internal watcher to sync various runtime states between multiple PocketBase processes (e.g. memory store) using the same `pb_data`.
_This is helpful in case for example a separate PocketBase console command change the collections or application settings while the server is still running._
_The watcher is debounced and implemented by watching the special `pb_data/.notify` dir as a workaround to avoid depending on OS and SQLite driver specific APIs._

View File

@@ -548,6 +548,7 @@ func (c MetaConfig) Validate() error {
return validation.ValidateStruct(&c,
validation.Field(&c.AccentColor, validation.Length(7, 7), is.HexColor),
validation.Field(&c.AppName, validation.Required, validation.Length(1, 255)),
// @todo when replacing the URL validator we may need a system migration to normalize values without protocol
validation.Field(&c.AppURL, validation.Required, is.URL),
validation.Field(&c.SenderName, validation.Required, validation.Length(1, 255)),
validation.Field(&c.SenderAddress, is.EmailFormat, validation.Required),

View File

File diff suppressed because one or more lines are too long

2
ui/dist/index.html vendored
View File

@@ -13,7 +13,7 @@
<!-- prism -->
<script src="./libs/prism/prism.js" data-manual></script>
<script type="module" crossorigin src="./assets/index-CXH-BQix.js"></script>
<script type="module" crossorigin src="./assets/index-xKkyzP6n.js"></script>
<link rel="modulepreload" crossorigin href="./assets/pocketbase.es-B_4DUNUU.js">
<link rel="stylesheet" crossorigin href="./assets/index-DR1PnFnr.css">
</head>

View File

@@ -207,7 +207,11 @@ export function pageApplicationSettings() {
t.input({
id: "meta.appURL",
name: "meta.appURL",
type: "url",
// note: text for compatibility with older versions
// (https://github.com/pocketbase/pocketbase/issues/7681)
//
// @todo consider reverting back to "url" once enforced on the backend too
type: "text",
required: true,
value: () => data.formSettings.meta.appURL || "",
oninput: (e) => (data.formSettings.meta.appURL = e.target.value),