Skip to content

Commit

Permalink
Rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
dkmyta committed Dec 18, 2024
2 parents 130eaf4 + aac1879 commit a1018bf
Show file tree
Hide file tree
Showing 348 changed files with 4,137 additions and 1,395 deletions.
11 changes: 11 additions & 0 deletions .github/files/lint-project-structure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -635,4 +635,15 @@ while IFS= read -r FILE; do
done < <( git grep -h --line-number --column -o "$RE" "$FILE" )
done < <( git -c core.quotepath=off grep -l "$RE" )

# - Check for `random(` in scss files.
debug "Checking for SCSS random."
while IFS= read -r FILE; do
EXIT=1
while IFS=: read -r LINE COL X; do
X=${X%(}
echo "::error file=$FILE,line=$LINE,col=$COL::Do not use SCSS \`$X()\`. It means that every build will have different CSS, dirtying the diffs (and making for redudant Simple deploys if this gets into a relevant plugin)."
done < <( git grep -h --line-number --column -o '\(random\|unique-id\)\s*(' "$FILE" )
done < <( git -c core.quotepath=off grep -l '\(random\|unique-id\)\s*(' '*.sass' '*.scss' )


exit $EXIT
20 changes: 20 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions projects/github-actions/pr-is-up-to-date/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ jobs:
This action is intended to be triggered by `pull_request_target` or `pull_request` targeting the specified branch, and by a `push` to the specified tags.
It will not work for pushes to anything else.

### Permissions required

This action needs access to read pull request data and create status checks.

For OAuth apps and classic access tokens, that's `repo:status`.

For GitHub Apps and fine-grained access tokens, that's read and write for repository "Commit statuses" (`statuses`) and read-only for "Pull requests" (`pull-requests`).

### On pull request

```yaml
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Update docs with permissions for GitHub Apps and fine-grained access tokens.
13 changes: 10 additions & 3 deletions projects/github-actions/required-review/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,19 @@ This action is intended to be triggered by the `pull_request_review` event.
request-reviews: true

# GitHub Access Token. The user associated with this token will show up
# as the "creator" of the status check, and must have access to read
# pull request data, create status checks (`repo:status`), and to read
# your organization's teams (`read:org`).
# as the "creator" of the status check, and must have the permissions
# documented below.
token: ${{ secrets.SOME_TOKEN }}
```
### Permissions required
This action needs access to read pull request data, request reviewers, create status checks, and to read your organization's teams.
For OAuth apps and classic access tokens, that's `repo:status` and `read:org`.

For GitHub Apps and fine-grained access tokens, that's read and write for repository "Commit statuses" (`statuses`) and "Pull requests" (`pull-requests`), and read-only for organization "Members".

## Requirements Format

The requirements consist of an array of requirement objects. A requirement object has the following keys:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Update docs with permissions for GitHub Apps and fine-grained access tokens.
8 changes: 8 additions & 0 deletions projects/github-actions/test-results-to-slack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,14 @@ The action relies on the following parameters.
- (Optional) `playwright_report_path` is the path to the JSON report, output from Playwright test runner JSON reporter. See [Playwright's docs](https://playwright.dev/docs/test-reporters#json-reporter) for details on how to generate this file. If specified, it will be parsed and failures details will be included in the message. You can use the glob pattern to specify multiple files. For example: `playwright_report_path: 'artifacts/**/report.json'`.
- (Optional) `playwright_output_dir` is the path to the Playwright's configured output directory, where results and attachments are saved. It is needed when the artefacts are downloaded from a previous job, and the absolute paths to attachments found in the JSON report are not valid anymore. This path will be used to convert the paths to those attachments. You can use the glob pattern. For example: `playwright_output_dir: 'artifacts/**/results'`

### GitHub permissions required

This action needs access to list jobs for workflow runs.

For OAuth apps and classic access tokens, no special scopes are needed.

For GitHub Apps and fine-grained access tokens, that's read-only for repository "Actions" (`actions`).

### Slack token

You will need to [create a Slack bot for your workspace](https://slack.com/intl/en-hu/help/articles/115005265703-Create-a-bot-for-your-workspace) for the action to use. The bot will need the following scopes:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Update docs with permissions for GitHub Apps and fine-grained access tokens.
16 changes: 12 additions & 4 deletions projects/js-packages/ai-client/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,29 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.25.2] - 2024-12-16
### Changed
- Updated package dependencies. [#40564]

### Fixed
- Fixed lints following ESLint rule changes for TS. [#40584]

## [0.25.1] - 2024-12-09
### Changed
- AI Assistant: Add disclaimer to image generation modals [#40397]
- AI Assistant: Add disclaimer to image generation modals. [#40397]
- Updated package dependencies. [#40363]

## [0.25.0] - 2024-11-25
### Added
- AI Client: split disabled prop to allow disabling input and action button separately [#40210]
- AI Client: split disabled prop to allow disabling input and action button separately. [#40210]

### Changed
- AI Client: fix prompt cursor to text when editable [#40247]
- AI Client: fix prompt cursor to text when editable. [#40247]
- Updated package dependencies. [#40288]

## [0.24.3] - 2024-11-18
### Changed
- AI Client: add effect on AiModalInputPrompt to update/set prompt on prop update [#40113]
- AI Client: add effect on AiModalInputPrompt to update/set prompt on prop update. [#40113]

## [0.24.2] - 2024-11-11
### Changed
Expand Down Expand Up @@ -476,6 +483,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- AI Client: stop using smart document visibility handling on the fetchEventSource library, so it does not restart the completion when changing tabs. [#32004]
- Updated package dependencies. [#31468] [#31659] [#31785]

[0.25.2]: https://github.com/Automattic/jetpack-ai-client/compare/v0.25.1...v0.25.2
[0.25.1]: https://github.com/Automattic/jetpack-ai-client/compare/v0.25.0...v0.25.1
[0.25.0]: https://github.com/Automattic/jetpack-ai-client/compare/v0.24.3...v0.25.0
[0.24.3]: https://github.com/Automattic/jetpack-ai-client/compare/v0.24.2...v0.24.3
Expand Down

This file was deleted.

5 changes: 0 additions & 5 deletions projects/js-packages/ai-client/changelog/update-eslint-9

This file was deleted.

2 changes: 1 addition & 1 deletion projects/js-packages/ai-client/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": false,
"name": "@automattic/jetpack-ai-client",
"version": "0.25.1",
"version": "0.25.2",
"description": "A JS client for consuming Jetpack AI services",
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/ai-client/#readme",
"bugs": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import { Notice } from '@wordpress/components';
import useFairUsageNoticeMessage from '../hooks/use-fair-usage-notice-message.js';
/**
* Types
*/
import type { ReactElement } from 'react';

type FairUsageNoticeProps = {
variant?: 'error' | 'muted';
Expand All @@ -13,7 +9,7 @@ type FairUsageNoticeProps = {
* The fair usage notice component.
* @param {FairUsageNoticeProps} props - Fair usage notice component props.
* @param {FairUsageNoticeProps.variant} props.variant - The variant of the notice to render.
* @return {ReactElement} the Notice component with the fair usage message.
* @return the Notice component with the fair usage message.
*/
export const FairUsageNotice = ( { variant = 'error' }: FairUsageNoticeProps ) => {
const useFairUsageNoticeMessageElement = useFairUsageNoticeMessage();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,7 @@ import {
ACTION_SET_IS_LOADING_HISTORY,
} from './constants.js';
import INITIAL_STATE from './initial-state.js';
import type {
AiFeatureStateProps,
LogoGeneratorStateProp,
RequestError,
TierLimitProp,
} from './types.js';
import type { AiFeatureStateProps, RequestError, TierLimitProp } from './types.js';
import type { SiteDetails } from '../types.js';

/**
Expand Down
5 changes: 5 additions & 0 deletions projects/js-packages/api/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

### This is a list detailing changes for the Jetpack RNA Components package releases.

## [0.17.21] - 2024-12-16
### Changed
- Updated package dependencies. [#40564]

## [0.17.20] - 2024-12-04
### Changed
- Updated package dependencies. [#40363]
Expand Down Expand Up @@ -381,6 +385,7 @@
- Add the API methods left behind by the previous PR.
- Initial release of jetpack-api package

[0.17.21]: https://github.com/Automattic/jetpack-api/compare/v0.17.20...v0.17.21
[0.17.20]: https://github.com/Automattic/jetpack-api/compare/v0.17.19...v0.17.20
[0.17.19]: https://github.com/Automattic/jetpack-api/compare/v0.17.18...v0.17.19
[0.17.18]: https://github.com/Automattic/jetpack-api/compare/v0.17.17...v0.17.18
Expand Down

This file was deleted.

5 changes: 0 additions & 5 deletions projects/js-packages/api/changelog/update-eslint-9

This file was deleted.

2 changes: 1 addition & 1 deletion projects/js-packages/api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@automattic/jetpack-api",
"version": "0.17.20",
"version": "0.17.21",
"description": "Jetpack Api Package",
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/api/#readme",
"bugs": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.0.42] - 2024-12-16
### Changed
- Internal updates.

## [1.0.41] - 2024-12-09
### Changed
- Internal updates.
Expand Down Expand Up @@ -185,6 +189,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Initial release.
- Replace missing domains too.

[1.0.42]: https://github.com/Automattic/babel-plugin-replace-textdomain/compare/v1.0.41...v1.0.42
[1.0.41]: https://github.com/Automattic/babel-plugin-replace-textdomain/compare/v1.0.40...v1.0.41
[1.0.40]: https://github.com/Automattic/babel-plugin-replace-textdomain/compare/v1.0.39...v1.0.40
[1.0.39]: https://github.com/Automattic/babel-plugin-replace-textdomain/compare/v1.0.38...v1.0.39
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@automattic/babel-plugin-replace-textdomain",
"version": "1.0.41",
"version": "1.0.42",
"description": "A Babel plugin to replace the textdomain in gettext-style function calls.",
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/babel-plugin-replace-textdomain/#readme",
"bugs": {
Expand Down
5 changes: 5 additions & 0 deletions projects/js-packages/base-styles/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.6.39] - 2024-12-16
### Changed
- Updated package dependencies. [#40564]

## [0.6.38] - 2024-12-04
### Changed
- Updated package dependencies. [#40363]
Expand Down Expand Up @@ -337,6 +341,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Updated package dependencies.
- Use Node 16.7.0 in tooling. This shouldn't change the behavior of the code itself.

[0.6.39]: https://github.com/Automattic/jetpack-base-styles/compare/0.6.38...0.6.39
[0.6.38]: https://github.com/Automattic/jetpack-base-styles/compare/0.6.37...0.6.38
[0.6.37]: https://github.com/Automattic/jetpack-base-styles/compare/0.6.36...0.6.37
[0.6.36]: https://github.com/Automattic/jetpack-base-styles/compare/0.6.35...0.6.36
Expand Down
5 changes: 0 additions & 5 deletions projects/js-packages/base-styles/changelog/update-eslint-9

This file was deleted.

2 changes: 1 addition & 1 deletion projects/js-packages/base-styles/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@automattic/jetpack-base-styles",
"version": "0.6.38",
"version": "0.6.39",
"description": "Jetpack components base styles",
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/base-styles/#readme",
"bugs": {
Expand Down
5 changes: 5 additions & 0 deletions projects/js-packages/boost-score-api/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.1.50] - 2024-12-16
### Changed
- Updated package dependencies. [#40564]

## [0.1.49] - 2024-12-09
### Changed
- Internal updates.
Expand Down Expand Up @@ -211,6 +215,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Create package for the boost score bar API [#30781]

[0.1.50]: https://github.com/Automattic/jetpack-boost-score-api/compare/v0.1.49...v0.1.50
[0.1.49]: https://github.com/Automattic/jetpack-boost-score-api/compare/v0.1.48...v0.1.49
[0.1.48]: https://github.com/Automattic/jetpack-boost-score-api/compare/v0.1.47...v0.1.48
[0.1.47]: https://github.com/Automattic/jetpack-boost-score-api/compare/v0.1.46...v0.1.47
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion projects/js-packages/boost-score-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@automattic/jetpack-boost-score-api",
"version": "0.1.49",
"version": "0.1.50",
"description": "A package to get the Jetpack Boost score of a site",
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/boost-score-api/#readme",
"bugs": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: added

Chart library: add legend component
4 changes: 4 additions & 0 deletions projects/js-packages/charts/changelog/add-charts-bar-multi
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: added

Adding support for multiple data series to the Bar chart component.
4 changes: 4 additions & 0 deletions projects/js-packages/charts/changelog/add-charts-multi-series
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: added

Adding support for mutliple data series for the line charts.
4 changes: 4 additions & 0 deletions projects/js-packages/charts/changelog/add-charts-pie-chart
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: added

Adding new chart type - pie chart.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Fixing a bug in Chart storybook data.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Update PieSemiCircleChart component
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Fixed lints following ESLint rule changes for TS
Loading

0 comments on commit a1018bf

Please sign in to comment.