Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration merge #1481

Open
wants to merge 338 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
338 commits
Select commit Hold shift + click to select a range
3221454
update index.html
bilalesi Oct 6, 2023
ff8a801
update: server on how to serve static files
bilalesi Oct 6, 2023
2e1eba7
update: add base url to history
bilalesi Oct 6, 2023
8486589
fix entrypoint
bilalesi Oct 6, 2023
b31a7e4
Convert lib.less to lib.scss
Dinika Oct 4, 2023
81c86c4
Globally override fontfamily
Dinika Oct 5, 2023
1c4d9ed
4206 // Fix styles for inputs in MyData
Dinika Oct 5, 2023
d87c591
4206 // Fix my data styles
Dinika Oct 5, 2023
d4c9f89
Fix search styles
Dinika Oct 5, 2023
e8a0b10
Add theme for modals
Dinika Oct 5, 2023
a23bbf2
4206 // Fix studios style
Dinika Oct 5, 2023
02e5f00
Migrate analysis plugin
Dinika Oct 6, 2023
bd91ef3
Update use of ellipsis plugin
Dinika Oct 6, 2023
4268f4e
Import same styles to app.scss as before migration
Dinika Oct 6, 2023
41fc9fb
4206 // Update less files to be scss files
Dinika Oct 6, 2023
46e3006
4206 // Apply formatting
Dinika Oct 6, 2023
da401fc
4206 // Retry failing test
Dinika Oct 6, 2023
fc61cf9
add base url at runtime
bilalesi Oct 23, 2023
73f8b4e
replace jest with vi
bilalesi Oct 24, 2023
edaffca
add new workflow to create a new docker tagged image for testing fusi…
bilalesi Oct 23, 2023
aa61f51
fix some linting
bilalesi Oct 23, 2023
3ac6921
do not create preview image for migration process (create migrate ima…
bilalesi Oct 23, 2023
92eb958
not limit memory use
bilalesi Oct 24, 2023
52e2d31
disbale build minification for moment
bilalesi Oct 24, 2023
a1eaa6d
increase vite heap memory
bilalesi Oct 25, 2023
747c84b
fix: rebase on top of develop and fix failed tests
bilalesi Nov 1, 2023
5e84cb5
fix: styles
bilalesi Nov 1, 2023
66e7b10
update: fix tests
bilalesi Nov 2, 2023
7211ae4
fix: history container data
bilalesi Nov 2, 2023
8e38871
Adjust `.gitignore` and ignore `.env*` files
danburonline Nov 16, 2023
5cf7581
Adjust dev server script to start SSR server
danburonline Dec 6, 2023
ca22748
update: cypress version to latest
bilalesi Nov 6, 2023
b40a998
remove logs
bilalesi Nov 6, 2023
8738d1f
Retry workspace test
Dinika Nov 7, 2023
113fda1
Check if the deprecation message goes away
Dinika Nov 8, 2023
dfd2ad1
Use image url directly
Dinika Nov 9, 2023
0be1e16
Upgrading pdf
Dinika Nov 9, 2023
393a03c
PDF Preview
Dinika Nov 9, 2023
6d7d434
Use fireevents to click the menu selectors
Dinika Nov 10, 2023
b0de077
Close previous menus before opening others
Dinika Nov 10, 2023
e4b63e7
fix: lint issues
bilalesi Nov 2, 2023
5cbaba6
fix styles
bilalesi Nov 3, 2023
fc08b3b
fix: editor rendered twice due react 18 state restoration
bilalesi Nov 7, 2023
bfc89fb
upgrade: vitest and vitest/ui
bilalesi Dec 13, 2023
512075d
update: antd Select component props
bilalesi Dec 22, 2023
082775f
update: add silent argv to test step in ci
bilalesi Dec 22, 2023
8cdbea8
update: vitest and vitest:ui
bilalesi Dec 22, 2023
26b291a
update: use tspathaliases plugin instead of using config
bilalesi Jan 5, 2024
5f77cf3
update: clean some parts of the code
bilalesi Jan 5, 2024
b47d454
update: add node engines
bilalesi Jan 5, 2024
72cf2a6
update: remove version number from package.json
bilalesi Jan 8, 2024
fc0c8f0
use Sentry to capture auth issues
bilalesi Jan 8, 2024
73f5f27
update: do not check git details in test
bilalesi Jan 5, 2024
bf7a525
update: use parallel jobs for lint/prettify/test
bilalesi Jan 5, 2024
4426ef5
update: add cache job before other jobs start
bilalesi Jan 5, 2024
047edcc
update: use node 20 in second stage of docker build
bilalesi Jan 5, 2024
d7ea4d8
update: use self-hosted runner instead gh runner
bilalesi Jan 5, 2024
f0f79d8
update: catch git commands in vite config
bilalesi Jan 5, 2024
e6bbadb
update: runner
bilalesi Jan 5, 2024
23499f8
update: cypress to latest version v13.6.x
bilalesi Jan 5, 2024
ceb73a6
update: fix imports for esm due cypress tests
bilalesi Jan 5, 2024
4364b5a
update: packages dependencies
bilalesi Jan 5, 2024
88ee690
update: test snapshots
bilalesi Jan 5, 2024
8d5dd0f
update: fix node version
bilalesi Jan 5, 2024
e8c63eb
update: use ubuntu-latest gh runner instead of self-hosted runner "it"
bilalesi Jan 5, 2024
597ea55
update: fix react-player issue
bilalesi Jan 5, 2024
343b3a6
update: run build and test in same job
bilalesi Jan 5, 2024
4a35c51
update: server using path
bilalesi Jan 5, 2024
8562cdc
update: tsconfig for server
bilalesi Jan 5, 2024
9141e7d
update: server build config
bilalesi Jan 5, 2024
5d73ab5
update: dockerfile to use index.mjs instead of .js
bilalesi Jan 5, 2024
4b5f867
update: cypress version in e2e test services
bilalesi Jan 5, 2024
854fbe3
update: add --headless to cypress in ci
bilalesi Jan 5, 2024
6ba4f65
fix: mustache/fs invocation
bilalesi Jan 5, 2024
02ad3e8
update: remove un-needed pkgs
bilalesi Jan 5, 2024
bc52420
update: remove storybook config
bilalesi Jan 7, 2024
2fcbb02
update: add favicon to public folder
bilalesi Jan 8, 2024
b4c2c38
update: favion for PWA
bilalesi Jan 8, 2024
c24785c
update: add favicons
bilalesi Jan 8, 2024
53df589
update: add manifest to index.html
bilalesi Jan 8, 2024
12728f7
update: add config for asset copying
bilalesi Jan 8, 2024
98e83a3
add right path to facvicons in production
bilalesi Jan 9, 2024
552f811
downgrade vite version to 4.4.9 since v5 not allowing using base_path
bilalesi Jan 9, 2024
ac8cfc1
fix: use base path to load icons and manifest
bilalesi Jan 9, 2024
4759f1b
update: use dynamic manifest generation
bilalesi Jan 9, 2024
10f8319
remove html folder
bilalesi Jan 9, 2024
ba221b7
update: table ref is not the same as v4
bilalesi Jan 10, 2024
02f0b50
update: use https for all env except local machine
bilalesi Jan 10, 2024
4792183
use NODE_ENV for protocol setter
bilalesi Jan 10, 2024
47d25ce
f4650/update: fix load manifest in local
bilalesi Jan 12, 2024
54de676
f4650/update: fix duplicate editors in SparQL tab
bilalesi Jan 12, 2024
2041210
f4650/update: fix duplicate editors in ES tab
bilalesi Jan 12, 2024
b59caa6
f4643/update: fix page header padding
bilalesi Jan 12, 2024
af936d8
f4643/update: fix query tab header
bilalesi Jan 12, 2024
da98834
f4643/update: allow one pagination component for ES query result
bilalesi Jan 12, 2024
52f4ed2
f4643/update: change run query btn position for Sparql query editor
bilalesi Jan 12, 2024
ae9d8a0
f4643/update: allow one pagination component for Sparql query result
bilalesi Jan 12, 2024
2aa5be1
f4643/update: use useQuery instead for useEffect to fech result
bilalesi Jan 12, 2024
0846000
f4643/update: use events insted lifecycle effect
bilalesi Jan 12, 2024
95cb7e8
f4643/update: styles for view forms
bilalesi Jan 12, 2024
0133fb0
Fix typo in comment, remove empty lines
danburonline Jan 15, 2024
9ceb847
f4643/update: styles for view forms
bilalesi Jan 12, 2024
743c51a
Merge branch 'develop' of https://github.com/BlueBrain/nexus-web into…
danburonline Feb 1, 2024
fa0dbed
Fix ProjectPage
danburonline Feb 1, 2024
32e89ce
Fix ResourceActionsContainer
danburonline Feb 1, 2024
e0493c3
Fix ResourceViewContainer
danburonline Feb 1, 2024
b9de710
Fix WorkSpaceMenuContainer
danburonline Feb 1, 2024
8701212
Fix ViewsSubView
danburonline Feb 1, 2024
f8333d7
Fix ViewsSubView.spec.tsx
danburonline Feb 1, 2024
61d8ef4
Fix IdentityPage image imports
danburonline Feb 1, 2024
31db357
Fix Header.tsx image import
danburonline Feb 1, 2024
592874c
Fix AppInfo.tsx image import
danburonline Feb 1, 2024
6adaee6
New Yarn lock file
danburonline Feb 1, 2024
def4b0b
Fix ResourceEditor less import
danburonline Feb 1, 2024
8a6ed00
Fix IdentityPage style scss
danburonline Feb 1, 2024
72f2978
Fix MyDataHeader scss
danburonline Feb 1, 2024
7372801
Fix ResourceEditor scss
danburonline Feb 1, 2024
8ecad8b
Fix ResourceEditor index.tsx
danburonline Feb 1, 2024
82a3994
Fix SettingsContainer less import
danburonline Feb 1, 2024
4df5d0e
Fix typo in exported const in store.ts
danburonline Feb 1, 2024
6273201
Declare .jpg type declaration in custom.d.ts
danburonline Feb 1, 2024
386e8be
Fix importing wrong logo in Header.tsx
danburonline Feb 1, 2024
32d31e2
Create new yarn lock file
danburonline Feb 1, 2024
8b5538f
Temporary fix ResourceListContainer
danburonline Feb 1, 2024
af93a13
New snapshot file for JIRA.spec.tsx
danburonline Feb 1, 2024
e4921dc
Change branch in migrate GH Action
danburonline Feb 6, 2024
3f8e2e0
Again new snapshot
danburonline Feb 7, 2024
2583f8c
Add npm script for creating new snapshots
danburonline Feb 7, 2024
952d4fe
Rename `snaps` to `snapshots`
danburonline Feb 7, 2024
6615602
Fix more test errors
danburonline Feb 7, 2024
d044669
Add TODO for code editor's missing implementation
danburonline Feb 7, 2024
2899873
Merge branch 'main' into migration-merge
danburonline Feb 7, 2024
d3db360
Fix CodeEditor component
danburonline Feb 8, 2024
0e0f5ef
Fixing some more linter errors
danburonline Feb 8, 2024
80842c6
Fix specific Vitest error in unit test
danburonline Feb 8, 2024
9c768ad
Fix import as default errors in unit test
danburonline Feb 8, 2024
4e26d87
Fix last failing test
danburonline Feb 8, 2024
6dedd23
Correct user event import
danburonline Feb 8, 2024
6540ff3
Fix tests that give the issue for the exceptions
danburonline Feb 12, 2024
3261359
Revert previous wrong changes for `ResourceEditor`
danburonline Feb 14, 2024
428a2c6
fix: use useSelector wisely
bilalesi Feb 14, 2024
f32bd2b
fix: undeprecated props
bilalesi Feb 14, 2024
f8ac70b
fix: AdminPluginContainer
bilalesi Feb 14, 2024
abcdcab
fix: tslint ignore files
bilalesi Feb 14, 2024
6be1c03
UseSelector hook better using
bilalesi Feb 14, 2024
9efca94
Resource container view (Admin plugin container)
bilalesi Feb 14, 2024
07bb79f
fix: rename copy buttons
bilalesi Feb 14, 2024
9ca6a02
fix: rename copy buttons
bilalesi Feb 14, 2024
77298e2
Merge branch 'migration-merge' into fix/deprecated-props-from-antd
danburonline Feb 14, 2024
e769370
Deprecated props from antd
bilalesi Feb 15, 2024
d2ce9c0
Use Fusion logo in Header, not BBP logo
danburonline Feb 14, 2024
1477f19
Ignore additional Cypress folder
danburonline Feb 14, 2024
6f386c1
Clean redundant leftovers
danburonline Feb 14, 2024
f3c594a
Fix errors in `ResourcePlugins.tsx`
danburonline Feb 14, 2024
f75e7c6
Fix code editor incl. custom linting works again
danburonline Feb 14, 2024
984ba0a
Update types of Codemirror
danburonline Feb 14, 2024
a8c563e
Fix small linter issue
danburonline Feb 14, 2024
311a35f
Fix more linting issues
danburonline Feb 14, 2024
7cf126e
Fix that it shows initial value as well
danburonline Feb 14, 2024
fd7d9c2
Fix unit tests find by text
danburonline Feb 14, 2024
ba276f7
Merge pull request #1489 from BlueBrain/fix/code-linting
danburonline Feb 16, 2024
0e5f2c0
fix: code editor
bilalesi Feb 15, 2024
8cf607d
fix: remover border prop from select, replace it with variant='border…
bilalesi Feb 15, 2024
6203676
Fix Code editor and Data Explorer navigation
bilalesi Feb 16, 2024
781d6f7
Remove double-encoding of resource id in revisions and copy buttons
Dinika Feb 16, 2024
6e91f55
update: pass only the needed param to authManager
bilalesi Feb 19, 2024
98d4c59
update: fetch identities at app loading
bilalesi Feb 19, 2024
fe27f75
update: use store
bilalesi Feb 19, 2024
4578c2e
Fix fetch identities to allow the user select projects
bilalesi Feb 19, 2024
46dd7ce
Don't show meta data linter issue
danburonline Feb 19, 2024
1c992f7
Remove "You can edit this resource"
danburonline Feb 19, 2024
f57b640
Fix styling of adding new Resource list
danburonline Feb 20, 2024
8673d5e
Clean and refactor `ResourceEditor` component
danburonline Feb 20, 2024
3284740
Use React imports directly
danburonline Feb 20, 2024
864414e
Fix/revert styles from previous editor PR
danburonline Feb 20, 2024
6ce393f
Sort SCSS rules
danburonline Feb 20, 2024
0000210
update: use no permission button in create/upload resource in a project
bilalesi Feb 20, 2024
162b66d
Merge pull request #1493 from BlueBrain/fix-url-encoding-in-resource-…
danburonline Feb 20, 2024
136d9a4
fix: data explorer header has too much height
bilalesi Feb 20, 2024
6cf8784
fix: data explorer header has too much height
bilalesi Feb 20, 2024
a5dc62b
show no permission create/upload resource
bilalesi Feb 20, 2024
33490d8
Merge pull request #1495 from BlueBrain/fix/code-editor-toggle
danburonline Feb 20, 2024
bc4d321
Merge branch 'main' into migration-merge
danburonline Feb 20, 2024
7c78248
fix: omit the resource metadata from the update endpoint
bilalesi Feb 20, 2024
fd47e7b
fix: resource actions container
bilalesi Feb 20, 2024
270fa59
Fix typo
danburonline Feb 21, 2024
2e7e6b8
Adjust manifest file
danburonline Feb 21, 2024
ac4039b
Enhance manifest some more and add app screenshots
danburonline Feb 21, 2024
4dffd48
exclude metadata in studio update payload
bilalesi Feb 22, 2024
809ddc8
Remove metadata when updating studios or workspaces
Dinika Feb 20, 2024
cc9173f
Download of resources with tags in their ids should work
Dinika Feb 21, 2024
d50eb6c
Merge pull request #1507 from BlueBrain/fix-studio-and-workspace-edits
Dinika Feb 22, 2024
5e83b58
Merge pull request #1508 from BlueBrain/fix-swc-file-shown-twice
Dinika Feb 22, 2024
fe0d8a2
Studio // Dont override column config when one aleady exists
Dinika Feb 21, 2024
833ba78
Merge pull request #1503 from BlueBrain/fix/migration/enhance-manifest
danburonline Feb 22, 2024
a97cd4c
Merge pull request #1509 from BlueBrain/studio-enable-search
Dinika Feb 23, 2024
d7ba71d
Fix loading of resources that have encoded chars in id
Dinika Feb 23, 2024
f977ff8
Clean
danburonline Feb 26, 2024
ffaec73
First try to fix line editing jumps
danburonline Feb 26, 2024
71d2a61
Fix error
danburonline Feb 26, 2024
0c21a33
Move position of `Execute ElasticSearch query`
danburonline Feb 26, 2024
188ff8a
Adjust UI accordingly
danburonline Feb 26, 2024
7c11c52
Clean docs folder
danburonline Feb 26, 2024
8ad427f
Minor change in PR template
danburonline Feb 26, 2024
9321744
Cleaning
danburonline Feb 26, 2024
1074314
Fix back button issue
danburonline Feb 26, 2024
fcd0f75
Remove linter error
danburonline Feb 26, 2024
3eebe62
More cleaning, bring back informative comment
danburonline Feb 26, 2024
9e13658
Merge branch 'develop' of https://github.com/BlueBrain/nexus-web into…
danburonline Feb 28, 2024
80638bc
Comment out failing Cypress test
danburonline Mar 4, 2024
5896a9c
Also update active tab
danburonline Mar 4, 2024
c21f3ab
Remove duplicate `useEffect`
danburonline Mar 4, 2024
08643a3
fix: return back highlight editor
bilalesi Mar 7, 2024
fc55b66
Merge pull request #1514 from BlueBrain/migration/fix/line-editing
danburonline Mar 7, 2024
eab7686
Fix highlight editor
bilalesi Mar 7, 2024
304bc6b
Merge pull request #1512 from BlueBrain/fix-resource-container-e2e-test
Dinika Mar 7, 2024
4b80624
Merge branch 'develop' into migration-merge
danburonline Mar 8, 2024
7abb041
Merge branch 'migration-merge' of https://github.com/BlueBrain/nexus-…
danburonline Mar 8, 2024
b953acc
Fix errors
danburonline Mar 8, 2024
9819114
Merge pull request #1517 from BlueBrain/fix/query-the-view
danburonline Mar 8, 2024
2ff8204
Merge pull request #1516 from BlueBrain/migration/chore/clean-docs
danburonline Mar 8, 2024
b4ba022
Comment out public studio E2E tests for now
danburonline Mar 8, 2024
8d61be3
Download archive as zip instead of tar in resource container
Dinika Mar 20, 2024
5c51c2f
Download archive as zip instead of tar in resource container
Dinika Mar 20, 2024
21e55b5
Merge pull request #1528 from BlueBrain/fix-multiple-file-download-in…
Dinika Mar 20, 2024
8beab30
4912 // Show validation error when updating resources
Dinika May 1, 2024
2e63dfe
Merge pull request #1532 from BlueBrain/4912/validation-error-when-up…
Dinika May 2, 2024
c8f3ef3
Merge branch 'develop' into migration-merge
danburonline May 2, 2024
932637c
fix: react-pdf security vuln related to pdf.js
bilalesi May 8, 2024
0438681
Merge pull request #1535 from BlueBrain/fix-react-pdf-vulnerability
bilalesi May 11, 2024
738cb9c
4912 // Show validation error when updating resources
Dinika May 1, 2024
39df20f
Merge pull request #1536 from BlueBrain/4912/validation-error-when-up…
Dinika May 14, 2024
75957bf
upgrade: react version to 18.3
bilalesi May 27, 2024
7ac74af
update: code editor in dashboard config
bilalesi May 27, 2024
8e3fb63
Update react
bilalesi May 28, 2024
b4c435c
update: add react-cmdk package
bilalesi Mar 10, 2024
79f19f5
fix: invoke resource api only when the user is ready
bilalesi Mar 10, 2024
2b3b4da
update: add fulltext search buttin to the header
bilalesi Mar 10, 2024
5d6848f
update: add fulltext search component
bilalesi Mar 10, 2024
04b4904
update: remove sort when use search query in resources listing
bilalesi Mar 11, 2024
2b6f8dc
Remove unused import
danburonline Mar 18, 2024
671dcb6
Download archive as zip instead of tar in resource container
Dinika Mar 20, 2024
81b08de
update: code editor in dashboard config
bilalesi May 27, 2024
1e09929
update: fix auto scroll on delete search string
bilalesi May 28, 2024
6fb414a
update: refactor useFullTextSearch hook
bilalesi May 28, 2024
564267e
update: fix dark mode for cmdk
bilalesi May 28, 2024
b2763bd
implement fulltext search
bilalesi May 28, 2024
547af32
fix develop merge conflicts
bilalesi May 28, 2024
dab565f
4969 // Fix resources with revision dont open in studios
Dinika Sep 16, 2024
2545da8
Open tagged resource in drawer if self contains tag/rev
Dinika Sep 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 5 additions & 3 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Description

<!--- Provide a general summary of your changes in the Title above -->

Fixes #
Fixes # (issue)

## Description
## Changes

<!--- Describe your changes in detail -->

Expand All @@ -20,7 +22,7 @@ Fixes #
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

## Checklist:
## Checklist

<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/migrate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Migration
on:
push:
branches:
- migration-merge

jobs:
publish-migration:
if: github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Build
run: |
docker build -t bluebrain/nexus-web:migrate .
- name: Publish To DockerHub
run: |
echo ${{ secrets.DOCKER_PASS }} | docker login --username ${{ secrets.DOCKER_USER }} --password-stdin
docker push bluebrain/nexus-web:migrate

204 changes: 157 additions & 47 deletions .github/workflows/review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,56 +3,166 @@ name: Pre-merge Review
on: [pull_request]

jobs:
test-and-build:
runs-on: it
cache:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
cache: 'yarn'
- name: Prune containers
run: |
docker system prune -af
- name: install dependencies 🚀
run: |
yarn install --frozen-lockfile # optional, --immutable
- name: linting ✨
run: |
yarn lint
- name: style check 💅
run: |
yarn style
- name: running test 🛫🛬
run: |
yarn test --coverage src
- name: upload coverage to Codecov 💌
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: build fusion docker image
run: |
docker build . --tag=nexus-web:fresh
- name: Checkout code
uses: actions/checkout@v3

- name: Cache dependencies
id: cache-node-modules
uses: actions/cache@v3
with:
path: |
node_modules
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-modules-

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20.10.0

- name: Install Dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile

prettify:
runs-on: ubuntu-latest
needs: [cache]
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Cache dependencies
id: cache-node-modules
uses: actions/cache@v3
with:
path: |
node_modules
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-modules-

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20.10.0

- name: Install Dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile

- name: Run styling 💅
run: yarn style

lint:
runs-on: ubuntu-latest
needs: [cache]
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Cache dependencies
id: cache-node-modules
uses: actions/cache@v3
with:
path: |
node_modules
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-modules-

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20.10.0

- name: Install Dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile

- name: Run linting ✨
run: yarn lint

test:
runs-on: ubuntu-latest
needs: [cache]
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Cache dependencies
id: cache-node-modules
uses: actions/cache@v3
with:
path: |
node_modules
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-modules-

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20.10.0

- name: Install Dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile

- name: Run unit tests 🛫🛬
run: yarn test:ci:silent

build-e2e:
runs-on: ubuntu-latest
needs: [lint, prettify, test]
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Cache dependencies
id: cache-node-modules
uses: actions/cache@v3
with:
path: |
node_modules
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-modules-

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20.10.0

- name: Install Dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile

- name: Build Docker image
run: docker build . --tag=nexus-web:fresh

- name: Start services
run: docker-compose -f ci/docker-compose.yml up -d && sleep 60
run: docker compose -f ci/docker-compose.yml up -d && sleep 60

- name: Copy nexus-web into Cypress container
# avoids permission issue where cypress writes screenshots to host with root as user
# which we can't then delete easily
run: docker cp ./. cypress:/e2e
# Uncomment for now in order to create the release
# - name: e2e tests
# run: >-
# echo | timeout --verbose 120m docker exec
# -e 'DEBUG=cypress:launcher:browsers'
# -t
# cypress
# cypress run
# --config-file cypress.config.ts
# --browser chrome
# --headless
# --record
# --key ${{ secrets.CYPRESS_RECORD_KEY }}

- name: Run e2e tests
run: >-
echo | timeout --verbose 20m docker exec
-e 'DEBUG=cypress:launcher:browsers'
-t
cypress
cypress run
--headless
--config-file cypress.config.ts
--browser chrome
--record
--key ${{ secrets.CYPRESS_RECORD_KEY }}

- name: Cleanup Docker Containers
if: ${{ always() }}
run: docker-compose -f ci/docker-compose.yml down --rmi "local" --volumes
run: docker compose -f ci/docker-compose.yml down --rmi "local" --volumes
28 changes: 26 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,17 +1,41 @@
# Cache files
.cache/

# macOS specific files
.DS_Store

# Environment files
.env*

# Distribution/build files
dist/
dist_refresh/

# Plugins directory
/plugins/

# Packagge manager files
node_modules/
yarn-error.log

# Storybook files
storybook-static/

# Testing files
coverage/
yarn-error.log
cypress/screenshots/
cypress/videos/
cypress.env.json
cypress/downloads/

# Editor-specific files
.vscode/
*.iml
.idea
.idea/

# Others
*.sops*
.sops-*.*
*.key
*.asdcas
dist_refresh/manifest.json
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.10.0
2 changes: 0 additions & 2 deletions .storybook/addons.js

This file was deleted.

11 changes: 0 additions & 11 deletions .storybook/config.js

This file was deleted.

64 changes: 0 additions & 64 deletions .storybook/webpack.config.js

This file was deleted.

6 changes: 6 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
jest-runner@*:
dependencies:
exit: '*'
jest-worker@*:
dependencies:
jest-util: '*'
Loading
Loading