dotCMS / core

Headless/Hybrid Content Management System for Enterprises
http://dotcms.com
Other
864 stars 467 forks source link

FTM: New UVE Toolbar - Implement "Bookmarks" button #30728

Open KevinDavilaDotCMS opened 1 day ago

KevinDavilaDotCMS commented 1 day ago

Parent Issue

https://github.com/dotCMS/core/issues/30598

Task

Implement the logic for the "Bookmarks" button in the new UVE Toolbar component. This task involves creating a new store logic for the withEditorToolbar() feature store.

This implementation involves creating a new feature store (newWithEditorToolbar) that will conditionally replace the current withEditorToolbar based on the feature flag's status like

export function withEditorToolbar() {
    if(UVE_FUTURE_TIME_MACHINE_ENABLED) {
        return newWithEditorToolbar()
    }

    return oldWithEditorToolbar();
}

Proposed Objective

Add the "Bookmarks" button logic to the new toolbar and ensure it functions correctly under the feature flag.

Acceptance Criteria