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

[Feature] Add room and unit list and details pages #17

Open
wants to merge 315 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
315 commits
Select commit Hold shift + click to select a range
0002e61
[Fix] Add fields
rosamaggi Jan 22, 2024
cfaaea8
[Feature] Add stylesheet
rosamaggi Jan 23, 2024
1112cc7
[Feature] Add translations
rosamaggi Jan 23, 2024
a37f804
[Feature] Add subunits
rosamaggi Jan 24, 2024
3909a64
[Fix] add tabs text style
rosamaggi Jan 26, 2024
d538bff
[Feature] add translations
rosamaggi Jan 26, 2024
9c37b7a
[Fix] update unit
rosamaggi Jan 26, 2024
8ded5b4
[Feature] change tabs title
rosamaggi Jan 26, 2024
de9a4f4
[Fix] errors messages from update unit method
rosamaggi Jan 26, 2024
1934c1d
[Fix] Add sub-unit icon
rosamaggi Jan 26, 2024
50e68eb
[Feature] Add delete unit mutation
rosamaggi Jan 29, 2024
39081a0
[Refactor] common style
rosamaggi Jan 29, 2024
b50486d
[Fix] SubUnit style
rosamaggi Jan 29, 2024
a35e15a
[Fix] rendering
rosamaggi Jan 29, 2024
3749ee2
[Feature] Confirmation Alert dialog
rosamaggi Jan 29, 2024
6b612fa
[Feature] Add delete unit on details unit
rosamaggi Jan 29, 2024
80235ba
[Install] yarn
rosamaggi Jan 29, 2024
011761f
[Fix] Add id and key
rosamaggi Jan 31, 2024
e4b2954
[Test] Add CRUD unit tests
rosamaggi Jan 31, 2024
7a196df
[Test] Add test documentation
rosamaggi Jan 31, 2024
b9c7c02
[Install] yarn
rosamaggi Jan 31, 2024
856fc12
[Fix] post the name and the status of units to create or delete them
rosamaggi Jan 31, 2024
ed25295
[Fix] render units after saving unit
rosamaggi Jan 31, 2024
e806e08
[Fix] Add line
rosamaggi Jan 31, 2024
e442d20
[Feature] Add break line in drop down list to separate LHD and LDAP u…
rosamaggi Jan 31, 2024
3027b00
[Fix] Call method error
rosamaggi Feb 1, 2024
06d1b3d
[Install] yarn add sass
rosamaggi Feb 2, 2024
9cf38f2
[Style] change extention of style file to have media queries
rosamaggi Feb 2, 2024
b9c4ff5
[Feature] Add fulltext search for units
rosamaggi Feb 2, 2024
d4d1718
[fix] Nonexistent SCSS import
Feb 26, 2024
f4aa26e
[refactor] `src/epfl-elements` into `epfl-elements-react`
Feb 26, 2024
f36a687
[Fix] If we delete a new (just added) subunit, we have an exception i…
rosamaggi Feb 27, 2024
52e9b03
[Fix] props
rosamaggi Feb 28, 2024
8498476
[Fix] delete occupancies from graphQL query
rosamaggi Feb 28, 2024
79aa0c2
[refactor] add extension to component file
rosamaggi Feb 28, 2024
be31a38
[refactor] delete comments and logs
rosamaggi Feb 28, 2024
7cd9b2b
[install] yarn
rosamaggi Feb 28, 2024
b986217
[document] Learn test for cross-project joint development
Dec 7, 2023
6bf6e0e
[Refactor] Add example
rosamaggi Dec 22, 2023
9eda254
[Feature] Add hazards svg
rosamaggi Feb 22, 2024
5ca1840
[Install] Add formio et formio/react
rosamaggi Feb 22, 2024
36ebbfe
[Feature] Add loaders for formio css file
rosamaggi Feb 22, 2024
891ddce
[Feature] Add hazard card component
rosamaggi Feb 22, 2024
226ec9f
[Feature - WIP] add formio for hazards in roomdetails
rosamaggi Feb 23, 2024
31b3e47
[Feature] add hazards queries
rosamaggi Mar 4, 2024
fdb195e
[Style] add new style for unit card
rosamaggi Mar 4, 2024
f08d1be
[Feature] add cosecs and profs in unit card
rosamaggi Mar 4, 2024
058aa24
[Feature] add hazards props based on type
rosamaggi Mar 4, 2024
a930fa8
[Refactor] migrate hazards props in HazardProperties
rosamaggi Mar 4, 2024
fdd93f8
[Feature] make hazards cards dynamics with their name
rosamaggi Mar 4, 2024
9c30b21
[Refactor] call Hazardtab
rosamaggi Mar 4, 2024
16ee386
[Translations] hazards types
rosamaggi Mar 4, 2024
a7ada8b
[Feature] add hazard form types
rosamaggi Mar 4, 2024
c938553
[Fix] rename images
rosamaggi Mar 4, 2024
9e9b9af
[Feature] add hazards update/create
rosamaggi Mar 5, 2024
9aa6509
[Feature] add id in hazard types
rosamaggi Mar 7, 2024
7573a81
[install] yarn
rosamaggi Mar 7, 2024
e84fee8
[Feature] add hazardFormControl translations
rosamaggi Mar 7, 2024
221f53c
[Feature] modify hazard tab to take encrypted id in charge of mutations
rosamaggi Mar 7, 2024
f0ca324
[Fix] Reload page after saving
rosamaggi Mar 8, 2024
6aae8da
[Feature] Add fetchHazardsInRoom
rosamaggi Mar 8, 2024
52f1927
[Feature] Add HazardFormControl page
rosamaggi Mar 8, 2024
b149ff6
[Feature] Add form dialog to add new version of form
rosamaggi Mar 8, 2024
0ab21a8
[Fix] delete ForceRender
rosamaggi Mar 12, 2024
6c9a82d
[Feature] refactor code of room details in more classes
rosamaggi Mar 12, 2024
e0cc75e
[Feature] add hazardCard stories
rosamaggi Mar 12, 2024
5895a3b
[Refactor] add unitTabTitle component
rosamaggi Mar 12, 2024
fd6d0be
[Feature] add update and insert mutation for hazard_form table
rosamaggi Mar 13, 2024
9d0a4e5
[Feature] add fetch for hazard_form table
rosamaggi Mar 13, 2024
c2357bb
[Fix] typo
rosamaggi Mar 13, 2024
beb32dc
[Feature - WIP] add hazardformdetails page
rosamaggi Mar 13, 2024
94c2ac3
[Install] yarn
rosamaggi Mar 13, 2024
453fc4b
[Fix] bug on hazardForm key in table
rosamaggi Mar 14, 2024
59738b2
[Refactor] move code in hazard form details page
rosamaggi Mar 14, 2024
bdc0fd4
[Translations] hazard form control translations
rosamaggi Mar 14, 2024
e93c402
[Install] yarn add semver
rosamaggi Mar 14, 2024
bb8a3af
[Feature] check for hazard form version
rosamaggi Mar 14, 2024
3e4d5e8
[Feature] Add encrypted id for units
rosamaggi Mar 15, 2024
5c3ba79
[Fix] bug to load form in hazard tab
rosamaggi Mar 15, 2024
40611dc
[Fix] recharge page on save hazard to update Hazard cards
rosamaggi Mar 15, 2024
7b26fe3
[Feature] Add "add button" in hazard card if hazards already exists f…
rosamaggi Mar 15, 2024
718195a
[Feature] Add encrypted id for rooms
rosamaggi Mar 15, 2024
d031200
[Feature] Add building, sector and floor information on room details tab
rosamaggi Mar 15, 2024
4ceec4c
[Feature] make units and room responsive
rosamaggi Mar 19, 2024
4039b74
[Feature] Add buttons to add or edit hazard in little screens
rosamaggi Mar 19, 2024
7a779e1
[Fix] style
rosamaggi Mar 19, 2024
b9c0f71
[Feature] Add hazards icons in tab title
rosamaggi Mar 19, 2024
2c2622d
[Fix] translations
rosamaggi Mar 19, 2024
34da0b1
[Fix] style
rosamaggi Mar 19, 2024
47273a3
[Feature] Add HazardForm component
rosamaggi Mar 19, 2024
bded36e
[WIP - Feature] set color for active menu
rosamaggi Mar 21, 2024
6af0f4b
[Feature] new room list with hazard icons
rosamaggi Mar 21, 2024
ff1da30
[Feature] Add rooms and units pagination
rosamaggi Mar 22, 2024
e0c6e32
[Feature] make table and columns responsive
rosamaggi Mar 22, 2024
9489d3f
[Fix] insert `encodeURIComponent` for special characters in opening d…
rosamaggi Mar 22, 2024
b976799
[Feature] Query for user info from the context
rosamaggi Mar 22, 2024
f05fd28
[Fix] Delete console.log
rosamaggi Mar 25, 2024
05fb908
[WIP - Feature] Add style on clicked menu
rosamaggi Mar 25, 2024
c412f7e
[WIP - Feature] Add style on clicked hazard
rosamaggi Mar 25, 2024
8c04456
[Fix] Selected Menu color
rosamaggi Mar 27, 2024
da03c26
[Feature] Save user's search in rooms and units
rosamaggi Mar 27, 2024
a9c8fac
[Fix] search text in room
rosamaggi Mar 28, 2024
15fda93
[Refactor] imports
rosamaggi Mar 28, 2024
7690c83
[Fix] delete search_history and save search filter in URL
rosamaggi Mar 28, 2024
49fe126
[WIP - Feature] add dirty state on hazards when we are on editng mode…
rosamaggi Mar 28, 2024
2ba875d
[Fix] delete useless props
rosamaggi Mar 28, 2024
99011e3
[Fix] initialization of debounce input
rosamaggi Mar 28, 2024
2a9047a
[Fix] change form state from edit to readonly and vice versa
rosamaggi Mar 28, 2024
ca4ceb2
[Fix] correct dirty state on changing action and hazard without saving
rosamaggi Mar 28, 2024
3fcb618
[Refactor] optimize code
rosamaggi Apr 2, 2024
8ec1e91
[Fix] Move Add button in HazardFormVBox component
rosamaggi Apr 2, 2024
271d7c1
[Fix] Chnage body prop to children to be more generic
rosamaggi Apr 3, 2024
33387e3
[Refactor] delete comments and console.log
rosamaggi Apr 3, 2024
310ffee
[Refactor] Rename keyGenerator
rosamaggi Apr 3, 2024
5398be4
[Translation] Translate button
rosamaggi Apr 3, 2024
84cb167
[Refactor] Delete unused file
rosamaggi Apr 3, 2024
d1a8baf
[WIP - Feature] Add new unit button
rosamaggi Apr 3, 2024
9ff274c
[Install] yarn
rosamaggi Apr 3, 2024
0f1e47f
[Fix] create two different methods for `fetchunitsFromFullTextAndPagi…
rosamaggi Apr 10, 2024
8f9ba5e
[Fix] bug with refresh of saved units in room details
rosamaggi Apr 10, 2024
52c7b1a
[Fix] add extension file
rosamaggi Apr 10, 2024
04a0786
[Refactor] Move code in specific component
rosamaggi Apr 15, 2024
f8da94e
[Feature] Create new Unit from API (api.epfl.ch)
rosamaggi Apr 15, 2024
40e2110
[Feature] Create new Room from API (api.epfl.ch)
rosamaggi Apr 15, 2024
ed31ae1
[Fix] Update room kind when kind is undefined
rosamaggi Apr 15, 2024
b24f103
[Fix] Correct bug for search parameter in querystring
rosamaggi Apr 19, 2024
bf23c1c
[Refactor] Change room list url to `/roomcontrol`
rosamaggi Apr 19, 2024
b1a9c40
[Feature] Add delete hazard from room functionality
rosamaggi Apr 22, 2024
c430034
[Install] yarn add @formio/contrib
rosamaggi Apr 23, 2024
7db9d48
[Feature] add new custom formio component for organism drop down list
rosamaggi Apr 24, 2024
0ee14d3
[Feature] add new custom formio component for organism drop down list
rosamaggi Apr 24, 2024
cb0b2bb
[Feature] Add hazard form child page for creation and edition af an h…
rosamaggi Apr 26, 2024
5a733c0
[Feature] Add hazard form child submission list to hazard details in …
rosamaggi Apr 26, 2024
8a48307
[Feature] Add "Add button" for child hazard form in room
rosamaggi Apr 26, 2024
5720f2f
[Fix] Form rendering
rosamaggi Apr 26, 2024
b35dc52
[Fix] make children not mandatory
rosamaggi Apr 26, 2024
215a205
[Feature] add back button towards parent form in child form component
rosamaggi Apr 29, 2024
f8e81f3
[Fix] show add sub hazard button only if at least one sub hazard exis…
rosamaggi May 2, 2024
78507b9
[Fix] show form builder if category is 'newHazard'
rosamaggi May 2, 2024
507f332
[Fix] don't add user photo into the interface
rosamaggi May 2, 2024
dff7e55
[Feature] add icon to admin menu
rosamaggi May 2, 2024
6363e8e
[Fix] translation
rosamaggi May 3, 2024
9a008d3
[Fix] Add REACT_CLIENT_ID environment variable for test and prod
rosamaggi May 3, 2024
67bcad4
[Fix] Change deletion unit message to add rooms and storage information
rosamaggi May 6, 2024
3c2d542
[Feature] Calculate new version dynamically
rosamaggi May 6, 2024
1a23876
[Fix] Show version only if it's not a new one and show form builder f…
rosamaggi May 7, 2024
3ab9e04
[Fix] translation
rosamaggi May 7, 2024
d31e5a8
[Fix] typo
rosamaggi May 7, 2024
4cb718c
[Feature] Add comment for HazardAdditionalInfo
rosamaggi May 23, 2024
2242acd
[Fix] Style
rosamaggi May 23, 2024
e881dc0
[Feature] check form validation to activate save button
rosamaggi May 23, 2024
b9bae58
[Fix] Add loadCustomComponents generic method for FormIOBuilder
rosamaggi May 24, 2024
48b0299
[Feature] Add modification info into the page
rosamaggi May 28, 2024
003c5e0
[Install] yarn add @types/sprintf-js
rosamaggi May 28, 2024
52834b2
[Feature] Add bio org file link
rosamaggi May 29, 2024
ff7a4f5
[Fix] show the plus button if there are children form defined for the…
rosamaggi May 31, 2024
f30e4b1
[Fix] comment hazard icons
rosamaggi May 31, 2024
9e32779
[Feature] Add "other rrom" component in form io
rosamaggi Jun 4, 2024
a98b740
[Feature] Add "other rrom" reference for staticMagneticField
rosamaggi Jun 4, 2024
88fa5a9
[Fix] label
rosamaggi Jun 4, 2024
19361c8
[Fix] link to other room
rosamaggi Jun 4, 2024
d4112b6
[Feature] translations
rosamaggi Jun 6, 2024
f2a1193
[Fix] change hazard name
rosamaggi Jun 6, 2024
be30f45
[Fix] change static magnetic field in other room description
rosamaggi Jun 6, 2024
666cce4
[Fix] update state submissionList at on change
rosamaggi Jun 10, 2024
fa50621
[WIP - Fix] insert correct categories
rosamaggi Jun 10, 2024
dfbaafc
[WIP - Fix] change useState to useRef
rosamaggi Jun 24, 2024
cb88d42
[WIP - Feature] add file in additionalInfo of the hazard
rosamaggi Jul 1, 2024
0d926c0
[feature] `LHDv3FormBuilder`: trivial-subclass (in fact, -wrapper-fun…
Jul 1, 2024
9d74804
[scaffold] Organism and room custom drop-downs
Jul 1, 2024
4918c61
[feature] Parametric organisms and rooms
Jul 1, 2024
87de7dc
[test] `LHDv3FormBuilder` (*and* the form it creates) with large lists
Jul 1, 2024
e88cf81
[test] Expose performance bug for thousands of entries
Jul 1, 2024
1f50e63
[Fix] saving file
rosamaggi Jul 3, 2024
04de636
[Feature] Create custom components for select room and organisms
rosamaggi Jul 3, 2024
02621dc
[Fix] Create FormBuilder passing by LHDv3FormBuilder
rosamaggi Jul 3, 2024
7aff321
[Fix] Don't yarn codegen the first time
rosamaggi Jul 4, 2024
f932c15
[Fix] git clone epfl-elements-react and run yarn
rosamaggi Jul 5, 2024
bc53e8c
[Refactor] eliminate dead code
rosamaggi Jul 8, 2024
cb38331
[Fix] additional info are not mandatory
rosamaggi Jul 8, 2024
434281b
[Fix] key value for input file
rosamaggi Jul 8, 2024
3f09176
[Fix] get roomList and organismList for HazardFormVBox
rosamaggi Jul 8, 2024
5d1e140
[Feature] check group for hazard form control pages
rosamaggi Jul 9, 2024
042e995
[Refactor] delete useless props
rosamaggi Jul 9, 2024
c15fd6f
[WIP - Feature] Add new admin group and username, firstname and lastn…
rosamaggi Jul 9, 2024
e9ee188
[Fix] filePath attribute
rosamaggi Jul 10, 2024
e0b99e7
[Fix] download files with POST request and token
rosamaggi Jul 11, 2024
1128aa2
[workaround] Pump up Yarn network timeout
Jul 12, 2024
f568cd2
[WIP] comment CMD ["./docker-entrypoint.sh"]
rosamaggi Jul 12, 2024
227c7a2
[Fix] url lhdv3
rosamaggi Jul 15, 2024
b809b49
[Fix] public directory and reactivate docker-entrypoint.sh
rosamaggi Jul 15, 2024
f242d91
[Feature] LHDv2 Integration
rosamaggi Jul 16, 2024
f1ef79b
[Feature] LHDv2 Integration with satosaaas
rosamaggi Jul 16, 2024
a022f61
[fix] `serve` on port 3000
Aug 12, 2024
263f953
[Fix] add alert if DB problem
rosamaggi Aug 23, 2024
2e4b9b8
[Fix] translations
rosamaggi Sep 5, 2024
449466c
[Fix] formio dropdown list style
rosamaggi Sep 5, 2024
9f3f7c2
[Fix] datagrid row style
rosamaggi Sep 5, 2024
ba0a8df
[Fix] font-size to small
rosamaggi Sep 5, 2024
36f5d4e
[Fix] Dialog style
rosamaggi Sep 6, 2024
f50ae1d
[Fix] Enable save button if no field is required on the form
rosamaggi Sep 6, 2024
516bec2
[Fix] Add notification if no unit chosen
rosamaggi Sep 6, 2024
bf0445e
[Fix] debounceInput style
rosamaggi Sep 6, 2024
d0d9fae
[Fix] form card style
rosamaggi Sep 6, 2024
ad61f5d
[Fix] add more information for attached unit in the room
rosamaggi Sep 6, 2024
b849dfd
[Fix] info style
rosamaggi Sep 6, 2024
1134faa
[Fix] form render when it's empty
rosamaggi Sep 6, 2024
8a1b5c7
[Fix] save additional info only if comment or file present
rosamaggi Sep 6, 2024
cf1edcf
[Fix] unit labels
rosamaggi Sep 9, 2024
0493049
[Feature] get "Type DIN" from api.epfl.ch
rosamaggi Sep 9, 2024
c0676f8
[Fix] style
rosamaggi Sep 9, 2024
5ff6b90
[Fix] alert if no room has been chosen for adding
rosamaggi Sep 9, 2024
47ba7a0
[Fix] label
rosamaggi Sep 9, 2024
0b06311
[Fix] AlertDialog width and height
rosamaggi Sep 9, 2024
e334402
[Translations] Datagrid and forms
rosamaggi Sep 9, 2024
41842d4
[Refactor] Image names
rosamaggi Sep 9, 2024
16caa51
[Fix] Hide hazard icons on the room list
rosamaggi Sep 9, 2024
618a3cb
[fix] sort categories in hazard tab
rosamaggi Sep 10, 2024
6fda294
[fix] translations
rosamaggi Sep 10, 2024
4c8b3b3
[refactor] rename image
rosamaggi Sep 10, 2024
8090598
[feature] Hide Language switcher
rosamaggi Sep 24, 2024
bbe0982
[Fix] Hide LanguageSwitcher
rosamaggi Sep 24, 2024
72953cc
[Fix] images
rosamaggi Oct 10, 2024
fcc5460
[comment]
rosamaggi Oct 10, 2024
09517dd
[style] change position of "Add" button and <hr/> style
rosamaggi Oct 10, 2024
12c9ee6
[install] yarn
rosamaggi Oct 10, 2024
9ab16df
[fix] make save button enabled if status=Deleted for hazard
rosamaggi Oct 10, 2024
203ef0a
[imports]
rosamaggi Oct 11, 2024
35fda81
[refactor] move audit info beside title
rosamaggi Oct 11, 2024
fef5507
[fix] show comment icon only if comment or pdf are presents
rosamaggi Oct 11, 2024
3cda26c
[style]
rosamaggi Oct 11, 2024
564be27
[refactor] the editable form is now a modal and in the read only view…
rosamaggi Oct 14, 2024
05ee50a
[refactor] create HazardList component
rosamaggi Oct 14, 2024
5529e48
[feature] add children table
rosamaggi Oct 15, 2024
b0e1c94
[feature] place present hazard cards in first position
rosamaggi Oct 16, 2024
77d33ce
[refactor - feature] delete hazardCard from the hazard tab view and m…
rosamaggi Oct 16, 2024
5311465
[feature] transform room filter with multiselect
rosamaggi Oct 18, 2024
a515d83
[fix] Filter when adding new room
rosamaggi Nov 4, 2024
89e7bfb
[refactor] move code into jsonUtils file
rosamaggi Nov 6, 2024
2e20a3e
[feature] Add inRoomDetails prop to dinamically change style if we ar…
rosamaggi Nov 6, 2024
4994a9c
[feature] Add HazardList in Hazard cell of room table if an hazard ca…
rosamaggi Nov 6, 2024
062e901
[fix] hide building, sector and floor
rosamaggi Dec 6, 2024
a18b617
[fix] styles
rosamaggi Dec 6, 2024
32b4578
[fix] change subunit icon
rosamaggi Dec 6, 2024
44c3f1e
[fix] style
rosamaggi Dec 6, 2024
cb6ebb8
[fix] insert prof and cosecs in unit list
rosamaggi Dec 6, 2024
73703dc
[feature] add units with prof and cosec in the rooms list
rosamaggi Dec 9, 2024
4b0e3ab
[feature] add unit report files on room detail page
rosamaggi Dec 10, 2024
9cc06fa
[fix] delete adminuse useless field
rosamaggi Dec 10, 2024
f5992c3
[fix] New variable REACT_APP_ENDPOINT_URL for non graphql queries
rosamaggi Dec 12, 2024
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
8 changes: 0 additions & 8 deletions .env.development

This file was deleted.

7 changes: 0 additions & 7 deletions .env.production

This file was deleted.

22 changes: 10 additions & 12 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,17 @@ chrome-user-data
*.swp
*.swo

packages/react-devtools-core/dist
packages/react-devtools-extensions/chrome/build
packages/react-devtools-extensions/chrome/*.crx
packages/react-devtools-extensions/chrome/*.pem
packages/react-devtools-extensions/firefox/build
packages/react-devtools-extensions/firefox/*.xpi
packages/react-devtools-extensions/firefox/*.pem
packages/react-devtools-extensions/shared/build
packages/react-devtools-extensions/.tempUserDataDir
packages/react-devtools-inline/dist
packages/react-devtools-shell/dist
packages/react-devtools-scheduling-profiler/dist
.env
/dist/

.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

/test-results/
/playwright-report/
/playwright/.cache/
18 changes: 18 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import type { StorybookConfig } from "@storybook/react-vite";

const config: StorybookConfig = {
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions",
],
framework: {
name: "@storybook/react-vite",
options: {},
},
docs: {
autodocs: "tag",
},
};
export default config;
15 changes: 15 additions & 0 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import type { Preview } from "@storybook/react";

const preview: Preview = {
parameters: {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i,
},
},
},
};

export default preview;
893 changes: 893 additions & 0 deletions .yarn/releases/yarn-4.0.2.cjs

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
compressionLevel: mixed

enableGlobalCache: false

nodeLinker: node-modules

npmScopes:
epfl:
npmRegistryServer: https://sti-nodejs.epfl.ch/
npmRegistryServer: "https://sti-nodejs.epfl.ch/"

yarnPath: .yarn/releases/yarn-4.0.2.cjs
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# pull official base image
FROM node:16
FROM node:18

RUN yarn config set network-timeout 600000
# Install serve
RUN yarn global add serve

Expand All @@ -12,13 +14,14 @@ ENV PATH /app/node_modules/.bin:$PATH
# install app dependencies
COPY package.json ./
COPY yarn.lock ./
RUN cd ..; git clone https://github.com/epfl-si/epfl-elements-react.git -b feature/addNewStories
# Installs all node packages
RUN yarn install
RUN yarn

# Copies everything over to Docker environment
COPY . ./
# Build production version of app
RUN yarn build
RUN yarn && yarn build

EXPOSE 3000
# start app
Expand Down
71 changes: 6 additions & 65 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,70 +1,11 @@
# Getting Started with Create React App
# LHD v3: Frontend

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
## Development Workflow

## Available Scripts
1. Run `yarn start`
2. Browse http://localhost:3000/ as directed

In the project directory, you can run:

### `yarn start`
## Playwright tests

Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.\
You will also see any lint errors in the console.

### `yarn test`

Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `yarn build`

Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `yarn eject`

**Note: this is a one-way operation. Once you `eject`, you can’t go back!**

If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).

### Code Splitting

This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)

### Analyzing the Bundle Size

This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)

### Making a Progressive Web App

This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)

### Advanced Configuration

This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)

### Deployment

This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)

### `yarn build` fails to minify

This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
In the frontend/test folder, run `npx playwright test` or `npx playwright test --ui`.
3 changes: 3 additions & 0 deletions css/bootstrap.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@import 'bootstrap/scss/functions';
@import 'bootstrap/scss/variables';
@import 'bootstrap/scss/mixins';
Loading