You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Logged-in users can share a read-only view of their tasks, history, done list, and monthly report with anyone via a unique link.
227
+
228
+
**How it works**
229
+
230
+
1. Click "share live view" in the top bar (next to the theme toggle). A popover opens with an Enable/Disable toggle.
231
+
2. Click "Enable" to generate a share link. The link appears in the popover with a "Copy" button.
232
+
3. The link looks like `https://doingit.online/shared/<uuid>`. Anyone who opens it sees the user's live tasks, history, done list, and monthly report — all read-only, no login required. The shared view polls every 5 seconds for live updates.
233
+
4. Click "Disable" to revoke the share token. Existing links stop working.
234
+
5. Viewers who are not logged in see a prominent call-to-action banner at the top inviting them to try Doing It.
235
+
6. All interactive elements (search, session controls, delete buttons, later input) are hidden in shared view. Data is fetched from public `/shared/{token}/*` endpoints that require no authentication.
236
+
237
+
**API endpoints**
238
+
239
+
| Method | Path | Description |
240
+
|--------|------|-------------|
241
+
|`GET`|`/share/status`| Check if sharing is enabled and get token (auth required) |
242
+
|`POST`|`/share/enable`| Generate or return existing share token (auth required) |
|`GET`|`/shared/{token}/done/stats`| Public: done stats and sparkline |
247
+
|`GET`|`/shared/{token}/report/monthly`| Public: 30-day time report |
248
+
249
+
## Task ordering
250
+
251
+
Today's tasks are ordered by most recently finished session. When you stop a running task, it stays at the top of the list. Running tasks always appear first, followed by tasks sorted by their latest completed session timestamp (descending). This means the task you just worked on is always easy to find.
252
+
253
+
## Later list drag-and-drop
254
+
255
+
Later (to-do) items can be reordered by dragging. Hover over an item to reveal the drag handle on the left (same position as the shortcut numbers in the task list). Drag an item up or down to change its position. New items are added at the top of the list.
256
+
224
257
## Data
225
258
226
259
All task data is stored per-user in a Postgres database. Locally this is the `tt` database on your Postgres.app instance. In production it's the Fly.io Postgres cluster attached to the app.
Copy file name to clipboardExpand all lines: index.html
+17-3Lines changed: 17 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -96,8 +96,23 @@
96
96
<divid="app">
97
97
98
98
<divclass="theme-bar">
99
+
<buttonclass="header-share-live" id="header-share" style="display:none" title="Share a live URL so others can follow your progress in real time">share live view</button>
0 commit comments