Navbar: API link should be right-aligned / far right #326
Labels
No labels
actions
bug
cli
duplicate
enhancement
fork
forum
git storage
help wanted
insights
invalid
issues
moderation
oidc
ownership transfer
packages
pr/merge protection rules
projects
pull requests
question
releases
sponsorships
tags
webhooks
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
crueber/walhub#326
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What's requested
The Issues tab (
/:owner/:name/issues) should default to showing open issues only. Today it shows open and closed together; a user wanting the closed ones opts in via the State filter.Current state (code evidence)
web/src/pages/Issues.jsx:31-37— the list query readsstate: search.state || "", and the server treats an emptystateas "open + closed" (the filter select's own labels confirm it: empty option reads "open + closed",Issues.jsx:96-101).?state=param) fetches and renders both states intermixed.search.state(:100), so it will naturally show "open" as the selected option once the default flips — verify that binding reflects the effective default rather than the raw param.Proposed change
stateto"open"when the URL carries nostateparam:state: search.state ?? "open"is NOT enough (empty string is a legitimate "both" choice from the select) — the right shape is: treat absent param asopen, keep explicit?state=(including a possible "both" representation) honored as-is. Implementation detail for the implementer: either reservestate=all/bothas the explicit both-value and migrate the select's "open + closed" option to it, or treatundefinedas open and""as both — pick one, keep the URL honest, and note it in the PR.?milestone=<id>from the milestones page "View issues" button, #314) — they inherit the query default, so they'll show open-only too. That matches GitHub behavior; call it out in the PR so it's a decision, not an accident.Pulls.jsx) is NOT in scope of this request — leave as-is unless the user says otherwise (flag the inconsistency in the PR body for a follow-up decision).Acceptance criteria
/:owner/:name/issueswith no state param shows only open issues; the State select visibly reads "open".?state=closed, etc.) are honored exactly.?milestone=) default to open-only as well.aftercursor behavior unaffected (key already includes the query JSON).Filed in error (wrong body / duplicate) — closed.