MatthiasWanner / btz-0321-aeviso-client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AE Viso - Client project

Front-End App: Wild Code School project #3

Team:
-Aeryle: https://github.com/Aeryle
-Chabelle78: https://github.com/Chabelle78
-ThomasBarrial: https://github.com/ThomasBarrial
-MatthiasWanner: https://github.com/MatthiasWanner
-Benwade-progldc: https://github.com/Benwade-prog

THIS APP ONLY WORKS WITH API: https://github.com/WildCodeSchool/btz-0321-aeviso-api

Description of the project

As part of our wildcode training, we have the pleasure to present our last project of the session. The main goal of this webapp is to report the search & development working hours from company's collaborators. And then we send the data to an accounting firm who is the project holder. This data allows a company to obtain a specific legal status which then allows them to have a reduced taxation.

Our goal is to create interfaces that are fast and easy to use. In order to optimize the working time and help companies to receive their juridic status.

How the application works :

3 users / 3 different roles / 3 different interfaces

Role 1 : SUPERADMIN if you login as a superadmin you will access to the accounting firm interface.

Role 2 : ADMIN if you login as a admin you will access to the R&D manager interface.

Role 3 : USER if you login as user you will access to the collaborators interface.

Environment Variables

To run this project, you will need to add the following environment variables to your .env file.

VITE_API_URL=url-of-the-api

Setup

Don't forget to run the API before starting the client : https://github.com/WildCodeSchool/btz-0321-aeviso-api

  • run $ git clone https://github.com/WildCodeSchool/btz-0321-aeviso-client.git
    in your terminal
  • run $ cd btz-0321-aeviso-client
  • run npm install

First Log

Use the USER_EMAIL and USER_PASSWORD in the Environment Variables from the API to log you in.

Development

Run development server

  • run npm run dev

Production

Build the project

  • run npm run build

ES lint

Run ES lint checks

  • run npm run lint

Build preview

Run Project in preview mode

  npm run serve

Library used

Current issues reported

. TypeScript Environment Variables for the API requests.
path : /src/API/request.ts
Issues:
Currently there is a conflict between TypeScript and Vite.js for this environment variables.
We have temporarily fixed the problem by ignoring the Typescript error on the affected line.

Don't worry, all requests work well !!!

Looking forward to an update from Vite.js

. Improve the redux dispatch interfaces. You can observe TODO taggs on the affected line.

. 401 Error Landing page.
When you run the landing page of the app, the API verifies your token, but your are not logged in yet, so the backend will send you an 401 Unauthorized Error and ask you to log in.

Once you are logged in, the error goes away.

. UX issue on the navigation sidebar.
Currently, if you click on a button in the interfaces to change a component by a link method, the sidebar design doesn't update.Url change but the sideBar doesn't !

. SUPERADMIN / UX issue : "CreateUpdateCompanyForm" component

If you try to create a new job for one of the company's administrator, you will arrive on the job component. Then, if you click on the return button you will be redirected to the companies list instead of the form.

. SideBar Mobile / on the clalendar component if you open the sidebar on the phone there is a css issue. You can resolve it by using redux.

. Component UpdateCreateCompany : have to improve logic to switch the state with a Link methode and add the component in the router. Use the id to switch from post to update.

ps: we are frenchies, sorry about the english ;)

About


Languages

Language:TypeScript 96.2%Language:CSS 1.8%Language:JavaScript 1.5%Language:HTML 0.3%Language:Dockerfile 0.2%