Skip to content

Owner page built around retention; Getting started becomes the return loop - #144

Merged
Darknode-Official merged 1 commit into
mainfrom
feat/owner-retention
Nov 29, 2026
Merged

Darknode-Official merged 1 commit into
mainfrom
feat/owner-retention

Conversation

@Darknode-Official

Copy link
Copy Markdown
Owner

Why

The old Owner console was a list of panels. It showed only the last time each person was seen, so there was no way to tell who came back from who signed up once. Getting started asked for setup chores (name the workspace, connect an AI key) instead of the things that bring people back.

What changed

Owner page (Deck scene owner, /owner, owner only)

  • The numbers leave out the owner's own account:
    • signed up, new this week, came back on another day (with %), used this week, used today;
    • a sign-up-to-habit funnel;
    • 8 weekly cohorts.
  • People table:
    • filters: everyone, active this week, came once, unverified, banned;
    • search and CSV export;
    • columns: days used, plan and Nexus/app use;
    • details per person with a 60-day activity strip, plus Ban/Unban.
  • "Waiting for you": plan requests (grant/dismiss), account deletion requests, feedback and client errors.
  • Site banner and ban list.
  • Owner entries now open this page: the sidebar, the account menu and Settings. An old /admin link goes here too.
  • Non-owners are sent to the Overview. The Firestore rules already keep these reads owner-only.

Activity days

  • When the Deck opens, launch.js records today in users/{uid}:
    • recentDays: UTC dates, last 60 days;
    • activeDays: an increment;
    • lastActiveDay.
  • It writes at most once a day. A tab left open and brought back on a later day is recorded too.
  • The logic is in the pure core/active-days.js. The existing rules allow these fields (noPrivEscalation), which was verified live.
  • Older accounts count as "came back" when their lastSeen is at least a day after they joined.

Getting started

  • The steps are now:
    1. Check your domain.
    2. Have Darknode watch it (done when a monitor exists).
    3. Get the Monday summary (one click turns on the digest).
  • Guests get a sign-up prompt instead.

Removed / archived

  • To unused-stuff/owner-console/: the old admin page code, preview-ui.js and admin-usage.js, plus their 5 tests.
  • public/js/admin.js keeps getWhitelist and the Deck launcher re-exports.
  • The old "Remove" button only deleted the Firestore profile. It is not carried over; account deletion goes through the deletion queue.

Copy

  • Docs Privacy, the TOS Section 14 data list (a wording clarification of "login timestamps", no TOS_VERSION bump) and the changelog.
  • explain.js gets scene.owner, and the hosting rewrites are synced.

Verified

  • npm test: 5215 pass, including the new tests for retention maths and activity days.
  • Local build against the staging Worker, with a throwaway verified Free account (deleted afterwards; a re-signup proved it gone):
    • the day write landed (recentDays, activeDays: 1);
    • Getting started showed 1/3, then 2/3 after "Turn on" for the summary, and was hidden at 3/3 once a watch existed;
    • /owner and /admin as a non-owner went to the Overview, with no nav or menu entry.
  • Owner page in the real Deck, with Firestore stubbed in the test build only:
    • KPIs, funnel and cohorts are correct for the fixture;
    • writes for grant, ban and banner match the old console's data shapes;
    • at 390px: no overflow.
  • Not tested with the real owner account (no owner credentials here). The reads and writes are the same calls the old page made.

The console Admin page is replaced by an Owner scene at /owner (owner only):
- Retention first: people signed up, new this week, came back on another day,
  used it this week and today; a sign-up-to-habit funnel; weekly cohorts.
- People table, most recently seen first, with filters (active this week, came
  once, unverified, banned), search, days used, plan, Nexus/app use, a 60-day
  activity strip per person, ban/unban and CSV export.
- One inbox for plan requests, account deletion requests, feedback and errors.
- Site banner and ban list.

To measure return visits, the Deck records the dates it was opened (last 60 days)
and a count of such days on users/{uid}, at most one write a day.

Getting started on the Overview becomes the return loop: check your domain,
have Darknode watch it (alert emails), turn on the Monday summary.

The old admin page code, the Preview UI and the usage list are archived under
unused-stuff/owner-console/. Docs Privacy, the TOS data list and the changelog
mention the new dates.
@Darknode-Official
Darknode-Official merged commit 9c4fd6d into main Nov 29, 2026
10 checks passed
@Darknode-Official
Darknode-Official deleted the feat/owner-retention branch November 29, 2026 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant