Skip to content

Commit

Permalink
Merge branch 'master' into fix/153810-153820-paste-text-only
Browse files Browse the repository at this point in the history
  • Loading branch information
reiji-h committed Sep 20, 2024
2 parents f68146f + 8061cac commit 9a5a135
Show file tree
Hide file tree
Showing 26 changed files with 283 additions and 209 deletions.
34 changes: 17 additions & 17 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,36 @@ queue_rules:
- name: default
allow_inplace_checks: false
queue_conditions:
- '#check-failure = 0'
- check-success ~= ci-app-
- check-success ~= ci-app-lint
- check-success ~= ci-app-test
- check-success ~= ci-app-launch-dev
- -check-failure ~= ci-app-
- -check-failure ~= ci-slackbot-
- -check-failure ~= test-prod-node20 /
merge_conditions:
- '#check-failure = 0'
- check-success ~= ci-app-
- check-success ~= test-prod-node20 /
- check-success ~= ci-app-lint
- check-success ~= ci-app-test
- check-success ~= ci-app-launch-dev
- check-success = test-prod-node20 / build-prod
- check-success = test-prod-node20 / launch-prod
- check-success ~= test-prod-node20 / run-playwright
- -check-failure ~= ci-app-
- -check-failure ~= ci-slackbot-
- -check-failure ~= test-prod-node20 /

pull_request_rules:
- name: Automatic queue to merge
conditions:
- '#approved-reviews-by >= 1'
- '#review-requested = 0'
- check-success = "check-title"
- check-success = check-title
actions:
queue:

- name: Automatic merge for Dependabot pull requests
conditions:
- author = dependabot[bot]
- '#approved-reviews-by >= 1'
- '#check-failure = 0'
- check-success = "check-title"
actions:
merge:
method: merge

