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

I27 create a contact page #49

Merged
merged 132 commits into from Jul 16, 2022
Merged
Show file tree
Hide file tree
Changes from 130 commits
Commits
Show all changes
132 commits
Select commit Hold shift + click to select a range
0c96292
Add mock data to work with
wambampham Jun 27, 2022
de25fd5
latest prop-types version
Will-H007 Jun 27, 2022
1ff0c10
Merge remote-tracking branch 'origin/main' into i27-create_a_contact_…
zachpmanson Jun 27, 2022
6bc69c8
Merge branch 'i27-create_a_contact_page' of https://github.com/coders…
Will-H007 Jun 27, 2022
6f9b36d
Add preliminary contactitem components
zachpmanson Jun 27, 2022
755d32b
Add color and whitelist placeholder image host
zachpmanson Jun 27, 2022
c0b97a5
Add proper list items and MOCK_DATA handling
zachpmanson Jun 28, 2022
7e4011c
Remove placeholder image whitelist
zachpmanson Jun 28, 2022
0414fca
base for contact information page, visual on INCIDENTS tab
wambampham Jun 28, 2022
c4a22f2
contact Items use map function
ChantelleKerr Jun 29, 2022
738c982
contacts use a contactsProp instead of any
ChantelleKerr Jun 29, 2022
0df3cfc
changed the name of the mock data to contact data to avoid overlap wi…
ChantelleKerr Jun 29, 2022
d9dd1bd
updated json name on contactInfo
ChantelleKerr Jun 29, 2022
348b846
Merge branch 'main' of https://github.com/codersforcauses/poops into …
zachpmanson Jun 29, 2022
edaae5f
Merge branch 'i27-create_a_contact_page' of https://github.com/coders…
Will-H007 Jun 29, 2022
71c37c6
search bar added
Will-H007 Jun 29, 2022
66f1dfd
Center search bar
zachpmanson Jun 29, 2022
78a8fbf
Switch to contact parameter in contactiem
zachpmanson Jun 29, 2022
615eff4
Remove domain whitelist
zachpmanson Jun 29, 2022
b658520
Individual contact is clickable
ChantelleKerr Jun 29, 2022
8f05241
Merge branch 'i27-create_a_contact_page' of https://github.com/coders…
ChantelleKerr Jun 29, 2022
e9fb227
Correct data displays on contact details page
ChantelleKerr Jun 29, 2022
3f09646
Added ContactInfo component to contact details page
ChantelleKerr Jun 29, 2022
7b50313
Layout for contact details page
wambampham Jun 29, 2022
9a09fe2
Merge branch 'i27-create_a_contact_page' of https://github.com/coders…
wambampham Jun 29, 2022
eae053e
deleted files that accidentally reappeared
wambampham Jun 29, 2022
59cd365
Change searchbar capitalisation
zachpmanson Jun 30, 2022
3e5e00d
useState uses filterContacts instead of serachField
ChantelleKerr Jun 30, 2022
933aa2f
lint fixes
ChantelleKerr Jun 30, 2022
893b6bb
removed contact layout from incidents, clicking on contact leads to t…
wambampham Jun 30, 2022
239c1df
Merge branch 'i27-create_a_contact_page' of https://github.com/coders…
wambampham Jun 30, 2022
7458003
clickable contact details pass whole contact rather than only id
ChantelleKerr Jun 30, 2022
7d26699
Created a types file to avoid repetition
ChantelleKerr Jun 30, 2022
0a7aabf
Add contact page routing
zachpmanson Jul 1, 2022
e66b405
Merge branch 'i27-create_a_contact_page' of https://github.com/coders…
zachpmanson Jul 1, 2022
ee4ac67
imported Image in contactinfo
ChantelleKerr Jul 1, 2022
0324454
removed type 'any' in getStaticProps
ChantelleKerr Jul 1, 2022
8e0e113
Added directions
ChantelleKerr Jul 1, 2022
bdc898a
styling for user tags
wambampham Jul 1, 2022
607e521
Added tags and notes icons to contactinfo page
ChantelleKerr Jul 1, 2022
cabc846
Increase spacing on Back button
zachpmanson Jul 2, 2022
643a97e
Add horizonal spacing to Back button
zachpmanson Jul 2, 2022
30b472f
Change back button to Link
zachpmanson Jul 2, 2022
a442bb3
Add contact name to page title
zachpmanson Jul 2, 2022
477a0f5
Wrap text on overflow on contact page
zachpmanson Jul 2, 2022
7520e76
removed captial contactinfo file name
ChantelleKerr Jul 2, 2022
0e19d31
Fixed captialisation of contactinfo file
ChantelleKerr Jul 2, 2022
26e8fd0
Add clickable mailto link
zachpmanson Jul 2, 2022
dfcc43e
Merge branch 'main' of https://github.com/codersforcauses/poops into …
zachpmanson Jul 2, 2022
6507cfd
Update color names
zachpmanson Jul 2, 2022
3748cdd
Added Edit and Save button
ChantelleKerr Jul 2, 2022
41ef647
Fix color names
zachpmanson Jul 2, 2022
930de34
Elements change when in editing mode
ChantelleKerr Jul 2, 2022
fc569df
Freeze top bar
zachpmanson Jul 2, 2022
5f3ca37
changed input field to textarea for notes
ChantelleKerr Jul 2, 2022
a3d4fe7
updated searchbar(semi-complete)
Will-H007 Jul 2, 2022
0f254c2
updated searchTag(searchBar filter)
Will-H007 Jul 3, 2022
76f768f
Added Cancel edit button, styled input fields
ChantelleKerr Jul 3, 2022
8f5caf9
Capitalise prop types
ChantelleKerr Jul 3, 2022
5db76e7
Added Phone Icon, can call phone number
ChantelleKerr Jul 3, 2022
ce6e9c0
Added bottom border to contact list items
ChantelleKerr Jul 3, 2022
96901fc
update json data
wambampham Jul 3, 2022
4e50978
Merge branch 'i27-create_a_contact_page' of https://github.com/coders…
wambampham Jul 3, 2022
db24655
Update types.ts
wambampham Jul 3, 2022
4bd68fc
changed the way to display pet names after changing type to list of s…
wambampham Jul 3, 2022
3cf4eea
Moved save, cancel button inside form, lint fixes
ChantelleKerr Jul 4, 2022
43e5e68
Added first name and last name edit field
ChantelleKerr Jul 4, 2022
4ce540b
Added Pet interface and changed free_text to desc
ChantelleKerr Jul 4, 2022
7b0ba5a
Added labels for input fields, swapped text colours
ChantelleKerr Jul 4, 2022
16d8407
Fixed styling on back and edit button
ChantelleKerr Jul 4, 2022
a17c7ab
update contact_data to fit data types
wambampham Jul 4, 2022
32fc17f
Merge branch 'i27-create_a_contact_page' of https://github.com/coders…
wambampham Jul 4, 2022
ca1d3a3
update contactinfo to display pet names and individual pet.notes
wambampham Jul 4, 2022
5950dda
Fixed sticky back and edit buttons
ChantelleKerr Jul 5, 2022
5b82cb9
Added styling to pet section
ChantelleKerr Jul 5, 2022
e91439f
Added plus icon to add pet when in editing mode
ChantelleKerr Jul 5, 2022
678c933
Split contactinfo into two components
ChantelleKerr Jul 6, 2022
07f3f7d
updated searchbar in contact page(can now filter through tags)
Will-H007 Jul 6, 2022
914b80f
UPDATE: searchbar in contact page bug fixed
Will-H007 Jul 6, 2022
39de28f
i27 UPDATE: searchbar dropdown bug fixed #2
Will-H007 Jul 6, 2022
88652eb
i27- Searchbar dropdown fixed more bugs
Will-H007 Jul 6, 2022
9c9ad0a
Add preliminary profile entry
zachpmanson Jul 6, 2022
23b1091
Adds new pet fields when plus icon is clicked
ChantelleKerr Jul 6, 2022
8d0a6a6
Pets can be removed from the state
ChantelleKerr Jul 7, 2022
3c5c93d
Added ContactForm state which updates when fields change
ChantelleKerr Jul 7, 2022
41f3844
changed data to have pet ids, and changed types.ts
wambampham Jul 7, 2022
6fd69a8
updated searchbar with CSS(may add icon later)
Will-H007 Jul 8, 2022
99d2701
UPDATE: searchbar and searchtag border refined
Will-H007 Jul 8, 2022
0051894
changed searchBar border color and size
Will-H007 Jul 8, 2022
c8a2598
Updated edit pet functionality to work with pet id
ChantelleKerr Jul 8, 2022
e4162c3
Fixed bug: contactForm didn't get last character of updated pet info
ChantelleKerr Jul 8, 2022
774526c
lint fixes
ChantelleKerr Jul 8, 2022
0b2091c
Change searchbar to Tailwind and add search icon
zachpmanson Jul 8, 2022
5ac88b3
Remove old search image comment
zachpmanson Jul 8, 2022
fa5b946
Hide profile when search field is empty
zachpmanson Jul 8, 2022
b5ca9a2
Minor profile changes
zachpmanson Jul 8, 2022
860b90d
added dropdown for regions, installed new react-select package and ot…
wambampham Jul 8, 2022
c07cced
added tag multiselector, change state, needs to be moved to edit mode…
wambampham Jul 8, 2022
8a4895c
moved dropdowns to edit mode:
wambampham Jul 8, 2022
dceec76
Removed icons from editing mode
ChantelleKerr Jul 9, 2022
05011f6
Changes notes input fields to textarea fields
ChantelleKerr Jul 9, 2022
742bc8f
Fix minor spacing issues in searchbar
zachpmanson Jul 9, 2022
e6693fb
Merge branch 'i27-create_a_contact_page' of https://github.com/coders…
zachpmanson Jul 9, 2022
52c131c
Create regions and tags state and pass it to dropdown component
ChantelleKerr Jul 9, 2022
d736db1
can change regions
ChantelleKerr Jul 9, 2022
e94f263
Add type annotations for props
zachpmanson Jul 9, 2022
8235004
Tags can be updated
ChantelleKerr Jul 9, 2022
1e5cfb5
Merge branch 'i27-create_a_contact_page' of https://github.com/coders…
zachpmanson Jul 9, 2022
0db9ebb
Add UUID generator to pets
zachpmanson Jul 9, 2022
b1197b2
changed to camcelCase
wambampham Jul 9, 2022
e7a1070
Merge branch 'i27-create_a_contact_page' of https://github.com/coders…
wambampham Jul 9, 2022
e3cf293
Merge branch 'i27-create_a_contact_page' of https://github.com/coders…
zachpmanson Jul 9, 2022
56a769d
Merge branch 'main' of https://github.com/codersforcauses/poops into …
zachpmanson Jul 9, 2022
74e29c0
Update lock files
zachpmanson Jul 9, 2022
88a3f2d
Added props for dropdown style
ChantelleKerr Jul 9, 2022
42dbe74
updated dropdown tags props
ChantelleKerr Jul 9, 2022
60ce801
Fixed types
ChantelleKerr Jul 9, 2022
9020791
Fixed types (hopefully for good)
ChantelleKerr Jul 9, 2022
7f17f7a
Updated tag dropdown types
ChantelleKerr Jul 9, 2022
7668e18
requested changes
ChantelleKerr Jul 11, 2022
9ec7869
Merge branch 'main' into i27-create_a_contact_page
ChantelleKerr Jul 11, 2022
6a5084e
Fixes CSS for searchbar and its icon
ChantelleKerr Jul 11, 2022
b13a145
refactor: Avatar in own component, pointer cursor when hovering over …
ChantelleKerr Jul 12, 2022
515bb17
refactor: removed new-tab.png
ChantelleKerr Jul 12, 2022
6bd0cfa
refactor: Removed pet map function, it only updates the pet thats ind…
ChantelleKerr Jul 12, 2022
b20395f
refactor: Moved contact.tsx to contact/index.tsx
ChantelleKerr Jul 12, 2022
8ae348a
requested change reduce code repetition
wambampham Jul 12, 2022
57d4da3
Unify top bar spacing
zachpmanson Jul 12, 2022
cf1793d
Added margin to bottom of contactinfo
ChantelleKerr Jul 12, 2022
3ace352
Fixed search drop down CSS: Words don't get cut off
ChantelleKerr Jul 13, 2022
1212ef0
Merge branch 'main' into i27-create_a_contact_page
ChantelleKerr Jul 15, 2022
62c39f1
Added grey into config, fixed contactForm margin
ChantelleKerr Jul 15, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Empty file modified .husky/pre-commit 100644 → 100755
Empty file.
855 changes: 855 additions & 0 deletions mockData/CONTACT_DATA.json

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions mockData/PROFILE_DATA.json
@@ -0,0 +1,22 @@
{
"id": "me",
"firstName": "John",
"lastName": "Doe",
"desc": "description",
"pets": [
{ "id": "62c6f9a7a9ff10abfef8f4b0", "name": "Zoe", "notes": "Is Moth" },
{ "id": "62c6f9a73d8c64def8c87ca7", "name": "Kato", "notes": "Guinea Pig" },
{ "id": "62c6f9a70b2d3c4868120418", "name": "John", "notes": "Capubara" },
{
"id": "62c6f9a7762bb5632137013a",
"name": "Goggy",
"notes": "Praying Mantis"
}
],
"email": "tiamcmahon@kegular.com",
"phone": "(886) 578-3300",
"streetAddress": "691 Cleveland Street",
"region": ["Northern", "Busselton", "Western"],
"notes": "Likes to eat chocolate",
"tags": ["volunteer", "profile"]
}