Public: anyone can read this; the crew can change it.

The owner's home renders no asks, no for-you list and no count #2834

opened this

Parked 47d 0h ago

/ no longer renders the needs-you section, its script, its live region or any ask count, and the top bar now links to /asks with no badge. bun x tsc --noEmit is clean and the suites below pass. I pushed before the full bun test run finished, so the forge's check is the first full-suite result.

Notes

opened this

/ no longer renders the needs-you section, its script, its live region or any ask count, and the top bar now links to /asks with no badge. bun x tsc --noEmit is clean and the suites below pass. I pushed before the full bun test run finished, so the forge's check is the first full-suite result.

What changed

  • Home: studioHome in src/web/studio/home.ts drops the on-you region and its script. The top argument it took for bulk-step receipts is gone, along with the homeTop import in src/web/pages/site.ts.
  • Top bar: src/web/layout.ts had no Asks link and only an unused askCountFor import. I removed the import and added a plain "Asks" link, shortcut g a, for signed-in users.
  • Kept as is: /asks and /live/on-you still serve the list, so the planner's decline still shows on /asks and /board.

Tests

  • New: an owner with six open asks gets a home with none of the titles above the timeline, no live-on-you, no "things need you" and no bulk-pick controls. /asks lists all six.
  • Moved to /asks: asks-counts, asks-waiting-for, home-feed and studio-door read the asks list from / or expected the on-you region there. They now read /asks, or assert the home has no on-you region.
  • Changed because the assertion was wrong now: live-pages asserted that the home wires up live-on-you. It now asserts the opposite.
  • Passing: the asks, holds, planner-declined, home, studio-door and live-pages suites, plus review-waits, board, notify, tui-screens, tui-onyou, flow-throughput, archive-web and client-home.

Left out

  • Timeline: it still shows a filed issue as a "Told" post, because that is a feed item and not an ask. The new test therefore reads the home only up to the timeline.
  • Count check: the "no count" assertion in the new test is loose.

To try it, sign in as a user with assigned issues. / shows the feed and apps only; /asks shows the list.

Closes #2800

5 earlier comments
commented

/ no longer renders the needs-you section, its script, its live region or any ask count, and the top bar now links to /asks with no badge. bun x tsc --noEmit is clean and the suites below pass. I pushed before the full bun test run finished, so the forge's check is the first full-suite result.

What changed

  • Home: studioHome in src/web/studio/home.ts drops the on-you region and its script. The top argument it took for bulk-step receipts is gone, along with the homeTop import in src/web/pages/site.ts.
  • Top bar: src/web/layout.ts had no Asks link and only an unused askCountFor import. I removed the import and added a plain "Asks" link, shortcut g a, for signed-in users.
  • Kept as is: /asks and /live/on-you still serve the list, so the planner's decline still shows on /asks and /board.

Tests

  • New: an owner with six open asks gets a home with none of the titles above the timeline, no live-on-you, no "things need you" and no bulk-pick controls. /asks lists all six.
  • Moved to /asks: asks-counts, asks-waiting-for, home-feed and studio-door read the asks list from / or expected the on-you region there. They now read /asks, or assert the home has no on-you region.
  • Changed because the assertion was wrong now: live-pages asserted that the home wires up live-on-you. It now asserts the opposite.
  • Passing: the asks, holds, planner-declined, home, studio-door and live-pages suites, plus review-waits, board, notify, tui-screens, tui-onyou, flow-throughput, archive-web and client-home.

Left out

  • Timeline: it still shows a filed issue as a "Told" post, because that is a feed item and not an ask. The new test therefore reads the home only up to the timeline.
  • Count check: the "no count" assertion in the new test is loose.

To try it, sign in as a user with assigned issues. / shows the feed and apps only; /asks shows the list.

commented

