Skip to content

Commit 3edf586

Browse files
authored
Overhaul acp search (#6682)
- Built-in providers registered via the new PSR-14 ProviderCollecting event instead of the DBO/PIP. The PIP, DBO, cache builder, and legacy ACPSearchProviderAction are marked @deprecated 6.3 and the acpSearchProvider PIP instruction is dropped from package.xml. - New RPC endpoint GET /core/acp/search replaces ACPSearchProviderAction::getSearchResultList(). Permission is gated by admin.general.canUseAcp; each provider still enforces its own admin permission. - WCF.ACP.Search jQuery class rewritten as the TypeScript module WoltLabSuite/Core/Acp/Ui/Search (with API client WoltLabSuite/Core/Api/Acp/Search). Bootstrap initializes it automatically; the legacy `new WCF.ACP.Search()` call in header.tpl is removed. Closes #6681
1 parent 1dd65e7 commit 3edf586

22 files changed

Lines changed: 922 additions & 287 deletions

File tree

com.woltlab.wcf/acpSearchProvider.xml

Lines changed: 0 additions & 41 deletions
This file was deleted.

com.woltlab.wcf/package.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
<instruction type="clipboardAction" />
3030
<instruction type="objectTypeDefinition" />
3131
<instruction type="objectType" />
32-
<instruction type="acpSearchProvider" />
3332
<instruction type="style">defaultStyle.tar</instruction>
3433

3534
<instruction type="userOption" run="standalone" />

ts/WoltLabSuite/Core/Acp/Bootstrap.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import * as Core from "../Core";
1010
import { BoostrapOptions, setup as bootstrapSetup } from "../Bootstrap";
1111
import * as UiPageMenu from "./Ui/Page/Menu";
1212
import AcpUiPageMenuMainBackend from "./Ui/Page/Menu/Main/Backend";
13+
import { setup as setupAcpSearch } from "./Ui/Search";
1314

1415
interface AcpBootstrapOptions {
1516
bootstrap: BoostrapOptions;
@@ -33,4 +34,5 @@ export function setup(options: AcpBootstrapOptions): void {
3334

3435
bootstrapSetup(options.bootstrap);
3536
UiPageMenu.init();
37+
setupAcpSearch();
3638
}

0 commit comments

Comments
 (0)