Skip to content

Commit 9535bd8

Browse files
Improved Performance panel page UI
Changed page description Added wordpress/i18n as dev-dependency
1 parent 7cd4c4f commit 9535bd8

File tree

10 files changed

+160
-13
lines changed

10 files changed

+160
-13
lines changed

build/assets/image-optimized-marker/image-optimized-marker.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/performance/performance-rtl.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/performance/performance.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('lodash', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-i18n'), 'version' => '77b4c260ba21ded40e4c');
1+
<?php return array('dependencies' => array('lodash', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-i18n'), 'version' => 'f703d9def50453bbd977');

build/performance/performance.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/performance/performance.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 143 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"devDependencies": {
2222
"@tailwindcss/forms": "^0.5.10",
2323
"@testing-library/cypress": "^10.0.3",
24+
"@wordpress/i18n": "^5.22.0",
2425
"@wordpress/scripts": "^30.15.0",
2526
"autoprefixer": "^10.4.21",
2627
"chalk": "^5.4.1",

src/components/App/getAppText.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { __ } from '@wordpress/i18n';
33
const getAppText = () => ( {
44
title: __( 'Performance', 'wp-module-performance' ),
55
description: __(
6-
'This is where you can manage performance settings for your website.',
6+
'Optimize your website by managing cache and performance settings',
77
'wp-module-performance'
88
),
99
} );

src/components/App/index.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import '../../store';
33
import '../../styles/styles.css';
44

55
// Newfold
6-
import { Container, Root, Page } from '@newfold/ui-component-library';
6+
import { Container, Root, Page, Title } from '@newfold/ui-component-library';
77
import { NewfoldRuntime } from '@newfold/wp-module-runtime';
88

99
// WordPress
@@ -35,12 +35,15 @@ const App = () => {
3535
<Root context={ { isRTL: false } }>
3636
<NotificationFeed />
3737
<Page title={ title }>
38+
<div>
39+
<Title as="h1" className="nfd-mb-2">
40+
{ title }
41+
</Title>
42+
<Title as="p" className="nfd-font-normal">
43+
{ description }
44+
</Title>
45+
</div>
3846
<Container>
39-
<Container.Header
40-
title={ title }
41-
description={ description }
42-
className="wppbh-app-settings-header"
43-
/>
4447
<Container.Block
4548
separator
4649
className="newfold-cache-settings"

0 commit comments

Comments
 (0)