This commit is contained in:
Andras Schmelczer 2026-05-13 12:11:54 +01:00
parent a08b5d2ae0
commit b98f0e3904
38 changed files with 3732 additions and 483 deletions

View file

@ -211,8 +211,8 @@ export function parseUrlState(): UrlState {
tab: 'area',
};
// Share-link code: grants bbox-scoped access to the area the link references
// even for unlicensed users. The backend looks the code up against PocketBase.
// Share-link code: may grant bbox-scoped access when the backend record
// contains an explicit server-created grant.
const share = params.get('share');
if (share && /^[a-z0-9]{1,20}$/i.test(share)) {
result.share = share;
@ -357,7 +357,7 @@ export function stateToParams(
}
const meta = features.find((f) => f.name === name);
if (meta?.type === 'enum') {
if (meta?.type === 'enum' || typeof value[0] === 'string') {
params.append('filter', `${name}:${(value as string[]).join('|')}`);
} else {
const [min, max] = value as [number, number];