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

Frontend Client with React & MUI #1

Merged
merged 44 commits into from
Jun 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
0c90e37
initial client
mikezhen May 30, 2022
9dd8b26
first draft
mikezhen Jun 22, 2022
661adf5
add firebase config
mikezhen Jun 23, 2022
2069a37
firebase hosting using github actions
mikezhen Jun 23, 2022
13771a9
remove react logo
mikezhen Jun 23, 2022
1ae49af
new address dto
mikezhen Jun 23, 2022
5cf8ab8
adding swipeable view package
mikezhen Jun 23, 2022
b437024
rough first iteration
mikezhen Jun 23, 2022
0716209
use node 16.5.0 environment
mikezhen Jun 23, 2022
526d2e6
removing unused imports from app
mikezhen Jun 23, 2022
525f96a
adding demographic cards
mikezhen Jun 23, 2022
7857a2c
moving swipeable view out of container
mikezhen Jun 23, 2022
82f7d39
add blurred background to image carousel
mikezhen Jun 23, 2022
262f7ca
adding avatar and description
mikezhen Jun 24, 2022
79edebb
adding vet address & map
mikezhen Jun 24, 2022
001b2ca
link vet card to apple maps
mikezhen Jun 24, 2022
777ab0e
use bold fontWeight
mikezhen Jun 24, 2022
5dfc26c
map gender icon & rounded vet address card
mikezhen Jun 25, 2022
3c31717
remove unused imports
mikezhen Jun 25, 2022
41453c0
update maps query to place name instead of address
mikezhen Jun 25, 2022
6c01257
lost attribute for pet profile to display alert
mikezhen Jun 25, 2022
adc8135
remove petcard component
mikezhen Jun 26, 2022
858159c
define all interfaces and types
mikezhen Jun 26, 2022
0a7eb07
Header component for name & breed
mikezhen Jun 26, 2022
9134c90
define header props outside of jsx
mikezhen Jun 26, 2022
1b19a81
Carousel component for pet photos
mikezhen Jun 26, 2022
fcf92c8
ContactCard component for owner contact
mikezhen Jun 26, 2022
c46ae5a
cleaning up legacy code snippets
mikezhen Jun 26, 2022
71f3721
AddressCard component for vet info
mikezhen Jun 27, 2022
25a14af
un-nest address card component
mikezhen Jun 27, 2022
4b4a8d7
InfoItem component to display bio traits
mikezhen Jun 27, 2022
047a9f4
change term sex to gender
mikezhen Jun 27, 2022
a870a46
clean margin attr in components
mikezhen Jun 27, 2022
5879e89
petprofile container to offload from main app
mikezhen Jun 27, 2022
94bf50a
minor carousel bug
mikezhen Jun 27, 2022
3dc8fa4
use date-fns to calculate age
mikezhen Jun 27, 2022
1172447
use libphonenumber-js to generate tel uri
mikezhen Jun 27, 2022
3113f62
add fake phone number for mock
mikezhen Jun 27, 2022
875333a
call open in self window
mikezhen Jun 27, 2022
6f82f71
update fake phone number with real area code
mikezhen Jun 27, 2022
c426bc6
clean code styling
mikezhen Jun 28, 2022
40a2f69
update client readme
mikezhen Jun 28, 2022
9516377
reformat code with prettier
mikezhen Jun 28, 2022
5da38c3
async function for pet response
mikezhen Jun 28, 2022
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
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "petchat-85f05"
}
}
20 changes: 20 additions & 0 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on merge
'on':
push:
branches:
- main
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: cd client && npm ci && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_PETCHAT_85F05 }}'
channelId: live
projectId: petchat-85f05
20 changes: 20 additions & 0 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on PR
'on': pull_request
jobs:
build_and_preview:
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: '16.15.0'
- run: cd client && npm ci && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_PETCHAT_85F05 }}'
projectId: petchat-85f05
23 changes: 23 additions & 0 deletions client/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

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

npm-debug.log*
yarn-debug.log*
yarn-error.log*
30 changes: 30 additions & 0 deletions client/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# petchat Client

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

## Available Scripts

In the project directory, you can run:

### `npm start`

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.

### `npm 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.

### `npm run 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.
Loading