Skip to content

Commit 45056b5

Browse files
authored
First prototype (#14)
* feat: ideation view implements ideation view with initial steps work in progress chore: add myself as contributor * feat: implement proto derivation type choice for idea elaboration * feat: finish proto ideation view * refactor: use app key * feat: ideation view with input and select proto views * feat: add ratings and improve UI & logic * chore(deps): update graasp deps * feat: settings, orchestration, icon, name BREAKING CHANGE * ci: upgrade workflows * feat: ideas view tab * refactor: improvement * refactor(sync): improve sync * test: refactor and fix basic test * ci: fix cypress workflow * refactor: clean code * feat(ideas view): add parent column * feat(ratings): persist ratings as app data * fix(ws): enable ws conditionnally (WS_HOST set) * chore(deps): upgrade yarn and deps * feat: act as a bot fix: choose ideas randomly fix: provide API_HOST (even if not required) * chore(deps): update apps-query-client * ci: update workflow * feat: add countdown for querying data and sync * feat: improve selection of idea and add ideation modes
1 parent b014c7b commit 45056b5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+4802
-2566
lines changed

.github/workflows/cypress.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
VITE_GRAASP_APP_ID: id-1234567890
3232
VITE_MOCK_API: true
3333
VITE_VERSION: cypress-tests
34+
VITE_WS_HOST: ws://localhost:3636/ws
3435
with:
3536
install: false
3637
build: yarn build

.github/workflows/deploy-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
with:
4141
# Replace input build-folder or version if needed
4242
build-folder: 'build'
43-
graasp-app-id: ${{ secrets.APP_ID }}
43+
graasp-app-id: ${{ vars.APP_ID }}
4444
version: 'latest'
4545
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_DEV }}
4646
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_DEV }}

.github/workflows/deploy-prod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
with:
3939
# Replace input build-folder or version if needed
4040
build-folder: 'build'
41-
graasp-app-id: ${{ secrets.APP_ID }}
41+
graasp-app-id: ${{ vars.APP_ID }}
4242
version: 'latest'
4343
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_PROD }}
4444
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_PROD }}

.github/workflows/deploy-stage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
with:
3939
# Replace input build-folder or version if needed
4040
build-folder: 'build'
41-
graasp-app-id: ${{ secrets.APP_ID }}
41+
graasp-app-id: ${{ vars.APP_ID }}
4242
version: 'latest'
4343
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_STAGE }}
4444
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_STAGE }}
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: release-please
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
release-please:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: google-github-actions/release-please-action@v3
13+
id: release
14+
with:
15+
release-type: node
16+
package-name: graasp-app-brainwriting
17+
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}]'
18+
19+
- uses: actions/checkout@v3
20+
with:
21+
ref: main
22+
23+
- name: Tag major and minor versions
24+
uses: jacobsvante/[email protected]
25+
if: ${{ steps.release.outputs.releases_created }}
26+
with:
27+
major: ${{ steps.release.outputs.major }}
28+
minor: ${{ steps.release.outputs.minor }}
29+
30+
- name: Set tag
31+
if: ${{ steps.release.outputs.releases_created }}
32+
id: set-tag
33+
run: |
34+
REPOSITORY=$(echo '${{ github.repository }}')
35+
TAG=$(echo '${{ steps.release.outputs.tag_name }}')
36+
JSON=$(jq -c --null-input --arg repository "$REPOSITORY" --arg tag "$TAG" '{"repository": $repository, "tag": $tag}')
37+
echo "json=$JSON" >> $GITHUB_OUTPUT
38+
39+
# Trigger an 'on: repository_dispatch' workflow to run in graasp-deploy repository
40+
- name: Push tag to Graasp Deploy (Staging)
41+
if: ${{ steps.release.outputs.releases_created }}
42+
uses: peter-evans/repository-dispatch@v2
43+
with:
44+
token: ${{ secrets.REPO_ACCESS_TOKEN }}
45+
repository: graasp/graasp-deploy
46+
event-type: update-staging-version
47+
client-payload: ${{steps.set-tag.outputs.json}}
48+
49+
- name: Auto Tag
50+
uses: graasp/graasp-deploy/.github/actions/auto-tag-after-release@v1
51+
with:
52+
releases_created: ${{ steps.release.outputs.releases_created }}
53+
tag_name: ${{ steps.release.outputs.tag_name }}
Lines changed: 201 additions & 201 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ plugins:
44
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
55
spec: '@yarnpkg/plugin-interactive-tools'
66

7-
yarnPath: .yarn/releases/yarn-3.6.1.cjs
7+
yarnPath: .yarn/releases/yarn-3.6.3.cjs

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
# Graasp App: brainwriting
2+
3+
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-%23FE5196?logo=conventionalcommits&logoColor=white)](https://conventionalcommits.org)

cypress/e2e/builder/main.cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ describe('Builder View', () => {
1313
cy.visit('/');
1414
});
1515

16-
it('App', () => {
16+
it('loads the view', () => {
1717
cy.get(buildDataCy(BUILDER_VIEW_CY));
1818
});
1919
});

cypress/fixtures/mockItem.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { MEMBERS } from './members';
22

33
export const MOCK_SERVER_ITEM = {
44
id: '123456789',
5-
name: 'app-starter-ts-vite',
5+
name: 'app-collaborative-ideation',
66
description: null,
77
path: '',
88
settings: {},

0 commit comments

Comments
 (0)