Skip to content

Admin basic search unnecessarily expands advanced filters #70

Closed

Description

@jimhoyd

Browser acceptance of the styled admin console found that submitting a basic user search includes default sort=id and direction=asc values, causing the advanced-filter disclosure to reopen even when no advanced filters are selected. Keep it collapsed for default sort settings and expand it for actual advanced selections. Fix and regression coverage are being included in jimhoyd-com/urlcode-admin#4.

Activity

  1. jimhoyd commented on Sep 18, 2026

    @jimhoyd
    CollaboratorAuthor

    Fixed in admin commit 3cc257706b4594257d8b73dca133b7b931bd86f6, included in jimhoyd-com/urlcode-admin#4. Regression coverage and all34 admin tests pass. Final built-tarball browser test confirms a basic search keeps advanced controls collapsed while displaying the empty-result guidance. Leaving issue open until the PR merges.

  2. jimhoyd commented on Sep 18, 2026

    @jimhoyd
    CollaboratorAuthor

    The advanced-filter default-state fix and regression coverage have merged into urlcode-admin main through the reviewed admin PRs. Admin verification now passes on Node22/24/26: https://github.com/jimhoyd-com/urlcode-admin/actions/runs/35295649183 . Default sort settings keep advanced filters collapsed; actual advanced selections expand them.

  3. jimhoyd commented on Sep 18, 2026

    @jimhoyd
    CollaboratorAuthor

    Verified fixed on jimhoyd-com/urlcode-admin@edb6de8 (admin PR #4, merged as part of #5).

    • src/admin-reporting.ts:67-68 treats the default sort controls as non-advanced: the disclosure opens only when an advanced key carries a value that is not sort=id or direction=asc.
    • test/admin-reporting.test.ts:37 asserts a default browser GET (query, status, sort=id, direction=asc) leaves the disclosure collapsed, and line 38-39 asserts it opens for each of sort=email, direction=desc, role=member and verified=false — so both directions are covered, not just the reported symptom.

    Closing as completed.


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions