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

Book a Car Frontend #34

Merged
merged 164 commits into from
Feb 29, 2024
Merged
Show file tree
Hide file tree
Changes from 158 commits
Commits
Show all changes
164 commits
Select commit Hold shift + click to select a range
83ae3fe
Update naviagation panel
fmanimashaun Feb 13, 2024
589111f
Update the setup navigation
fmanimashaun Feb 13, 2024
d12120a
Adjust protected route setup
fmanimashaun Feb 13, 2024
8222058
Update naviagtion
fmanimashaun Feb 13, 2024
45c2392
Update the index
fmanimashaun Feb 14, 2024
7445a5d
create CarsSlice and add it to store for testing purpouses
tomasesquivelgc Feb 17, 2024
31dc276
add linters.yml
tomasesquivelgc Feb 17, 2024
3cbbb00
Merge pull request #13 from fmanimashaun/install-linters
fmanimashaun Feb 18, 2024
3821142
Merge pull request #12 from fmanimashaun/backend-integration
fmanimashaun Feb 18, 2024
d8b77af
Update the package json
fmanimashaun Feb 18, 2024
0e7c725
Add postcss config
fmanimashaun Feb 18, 2024
af5a524
Update repo
fmanimashaun Feb 19, 2024
c5a3b7b
Merge pull request #14 from fmanimashaun/backend-integration-update
fmanimashaun Feb 19, 2024
be427a9
implement carrousel of three items
tomasesquivelgc Feb 19, 2024
425ac8e
Create an auth layout component for auth pages
simplegoose Feb 19, 2024
b7a40b8
Create jwt decoder to help with decoding jwt tokens
simplegoose Feb 19, 2024
ef3b513
Create an auth slice that will help with authentication on the applic…
simplegoose Feb 19, 2024
8222ebf
Apply redux persist library to persist data for application
simplegoose Feb 19, 2024
dd9b8b3
Wrap application inside redux persist persist gate
simplegoose Feb 19, 2024
6125434
Install redux-persist jwt-decode formik and yup as project dependencies
simplegoose Feb 19, 2024
76c758f
Ignore extraneous dependencies
simplegoose Feb 19, 2024
f6cae85
Export logout action creator
simplegoose Feb 19, 2024
6a1610c
Get user meta from state
simplegoose Feb 19, 2024
a79f660
Create register functionality and form for registering
simplegoose Feb 19, 2024
4016bad
Create register functionality and form for logging in
simplegoose Feb 19, 2024
3973697
Lint files
simplegoose Feb 19, 2024
6b9e0a0
create carrousle pagination and fix extra slide problem
tomasesquivelgc Feb 19, 2024
1413996
Merge pull request #15 from fmanimashaun/feat/auth
simplegoose Feb 19, 2024
22d6961
adjust indentation size and delete debugging logs
tomasesquivelgc Feb 19, 2024
b0d889f
change primary green colo to match template and add styles to title
tomasesquivelgc Feb 19, 2024
456f51b
add social icons and shapes
tomasesquivelgc Feb 19, 2024
42f5ecd
adjust color palette for better contrast
tomasesquivelgc Feb 19, 2024
d247625
Update gitignore
fmanimashaun Feb 19, 2024
2e1a4ad
Merge branch 'dev' into car-listing-frontend
tomasesquivelgc Feb 19, 2024
a905e92
Make changes to role status when user logs in or signs up from the da…
simplegoose Feb 20, 2024
9897584
Make changes to middlewares to avoid logging errors
simplegoose Feb 20, 2024
f9a09b9
Merge branch 'dev' of https://github.com/fmanimashaun/book-car into f…
simplegoose Feb 20, 2024
2508113
Merge pull request #16 from fmanimashaun/car-listing-frontend
tomasesquivelgc Feb 20, 2024
e1ea7c7
Merge pull request #17 from fmanimashaun/feat/auth
tomasesquivelgc Feb 20, 2024
8757b88
Add deleteCar function to the AppDataSlice
M-Anwar-Hussaini Feb 20, 2024
7e5ac91
Create the deleteCar function
M-Anwar-Hussaini Feb 20, 2024
c1e4350
Add reducers to the appSlice when a car is deleted
M-Anwar-Hussaini Feb 20, 2024
71bf826
Add bootstrap to the html
M-Anwar-Hussaini Feb 20, 2024
54e5e65
Apply the requested changes
M-Anwar-Hussaini Feb 20, 2024
4e0e31d
Hotfix: update log in and sign up link in the register and login comp…
Estete9 Feb 20, 2024
c7bda36
Refactor the appSlice
M-Anwar-Hussaini Feb 20, 2024
8dfdad2
Delete the car locally
M-Anwar-Hussaini Feb 20, 2024
ed8ddc3
make table auto generated and vertical
tomasesquivelgc Feb 20, 2024
e147a69
limit amount of details in table
tomasesquivelgc Feb 20, 2024
986247a
Refactored the DeleteCars component so it uses the deteCarFromDatabas…
Estete9 Feb 20, 2024
c082e06
add more details button and color-circle png
tomasesquivelgc Feb 20, 2024
ef36ac8
add reserve button and icons
tomasesquivelgc Feb 20, 2024
11518a2
Delete .env
fmanimashaun Feb 21, 2024
bdbf955
Delete .env
fmanimashaun Feb 21, 2024
d08586f
Delete .env
fmanimashaun Feb 21, 2024
f16dffa
update
fmanimashaun Feb 21, 2024
d55a210
Update gitignore file
fmanimashaun Feb 21, 2024
618e812
Update tailwindcss config
fmanimashaun Feb 21, 2024
6691e2c
Pass down token to when dispatching action
simplegoose Feb 21, 2024
9275953
Fix navigation links to login and register pages
simplegoose Feb 21, 2024
19f5600
Check if user has a expired token
simplegoose Feb 21, 2024
c4149df
Make changes to checking if a token has expired
simplegoose Feb 21, 2024
87afed4
Merge pull request #18 from fmanimashaun/feature/delete-car
simplegoose Feb 21, 2024
9e3e583
Fix all eslint warnings
M-Anwar-Hussaini Feb 21, 2024
5032154
create reservation form
tomasesquivelgc Feb 21, 2024
45e3c02
add success message to reservation
tomasesquivelgc Feb 21, 2024
27a67c7
add background image
tomasesquivelgc Feb 21, 2024
d91e8de
style form
tomasesquivelgc Feb 21, 2024
f780b01
add preloaded car id
tomasesquivelgc Feb 21, 2024
0f07801
Merge pull request #19 from fmanimashaun/fix/signup-link
fmanimashaun Feb 22, 2024
3820ffb
Implement responsiveness in Layout for sidebar and CarList for carrou…
Estete9 Feb 22, 2024
c05a812
fix "no id" bug
tomasesquivelgc Feb 22, 2024
7b3b307
Create the AddCar component
M-Anwar-Hussaini Feb 22, 2024
cc9ffdb
fetche engyin types from the store
M-Anwar-Hussaini Feb 22, 2024
65a720e
Create the formData state
M-Anwar-Hussaini Feb 22, 2024
e82d26e
Add Some handle functions
M-Anwar-Hussaini Feb 22, 2024
bfe8770
Add all fields needed to add a car
M-Anwar-Hussaini Feb 22, 2024
33d1056
Fix some eslint errors
M-Anwar-Hussaini Feb 22, 2024
8030268
Resolve some console errors
M-Anwar-Hussaini Feb 22, 2024
125cf1b
Fix routing, authentication and minor styling correction
fmanimashaun Feb 22, 2024
301abf5
Conceal the backend endpoints
fmanimashaun Feb 22, 2024
ad91e9c
move success message outside the form
tomasesquivelgc Feb 22, 2024
f850fff
Merge pull request #23 from fmanimashaun/HotFix---routes-and-styling
Estete9 Feb 22, 2024
fd6944f
applied changes to home link button
tomasesquivelgc Feb 22, 2024
b28fbc5
give car detail images max w and h, also expand info table to fit all…
tomasesquivelgc Feb 22, 2024
d7a1e1f
Merge branch 'dev' into car-details-front-end
tomasesquivelgc Feb 22, 2024
d02d3d3
Merge pull request #21 from fmanimashaun/car-details-front-end
tomasesquivelgc Feb 22, 2024
e93293d
Merge branch 'dev' into features/add-car
fmanimashaun Feb 23, 2024
1ecd367
Update the car submission
fmanimashaun Feb 23, 2024
1b750d5
add hamburger button and absolute position sidebar
tomasesquivelgc Feb 23, 2024
0ac3747
Merge branch 'dev' into feature/responsive
tomasesquivelgc Feb 23, 2024
42ef6aa
Update the car submission
fmanimashaun Feb 23, 2024
a8013be
Make reservation page to be fully responsive
simplegoose Feb 23, 2024
221b5e3
Add responsiveness to sidebar
simplegoose Feb 23, 2024
e198e9a
Add responsive utilities to sidebar wrapper
simplegoose Feb 23, 2024
39ac1dd
Add labels to all form input elements
simplegoose Feb 23, 2024
468f0e2
move sidebar logic into sidebar component and add onclick hide sideba…
tomasesquivelgc Feb 23, 2024
a6cdf07
fix exact pathing bug
tomasesquivelgc Feb 23, 2024
00fb763
fix sidebar height and remove top padding to fit all content
tomasesquivelgc Feb 23, 2024
5270172
fix sidebar height to always fit perfectly into the screen
tomasesquivelgc Feb 23, 2024
e1027df
add sidebar overlay
tomasesquivelgc Feb 23, 2024
f14797a
Merge pull request #24 from fmanimashaun/feature/responsive
Estete9 Feb 23, 2024
d399345
Merge branch 'dev' of https://github.com/fmanimashaun/book-car into f…
simplegoose Feb 24, 2024
213bf4f
Add reservation slice to store
fmanimashaun Feb 24, 2024
c1325a5
Update the appData slice
fmanimashaun Feb 24, 2024
16fc5e6
Add reservation slice
fmanimashaun Feb 24, 2024
2804b48
Update the auth slice
fmanimashaun Feb 24, 2024
be54a32
Update the fetch data from store
fmanimashaun Feb 24, 2024
d050dee
Update the handle submit function to use redux action
fmanimashaun Feb 24, 2024
a172918
Update the delete component
fmanimashaun Feb 24, 2024
ac89d41
Update the register component
fmanimashaun Feb 24, 2024
fc6be9a
Add validation for all fields
simplegoose Feb 24, 2024
fd8b54d
Create Form error component for displaying formik errors
simplegoose Feb 24, 2024
0798dca
Remove console.log from details slice
simplegoose Feb 24, 2024
8f26294
Merge with latest changes
simplegoose Feb 24, 2024
e905996
Fix error when updating user state
simplegoose Feb 24, 2024
28907a2
Merge with changes in feature/responsive branch
simplegoose Feb 24, 2024
44522e0
Get the right properties for user token
simplegoose Feb 24, 2024
5f87aba
Update the navigation
fmanimashaun Feb 25, 2024
5fa7607
Merge pull request #22 from fmanimashaun/features/add-car
fmanimashaun Feb 25, 2024
9100a03
Add the reservation list component
fmanimashaun Feb 25, 2024
d9b83f5
Update the reservation list component
fmanimashaun Feb 25, 2024
fd8b670
Update the Reservation list components
fmanimashaun Feb 25, 2024
4b055f0
Update the reservation list layout
fmanimashaun Feb 25, 2024
6b780ac
Update the reservation list
fmanimashaun Feb 27, 2024
a34e20a
remove layout padding
tomasesquivelgc Feb 27, 2024
b63d9b1
fix arrow button shapes
tomasesquivelgc Feb 27, 2024
af39753
add responsive layout to car details
tomasesquivelgc Feb 27, 2024
3d2b151
fix paddings and add color to more details button
tomasesquivelgc Feb 27, 2024
e723ef4
add redirect to form elements
tomasesquivelgc Feb 27, 2024
bec21c9
Merge pull request #26 from fmanimashaun/responsive-layout-emprovement
Estete9 Feb 28, 2024
f1b91ef
Merge branch 'dev' into Features/reservation-list
fmanimashaun Feb 28, 2024
55fb318
Update the car details
fmanimashaun Feb 28, 2024
1d97b00
Merge pull request #25 from fmanimashaun/Features/reservation-list
fmanimashaun Feb 28, 2024
4b81d65
Update the slice
fmanimashaun Feb 28, 2024
0722f32
Merge pull request #27 from fmanimashaun/Features/reservation-list
fmanimashaun Feb 28, 2024
99e01dd
Adjust the sidebar width
fmanimashaun Feb 28, 2024
211b77d
Create tests for routes of the application
simplegoose Feb 28, 2024
adf1c2b
Lint files
simplegoose Feb 28, 2024
92bc749
Install react renderer, edit test script to ignore axios
simplegoose Feb 28, 2024
b1b36cb
Update README.md
Estete9 Feb 28, 2024
0dd89c8
Update README.md
Estete9 Feb 28, 2024
6f47ae5
Merge pull request #28 from fmanimashaun/f/testing
Estete9 Feb 28, 2024
1feb207
Add licence and update missing author
Estete9 Feb 28, 2024
be5276f
Add licence and update missing author
Estete9 Feb 28, 2024
c5fa1ef
Merge branch 'Estete9-authors' of https://github.com/fmanimashaun/boo…
Estete9 Feb 28, 2024
9f0101c
Merge branch 'Estete9-authors' of https://github.com/fmanimashaun/boo…
Estete9 Feb 28, 2024
6702828
Merge branch 'Estete9-authors' of https://github.com/fmanimashaun/boo…
Estete9 Feb 28, 2024
a993e5f
remove layout padding to avoid visual bugs
tomasesquivelgc Feb 28, 2024
2a9d4b3
Merge pull request #30 from fmanimashaun/Estete9-authors
simplegoose Feb 28, 2024
c038a53
Merge pull request #31 from fmanimashaun/troubleshoot-responsive-bug
tomasesquivelgc Feb 28, 2024
e287ed5
Update README.md
Estete9 Feb 28, 2024
9725167
Delete replicated line
tomasesquivelgc Feb 28, 2024
d771dc3
Merge pull request #32 from fmanimashaun/Estete9-authors
simplegoose Feb 28, 2024
6c43a35
Merge pull request #33 from fmanimashaun/bugfix/duplicate-reservation
tomasesquivelgc Feb 28, 2024
500ec00
Remove duplicated licence
Estete9 Feb 28, 2024
7c1db21
Merge branch 'Estete9-authors' of https://github.com/fmanimashaun/boo…
Estete9 Feb 28, 2024
eec983c
Merge pull request #35 from fmanimashaun/Estete9-authors
Estete9 Feb 28, 2024
9257bce
Add licence
Estete9 Feb 28, 2024
d080c3c
Merge pull request #36 from fmanimashaun/Estete9-authors
fmanimashaun Feb 28, 2024
aa68b82
fix license file extension
Estete9 Feb 28, 2024
38c45e1
Include .env and .env.production instructions in readme
Estete9 Feb 28, 2024
9fb54b8
Merge pull request #37 from fmanimashaun/Estete9-authors
fmanimashaun Feb 28, 2024
4372777
Update README.md
fmanimashaun Feb 29, 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
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# ignore the files
src/reportWebVitals.js
src/reportWebVitals.js
src/app/redux/CarsSlice.js
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"react/jsx-filename-extension": ["warn", { "extensions": [".js", ".jsx"] }],
"react/react-in-jsx-scope": "off",
"import/no-unresolved": "off",
"no-shadow": "off"
"no-shadow": "off",
"import/no-extraneous-dependencies": "off"
},
"ignorePatterns": [
"dist/",
Expand Down
45 changes: 45 additions & 0 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Linters

on: pull_request

env:
FORCE_COLOR: 1

jobs:
eslint:
name: ESLint
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18.x"
- name: Setup ESLint
run: |
npm install --save-dev eslint@7.x eslint-config-airbnb@18.x eslint-plugin-import@2.x eslint-plugin-jsx-a11y@6.x eslint-plugin-react@7.x eslint-plugin-react-hooks@4.x @babel/eslint-parser@7.x @babel/core@7.x @babel/plugin-syntax-jsx@7.x @babel/preset-env@7.x @babel/preset-react@7.x
[ -f .eslintrc.json ] || wget https://raw.githubusercontent.com/microverseinc/linters-config/master/react-redux/.eslintrc.json
[ -f .babelrc ] || wget https://raw.githubusercontent.com/microverseinc/linters-config/master/react-redux/.babelrc
- name: ESLint Report
run: npx eslint "**/*.{js,jsx}"
stylelint:
name: Stylelint
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18.x"
- name: Setup Stylelint
run: |
npm install --save-dev stylelint@13.x stylelint-scss@3.x stylelint-config-standard@21.x stylelint-csstree-validator@1.x
[ -f .stylelintrc.json ] || wget https://raw.githubusercontent.com/microverseinc/linters-config/master/react-redux/.stylelintrc.json
- name: Stylelint Report
run: npx stylelint "**/*.{css,scss}"
nodechecker:
name: node_modules checker
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Check node_modules existence
run: |
if [ -d "node_modules/" ]; then echo -e "\e[1;31mThe node_modules/ folder was pushed to the repo. Please remove it from the GitHub repository and try again."; echo -e "\e[1;32mYou can set up a .gitignore file with this folder included on it to prevent this from happening in the future." && exit 1; fi
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@
/build

# misc
.env
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
.env.production

npm-debug.log*
yarn-debug.log*
Expand Down
24 changes: 22 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ This project relies on a backend service to fetch and handle data. To ensure the

## 🚀 Live Demo <a name="live-demo"></a>

- [Live Demo Link]()
- [Live Demo Link](https://fmanimashaun.github.io/book-car)

<p align="right">(<a href="#readme-top">back to top</a>)</p>

Expand Down Expand Up @@ -170,12 +170,32 @@ You may also see any lint errors in the console.

## 👥 Authors <a name="authors"></a>

👤👤 **Fisayo Michael Animashaun**
👤 **Fisayo Michael Animashaun**

- GitHub: [@fmanimashaun](https://github.com/fmanimashaun)
- Twitter: [@fmanimashaun](https://twitter.com/fmanimashaun)
- LinkedIn: [Fisayo Michael Animashaun ](https://linkedin.com/in/fmanimashaun)

👤 **Tomas Matias Esquivel**
- GitHub: [@tomasesquivelgc](https://github.com/tomasesquivelgc)
- Twitter: [@EsquivelTomas](https://twitter.com/EsquivelTomas)
- LinkedIn: [Tomas Esquivel](https://www.linkedin.com/in/tomás-esquivel-b2160568/)

👤 **Timothy Njoroge**
- GitHub: [@simplegoose](https://github.com/simplegoose)
- LinkedIn: [@Timothy Njoroge](https://linkedin.com/in/timothy-njoroge-mwangi)

👤 *Anwar Hussaini*

- GitHub: [Anwar Hussaini](https://github.com/M-Anwar-Hussaini)
- LinkedIn: [Anwar Hussaini](https://www.linkedin.com/in/anwar-hussaini/)

👤 **Esteban Palacios**

- GitHub: [@Estete9](https://github.com/Estete9)
- Twitter: [@NaughTban](https://twitter.com/NaughTban)
- LinkedIn: [Esteban Palacios](https://www.linkedin.com/in/dev-esteban-palacios/)

<p align="right">(<a href="#readme-top">back to top</a>)</p>

<!-- ! FUTURE FEATURES -->
Expand Down
Loading
Loading