Skip to content

feat(search): add navigation shortcuts to global search - #331

Closed
Iyamokuma wants to merge 2 commits into
apache:mainfrom
Iyamokuma:feat/global-search-nav-shortcuts
Closed

feat(search): add navigation shortcuts to global search#331
Iyamokuma wants to merge 2 commits into
apache:mainfrom
Iyamokuma:feat/global-search-nav-shortcuts

Conversation

@Iyamokuma

Copy link
Copy Markdown

Index permission-filtered sidebar routes so administrators can jump to settings pages like Offices or Chart of Accounts from the header and /search page.

What and why

Closes #

Verification

Screenshots

Checklist

  • I did not hand-edit generated files under src/app/api/.
  • New component or service code uses the adapter boundary in src/app/core/adapters/ instead of direct browser globals or imperative third-party APIs.
  • User-facing strings use translation keys.
  • I added or updated tests appropriate to this change, or explained why tests were not needed.
  • UI workflow changes include suitable e2e coverage, including real-backend testing where relevant.
  • Commits are signed — see Commit Signing in CONTRIBUTING.md.

@Aman-Mittal

Copy link
Copy Markdown
Member

@Iyamokuma Handle the Failing CI and also sign your commit, it should show VERIFIED in github

@Aman-Mittal

Copy link
Copy Markdown
Member

@Iyamokuma Please sign your commits

iyamokuma added 2 commits August 19, 2026 06:09
Index permission-filtered sidebar routes so administrators can jump to settings pages like Offices or Chart of Accounts from the header and /search page.
Keep main's searchRoutes ranking and developer-tools tests alongside the navigation shortcut feature, and adopt upstream savings account routing in the header search.
@Iyamokuma
Iyamokuma force-pushed the feat/global-search-nav-shortcuts branch from a72a147 to 27b8948 Compare August 20, 2026 11:19
@Aman-Mittal

Copy link
Copy Markdown
Member

@Iyamokuma

No user is associated with the committer email.
Learn about vigilant mode

@Aman-Mittal

Copy link
Copy Markdown
Member

see #392

Aman-Mittal added a commit that referenced this pull request Aug 22, 2026
… on the PR

Closes #428.

The signed-commit gate passed anything whose `%G?` was not `N`, which asks
"is a signature attached?". GitHub asks whether the signature was made by a
key registered to an account whose verified email matches the committer, and
a commit passes the first while failing the second routinely — #392 and #331
are both green on the check with every commit showing Unverified.

A runner cannot answer the stricter question: it holds no contributor public
keys. It does not need to. GitHub has already computed the answer and returns
it per commit as `commit.verification`, so the check now asks for that.

The gate also has to stop being editable by the branch it gates. Under
`pull_request` the workflow and its scripts come from the merge ref, so a
contributor can weaken their own check — which is how the accept-any-`gpgsig`
fallback in #392 came about. `pull_request_target` runs the base repository's
copy and carries a token that can comment, which a fork's `pull_request` run
deliberately does not. Neither workflow checks out or executes the PR's code;
both take a ref-less sparse checkout of `.github/scripts` and read only the
API. zizmor passes at the repository's own settings, with the two
`dangerous-triggers` ignores justified inline.

Failures now explain themselves on the PR, grouped by `verification.reason`,
because the remedies are not interchangeable. `no_user` — the reason on both
affected PRs — is not a signing problem at all: the signature is fine and
`user.email` is not an address on any GitHub account, so telling those
contributors to set up signing sends them to redo the part they got right.
One comment per PR, updated on push and deleted once every commit verifies.

`scripts/verify-signed-commits.sh` stays as a local pre-push aid, with a
header saying plainly that it is no longer the gate and cannot be one.

The welcome workflow covers the other half of the manual work: a first-time
contributor gets the code of conduct, the dev list, the Matrix rooms and the
handful of requirements that most often block a first change. It is short on
purpose — CONTRIBUTING.md and the PR template already state everything, and
restating all of it is repeating something that demonstrably does not land.

Neither workflow can be exercised by the PR that adds it, since
`pull_request_target` only ever runs the base branch's copy, so the unit
tests are the whole pre-merge safety net: comment idempotency, deletion on
success, never overwriting a human comment, and defusing `@`/`#` in
attacker-controlled commit subjects. Both scripts were also run against the
live API for #392 and #393 to confirm the verdict and the rendered comment.

Branch protection's "Require signed commits" remains the thing worth turning
on: GitHub enforces it itself and no workflow can weaken it. This check is
the explanation, not the wall.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants