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

Add stylebook screen for classic themes #66851

Merged
merged 37 commits into from
Dec 10, 2024
Merged
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
4bca433
Boilerplate for classic stylebook
tellthemachines Nov 8, 2024
75b8d04
Add provider and settings
tellthemachines Nov 8, 2024
450891a
Fix link to dashboard
tellthemachines Nov 8, 2024
34a8ce9
Add customizer styles to the editor.
tellthemachines Nov 11, 2024
92dd468
Integrate overview section.
tellthemachines Nov 11, 2024
7085e03
Make items non-clickable
tellthemachines Nov 12, 2024
ead2507
Display classic theme color and gradient palettes
tellthemachines Nov 12, 2024
7a2ca05
Remove aria label if area isn't clickable
tellthemachines Nov 12, 2024
13f7efa
Update to use site editor layout with new route
tellthemachines Nov 19, 2024
4578bf9
Make style book default mobile view
tellthemachines Nov 20, 2024
f333acc
Rename things to be more future proof
tellthemachines Nov 20, 2024
9253755
update name
tellthemachines Nov 20, 2024
1d1fdea
Canvas shouldn't go into edit mode when resizing
tellthemachines Nov 20, 2024
21af508
Add core PR
tellthemachines Nov 22, 2024
9439ddc
lint PHP
tellthemachines Nov 22, 2024
63c2a95
Use site editor URL
tellthemachines Nov 25, 2024
2c93c4d
remove whitespace
tellthemachines Nov 25, 2024
f811ec3
Check existence of $submenu global
tellthemachines Nov 26, 2024
7727bbd
Update to single entry point for Stylebook and Patterns
tellthemachines Nov 28, 2024
a59c4b3
Remove wp_die handler as it's been added elsewhere
tellthemachines Dec 2, 2024
46341c5
Switch back mobile view
tellthemachines Dec 2, 2024
6f5bcac
Try showing the site preview instead of stylebook as Design entry point
tellthemachines Dec 2, 2024
cd0d065
Update Styles section sidebar to go back to Design
tellthemachines Dec 5, 2024
157108c
Remove top margin in preview
tellthemachines Dec 5, 2024
f230ba1
Update strings
tellthemachines Dec 6, 2024
9bb739b
only allow users with appropriate permissions
tellthemachines Dec 6, 2024
1e591b4
Move styles submenu item into compat folder
tellthemachines Dec 6, 2024
35a38c8
remove require
tellthemachines Dec 6, 2024
70bd056
Make preview very non-interactive
tellthemachines Dec 6, 2024
a122f2d
Make duotones work if declared.
tellthemachines Dec 6, 2024
fa9f97e
Only show Design submenu item if theme supports editor styles
tellthemachines Dec 6, 2024
0a50d01
Support theme.json in the absence of editor styles.
tellthemachines Dec 9, 2024
78d25eb
useMultiOriginPalettes instead of complicated logic
tellthemachines Dec 9, 2024
bc91ba9
Try fixing routes
tellthemachines Dec 9, 2024
344964d
Make sure editor canvas button exists
tellthemachines Dec 10, 2024
2dbc13f
Default value for prop
tellthemachines Dec 10, 2024
859de22
Add a test for classic style book
tellthemachines Dec 10, 2024
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
Prev Previous commit
Next Next commit
Update Styles section sidebar to go back to Design
tellthemachines committed Dec 9, 2024
commit cd0d0653940f2129afacc2f97df10923bbecf228
15 changes: 13 additions & 2 deletions packages/edit-site/src/components/site-editor-routes/stylebook.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,25 @@
/**
* WordPress dependencies
*/
import { __ } from '@wordpress/i18n';

/**
* Internal dependencies
*/
import SidebarNavigationScreenMain from '../sidebar-navigation-screen-main';
import SidebarNavigationScreen from '../sidebar-navigation-screen';
import { StyleBookPreview } from '../style-book';

export const stylebookRoute = {
name: 'stylebook',
path: '/stylebook',
areas: {
sidebar: <SidebarNavigationScreenMain />,
sidebar: (
<SidebarNavigationScreen
title={ __( 'Styles' ) }
backPath="/"
description={ __( 'Theme style book.' ) }
/>
),
preview: <StyleBookPreview />,
mobile: <StyleBookPreview />,
},