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

The owner's home shows no asks; the planner's decline moves to /board and the asks page (test updated on purpose) #2782

Parked opened this
Closed without merging

The owner's home now renders no asks, no for-you or things-for-me list, and no count. Asks live on /asks, which is now a real page. I couldn't run the type check because bun x tsc fails in this sandbox on a read-only tempdir.

Notes

stopped parked by the crew

opened this

The owner's home now renders no asks, no for-you or things-for-me list, and no count. Asks live on /asks, which is now a real page. I couldn't run the type check because bun x tsc fails in this sandbox on a read-only tempdir. The asks, home, planner-declined, live-pages, proposal and review suites pass (142 tests). A full bun test run had 7 failures, none of them in the suites above. These matched the type-check, chromium, SSH and scaffold-typecheck tests. The two that weren't obviously environment (crew-proposal, web) pass in isolation, with and without my change.

What changed

  • Home: studioHome no longer builds or shows the needs-you section, its script or its live region.
  • /asks: previously a redirect to /#needs-you, it now renders the needs-you section itself. A signed-out visitor is sent to sign in.
  • Moved to /asks: the /live/on-you fragment and the bulk preview, receipt and Undo. Decide, mute, listen, setting and proposal replies now return there too.
  • Top bar: a plain "Asks" link with no count badge, plus an "Asks" line in the user menu.
  • Board links: the board's asks links point at /asks.
  • README: updated to say the home shows no asks.

Tests

  • test/planner-declined.test.ts, "a decline is an ask for the owner…", is the test that changed. It now expects / to not contain "The planner declined the direction", and expects /asks to contain it and the link to the direction issue's comment box. /board's expectations are unchanged. The old assertion was exactly what the owner asked to remove.
  • Six-asks test: "five rows by default…" in test/asks-rank.test.ts now also checks that / with six open asks contains none of them: no needs-you, live-on-you, asks-sentence or ask- markers, no "things need you" text, and the Asks link has no count.
  • Other updated tests: the other suites that read asks from / (asks, asks-expiry, asks-waiting-for, asks-mute, review-wait, hand-decider, proposal-card, home-feed) now read /asks. The /?op= redirect expectation in asks-bulk became /asks?op=. The live-pages test now expects live-on-you on /asks and not on /. The /asks redirect test in asks.test.ts now expects the sign-in redirect.

Left out

  • No keyboard shortcut for the Asks link.
  • The terminal's "On you" card is unchanged, because the issue is about the web home.

To try: sign in as an owner with open asks and open /, which shows none. Click "Asks" in the top bar to see them.

Closes #2764

commented

The owner's home now renders no asks, no for-you or things-for-me list, and no count. Asks live on /asks, which is now a real page. I couldn't run the type check because bun x tsc fails in this sandbox on a read-only tempdir. The asks, home, planner-declined, live-pages, proposal and review suites pass (142 tests). A full bun test run had 7 failures, none of them in the suites above. These matched the type-check, chromium, SSH and scaffold-typecheck tests. The two that weren't obviously environment (crew-proposal, web) pass in isolation, with and without my change.

What changed

  • Home: studioHome no longer builds or shows the needs-you section, its script or its live region.
  • /asks: previously a redirect to /#needs-you, it now renders the needs-you section itself. A signed-out visitor is sent to sign in.
  • Moved to /asks: the /live/on-you fragment and the bulk preview, receipt and Undo. Decide, mute, listen, setting and proposal replies now return there too.
  • Top bar: a plain "Asks" link with no count badge, plus an "Asks" line in the user menu.
  • Board links: the board's asks links point at /asks.
  • README: updated to say the home shows no asks.

Tests

  • test/planner-declined.test.ts, "a decline is an ask for the owner…", is the test that changed. It now expects / to not contain "The planner declined the direction", and expects /asks to contain it and the link to the direction issue's comment box. /board's expectations are unchanged. The old assertion was exactly what the owner asked to remove.
  • Six-asks test: "five rows by default…" in test/asks-rank.test.ts now also checks that / with six open asks contains none of them: no needs-you, live-on-you, asks-sentence or ask- markers, no "things need you" text, and the Asks link has no count.
  • Other updated tests: the other suites that read asks from / (asks, asks-expiry, asks-waiting-for, asks-mute, review-wait, hand-decider, proposal-card, home-feed) now read /asks. The /?op= redirect expectation in asks-bulk became /asks?op=. The live-pages test now expects live-on-you on /asks and not on /. The /asks redirect test in asks.test.ts now expects the sign-in redirect.

Left out

  • No keyboard shortcut for the Asks link.
  • The terminal's "On you" card is unchanged, because the issue is about the web home.

To try: sign in as an owner with open asks and open /, which shows none. Click "Asks" in the top bar to see them.

commented

Parked by the crew: the check failed ("a refused cross-origin mutation says why in the log > a mismatched origin is refused and logged with both origins") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs