From 22e09938e0dd5bd9093b2047d06504fd978fdf9d Mon Sep 17 00:00:00 2001 From: spaenleh Date: Thu, 7 Dec 2023 13:31:33 +0100 Subject: [PATCH] fix: update template --- .github/workflows/cypress.yml | 1 - .github/workflows/release-please.yml | 13 +------------ src/modules/main/BuilderView.tsx | 24 ++++++++++++++++++++++++ 3 files changed, 25 insertions(+), 13 deletions(-) diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index 147186ca..1db3b03e 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -16,7 +16,6 @@ jobs: with: cypress: true - - name: Build App run: yarn build:test shell: bash diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 5c09510d..5b91c246 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -9,23 +9,12 @@ jobs: release-please: runs-on: ubuntu-latest steps: - - uses: google-github-actions/release-please-action@v3 + - uses: google-github-actions/release-please-action@v4 id: release with: release-type: node - package-name: graasp-app-starter-ts-vite - changelog-types: '[{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"docs","section":"Documentation","hidden":false},{"type":"test","section":"Tests","hidden":false}]' - uses: actions/checkout@v4 - with: - ref: main - - - name: Tag major and minor versions - uses: jacobsvante/tag-major-minor-action@v0.1 - if: ${{ steps.release.outputs.releases_created }} - with: - major: ${{ steps.release.outputs.major }} - minor: ${{ steps.release.outputs.minor }} - name: Set tag if: ${{ steps.release.outputs.releases_created }} diff --git a/src/modules/main/BuilderView.tsx b/src/modules/main/BuilderView.tsx index 6a9f9eee..8514e63d 100644 --- a/src/modules/main/BuilderView.tsx +++ b/src/modules/main/BuilderView.tsx @@ -20,10 +20,25 @@ const AppSettingsDisplay = (): JSX.Element => { ); }; +const AppActionsDisplay = (): JSX.Element => { + const { data: appActions } = hooks.useAppActions(); + return ( + + App Actions + {appActions ? ( +
{JSON.stringify(appActions, null, 2)}
+ ) : ( + Loading + )} +
+ ); +}; + const BuilderView = (): JSX.Element => { const { permission } = useLocalContext(); const { data: appDatas } = hooks.useAppData(); const { mutate: postAppData } = mutations.usePostAppData(); + const { mutate: postAppAction } = mutations.usePostAppAction(); const { mutate: patchAppData } = mutations.usePatchAppData(); const { mutate: deleteAppData } = mutations.useDeleteAppData(); const { mutate: postAppSetting } = mutations.usePostAppSetting(); @@ -33,6 +48,14 @@ const BuilderView = (): JSX.Element => { Builder as {permission} +