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

New frontend deployment #129

Merged
merged 189 commits into from
Mar 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
189 commits
Select commit Hold shift + click to select a range
97e8c49
[ADD] card logs and button show cardLogs
SloWayyy Dec 2, 2022
55470dc
feat: new style for the popovers for filex & new elem button
lucas-louis Dec 2, 2022
2b0e88c
fix: remove useless package-lock.json & remove yarn dependency
lucas-louis Dec 2, 2022
85785bd
fix: cypress tests & updating component ids
lucas-louis Dec 2, 2022
29abd7a
style: lint the code & remove unused imports/ variables
lucas-louis Dec 2, 2022
82f2a6e
fix: update test because of the bad id of the upload file button
lucas-louis Dec 2, 2022
5bab1c5
feat: refactor the style of the folder & bin popover
lucas-louis Dec 4, 2022
c95f1db
add: audit log records
EdenComp Dec 6, 2022
97af595
[ADD] logs drawer
SloWayyy Dec 6, 2022
9884cdc
[DEL] LogsFile.tsx
SloWayyy Dec 6, 2022
7002e74
Update src/components/file/DeleteFile.tsx
EdenComp Dec 8, 2022
ca7b820
[ADD] history logs
SloWayyy Dec 8, 2022
c280317
fix: fix UI for the details drawer
lucas-louis Dec 9, 2022
6fb4bac
feat: add responsive for the drawer with a bottom drawer
lucas-louis Dec 9, 2022
9045b79
feat: add file type
lucas-louis Dec 12, 2022
ae26290
fix: update type name
lucas-louis Dec 12, 2022
6106bd3
fix: regen the yarn.lock
lucas-louis Dec 12, 2022
a6382c7
fix: fix yarn.lock
lucas-louis Dec 12, 2022
88ce1b7
[Feature] Add logs
RezaRahemtola Dec 12, 2022
2282980
feat: upgrade the version of aleph-sdk-ts dependency
lucas-louis Dec 14, 2022
34bab19
feat: add new encrypt system provided by the new version of the aleph…
lucas-louis Dec 14, 2022
a3bb6fd
fix: disable the empty file test
lucas-louis Dec 14, 2022
2a89ea0
Update src/components/file/DeleteFile.tsx
EdenComp Dec 8, 2022
c5f3f08
[ADD] history logs
SloWayyy Dec 8, 2022
dd31c6a
fix: fix UI for the details drawer
lucas-louis Dec 9, 2022
379b94e
feat: add responsive for the drawer with a bottom drawer
lucas-louis Dec 9, 2022
9709ca3
feat: add file type
lucas-louis Dec 12, 2022
f006d8e
fix: update type name
lucas-louis Dec 12, 2022
6d9d2c2
fix: remove alpine image because python is needed
lucas-louis Dec 17, 2022
0c1d95c
feat: add providers integration
lucas-louis Dec 23, 2022
94f7b3e
style: remove useless comments
lucas-louis Dec 23, 2022
acc91fc
fix: try catch when the contact public key is not well formed
lucas-louis Dec 23, 2022
07fe882
fix: remove duplicate line
lucas-louis Dec 27, 2022
c52f2d8
feat: change the uuid generation by using the one of crypto
lucas-louis Dec 27, 2022
5eb9d8c
fix: typos for details drawer
lucas-louis Dec 27, 2022
997b2c0
fix: regen the yarn.lock
lucas-louis Dec 12, 2022
5bde321
fix: fix yarn.lock
lucas-louis Dec 12, 2022
bae8fdb
feat: add new encrypt system provided by the new version of the aleph…
lucas-louis Dec 14, 2022
8a0ff11
fix: fix dependencies
lucas-louis Dec 27, 2022
54fb079
fix: fix dependencies
lucas-louis Dec 27, 2022
c6b966b
Merge branch 'dev' into feat/providers
lucas-louis Dec 27, 2022
cbe8ea1
fix: fix dependencies
lucas-louis Dec 27, 2022
1132b88
feat: Multi-stage Dockerfile
RezaRahemtola Dec 27, 2022
1c74034
fix: CONTRIBUTING typo
RezaRahemtola Dec 27, 2022
0ee1250
fix: Legacy default Aleph params removed
RezaRahemtola Dec 27, 2022
675a56e
feat(ci): ESLint action optimized (#114)
RezaRahemtola Jan 2, 2023
48f7544
feat: providers setup & Aleph SDK version update
RezaRahemtola Jan 2, 2023
2063918
fix: better display of the repo & add multi page management in the api
lucas-louis Jan 3, 2023
bca2123
feat: add page selector on github repositories modal
lucas-louis Jan 3, 2023
c368467
fix: incomplete GitHub repository list
RezaRahemtola Jan 7, 2023
2e18e24
build(deps): yarn.lock dependencies upgraded (#119)
RezaRahemtola Jan 8, 2023
520aa4d
refactor: move files into cards directory
lucas-louis Jan 24, 2023
b63a0ca
fix: update padding for small buttons
lucas-louis Jan 24, 2023
a22cd09
fix: fix import path
lucas-louis Jan 24, 2023
10132bb
refactor: split dashboard page into multiple pages
lucas-louis Jan 24, 2023
464e738
feat: improve the tab menu
lucas-louis Jan 24, 2023
c4a06e9
feat: add profile badge
lucas-louis Jan 24, 2023
aa87d25
tests: update id for the navigation bar
lucas-louis Jan 24, 2023
3a0e9fc
build: add boring-avatars dependency
lucas-louis Jan 24, 2023
aac1696
fix: remove undefined account type
lucas-louis Jan 24, 2023
591c7d9
feat: update file size & created date display
lucas-louis Jan 27, 2023
0cbf63f
fix: clean the list before loading to avoid duplicate files
lucas-louis Feb 17, 2023
88c778c
feat: add utils functions to format date & file size
lucas-louis Feb 17, 2023
e3c9c50
feat: update button theme & add created date
lucas-louis Feb 17, 2023
2850b73
chore: udpdate name of the card to make it more generic
lucas-louis Feb 17, 2023
635d65b
feat: add content to contact page
lucas-louis Feb 17, 2023
dc12028
fix: close the popover when the file is deleted
lucas-louis Feb 17, 2023
d5137d9
fix: update content of the button
lucas-louis Feb 17, 2023
d743621
fix: close the modal when the file is deleted
lucas-louis Feb 17, 2023
af2ce75
feat: add/ update the cards to have the same style
lucas-louis Feb 17, 2023
cae8219
feat: add sub routes management for navbar
lucas-louis Feb 17, 2023
fd25544
fix: update padding
lucas-louis Feb 17, 2023
d545cd5
chore: clean useless code & remove redirection when no user exist
lucas-louis Feb 17, 2023
b471581
lint: lint the code
lucas-louis Feb 17, 2023
74bc7de
feat: store the size of the file in the message
lucas-louis Feb 17, 2023
27aec6d
feat: add content to program page
lucas-louis Feb 17, 2023
4ee4dd5
feat: add content to shared page
lucas-louis Feb 17, 2023
4d85b01
feat: update params of createdAt & size for contact & program types
lucas-louis Feb 17, 2023
6dad455
fix: remove popover for "New" button
lucas-louis Feb 17, 2023
c3766e2
feat: add redirection when the title is clicked
lucas-louis Feb 17, 2023
d4f0505
feat: add contact options popover, drawer & content
lucas-louis Feb 17, 2023
75bd2cb
feat: add program options popover, drawer & content
lucas-louis Feb 17, 2023
3ed335b
feat: add label badge component used in each pages
lucas-louis Feb 17, 2023
5c62f29
lint: lint the code
lucas-louis Feb 17, 2023
70c1e28
fix: typo of the button
lucas-louis Feb 17, 2023
89a1045
chore: remove useless/ out of dated files
lucas-louis Feb 18, 2023
fd1698f
fix: add default program size
lucas-louis Feb 18, 2023
964949b
fix: update config for cypress tests
lucas-louis Feb 18, 2023
c4848ae
feat: add implementation of the trash page
lucas-louis Feb 18, 2023
775be97
feat: add label page name for each pages
lucas-louis Feb 18, 2023
29bbacb
feat: update default variant button
lucas-louis Feb 24, 2023
d342972
fix: move the popover outside of the card to avoid nested popover open
lucas-louis Feb 24, 2023
28ac146
feat: add border size variant
lucas-louis Feb 24, 2023
b909c42
fix: profile badge into navigation
lucas-louis Feb 24, 2023
8f77f4d
feat: add account page & content
lucas-louis Feb 24, 2023
38d5441
fix: use node 16 version into cypress github action
lucas-louis Feb 24, 2023
13e6bf1
feat: settings in configPage.tsx
SloWayyy Mar 2, 2023
d7f9a27
feat: settings in configPage.tsx
SloWayyy Mar 2, 2023
f954ebb
feat: settings in configPage.tsx
SloWayyy Mar 2, 2023
3e08464
feat: update modal UI
lucas-louis Mar 2, 2023
961209f
feat: update button style with new UI
lucas-louis Mar 2, 2023
ac8f45a
feat: add id to close button component
lucas-louis Mar 2, 2023
8f68179
fix: cypress tests with new UI
lucas-louis Mar 2, 2023
ba7d9ae
fix: lint the code
lucas-louis Mar 2, 2023
84b3548
fix: update component path
lucas-louis Mar 2, 2023
766baa2
chore: remove old unused code
lucas-louis Mar 2, 2023
3b76cf0
Merge branch 'dev' into feat/dashboard-UI-refactor
lucas-louis Mar 2, 2023
f1d2a9a
fix: removing duplicate import
lucas-louis Mar 2, 2023
b4e8305
feat: Dashboard UI refactoring
RezaRahemtola Mar 2, 2023
97f1344
feat: settings in configPage.tsx
SloWayyy Mar 2, 2023
b2237be
feat: settings in configPage.tsx
SloWayyy Mar 2, 2023
8ac3a2e
feat: settings in configPage.tsx
SloWayyy Mar 2, 2023
e68b9d0
feat(config): light / dark theme functional
EdenComp Mar 2, 2023
e352cd5
fix: Linting and import ordering
RezaRahemtola Mar 2, 2023
7cdc371
deps: security updates
RezaRahemtola Mar 2, 2023
856090d
build: fix dependency version & building process
RezaRahemtola Mar 2, 2023
84a1e60
Merge remote-tracking branch 'refs/remotes/origin/feat_settings' into…
SloWayyy Mar 2, 2023
db8ddcd
feat: update scrollbar theme
lucas-louis Mar 8, 2023
43cc1c5
feat: add custom tooltip component
lucas-louis Mar 8, 2023
29708ec
feat: remove input placeholder & add title for each inputs
lucas-louis Mar 8, 2023
0d407fc
feat: improve github repositories select with search input
lucas-louis Mar 8, 2023
46463fc
fix: update button size for github modal
lucas-louis Mar 9, 2023
c1582df
fix: update field name
lucas-louis Mar 9, 2023
bb8fae5
feat: update team members
lucas-louis Mar 9, 2023
3f72bec
feat: GitHub modal
RezaRahemtola Mar 9, 2023
1751057
feat: improve return message
lucas-louis Mar 9, 2023
c659516
feat: update Auth pages template
lucas-louis Mar 9, 2023
011ee6e
feat: update connection, login & signup UI to match with the other pages
lucas-louis Mar 9, 2023
6ced7d1
feat: update react-icons dependency
lucas-louis Mar 9, 2023
dee4304
fix: update primary width button
lucas-louis Mar 9, 2023
9f58479
chore: remove unused files/ components
lucas-louis Mar 9, 2023
b526f51
feat: update theme by removing old variants & sizes
lucas-louis Mar 9, 2023
aaacc03
feat: update cypress tests
lucas-louis Mar 9, 2023
c725eaf
fix: cypress tests
lucas-louis Mar 9, 2023
4050f9f
fix(cypress): Useless commented test removed
RezaRahemtola Mar 9, 2023
e7fda68
fix: imports ordering
RezaRahemtola Mar 9, 2023
820a010
fix: useless programs property removed
RezaRahemtola Mar 9, 2023
6fecb5a
fix: remove useless console log
RezaRahemtola Mar 9, 2023
c3c454d
feat: Only allow console error in eslint config
RezaRahemtola Mar 9, 2023
7ce8a62
fix: useless sub component removed
RezaRahemtola Mar 9, 2023
64fd8a3
feat: update connection pages
RezaRahemtola Mar 9, 2023
636700d
feat: update the readme assets
lucas-louis Mar 15, 2023
d9ca5d1
feat: update readme with the new features
lucas-louis Mar 15, 2023
a45781e
fix: emoji & centering
lucas-louis Mar 15, 2023
057d90b
Merge branch 'dev' into feat_settings
EdenComp Mar 15, 2023
effdc17
fix(lockfile): merge conflicts
EdenComp Mar 15, 2023
7b90c02
fix(compilation): duplicate imports and message
EdenComp Mar 15, 2023
bbde27e
fix(mode): light/dark mode fixed
EdenComp Mar 15, 2023
cbca5a0
feat(config): change name modal
EdenComp Mar 15, 2023
14cc3dc
Merge remote-tracking branch 'refs/remotes/origin/feat_settings' into…
SloWayyy Mar 16, 2023
9830089
feat: add 80% of dark mode
SloWayyy Mar 16, 2023
43f85f3
feat: add in card the dark mode
SloWayyy Mar 16, 2023
ca5bc48
draft(config): centered
EdenComp Mar 16, 2023
ad46efa
fix: inconming change / merge in login.tsx
SloWayyy Mar 16, 2023
1d9f028
Merge remote-tracking branch 'refs/remotes/origin/feat_settings' into…
SloWayyy Mar 16, 2023
a32d3d6
fix: compil
EdenComp Mar 16, 2023
f800fe2
feat: add dark mode for menu and details drawer
SloWayyy Mar 16, 2023
2f6019f
feat: add darkmode in some menu
SloWayyy Mar 16, 2023
adf6ac3
fix(README): emojis, formatting and small typos
RezaRahemtola Mar 17, 2023
958f9d1
fix: ESLint warnings
RezaRahemtola Mar 17, 2023
e17490d
deps: yarn.lock regenerated
RezaRahemtola Mar 17, 2023
6843d4c
feat: add red color in sidebar when hover + dark mode over
SloWayyy Mar 17, 2023
868a648
Update readme
RezaRahemtola Mar 18, 2023
3841fe9
chore: style the code with prettier
lucas-louis Mar 18, 2023
8c0df1f
chore: create icon from svg logo
lucas-louis Mar 18, 2023
c8c45c8
feat: update colors theme
lucas-louis Mar 18, 2023
12e97eb
fix: get _hover status & borderRadius base on the thme
lucas-louis Mar 18, 2023
7865a23
feat: add dark theme compatibility for all the pages
lucas-louis Mar 18, 2023
1806758
fix: cypress tests
lucas-louis Mar 18, 2023
44d01ce
feat: update IPC logo with the new colors
lucas-louis Mar 18, 2023
d921637
fix: revert changes on comming soon providers text
lucas-louis Mar 18, 2023
b3d8b8d
fix: bad imported button on theme selector
lucas-louis Mar 18, 2023
8bc341c
fix: change the variant of the create account button
lucas-louis Mar 18, 2023
09be177
chore: style the code with prettier
lucas-louis Mar 18, 2023
533d548
fix: cypress tests
lucas-louis Mar 18, 2023
403c6a7
Merge branch 'dev' into feat_settings
EdenComp Mar 19, 2023
07bd0cb
feat(config): programs config
EdenComp Mar 19, 2023
60bec88
feat(config): generic params config
EdenComp Mar 19, 2023
61fc608
fix: build
EdenComp Mar 19, 2023
fdd1f4e
deps: minor updates
RezaRahemtola Mar 19, 2023
88bc20a
chore: code style with Prettier
RezaRahemtola Mar 19, 2023
579dc3b
Generic configuration on account page
RezaRahemtola Mar 19, 2023
fdc7769
fix: crash when refresh on account page
lucas-louis Mar 20, 2023
f79ac61
deps: react updated to v18
RezaRahemtola Mar 19, 2023
083cb3b
fix: useless Aleph options removed
RezaRahemtola Mar 19, 2023
19c860a
build: fix Chakra theming property
RezaRahemtola Mar 19, 2023
46387a7
deps: missing chakra peer dependency added
RezaRahemtola Mar 20, 2023
98661c2
fix: cypress tests
RezaRahemtola Mar 20, 2023
706d043
feat(ci): Caching and better env
RezaRahemtola Mar 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
.gitignore
LICENSE
README.md
CONTRIBUTING.md

# Node
node_modules/
Expand All @@ -21,3 +22,8 @@ build/
# Infra
*Dockerfile*
*docker-compose*
.env.example

# IDEs
.idea/
.vscode/
4 changes: 3 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
NEXTAUTH_URL=http://localhost:8080
APP_URL=http://localhost:3000

NEXTAUTH_URL=$APP_URL
NEXTAUTH_SECRET="secret"

NEXT_PUBLIC_ALEPH_CHANNEL=TEST
Expand Down
2 changes: 1 addition & 1 deletion .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ rules:

react-hooks/exhaustive-deps: off

no-console: off
no-console: ["warn", { allow: ["error"] }]

class-methods-use-this: off

Expand Down
Binary file removed .github/assets/home.png
Binary file not shown.
Binary file added .github/assets/ipc-computing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .github/assets/ipc-storage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed .github/assets/ipc-upload-a-program.png
Binary file not shown.
Binary file added .github/assets/landing-page.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 22 additions & 12 deletions .github/workflows/end-to-end-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,38 @@ on: [push]

jobs:
cypress-run:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Create env file
run: |
touch .env
echo NEXT_PUBLIC_ALEPH_CHANNEL=${{ secrets.NEXT_PUBLIC_ALEPH_CHANNEL }} >> .env
echo NEXT_PUBLIC_GITCLONE_DIR=${{ secrets.NEXT_PUBLIC_GITCLONE_DIR }} >> .env
echo NEXT_PUBLIC_GITHUB_CLIENT_ID=${{ secrets.NEXT_PUBLIC_GITHUB_CLIENT_ID }} >> .env
echo NEXT_PUBLIC_GITHUB_CLIENT_SECRET=${{ secrets.NEXT_PUBLIC_GITHUB_CLIENT_SECRET }} >> .env
echo NEXTAUTH_URL=${{ secrets.NEXTAUTH_URL }} >> .env
echo NEXTAUTH_SECRET=${{ secrets.NEXTAUTH_SECRET }} >> .env
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16

- uses: actions/cache@v3
with:
path: ${{ github.workspace }}/.next/cache
key: nextjs-${{ hashFiles('yarn.lock') }}-${{ hashFiles('**/*.ts', '**/*.tsx') }}
restore-keys: |
nextjs-${{ hashFiles('yarn.lock') }}-

- name: Run cypress
uses: cypress-io/github-action@v4
with:
start: docker compose up
wait-on: "http://localhost:8080"
build: yarn build
start: yarn start
wait-on: ${{ secrets.APP_URL }}
wait-on-timeout: 300
env:
NEXT_PUBLIC_ALEPH_CHANNEL: ${{ secrets.NEXT_PUBLIC_ALEPH_CHANNEL }}
NEXT_PUBLIC_GITCLONE_DIR: ${{ secrets.NEXT_PUBLIC_GITCLONE_DIR }}
NEXT_PUBLIC_GITHUB_CLIENT_ID: ${{ secrets.NEXT_PUBLIC_GITHUB_CLIENT_ID }}
NEXT_PUBLIC_GITHUB_CLIENT_SECRET: ${{ secrets.NEXT_PUBLIC_GITHUB_CLIENT_SECRET }}
NEXTAUTH_URL: ${{ secrets.APP_URL }}
NEXTAUTH_SECRET: ${{ secrets.NEXTAUTH_SECRET }}

- name: Get screenshots
uses: actions/upload-artifact@v1
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/eslint-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,20 @@ on: [push]

jobs:
eslint:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16
cache: yarn

- name: Install dependencies
run: yarn
run: yarn install --frozen-lockfile

- name: Run eslint
run: yarn lint > eslint-results
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Create an issue

- If you've encountered a bug, open a [Bug Report](https://github.com/PoCInnovation/InterPlanetaryCloud/issues/new?assignees=&labels=&template=bug_report.md&title=).
- If you want InterPlanetaryCloud to have a new fonctionality, open a [Feature Request](https://github.com/PoCInnovation/InterPlanetaryCloud/issues/new?assignees=&labels=&template=feature_request.md&title=).
- If you want InterPlanetaryCloud to have a new functionality, open a [Feature Request](https://github.com/PoCInnovation/InterPlanetaryCloud/issues/new?assignees=&labels=&template=feature_request.md&title=).

## Resolve an issue

Expand Down Expand Up @@ -69,7 +69,7 @@ git push -f <fork name>
Contributions to this project must be accompanied by a Developer Certificate of
Origin (DCO).

All commit messages must contain the Signed-off-by line with an email address that matches the commit author. When commiting, use the `--signoff` flag:
All commit messages must contain the Signed-off-by line with an email address that matches the commit author. When committing, use the `--signoff` flag:

```sh
git commit -s
Expand Down
30 changes: 18 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,29 @@
FROM node:16-alpine
FROM node:16 AS builder

# Create app directory
WORKDIR /app

# Copy source (see .dockerignore)
COPY . .
# Copy dependencies files
COPY package.json yarn.lock ./

# Install dependencies
RUN yarn --frozen-lockfile
RUN yarn

# Copy source (see .dockerignore)
COPY . .

# Build
RUN yarn build

# Automatically leverage output traces to reduce image size
# https://nextjs.org/docs/advanced-features/output-file-tracing
RUN mv next.config.js .next/standalone/
RUN mv public .next/standalone/
RUN mv .next/static .next/standalone/.next/

WORKDIR /app/.next/standalone
FROM node:16.19.0-alpine3.17 AS runner

WORKDIR /app

ENV PORT 8080
# Automatically leverage output traces to reduce image size
# https://nextjs.org/docs/advanced-features/output-file-tracing
COPY --from=builder /app/.next/standalone ./standalone
COPY --from=builder /app/public ./standalone/public
COPY --from=builder /app/.next/static ./standalone/.next/static

CMD ["node", "server.js"]
CMD ["node", "./standalone/server.js"]
Loading