Merge branch 'small-fixes-and-improvements' into shigusegubu-themes3

This commit is contained in:
Henry Jameson 2026-05-07 10:44:42 +03:00
commit a2fd54115b
7 changed files with 18 additions and 35 deletions

View file

@ -18,7 +18,7 @@ steps:
build: build:
image: docker.io/node:18-alpine image: docker.io/node:18-alpine
commands: commands:
- apk add --no-cache zip - apk add --no-cache zip git
- yarn --frozen-lockfile - yarn --frozen-lockfile
- yarn build - yarn build
- if [ "${CI_PIPELINE_EVENT}" = "push" ] || [ "${CI_PIPELINE_EVENT}" = "manual" ]; then zip -9qr ${CI_REPO_DEFAULT_BRANCH}.zip dist/; fi - if [ "${CI_PIPELINE_EVENT}" = "push" ] || [ "${CI_PIPELINE_EVENT}" = "manual" ]; then zip -9qr ${CI_REPO_DEFAULT_BRANCH}.zip dist/; fi

View file

@ -36,8 +36,11 @@ steps:
VITE_PROXY_ORIGIN: "http://pleroma:4000" VITE_PROXY_ORIGIN: "http://pleroma:4000"
VITE_PROXY_TARGET: "http://pleroma:4000" VITE_PROXY_TARGET: "http://pleroma:4000"
commands: commands:
- mkdir -pv $APT_CACHE_DIR && apt-get -qq update - |
- apt-get install -y zip if [ "${CI_PIPELINE_EVENT}" != "pull_request" ]; then
mkdir -pv $APT_CACHE_DIR && apt-get -qq update
apt-get install -y zip
fi
- npm install -g yarn@1.22.22 - npm install -g yarn@1.22.22
- yarn --frozen-lockfile - yarn --frozen-lockfile
- | - |
@ -56,25 +59,12 @@ steps:
fi fi
- | - |
if ! yarn e2e:pw; then if ! yarn e2e:pw; then
zip -9qr ${CI_COMMIT_SHA:0:8}-e2e.zip ./test/e2e-playwright/test-results ./test/e2e-playwright/playwright-report [ "${CI_PIPELINE_EVENT}" = "pull_request" ] || zip -9qr ${CI_COMMIT_SHA:0:8}-e2e.zip ./test/e2e-playwright/test-results ./test/e2e-playwright/playwright-report
exit 1 exit 1
fi fi
upload-artifacts-pr:
image: &artifacts_uploader_image
docker.io/woodpeckercommunity/plugin-gitea-package:0.5.0
when:
- event: pull_request
status: [failure]
settings:
<<: *artifacts_uploader_settings
package_version: pr-${CI_COMMIT_PULL_REQUEST}
file_source: ./${CI_COMMIT_SHA:0:8}-e2e.zip
file_name: ./pr-${CI_COMMIT_PULL_REQUEST}-e2e.zip
update: true
upload-artifacts: upload-artifacts:
image: *artifacts_uploader_image image: docker.io/woodpeckercommunity/plugin-gitea-package:0.5.0
when: when:
- event: push - event: push
branch: ${CI_REPO_DEFAULT_BRANCH} branch: ${CI_REPO_DEFAULT_BRANCH}

View file

@ -33,30 +33,20 @@ steps:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "1" PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "1"
entrypoint: *script_file_entrypoint entrypoint: *script_file_entrypoint
commands: commands:
- mkdir -pv $APT_CACHE_DIR && apt-get -qq update - |
- apt-get -y install zip if [ "${CI_PIPELINE_EVENT}" != "pull_request" ]; then
mkdir -pv $APT_CACHE_DIR && apt-get -qq update
apt-get -y install zip
fi
- yarn --frozen-lockfile - yarn --frozen-lockfile
- | - |
if ! yarn unit-ci; then if ! yarn unit-ci; then
zip -9qr ${CI_COMMIT_SHA:0:8}-screenshots.zip $(find . -type d -name __screenshots__) [ "${CI_PIPELINE_EVENT}" = "pull_request" ] || zip -9qr ${CI_COMMIT_SHA:0:8}-screenshots.zip $(find . -type d -name __screenshots__)
exit 1 exit 1
fi fi
upload-artifacts-pr:
image: &artifacts_uploader_image
docker.io/woodpeckercommunity/plugin-gitea-package:0.5.0
when:
- event: pull_request
status: [failure]
settings:
<<: *artifacts_uploader_settings
package_version: pr-${CI_COMMIT_PULL_REQUEST}
file_source: ./${CI_COMMIT_SHA:0:8}-screenshots.zip
file_name: pr-${CI_COMMIT_PULL_REQUEST}-screenshots.zip
update: true
upload-artifacts: upload-artifacts:
image: *artifacts_uploader_image image: docker.io/woodpeckercommunity/plugin-gitea-package:0.5.0
when: when:
- event: push - event: push
branch: ${CI_REPO_DEFAULT_BRANCH} branch: ${CI_REPO_DEFAULT_BRANCH}

View file

View file

@ -79,6 +79,7 @@ const Notifications = {
return unseenNotificationsFromStore( return unseenNotificationsFromStore(
this.$store, this.$store,
useMergedConfigStore().mergedConfig.notificationVisibility, useMergedConfigStore().mergedConfig.notificationVisibility,
useMergedConfigStore().mergedConfig.ignoreInactionableSeen,
) )
}, },
filteredNotifications() { filteredNotifications() {

View file

@ -76,6 +76,7 @@ const SideDrawer = {
return unseenNotificationsFromStore( return unseenNotificationsFromStore(
this.$store, this.$store,
useMergedConfigStore().mergedConfig.notificationVisibility, useMergedConfigStore().mergedConfig.notificationVisibility,
useMergedConfigStore().mergedConfig.ignoreInactionableSeen,
) )
}, },
unseenNotificationsCount() { unseenNotificationsCount() {

View file

@ -113,6 +113,7 @@ export const unseenNotificationsFromStore = (
) => { ) => {
return filteredNotificationsFromStore(store, notificationVisibility).filter( return filteredNotificationsFromStore(store, notificationVisibility).filter(
({ seen, type }) => { ({ seen, type }) => {
console.log(ignoreInactionableSeen)
if (!ignoreInactionableSeen) return !seen if (!ignoreInactionableSeen) return !seen
if (seen) return false if (seen) return false
return ACTIONABLE_NOTIFICATION_TYPES.has(type) return ACTIONABLE_NOTIFICATION_TYPES.has(type)