← Back to Pull requests

feat: the drawer is the maintenance actions' home below lg (#367) #401

Merged
trueline-zcode-agent[bot] merged 8 files (358 lines) on Nov 30, 2026 03:32 UTC
View on GitHub
trueline-zcode-agent[bot] trueline-zcode-agent[bot] commented on Nov 30, 2026 03:26 UTC
Author

Accepted below-lg scope of the #367 proposal (the desktop-width question stays parked).

Below lg, the drawer is the maintenance actions' home. The drawer's footer has held Check Links, Remove Duplicates, Import / Export and Options since #297 — the same handlers, acting in place — so the header's strip stops rendering them there and keeps only what has no second home: the contextual Clear search, and the view selector above the stylesheet's 40rem line. Under 40rem every bookmark view renders one column anyway, so the selector has nothing to offer and leaves too; at phone widths the strip is empty and does not render at all — the header is the mobile mockup's (bookmarkit_mobile_manager): top bar and filter row, no strip, and no controls scrolling sideways with the scrollbar hidden. At 390px the header is the mockup's two rows. On lg windows and up nothing changes.

The two contextual entries keep their homes as the proposal sketches: the sweep starts from the drawer's Check Links and stops from the progress banner; the archive lookup lives inside Broken Links as Find Archive Snapshots.

Mechanics:

  • new useNarrowViewport hook ((max-width: 640px), the stylesheet's 40rem line) beside useSidebarViewport, same pre-paint read and listener idiom

  • the jsdom matchMedia stub in the shell tests now answers the two breakpoint queries coherently (one boolean = the wide/narrow pairing; motion and color-scheme queries stay off)

  • the one test that clicked the header's Options below lg now goes through the drawer, as a phone user must

  • tests: the strip from lg (scoped to the banner — the rail's footer carries the same names), the handoff below lg (header has none, drawer has all four), the empty strip at phone widths; plus the hook's own five

  • the mobile mockup already shows the destination state, so no mockup changes; README and DESIGN's #297 record updated; "the strip is the same at every width" comment replaced with the width rule

  • full npm run ci: 113 files / 1531 tests green (+8), version policy OK
  • Closes #367 (the lg-and-up removal remains parked — the issue's own "maintainer's call")

    <!-- agent-bot-write: ghw_38a503807cb504b5 session=acad26a80cec bot=trueline-zcode-agent[bot] -->

    Diff: 358 lines (+293 / -65) across 8 files Reviewer: qwts Review duration: 6m
    All Vouch review confidence checks passed
    Residual risk 0.33 = Change Risk (0.63) × (1 − Review Confidence (0.48)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.63 · 358 lines diff across 8 files
    0.63
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.41 · 1 substantive comment(s)
    0.41
    Model 3 · Review Timing & Attention
    Session adequacy: 70% · Reviewer familiarity: 35%
    47%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.352
    Rapid Merge rapid_merge
    0.100
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    3 items
    chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] commented on Nov 30, 2026 03:26 UTC
    Bot

    <!-- codex-pull-request-review-summary -->
    <!-- codex-review-state:v1 {"code_review":{"commit_sha":"2b48cd6662e0cf025027c773d2d38ddfb301c40a","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} -->

    <details>
    <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary>

    This comment shows the latest Codex review activity on this pull request.

    | Review | Status | Commit | Review trigger |
    | --- | --- | --- | --- |
    | 📝 Code Review | ✅ Completed <relative-time datetime="2026-11-30T03:27:58.780674Z">2026-11-30T03:27:58.780674Z</relative-time> | 2b48cd6 | PR opened |

    <details> <summary>ℹ️ About Codex in GitHub</summary>
    <br/>

    Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review

  • Mark a draft as ready

  • Comment "@codex review" or "@codex security review".
  • Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

    </details>

    </details>

    qwts qwts approved these changes on Nov 30, 2026 03:32 UTC
    Approved Reviewer

    Approved these changes.

    Reviewers
    Assignees
    trueline-zcode-agent[bot] trueline-zcode-agent[bot]
    Labels
    risk: low confidence: 47.6% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 63.4% (MEDIUM) · Higher = larger blast radius
    63.4%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 47.6% · Lower = rushed or shallow review
    47.6%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 33.2% · Safe to merge
    33.2%