Skip to content

Commit 8f133f5

Browse files
authored
chore: add messages about Toolbar support being deprecated (#2027)
* chore: add messages about Toolbar support being deprecated * changeset * fix: formatting * tweak language
1 parent a30ccd1 commit 8f133f5

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

.changeset/sharp-items-smoke.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@faustwp/core': minor
3+
---
4+
5+
The Experimental Toolbar feature is being deprecated. You may continue using it but no further bug fixes will be provided.

packages/faustwp-core/src/components/Toolbar/Toolbar.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,10 @@ export function ToolbarAwaitUser({ seedNode }: ToolbarProps) {
217217
export function Toolbar({ seedNode }: ToolbarProps) {
218218
const { isAuthenticated } = useAuth();
219219

220+
console.warn(
221+
`[Faust.js] As the team shifts focus to new work on [Headless WordPress](https://github.com/wpengine/hwptoolkit), the Admin Toolbar, which was ~~experimental~~, will no longer be actively maintained. No further updates will be made.`,
222+
);
223+
220224
if (isAuthenticated !== true) {
221225
return null;
222226
}

packages/faustwp-core/src/config/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ export function normalizeConfig(_config: FaustConfig): FaustConfig {
7676
}
7777
});
7878

79+
if (cfg.experimentalToolbar) {
80+
console.warn(
81+
`[Faust.js] As the team shifts focus to new work on [Headless WordPress](https://github.com/wpengine/hwptoolkit), the Admin Toolbar, which was ~~experimental~~, will no longer be actively maintained. No further updates will be made.`,
82+
);
83+
}
84+
7985
return extend(cfg, {});
8086
}
8187

0 commit comments

Comments
 (0)