Files
pastilhas 05d51302ec somewhere to go, because the settings screen was the whole plugin
The owner installed it, landed on the configuration form, and could not get off
it. Not a bug in the form: there was nothing behind it. One panel was registered
and it was the settings.

That is the wrong shape for a plugin regardless of how much is finished. A screen
whose only content is its own configuration reads as broken rather than
unfinished, because the first thing anybody does after installing is look for the
way forward.

So: collections on the left, links on the right, and the settings behind the gear
in the collections panel - reachable when something is wrong and out of the way
when it is not. Selection is `?collection=` in the URL rather than a channel, so
which collection you are looking at survives a reload and can be linked to.

Search is Linkwarden's own `searchQueryString`, which searches names,
descriptions, tags AND the archived page text - the thing a bookmark bar cannot
do, and the reason this is worth more than a list of addresses. Doing it here
would mean pulling every link to the browser and would still only see the fields
we happened to fetch. Verified against the instance: 50 unfiltered, 8 for "arch",
0 for a string matching nothing.

The panel holds no credential and could not send one. Every request goes through
the authenticated door, which finds the caller's mapped account and puts their
token on. `no Linkwarden account is mapped to you` is the state every user starts
in, so it is said as an instruction rather than rendered as an outage.
2026-09-05 21:17:21 +01:00

14 lines
585 B
TypeScript

import type { LayoutNode } from 'officerdev';
// The links are the screen; the collections are how you narrow them. 24/76 because a collection name is
// short and a saved page needs room for its title, its address and its tags without wrapping.
export const defaultLayout: LayoutNode = {
type: 'group',
id: 'linkwarden-root',
direction: 'horizontal',
children: [
{ node: { type: 'panel', id: 'linkwarden-collections', appType: 'linkwarden-collections' }, size: 24 },
{ node: { type: 'panel', id: 'linkwarden-links', appType: 'linkwarden-links' }, size: 76 },
],
};