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) #2784

Parked opened this
Closed without merging

The owner's home now shows no asks, and the check failure from the last push is addressed. I'm fairly confident of the cause but couldn't confirm it here, since the failure only shows up in the full-suite run. The check failure.

Notes

stopped parked by the crew deploy 3121e94

opened this

The owner's home now shows no asks, and the check failure from the last push is addressed. I'm fairly confident of the cause but couldn't confirm it here, since the failure only shows up in the full-suite run.

The check failure. test/web.test.ts > "a mismatched origin is refused and logged with both origins" reads the refusal from the captured log. That refusal is logged at warn level. In a full-suite run an earlier test file leaves the log floor raised, so the warning was never written and the test saw an empty log. The test passes on its own and passes alongside the asks tests. I couldn't tell which earlier file leaves the floor raised, so I fixed the test: that describe now holds the floor at warn with quietLogs("warn") and puts it back afterwards. The test was wrong, not the code. I did not re-run the full suite after this change, so the forge's check is the confirmation. That was the only failing test the check reported.

What changed

  • Home: it renders no for-you list, ask list, things-for-me list or count. The needs-you section, its script and its live region are gone from /.
  • /asks: it is now a real page holding the asks. A signed-out visitor is sent to sign in. The bulk preview, receipt and Undo, plus decide, mute, listen, setting and proposal replies, all return there. The /live/on-you fragment moved with them.
  • Top bar: a plain "Asks" link with no count badge, and an "Asks" line in the user menu. The board's asks links point at /asks.
  • README: it says the home shows no asks.

Tests

  • test/planner-declined.test.ts: the test "a decline is an ask for the owner…" is the one I changed on purpose. It now expects / to not contain "The planner declined the direction" and /asks to contain it, with the link to the direction issue's comment box. /board's expectations are unchanged. The old assertion on / was exactly what the owner asked to remove.
  • Six open asks: the test "five rows by default…" in test/asks-rank.test.ts also checks that / with six open asks has none of them. That means no needs-you, on-you, sentence or ask-card markers, no "things need you" text, and an Asks link with no count.
  • Other suites: the suites that read asks from / now read /asks: asks, asks-expiry, asks-waiting-for, asks-mute, asks-bulk, review-wait, hand-decider, proposal-card, home-feed and live-pages.
  • Last run: the asks, home, planner-declined, live-pages, proposal-card and review suites passed (142 tests) before this push. I couldn't run the type check because bun x tsc fails in this sandbox on a read-only tempdir. The full-suite run's other failures all looked sandbox-related: the type-check, chromium, SSH and scaffold-typecheck tests.

Left out: there is no keyboard shortcut for the Asks link, and the terminal's "On you" card is unchanged.

To try it, sign in as an owner with open asks. / shows none, and the top bar's "Asks" opens them at /asks.

Closes #2764

commented

The owner's home now shows no asks, and the check failure from the last push is addressed. I'm fairly confident of the cause but couldn't confirm it here, since the failure only shows up in the full-suite run.

The check failure. test/web.test.ts > "a mismatched origin is refused and logged with both origins" reads the refusal from the captured log. That refusal is logged at warn level. In a full-suite run an earlier test file leaves the log floor raised, so the warning was never written and the test saw an empty log. The test passes on its own and passes alongside the asks tests. I couldn't tell which earlier file leaves the floor raised, so I fixed the test: that describe now holds the floor at warn with quietLogs("warn") and puts it back afterwards. The test was wrong, not the code. I did not re-run the full suite after this change, so the forge's check is the confirmation. That was the only failing test the check reported.

What changed

  • Home: it renders no for-you list, ask list, things-for-me list or count. The needs-you section, its script and its live region are gone from /.
  • /asks: it is now a real page holding the asks. A signed-out visitor is sent to sign in. The bulk preview, receipt and Undo, plus decide, mute, listen, setting and proposal replies, all return there. The /live/on-you fragment moved with them.
  • Top bar: a plain "Asks" link with no count badge, and an "Asks" line in the user menu. The board's asks links point at /asks.
  • README: it says the home shows no asks.

Tests

  • test/planner-declined.test.ts: the test "a decline is an ask for the owner…" is the one I changed on purpose. It now expects / to not contain "The planner declined the direction" and /asks to contain it, with the link to the direction issue's comment box. /board's expectations are unchanged. The old assertion on / was exactly what the owner asked to remove.
  • Six open asks: the test "five rows by default…" in test/asks-rank.test.ts also checks that / with six open asks has none of them. That means no needs-you, on-you, sentence or ask-card markers, no "things need you" text, and an Asks link with no count.
  • Other suites: the suites that read asks from / now read /asks: asks, asks-expiry, asks-waiting-for, asks-mute, asks-bulk, review-wait, hand-decider, proposal-card, home-feed and live-pages.
  • Last run: the asks, home, planner-declined, live-pages, proposal-card and review suites passed (142 tests) before this push. I couldn't run the type check because bun x tsc fails in this sandbox on a read-only tempdir. The full-suite run's other failures all looked sandbox-related: the type-check, chromium, SSH and scaffold-typecheck tests.

Left out: there is no keyboard shortcut for the Asks link, and the terminal's "On you" card is unchanged.

To try it, sign in as an owner with open asks. / shows none, and the top bar's "Asks" opens them at /asks.

commented

Parked by the crew: the check failed ("a hold is set, shown and lifted > a hold asks nothing of the person who set it; another person who writes is still asked") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs