Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add messages about Toolbar support being deprecated #2027

Merged
merged 4 commits into from
Jan 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/sharp-items-smoke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@faustwp/core': minor
---

The Experimental Toolbar feature is being deprecated. You may continue using it but no further bug fixes will be provided.
4 changes: 4 additions & 0 deletions packages/faustwp-core/src/components/Toolbar/Toolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,10 @@ export function ToolbarAwaitUser({ seedNode }: ToolbarProps) {
export function Toolbar({ seedNode }: ToolbarProps) {
const { isAuthenticated } = useAuth();

console.warn(
`[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.`,
);

if (isAuthenticated !== true) {
return null;
}
Expand Down
6 changes: 6 additions & 0 deletions packages/faustwp-core/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ export function normalizeConfig(_config: FaustConfig): FaustConfig {
}
});

if (cfg.experimentalToolbar) {
console.warn(
`[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.`,
);
}

return extend(cfg, {});
}

Expand Down
Loading