Repository navigation
Description
What
data-browser-folder.js now renders type-driven panes for single resources, instead of only the JSON dump. JSS already embeds the resource as <script id="dataisland" type="application/ld+json"> and gives the module a <div id="mashlib">; the browser reads the dataisland, matches the primary subject's @type, and renders a pane:
bookmark:Bookmark→ a bookmark card (favicon, title, host, Open, saved date)wf:Tracker/ical:Vtodo→ a task list- containers → folder table (unchanged)
- anything else → pretty-printed JSON-LD (unchanged)
A collapsible Source sits under each pane. Folder + JSON paths are byte-for-byte unchanged, so there's no regression for existing views.
This mirrors the losos pane contract (canHandle(subject, store) / render(...) keyed on @type local name).
Status — prototype, live on a local pod
Currently running on a local pod via a temporary override: lib/start.js points --mashlib-module at the pod's own served copy (http://localhost:<port>/public/data-browser-folder.js) instead of the version-pinned jsDelivr URL. The cdn line is commented directly above it for easy revert.
Verified: bookmark and tracker resources render their panes on the pod page; folders and unknown types fall back exactly as before (DOM-shim execution test + live pod).
To productionize (the work this issue tracks)
- Import the real panes — the browser currently inlines the bookmark/tracker render functions. Switch to importing the canonical
panes/*.jsmodules so the browser and the pane standard share one source of truth (see the losos pane standard /bookmark-pane.js). - Publish + revert — ship a new jspod version so the cdn serves the updated browser by default, then revert the
lib/start.jsoverride. - Registry source — decide whether jspod ships a default
@type→ pane map or pulls it from losos. - Type coverage — bookmark + tracker to start; events, contacts, notes, etc. as data models land.
Files
data-browser-folder.js— pane rendering folded in (panes inlined for now)lib/start.js— temporary local-override ofdataBrowserUrl
Activity
melvincarvalho commentedon Jun 5, 2026
Superseded by #69. The fold-into-default-browser + node_modules-override approach here is replaced by a cleaner opt-in design: a new selectable
--browser panessibling browser whose panes live on the pod (no fork, no default-browser change). Closing in favor of #69.