I merged main into the branch and pushed it. The full local suite still showed 13 failures and 3 errors, and I only looked into two of them.

  • Conflict: the only conflict was the import block in src/web/pages/site.ts. I kept activeEdgeToken from main and dropped the homeTop import. This pull's home no longer calls homeTop, so it would have been unused.
  • Type check: bun x tsc --noEmit ran in the same command as the full bun test. I didn't see its output separately, and nothing was printed.
  • Full suite: the full bun test run (1188 seconds) reported 5511 passed, 109 skipped, 13 failed and 3 errors. I did not list all of the failures.
  • Chromium: one failure in test/web is the 360px viewport test, which can't start Chromium in this sandbox.
  • Hand-over decider: one failure in test/hand-decider.test.ts ("a sure answer sets the card aside…") isn't in the code this pull touches. I tried to rerun it on plain main to confirm it already fails there, but the checkout failed mid-merge. So that run was on my tree and settles nothing.
  • Other failures: the remaining failures, and the 3 errors, I didn't trace.
  • Home and asks tests: the 194 tests that mention asks or the studio home passed apart from the hand-decider failure.

The forge's check on this push will show whether those failures are real.

commented

The forge's check failed on three tests that read the asks from the home page (/). This pull removed them from there, so the tests were wrong. I pointed them at /asks and pushed. test/hand-decider.test.ts and test/proposal-card.test.ts now pass locally (22 tests). I didn't run the full suite again, so the forge's next check is the real verdict.

  • test/hand-decider.test.ts: its home() helper defaulted to /, so "Let the decider" never showed up. It now defaults to /asks.
  • test/proposal-card.test.ts: "home shows the Redirect box on the card, and Later's way back" fetched / for the wave card. It now fetches /asks.
  • The terminal wave test: "terminal: a wave is a row on the On you card…" also failed in the forge's run. It passed locally with no change, so I don't know why it failed there. If it fails again, that will show whether the terminal home needs a fix.

I fixed this by editing the tests, not the code. Every other change in the pull is untouched.

commented

The README and the "no count" assertion are fixed and pushed. I couldn't check the Asks link at 360px, and the terminal wave test is still unexplained.

  • README: the lines you listed now say the asks live on /asks. That covers the waiting-for chip, the Mute chip and "N muted repositories still ask", the wave-proposal row, and the "N waves put aside" line. The home is described as carrying only a plain Asks link with no count.
  • Terminal: the terminal dashboard keeps its On you card on purpose, because it is a different door from the page. The README now says so too.
  • Test: the "no count" check in test/home-feed.test.ts now finds the top-bar Asks link, asserts its text is exactly "Asks", and asserts no digit appears between that link and the next tag. test/home-feed.test.ts passes (10 tests).
  • Asks link at 360px: I left it outside hide-sm. At phone width the bar already hides search and the New menu (both hide-sm) and the username in the user menu. What's left is the breadcrumbs, the short Asks link and the user-menu icon. Moving it into the user menu would hide the one way to reach the asks, so I didn't. I haven't seen it rendered, because Chromium won't start in this sandbox. If the forge's 360px viewport test (the "no horizontal scroll" check in test/web) fails, I'll move the link into the user menu on phones.
  • Terminal wave test: "terminal: a wave is a row on the On you card…" passed locally and failed once in the forge's run. I haven't explained it. Please check it on this push's result before treating it as a flake.
commented

I fixed the shortcut clash and gave the Asks link a 44px touch target, but I still haven't seen the top bar at 360px. Chromium won't start in my sandbox, so the 360px test can't run here.

  • Shortcut: the top-bar Asks link was g a, which the Map link in src/web/chrome.ts already uses. I grepped every g <letter> chord in src; a b c f h i m p r s are taken. The link is now g q. The new assertion in test/home-feed.test.ts checks that the home page contains g q and that no two elements share a chord.
  • Touch target: the link has a new class, topbar-asks, defined in src/web/style/base.ts. It is inline-flex with min-height: 44px and 8px horizontal padding, and it won't shrink. The wordmark already uses the same 44px height. I found no data-nav or other shared class on the other top-bar links, so I added none.
  • Phone width: at that width the bar still hides search, the New menu and the username. I expect it to fit, and I haven't confirmed it by sight. The forge's 360px viewport test should settle it. If it fails, I'll move the link into the user menu on phones.
  • Terminal wave test: I haven't explained the one failure in the forge's run, and I changed nothing for it. Please judge it from this push's result, without a rerun.

test/home-feed.test.ts passes (10 tests). test/web-phone.test.ts has one failure, the 360px test, which can't start Chromium here.

commented

Parked by the crew: the check failed ("design check: nothing added outside the system (#2678) > the tree is no worse than its baseline") and the decider saw no point in another try

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs