git clone https://garage44.eu/jeroen/cartopolis.git.. /docs/mockups/workspace/v1-office.html
<!doctype html>
<html lang="en"><head><meta charset="utf-8"><title>Cartopolis workspace — v1, the office and places</title><link rel="stylesheet" href="style.css">
<style>
.plan { position:absolute; inset:58px 0 0 0; background:
linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0/24px 24px,
linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0/24px 24px, var(--panel); }
.room { position:absolute; border:3px solid #cfc9bf; background:rgba(242,239,234,.04); border-radius:2px; }
.room .rl { position:absolute; left:12px; top:10px; color:var(--cream); font-weight:600; font-size:14px; }
.room .rs { position:absolute; left:12px; top:30px; color:var(--dim); font-size:12px; display:flex; align-items:center; gap:5px; }
.room.sel { border-color:var(--accent); background:rgba(254,117,47,.08); }
.room.closed { background:repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 8px, transparent 8px 16px); }
.gap { position:absolute; background:var(--panel); }
.dot { position:absolute; transform:translate(-50%,-50%); }
.dot .av { box-shadow:0 0 0 2px var(--panel); }
.floors { position:absolute; right:16px; top:76px; display:flex; flex-direction:column; gap:6px; z-index:3; }
.floors div { width:44px; height:36px; border-radius:var(--r); display:grid; place-items:center; background:var(--raised); color:var(--dim); font-size:13px; }
.floors .on { background:var(--accent); color:var(--ink); font-weight:600; }
.sticky { position:absolute; z-index:4; width:180px; background:#f3e3a3; color:#2b2418; border-radius:4px 4px 4px 0; padding:8px 10px; font-size:12.5px; box-shadow:0 8px 18px rgba(0,0,0,.35); transform:rotate(-2deg); }
.sticky b { display:block; font-size:11.5px; color:#6b5a2a; }
.res { padding:9px 12px; border-bottom:1px solid var(--gline); }
.res .src { color:var(--dim); font-size:11.5px; display:flex; gap:6px; align-items:center; }
.res p { color:var(--text); font-size:13.5px; margin-top:2px; }
.tabs2 { display:flex; gap:4px; padding:8px 12px; border-bottom:1px solid var(--gline); }
.tabs2 div { padding:5px 10px; border-radius:var(--r); color:var(--dim); font-size:13px; }
.tabs2 .on { background:var(--raised); color:var(--cream); }
</style></head>
<body>
<svg width="0" height="0" style="position:absolute">
<symbol id="hash" viewBox="0 0 24 24"><path d="M5 9h14M4 15h14M10 3 8 21M16 3l-2 18"/></symbol>
<symbol id="lock" viewBox="0 0 24 24"><rect x="5" y="11" width="14" height="10" rx="2"/><path d="M8 11V8a4 4 0 0 1 8 0v3"/></symbol>
<symbol id="search" viewBox="0 0 24 24"><circle cx="11" cy="11" r="7"/><path d="m20 20-4-4"/></symbol>
<symbol id="head" viewBox="0 0 24 24"><path d="M4 15v-3a8 8 0 0 1 16 0v3"/><rect x="3" y="14" width="4" height="6" rx="1.5"/><rect x="17" y="14" width="4" height="6" rx="1.5"/></symbol>
<symbol id="video" viewBox="0 0 24 24"><rect x="3" y="6" width="13" height="12" rx="2"/><path d="m16 10 5-3v10l-5-3"/></symbol>
<symbol id="mic" viewBox="0 0 24 24"><rect x="9" y="3" width="6" height="11" rx="3"/><path d="M5 11a7 7 0 0 0 14 0M12 18v3"/></symbol>
<symbol id="screen" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="12" rx="2"/><path d="M8 20h8M12 16v4"/></symbol>
<symbol id="pin" viewBox="0 0 24 24"><path d="M12 21s-6-5.5-6-11a6 6 0 0 1 12 0c0 5.5-6 11-6 11z"/><circle cx="12" cy="10" r="2.2"/></symbol>
<symbol id="chat" viewBox="0 0 24 24"><path d="M4 5h16v11H9l-5 4z"/></symbol>
<symbol id="globe" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"/><path d="M3 12h18M12 3c3 3.2 3 14.8 0 18M12 3c-3 3.2-3 14.8 0 18"/></symbol>
<symbol id="plus" viewBox="0 0 24 24"><path d="M12 5v14M5 12h14"/></symbol>
<symbol id="at" viewBox="0 0 24 24"><circle cx="12" cy="12" r="4"/><path d="M16 12v1.5a2.5 2.5 0 0 0 5 0V12a9 9 0 1 0-4 7.5"/></symbol>
<symbol id="smile" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"/><path d="M8.5 14.5a4.5 4.5 0 0 0 7 0M9 9.5h.01M15 9.5h.01"/></symbol>
<symbol id="thread" viewBox="0 0 24 24"><path d="M5 4h14v9H11l-4 3v-3H5z"/><path d="M9 20h6l3 2v-2"/></symbol>
<symbol id="build" viewBox="0 0 24 24"><path d="M4 21V8l8-5 8 5v13M9 21v-6h6v6M3 21h18"/></symbol>
<symbol id="users" viewBox="0 0 24 24"><circle cx="9" cy="8" r="3.5"/><path d="M2.5 20a6.5 6.5 0 0 1 13 0M16 4.5a3.5 3.5 0 0 1 0 7M18 14a6 6 0 0 1 3.5 6"/></symbol>
<symbol id="eye" viewBox="0 0 24 24"><path d="M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z"/><circle cx="12" cy="12" r="3"/></symbol>
<symbol id="arrow" viewBox="0 0 24 24"><path d="M5 12h14M13 6l6 6-6 6"/></symbol>
<symbol id="x" viewBox="0 0 24 24"><path d="M6 6l12 12M18 6 6 18"/></symbol>
<symbol id="bell" viewBox="0 0 24 24"><path d="M6 16V11a6 6 0 0 1 12 0v5l2 2H4z"/><path d="M10 21h4"/></symbol>
<symbol id="cube" viewBox="0 0 24 24"><path d="M12 3 4 7.5v9L12 21l8-4.5v-9z"/><path d="M4 7.5 12 12l8-4.5M12 12v9"/></symbol>
<symbol id="walk" viewBox="0 0 24 24"><circle cx="13" cy="4.5" r="2"/><path d="M10 21l2-6-3-3 1-5 4 3 3 1M12 15l3 2 1 4M10 7l-3 2-1 3"/></symbol>
<symbol id="clock" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></symbol>
<symbol id="door" viewBox="0 0 24 24"><path d="M5 21V3h11v18M3 21h16M13 12h.01"/></symbol>
<symbol id="grid" viewBox="0 0 24 24"><rect x="3" y="3" width="8" height="8" rx="1.5"/><rect x="13" y="3" width="8" height="8" rx="1.5"/><rect x="3" y="13" width="8" height="8" rx="1.5"/><rect x="13" y="13" width="8" height="8" rx="1.5"/></symbol>
<symbol id="note" viewBox="0 0 24 24"><path d="M5 3h10l4 4v14H5z"/><path d="M14 3v5h5M8 13h8M8 17h5"/></symbol>
<symbol id="hand" viewBox="0 0 24 24"><path d="M8 13V5.5a1.5 1.5 0 0 1 3 0V12M11 11V4.5a1.5 1.5 0 0 1 3 0V12M14 11.5V6a1.5 1.5 0 0 1 3 0v8c0 4-2.5 7-6.5 7S5 18 4 15l-1.5-3.5a1.5 1.5 0 0 1 2.6-1.4L8 13"/></symbol>
<symbol id="moon" viewBox="0 0 24 24"><path d="M20 14.5A8 8 0 1 1 9.5 4 6.5 6.5 0 0 0 20 14.5z"/></symbol>
<symbol id="cal" viewBox="0 0 24 24"><rect x="3" y="5" width="18" height="16" rx="2"/><path d="M3 10h18M8 3v4M16 3v4"/></symbol>
</svg>
<h1><span class="wm">carto<i>polis</i></span> workspace — <em>the office is a building, a place is a search term</em></h1>
<p class="lede">Two ideas that only a world can offer a work chat. A team's <b>home is a real building</b>, owned through the existing building ownership and laid out in the existing building editor, and its rooms are the places people drop into. And because every point, call and note happened <b>somewhere</b>, a building or a street can be searched like a word can.</p>
<!-- ───────────────────────── E: the office ───────────────────────── -->
<div class="screen">
<div class="browser">
<div class="chrome"><div class="dots"><i></i><i></i><i></i></div><div class="url">cartopolis.org<b>/w/atelier-noord/building</b></div></div>
<div class="app">
<div class="rail">
<img class="logo" src="../../../assets/icon/cartopolis.svg">
<div class="ws c4 on">AN</div><div class="ws c2">GM</div><div class="sp"></div>
<div class="av c7" style="width:38px;height:38px">L<span class="pr here" style="border-color:var(--ink)"></span></div>
</div>
<div class="side">
<div class="wsh"><h3>Atelier Noord</h3><div class="home"><svg class="i s"><use href="#build"/></svg>Oude Ebbingestraat 44 · 3 floors</div></div>
<div class="sec">
<div class="it on"><span class="hash"><svg class="i s"><use href="#build"/></svg></span><span class="n">The building</span><span class="pl">7 in</span></div>
<div class="it"><span class="hash"><svg class="i s"><use href="#thread"/></svg></span><span class="n">Threads</span></div>
</div>
<div class="sec"><h4>Rooms</h4>
<div class="it"><span class="hash"><svg class="i s"><use href="#door"/></svg></span><span class="n">Studio · 2F</span><div class="stack"><div class="av xs c1">S</div><div class="av xs c6">D</div><div class="av xs c4">P</div></div></div>
<div class="it unread"><span class="hash"><svg class="i s"><use href="#door"/></svg></span><span class="n">Meeting room · 2F</span><span class="live" style="margin-right:4px"></span><div class="stack"><div class="av xs c3">F</div><div class="av xs c5">M</div></div></div>
<div class="it"><span class="hash"><svg class="i s"><use href="#door"/></svg></span><span class="n">Quiet room · 2F</span><span class="pl"><svg class="i s"><use href="#moon"/></svg></span></div>
<div class="it"><span class="hash"><svg class="i s"><use href="#door"/></svg></span><span class="n">Kitchen · 0F</span><div class="stack"><div class="av xs c2">J</div></div></div>
<div class="it"><span class="hash"><svg class="i s"><use href="#door"/></svg></span><span class="n">Front door · 0F</span><span class="badge" style="background:var(--raised);color:var(--text)">1 guest</span></div>
</div>
<div class="sec"><h4>Channels</h4>
<div class="it"><span class="hash">#</span><span class="n">general</span></div>
<div class="it"><span class="hash">#</span><span class="n">ebbinge-quarter</span></div>
<div class="it"><span class="hash">#</span><span class="n">design-review</span></div>
</div>
</div>
<div class="main">
<div class="chh">
<div class="t"><b>Oude Ebbingestraat 44 · 2nd floor</b><span>Drawn in the building editor · rooms belong to the workspace</span></div>
<div class="seg"><div class="on"><svg class="i s"><use href="#grid"/></svg>Plan</div><div><span class="live"></span>World</div></div>
</div>
<div class="plan"><div style="position:absolute;inset:0;transform:scale(.76);transform-origin:0 0">
<div class="room sel" style="left:40px;top:40px;width:340px;height:300px"><span class="rl">Studio</span><span class="rs"><svg class="i s"><use href="#head"/></svg>open room · talking</span></div>
<div class="room" style="left:380px;top:40px;width:220px;height:190px"><span class="rl">Meeting room</span><span class="rs"><span class="live"></span>call · 18 min</span></div>
<div class="room closed" style="left:600px;top:40px;width:150px;height:190px"><span class="rl">Quiet room</span><span class="rs"><svg class="i s"><use href="#moon"/></svg>door closed</span></div>
<div class="room" style="left:380px;top:230px;width:370px;height:110px"><span class="rl">Hall and stairs</span></div>
<div class="room" style="left:40px;top:340px;width:710px;height:270px"><span class="rl">Desks</span><span class="rs">walk up to someone to talk, as at a real desk</span></div>
<div class="gap" style="left:180px;top:336px;width:60px;height:8px"></div>
<div class="gap" style="left:440px;top:226px;width:50px;height:8px"></div>
<div class="gap" style="left:376px;top:270px;width:8px;height:50px"></div>
<div class="gap" style="left:640px;top:226px;width:44px;height:8px;background:#cfc9bf"></div>
<svg style="position:absolute;left:600px;top:250px" width="140" height="80"><g stroke="#8a857c" stroke-width="2" fill="none"><path d="M10 10h120M10 22h120M10 34h120M10 46h120M10 58h120M10 70h120"/></g></svg>
<div class="dot" style="left:150px;top:170px"><div class="av c1" style="box-shadow:0 0 0 2px var(--panel),0 0 0 5px var(--accent)">S</div></div>
<div class="dot" style="left:220px;top:200px"><div class="av c6">D</div></div>
<div class="dot" style="left:280px;top:150px"><div class="av c4">P</div></div>
<div class="dot" style="left:470px;top:130px"><div class="av c3">F</div></div>
<div class="dot" style="left:530px;top:150px"><div class="av c5">M</div></div>
<div class="dot" style="left:200px;top:470px"><div class="av c7" style="box-shadow:0 0 0 2px var(--panel),0 0 0 4px #fff">L</div></div>
<div class="dot" style="left:510px;top:520px"><div class="av c2" style="opacity:.45">J</div></div>
<div class="chip" style="position:absolute;left:470px;top:555px">Joris's desk · in the kitchen now</div>
<div class="chip" style="position:absolute;left:120px;top:500px">You</div>
<svg style="position:absolute;left:150px;top:200px" width="70" height="260"><path d="M50 255 C 40 170, 20 120, 6 4" fill="none" stroke="var(--accent)" stroke-width="2" stroke-dasharray="3 6"/></svg>
</div><div class="floors"><div>3F</div><div class="on">2F</div><div>1F</div><div>0F</div></div>
</div>
</div>
<div class="pane" style="width:300px">
<div class="ph">Studio <span>open room</span></div>
<div style="padding:14px 16px">
<div style="height:130px;border-radius:var(--r-lg);background:url(building.jpg) 50% 35%/cover;margin-bottom:12px;position:relative"><span class="chip" style="position:absolute;left:8px;bottom:8px">inside, from the door</span></div>
<p style="color:var(--dim);font-size:13px;margin-bottom:12px">Talking about the courtyard. Walking in joins the room's voice; walking out leaves it. Same encrypted call as any other.</p>
<div class="sec" style="padding:0">
<div class="it"><div class="av sm c1">S</div><span class="n" style="color:var(--cream)">Sanne</span><span class="live"></span></div>
<div class="it"><div class="av sm c6">D</div><span class="n">Daan</span></div>
<div class="it"><div class="av sm c4">P</div><span class="n">Pieter</span><span class="pl">muted</span></div>
</div>
<div style="display:flex;gap:8px;margin-top:14px"><div class="btn pri" style="flex:1;justify-content:center"><svg class="i s"><use href="#walk"/></svg>Walk in</div><div class="btn" style="flex:1;justify-content:center"><svg class="i s"><use href="#eye"/></svg>Listen in</div></div>
<div style="border-top:1px solid var(--gline);margin-top:16px;padding-top:12px">
<div style="color:var(--dim);font-size:11.5px;text-transform:uppercase;letter-spacing:.6px;margin-bottom:8px">Front door</div>
<div style="display:flex;gap:10px;align-items:center"><div class="av sm c7" style="background:#4a5257">?</div><div style="flex:1"><b style="color:var(--cream);font-size:13.5px">Guest: R. de Vries</b><div style="color:var(--dim);font-size:12px">came in through your invite link</div></div><div class="btn">Let in</div></div>
</div>
</div>
</div>
</div>
</div>
<div class="notes">
<h2><span>E</span>The office is a building <span class="new">new</span></h2>
<ul>
<li>The workspace's home is <b>a real building</b>. Ownership and floor plans already exist: one account owns the building, and its rooms are drawn in the building editor at <code>/building/{pand}</code>. A workspace borrows that building's rooms.</li>
<li><b>Plan</b> is the floor plan seen from above, drawn by the web UI from the same design, so it is light, readable and works without starting the viewer. <b>World</b> is the building in 3D, with the floors you can walk through that the app already has.</li>
<li><b>An open room is a call you walk into.</b> Studio has a running conversation; entering it is joining. <b>Listen in</b> joins muted, for half-attention.</li>
<li><b>A closed door means busy</b>, as in a real office: the quiet room has a closed door, and entering means knocking. Your own status follows where you sit: in the quiet room you are on focus, at your desk you are available.</li>
<li><b>Desks</b>: every member has one. Walking up to someone's desk asks them for a quick word, like stopping by. Joris's desk shows where he is now.</li>
<li><b>Guests come in through the front door</b>: an invite link places them at the entrance and somebody lets them in. Nobody gets access to a channel by accident.</li>
</ul>
</div>
</div>
<!-- ───────────────────────── F: a place as a search ───────────────────────── -->
<div class="screen">
<div class="browser">
<div class="chrome"><div class="dots"><i></i><i></i><i></i></div><div class="url">cartopolis.org<b>/w/atelier-noord/place/NL.IMBAG.Pand.0014100010903891</b></div></div>
<div class="app">
<div class="rail">
<img class="logo" src="../../../assets/icon/cartopolis.svg">
<div class="ws c4 on">AN</div><div class="ws c2">GM</div><div class="sp"></div>
<div class="av c7" style="width:38px;height:38px">L<span class="pr world" style="border-color:var(--ink)"></span></div>
</div>
<div class="main">
<div class="world" style="background-image:url(grote-markt.jpg)"></div>
<svg style="position:absolute;inset:0;z-index:2" viewBox="0 0 892 800" preserveAspectRatio="none"><polygon points="430,395 560,372 600,470 470,500" fill="rgba(160,200,230,.30)" stroke="#fff" stroke-width="2.5"/></svg>
<div class="float glass" style="left:14px;right:14px;top:12px;display:flex;align-items:center;gap:12px;padding:8px 10px 8px 12px">
<div class="search" style="margin:0;flex:1;background:var(--ink);color:var(--text)"><svg class="i s"><use href="#search"/></svg>Noorderhaven 3<span style="flex:1"></span><span style="color:var(--dim)">or click a building</span></div>
<div class="seg"><div><svg class="i s"><use href="#chat"/></svg>Chat</div><div class="on"><span class="live"></span>World</div></div>
</div>
<div class="sticky" style="left:560px;top:300px"><b>Note · Joris · #ebbinge-quarter</b>Side entrance is locked after 16:00, ring at the site office.</div>
<div class="pin" style="left:470px;top:385px"><div class="lab"><span class="num">1</span>North facade</div><div class="stem"></div><div class="dot"></div></div>
<div class="chip float" style="left:14px;bottom:14px"><svg class="i s"><use href="#note"/></svg>Notes stay on the building. Anyone in the channel sees them when they get there.</div>
</div>
<div class="pane" style="width:360px">
<div class="ph">Noorderhaven 3 <span>1912 · housing · 4 storeys</span></div>
<div class="tabs2"><div class="on">Said here · 9</div><div>Notes · 1</div><div>Facts</div></div>
<div class="res"><div class="src"><svg class="i s"><use href="#pin"/></svg># ebbinge-quarter · Joris · today 09:12</div><p>Scaffolding is down on the north side. The brick reads a lot darker…</p></div>
<div class="res"><div class="src"><svg class="i s"><use href="#head"/></svg>Call in the courtyard · yesterday · 41 min</div><p>Points from the call: <span class="num" style="display:inline-grid;width:18px;height:18px;font-size:10px;border-width:1.5px;vertical-align:-3px">2</span> <span class="num" style="display:inline-grid;width:18px;height:18px;font-size:10px;border-width:1.5px;vertical-align:-3px">3</span> · walked route</p></div>
<div class="res"><div class="src"><svg class="i s"><use href="#lock"/></svg>partners · Fatima · 2 Oct</div><p>Owner agreed to the brick colour if the municipality signs off.</p></div>
<div class="res"><div class="src"><svg class="i s"><use href="#hash"/></svg># design-review · Daan · 28 Sep</div><p>Rev 7 of the facade drawing, window frames now anthracite</p></div>
<div class="res"><div class="src"><svg class="i s"><use href="#bell"/></svg>Notice · Gemeente Groningen · underway</div><p>Pavement works, Noorderhaven, until 31 Oct</p></div>
<div class="res" style="color:var(--dim);font-size:12.5px;border:0">+ 4 more · only messages you can read, searched on this device</div>
</div>
</div>
</div>
<div class="notes">
<h2><span>F</span>A place is a search term <span class="new">new</span></h2>
<ul>
<li><b>Click a building, get its history in the workspace</b>: every message with a point on it, every call held there, every note left on it, from all the channels you are in. Search for an address and you get the same.</li>
<li>Results are keyed to the <b>building's BAG number</b>, which every drawn building already carries. A point that was made "at a building" stays with that building even if the conversation drifted elsewhere.</li>
<li><b>Search happens on your own device.</b> Private messages are encrypted, so the server cannot search them; each device keeps its own index of what it can read. The results come from three channels and one private group, each marked as such.</li>
<li><b>Notes</b> <span class="new">new</span>: a message left on a facade instead of in a stream. It shows up in the world for members of the channel it was posted in, nobody else.</li>
<li>Municipal notices (chat-world v5) show up in the same list, so the official status of the street sits beside what the team said about it.</li>
</ul>
</div>
</div>
<div class="grid g2">
<div class="box"><h3>Build order, smallest useful first</h3><ul>
<li><b>1. A chat client in the web UI</b>: workspaces, channels, threads, DMs, point cards, in the shared palette. The web UI needs the app's encryption to do this, built for the browser as its own small module, with keys in the same browser storage the viewer uses.</li>
<li><b>2. World inside the page</b>: the existing web viewer embedded in the main column, started on first use, showing the channel's points and area.</li>
<li><b>3. Calls in the grid</b>, through the browser's own WebRTC (<code>webcall.js</code> already does this for the viewer). UDP only, as today; a TURN fallback for networks that block UDP is a later option.</li>
<li><b>4. Share my view</b>: the cheapest of the world ideas (camera position over the call) and the one most obviously better than anything a normal work chat can do.</li>
<li><b>5. Room calls with distance</b>, then <b>6. the building as office</b>, then <b>7. search by place and notes</b>.</li>
</ul></div>
<div class="box"><h3>Open questions</h3><ul>
<li><b>What a workspace is.</b> Proposed: a named set of encrypted group chats, plus a member list and a building. The server sees who is in which workspace and channel (it already sees chat membership), and nothing that is said.</li>
<li><b>A channel everybody in the workspace can join</b> has to let a new member read back. With encryption that means a member's device hands over the history, or new members see only what comes after they joined.</li>
<li><b>Viewer download on first World.</b> The viewer is the large part of the page, so it loads only when World is first opened and is cached after. To measure: how long the first open takes on an ordinary laptop.</li>
<li><b>Location in a work context.</b> Real location stays per channel and until a set time, as in the app. A workspace setting to turn it off entirely is probably needed for employers.</li>
<li>On a phone the web UI should fall back to the app's own chat layout (chat-world v5) rather than squeeze this one down.</li>
</ul></div>
</div>
</body></html>