feat(web): search the whole panel from one place
Finding anything meant knowing which tab it lived in — fine once you have learned the panel, hopeless before. ⌘K now covers cards, repositories, issues, wiki pages and members at once. Pages are matched in the browser, so the palette answers before it has asked the server and stays useful while the forge is down. Each remote source is queried independently and a source that fails is simply absent from the results, rather than taking the others with it. Issues come from one organization-wide request: per repository, the palette could not afford them on every keystroke. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
fcc82d82d6
commit
9acb523510
10 files changed
+926
-3
No files matched your search
@@ -40,6 +40,15 @@ export const org = {
|
||||
giteaRequest(`/orgs/${encodeURIComponent(owner)}/hooks`).then(asList),
|
||||
createRepo: (payload, owner = defaultOwner()) =>
|
||||
giteaRequest(`/orgs/${encodeURIComponent(owner)}/repos`, { method: 'POST', body: payload }),
|
||||
/**
|
||||
* Issues and pull requests of the whole organization, in one request.
|
||||
*
|
||||
* The per-repository endpoint would mean one call per repository, which the
|
||||
* command palette cannot afford on every keystroke. Absent before Gitea 1.15,
|
||||
* so callers tolerate a rejection.
|
||||
*/
|
||||
searchIssues: ({ owner = defaultOwner(), q, state = 'open', type, limit = 10 } = {}) =>
|
||||
giteaRequest(`/repos/issues/search${query({ q, owner, state, type, limit })}`).then(asList),
|
||||
/** Identity behind `GITEA_TOKEN`, used by the settings page to check the credentials. */
|
||||
whoami: () => giteaRequest('/user'),
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user