- name: Automatic merge for Preparing next version
conditions:
- author = github-actions[bot]
- label = "type/prepare-next-version"
- label = type/prepare-next-version
actions:
merge:
method: merge
3 changes: 1 addition & 2 deletions .github/workflows/auto-labeling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ jobs:
if: |
(!contains( github.event.pull_request.labels.*.name, 'flag/exclude-from-changelog' )
&& !startsWith( github.head_ref, 'changeset-release/' )
&& !startsWith( github.head_ref, 'mergify/merge-queue/' )
&& !startsWith( github.head_ref, 'dependabot/' ))
&& !startsWith( github.head_ref, 'mergify/merge-queue/' ))
steps:
- uses: amannn/action-semantic-pull-request@v5
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci-app-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ on:
- master
- dev/7.*.x
- dev/6.*.x
- release/*
types: [opened, reopened, synchronize]
paths:
- .github/mergify.yml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/draft-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- uses: actions/checkout@v4

- name: Retrieve information from package.json
uses: myrotvorets/info-from-package-json-action@1.2.0
uses: myrotvorets/[email protected].1
id: package-json

- uses: release-drafter/release-drafter@v5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-rc-scheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- uses: actions/checkout@v4

- name: Retrieve information from package.json
uses: myrotvorets/info-from-package-json-action@1.2.0
uses: myrotvorets/[email protected].1
id: package-json

- name: Docker meta for docker.io
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- uses: actions/checkout@v4

- name: Retrieve information from package.json
uses: myrotvorets/info-from-package-json-action@1.2.0
uses: myrotvorets/[email protected].1
id: package-json

- name: Docker meta for docker.io
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release-slackbot-proxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
ref: ${{ github.event.pull_request.base.ref }}

- name: Retrieve information from package.json
uses: myrotvorets/info-from-package-json-action@1.2.0
uses: myrotvorets/[email protected].1
id: package-json
with:
workingDir: apps/slackbot-proxy
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
gcloud auth configure-docker --quiet
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Build and push
uses: docker/build-push-action@v4
Expand Down Expand Up @@ -110,7 +110,7 @@ jobs:
turbo run version --filter=@growi/slackbot-proxy -- --prerelease
- name: Retrieve information from package.json
uses: myrotvorets/info-from-package-json-action@1.2.0
uses: myrotvorets/[email protected].1
id: package-json
with:
workingDir: apps/slackbot-proxy
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
sh ./apps/app/bin/github-actions/update-readme.sh
- name: Retrieve information from package.json
uses: myrotvorets/info-from-package-json-action@1.2.0
uses: myrotvorets/[email protected].1
id: package-json

- name: Update Changelog
Expand All @@ -58,7 +58,7 @@ jobs:
RELEASED_VERSION: ${{ steps.package-json.outputs.packageVersion }}

- name: Commit, Tag and Push
uses: stefanzweifel/git-auto-commit-action@v4
uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: ${{ github.event.pull_request.base.ref }}
commit_message: Release v${{ steps.package-json.outputs.packageVersion }}
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
- uses: actions/checkout@v4

- name: Retrieve information from package.json
uses: myrotvorets/info-from-package-json-action@1.2.0
uses: myrotvorets/[email protected].1
id: package-json

- name: Docker meta for docker.io
Expand Down Expand Up @@ -181,7 +181,7 @@ jobs:
yarn upgrade --scope=@growi
- name: Retrieve information from package.json
uses: myrotvorets/info-from-package-json-action@1.2.0
uses: myrotvorets/[email protected].1
id: package-json

- name: Commit
Expand Down
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
# Changelog

## [Unreleased](https://github.com/weseek/growi/compare/v7.0.18...HEAD)
## [Unreleased](https://github.com/weseek/growi/compare/v7.0.19...HEAD)

*Please do not manually update this file. We've automated the process.*

## [v7.0.19](https://github.com/weseek/growi/compare/v7.0.18...v7.0.19) - 2024-09-12

### 🐛 Bug Fixes

* fix: Shared page is not displayed when skipping SSR (#9089) @miya
* fix: The grant of pages can be changed via api even if restricted (#9087) @WNomunomu
* fix: Updated content is not reflected on the View screen even after refreshing the page (#9086) @miya
* fix: Removing comment doesn't work (#9083) @yuki-takei

## [v7.0.18](https://github.com/weseek/growi/compare/v7.0.17...v7.0.18) - 2024-09-09

### 🚀 Improvement
Expand Down
4 changes: 2 additions & 2 deletions apps/app/docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ GROWI Official docker image

[![Actions Status](https://github.com/weseek/growi/workflows/Release/badge.svg)](https://github.com/weseek/growi/actions) [![docker-pulls](https://img.shields.io/docker/pulls/weseek/growi.svg)](https://hub.docker.com/r/weseek/growi/) [![](https://images.microbadger.com/badges/image/weseek/growi.svg)](https://microbadger.com/images/weseek/growi)

![GROWI-x-docker](https://user-images.githubusercontent.com/1638767/38307565-105956e2-384f-11e8-8534-b1128522d68d.png)
![GROWI-x-docker](https://github.com/user-attachments/assets/1a82236d-5a85-4a2e-842a-971b4c1625e6)


Supported tags and respective Dockerfile links
------------------------------------------------

* [`7.0.18`, `7.0`, `7`, `latest` (Dockerfile)](https://github.com/weseek/growi/blob/v7.0.18/apps/app/docker/Dockerfile)
* [`7.0.19`, `7.0`, `7`, `latest` (Dockerfile)](https://github.com/weseek/growi/blob/v7.0.19/apps/app/docker/Dockerfile)
* [`6.3.2`, `6.3`, `6` (Dockerfile)](https://github.com/weseek/growi/blob/v6.3.2/apps/app/docker/Dockerfile)
* [`6.2.4`, `6.2` (Dockerfile)](https://github.com/weseek/growi/blob/v6.2.4/apps/app/docker/Dockerfile)
* [`6.1.15`, `6.1` (Dockerfile)](https://github.com/weseek/growi/blob/v6.1.15/apps/app/docker/Dockerfile)
Expand Down
17 changes: 10 additions & 7 deletions apps/app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@growi/app",
"version": "7.0.19-RC.0",
"version": "7.0.20-RC.0",
"license": "MIT",
"private": "true",
"scripts": {
Expand Down Expand Up @@ -49,7 +49,7 @@
"openapi:v3": "yarn cross-env API_VERSION=3 yarn swagger-jsdoc -- \"src/server/routes/apiv3/**/*.js\" \"src/server/models/**/*.js\"",
"openapi:v1": "yarn cross-env API_VERSION=1 yarn swagger-jsdoc -- \"src/server/*/*.js\" \"src/server/models/**/*.js\"",
"ts-node": "node -r ts-node/register/transpile-only -r tsconfig-paths/register -r dotenv-flow/config",
"version": "yarn version --no-git-tag-version --preid=RC"
"version": "yarn version --no-git-tag-version --non-interactive --preid=RC"
},
"// comments for dependencies": {
"@aws-skd/*": "fix version above 3.186.0 that is required by [email protected]",
Expand Down Expand Up @@ -91,7 +91,7 @@
"async-canvas-to-blob": "^1.0.3",
"axios": "^0.24.0",
"axios-retry": "^3.2.4",
"body-parser": "^1.18.2",
"body-parser": "^1.20.3",
"browser-bunyan": "^1.8.0",
"bson-objectid": "^2.0.4",
"bunyan": "^1.8.15",
Expand All @@ -113,7 +113,7 @@
"escape-string-regexp": "^4.0.0",
"eslint-plugin-regex": "^1.8.0",
"expose-gc": "^1.0.0",
"express": "^4.19.2",
"express": "^4.20.0",
"express-bunyan-logger": "^1.3.3",
"express-mongo-sanitize": "^2.1.0",
"express-session": "^1.16.1",
Expand Down Expand Up @@ -150,7 +150,7 @@
"next-themes": "^0.2.1",
"nocache": "^4.0.0",
"node-cron": "^3.0.2",
"nodemailer": "^6.9.14",
"nodemailer": "^6.9.15",
"nodemailer-ses-transport": "~1.5.0",
"openid-client": "^5.4.0",
"p-retry": "^4.0.0",
Expand Down Expand Up @@ -229,13 +229,16 @@
"@popperjs/core": "^2.11.8",
"@swc-node/jest": "^1.8.1",
"@swc/jest": "^0.2.36",
"@testing-library/react": "^14.1.2",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.5.0",
"@testing-library/react": "^16.0.1",
"@testing-library/user-event": "^14.5.2",
"@types/express": "^4.17.21",
"@types/jest": "^29.5.2",
"@types/react-input-autosize": "^2.2.4",
"@types/react-scroll": "^1.8.4",
"@types/react-stickynode": "^4.0.3",
"@types/testing-library__dom": "^7.5.0",
"@types/throttle-debounce": "^5.0.1",
"@types/unzip-stream": "^0.3.4",
"@types/url-join": "^4.0.2",
Expand All @@ -249,7 +252,7 @@
"eslint-plugin-regex": "^1.8.0",
"fslightbox-react": "^1.7.6",
"handsontable": "=6.2.2",
"happy-dom": "^13.2.0",
"happy-dom": "^15.7.4",
"i18next-chained-backend": "^4.6.2",
"i18next-hmr": "^3.0.4",
"i18next-http-backend": "^2.5.0",
Expand Down
6 changes: 6 additions & 0 deletions apps/app/playwright/40-admin/access-to-admin-page.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ test('admin/export is successfully loaded', async({ page }) => {
await expect(page.getByTestId('admin-export-archive-data')).toBeVisible();
});

test('admin/data-transfer is successfully loaded', async({ page }) => {
await page.goto('/admin/data-transfer');

await expect(page.getByTestId('admin-export-archive-data')).toBeVisible();
});

test('admin/notification is successfully loaded', async({ page }) => {
await page.goto('/admin/notification');

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { type IPageInfoForOperation } from '@growi/core/dist/interfaces';
import {
fireEvent, render, screen, within,
} from '@testing-library/react';
fireEvent, screen, within,
} from '@testing-library/dom';
import { render } from '@testing-library/react';
import { mock } from 'vitest-mock-extended';

import { PageItemControl } from './PageItemControl';
Expand Down
20 changes: 20 additions & 0 deletions apps/app/src/components/Common/PagePathNav/PagePathNav.module.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,26 @@
@use '@growi/core-styles/scss/bootstrap/init' as bs;
@use '@growi/ui/scss/atoms/btn-muted';


.grw-page-path-nav-layout :global {
.grw-page-path-nav-copydropdown {
display: none;
@include bs.media-breakpoint-down(md) {
display: block;
}
}
}

.grw-page-path-nav-layout {
&:global {
&:hover {
.grw-page-path-nav-copydropdown {
display: block;
}
}
}
}

.grw-page-path-nav :global {
.btn-copy {
@include btn-muted.colorize(bs.$orange);
Expand Down
14 changes: 10 additions & 4 deletions apps/app/src/components/Common/PagePathNav/PagePathNavLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { useIsNotFound } from '~/stores/page';

import styles from './PagePathNav.module.scss';

const moduleClass = styles['grw-page-path-nav-layout'] ?? '';

export type PagePathNavLayoutProps = {
className?: string,
Expand Down Expand Up @@ -40,7 +41,10 @@ export const PagePathNavLayout = (props: Props): JSX.Element => {
const copyDropdownId = `copydropdown-${pageId}`;

return (
<div className={className} style={{ maxWidth }}>
<div
className={`${className} ${moduleClass}`}
style={{ maxWidth }}
>
<span className={`${formerLinkClassName ?? ''} ${styles['grw-former-link']}`}>{formerLink}</span>
<div className="d-flex align-items-center">
<h1 className={`m-0 ${latterLinkClassName}`}>
Expand All @@ -51,9 +55,11 @@ export const PagePathNavLayout = (props: Props): JSX.Element => {
{ isWipPage && (
<span className="badge text-bg-secondary ms-1 me-1">WIP</span>
)}
<CopyDropdown pageId={pageId} pagePath={pagePath} dropdownToggleId={copyDropdownId} dropdownToggleClassName="p-2">
<span className="material-symbols-outlined">content_paste</span>
</CopyDropdown>
<span className=" grw-page-path-nav-copydropdown">
<CopyDropdown pageId={pageId} pagePath={pagePath} dropdownToggleId={copyDropdownId} dropdownToggleClassName="p-2">
<span className="material-symbols-outlined">content_paste</span>
</CopyDropdown>
</span>
</div>
) }
</div>
Expand Down
1 change: 1 addition & 0 deletions apps/app/src/interfaces/apiv3/page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,5 @@ export type IApiv3PageUpdateResponse = {

export const PageUpdateErrorCode = {
CONFLICT: 'conflict',
FORBIDDEN: 'forbidden',
} as const;
1 change: 1 addition & 0 deletions apps/app/src/server/models/page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export interface PageDocument extends IPage, Document<Types.ObjectId> {
[x:string]: any // for obsolete methods
getLatestRevisionBodyLength(): Promise<number | null | undefined>
calculateAndUpdateLatestRevisionBodyLength(this: PageDocument): Promise<void>
populateDataToShowRevision(shouldExcludeBody?: boolean): Promise<PageDocument>
}


Expand Down
Loading

0 comments on commit 9a5a135

Please sign in to comment.