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

feat: edit org page (part 1) #733

Merged
merged 321 commits into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
321 commits
Select commit Hold shift + click to select a range
bae8b2c
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Sep 11, 2023
6a35737
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Sep 12, 2023
ed1bdb5
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Sep 12, 2023
9187b9e
Merge branch 'dev'
JoeKarow Sep 18, 2023
f8b9123
chore: lint & format
InReach-svc Sep 18, 2023
0b6f7d6
update crowdin client
JoeKarow Sep 18, 2023
f972c05
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Sep 18, 2023
7784997
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Sep 18, 2023
39e0bc8
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Sep 19, 2023
856db25
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Sep 19, 2023
5fdf555
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Sep 19, 2023
80ca258
Merge branch 'dev' into IN-831-edit-organization-page
JoeKarow Sep 19, 2023
a61f269
Merge branch 'dev' into IN-831-edit-organization-page
JoeKarow Sep 20, 2023
c18dba0
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Sep 20, 2023
76fff44
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Sep 20, 2023
f22be90
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Sep 20, 2023
b17f820
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Sep 20, 2023
4efe920
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Sep 20, 2023
aada0ad
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Sep 21, 2023
9852c21
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Sep 22, 2023
953fc23
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Sep 22, 2023
a78ecdc
Merge branch 'dev'
JoeKarow Sep 25, 2023
ccca09f
fix lockfile
JoeKarow Sep 25, 2023
ac0a23f
chore: lint & format
InReach-svc Sep 25, 2023
dfc55bf
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Sep 25, 2023
6621da0
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Sep 25, 2023
532ae3f
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Sep 25, 2023
f83bdf6
full width for form
JoeKarow Sep 25, 2023
5b263e4
clean up comments/dead code
JoeKarow Sep 25, 2023
46d57d0
move in to folder
JoeKarow Sep 25, 2023
b147b43
dep for json -> csv conversion
JoeKarow Sep 25, 2023
c0ab1ca
api routes/mock data
JoeKarow Sep 25, 2023
5b40c4f
move to dir, rework hook form
JoeKarow Sep 25, 2023
145550b
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Sep 26, 2023
025eb41
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Sep 26, 2023
4589d3e
Merge branch 'dev' into IN-831-edit-organization-page
JoeKarow Sep 26, 2023
39b384c
fix lockfile
JoeKarow Sep 26, 2023
cc69425
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Sep 26, 2023
2ed842f
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Sep 26, 2023
e5f7bb7
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Sep 26, 2023
28c28c8
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Sep 26, 2023
5d8433b
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Sep 26, 2023
5e759f8
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Sep 27, 2023
3f2a27d
add font fallbacks
JoeKarow Sep 27, 2023
50b7930
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Sep 27, 2023
4fe07f5
ignore _queries dir
JoeKarow Sep 27, 2023
7fa19ac
add serviceAreas, isNational
JoeKarow Sep 27, 2023
fddb89f
update data
JoeKarow Sep 27, 2023
8d0a03e
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Sep 27, 2023
ede3489
custom superjson
JoeKarow Sep 27, 2023
98b513f
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Sep 28, 2023
80d5eb6
clean up import
JoeKarow Sep 28, 2023
0bcdb60
add countryCode column
JoeKarow Sep 28, 2023
aa5931e
start data migration prep
JoeKarow Sep 28, 2023
be2d490
alter api route
JoeKarow Sep 28, 2023
2b4dec4
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Sep 28, 2023
c35daf1
chore: lint & format
InReach-svc Sep 28, 2023
0b14c8b
Merge branch 'dev' into IN-831-edit-organization-page
JoeKarow Sep 30, 2023
414ff8c
vercel geo
JoeKarow Sep 30, 2023
af58800
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Oct 2, 2023
5c746e8
Merge branch 'dev' into IN-831-edit-organization-page
JoeKarow Oct 2, 2023
b72bb38
fix lockfile
JoeKarow Oct 2, 2023
b64208b
chore: lint & format
InReach-svc Oct 2, 2023
97b1b66
Merge branch 'dev' into IN-831-edit-organization-page
JoeKarow Oct 5, 2023
e5bc39f
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Oct 5, 2023
b5ef0bd
remove umami
JoeKarow Oct 6, 2023
7b31a92
fix provider error
JoeKarow Oct 6, 2023
a9d300b
mobile app stuff
JoeKarow Oct 6, 2023
a4d6b9e
Merge branch 'dev'
JoeKarow Nov 29, 2023
676de6e
chore: lint & format
InReach-svc Nov 29, 2023
f7fbc8b
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Nov 29, 2023
0c1a5cf
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Nov 30, 2023
5ae5501
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Nov 30, 2023
2db0106
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Nov 30, 2023
828880b
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 1, 2023
d817343
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 1, 2023
17bec78
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 1, 2023
15a56e3
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 4, 2023
bfe57fa
Merge branch 'dev' into IN-831-edit-organization-page
JoeKarow Dec 4, 2023
6ab5d23
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 4, 2023
2924d07
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 4, 2023
fa6b6ad
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 4, 2023
cfa13c1
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 4, 2023
686f8c5
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 5, 2023
61a6e49
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 5, 2023
b85b13d
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 5, 2023
215741c
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 5, 2023
3dee6a7
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 6, 2023
ff617eb
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 8, 2023
4b70dce
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 8, 2023
72c16a6
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 8, 2023
2546d81
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 8, 2023
ac6f20a
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 11, 2023
ac6b5fb
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 11, 2023
5d8f913
chore: lint & format
InReach-svc Dec 11, 2023
0e00f78
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 11, 2023
ee9879f
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 11, 2023
6840b0e
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 11, 2023
4edd369
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 11, 2023
408bb08
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 12, 2023
d709ba5
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 12, 2023
952405e
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 12, 2023
8050d63
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 12, 2023
4c85b1b
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 12, 2023
c432147
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 12, 2023
2081965
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 13, 2023
455d1b9
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 13, 2023
82edb72
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 15, 2023
c6d9b11
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 18, 2023
2c8a53a
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 18, 2023
cd35fd4
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 19, 2023
b3e893d
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 20, 2023
0ce9cd1
Merge branch 'dev' into IN-831-edit-organization-page
JoeKarow Dec 20, 2023
0e6e990
fix types/add EditModeProvider
JoeKarow Dec 21, 2023
3fe7feb
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 21, 2023
a6c3a81
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 21, 2023
8067943
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 21, 2023
061812b
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 21, 2023
8192fff
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 21, 2023
7207c0b
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 21, 2023
82e9a87
generated icons
JoeKarow Dec 21, 2023
78c0ce4
Merge branch 'dev' into IN-831-edit-organization-page
JoeKarow Dec 22, 2023
ebfa482
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 22, 2023
6ccd94d
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 22, 2023
4259ab5
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 26, 2023
23898c3
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 26, 2023
2965a1f
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 28, 2023
5590be7
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 28, 2023
98efd02
Merge branch 'dev' into IN-831-edit-organization-page
JoeKarow Dec 28, 2023
bdb1771
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 28, 2023
fe35cef
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 29, 2023
1fd8e2c
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Dec 29, 2023
28bb8d5
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 2, 2024
9055327
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 2, 2024
beaf757
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 2, 2024
83fc289
fix import
JoeKarow Jan 2, 2024
c90c9a6
downgrade @crowdin/crowdin-api-client per crowdin/crowdin-api-client-…
JoeKarow Jan 2, 2024
f96dcb7
use array in prefixedId
JoeKarow Jan 2, 2024
cd4c792
update prefetch
JoeKarow Jan 2, 2024
b4b9de2
Merge branch 'dev' into IN-831-edit-organization-page
JoeKarow Jan 3, 2024
595eb72
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 4, 2024
0629223
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 4, 2024
71e7e04
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 4, 2024
cad75cc
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 4, 2024
caaa1b9
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 5, 2024
3f98bf0
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 5, 2024
e147152
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 5, 2024
4eb6e30
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 5, 2024
830cf38
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 5, 2024
8c2e4e6
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 5, 2024
2b49291
fix lint error
JoeKarow Jan 5, 2024
4842edd
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 5, 2024
7edcc53
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 8, 2024
b82eafe
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 8, 2024
2708a7a
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 8, 2024
1f90f20
convert dayIndex to luxon format
JoeKarow Jan 8, 2024
5df68c5
remove dupe
JoeKarow Jan 8, 2024
dccca1f
fix data schema
JoeKarow Jan 8, 2024
2e4bb83
update mock data
JoeKarow Jan 8, 2024
1bedd49
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 8, 2024
c2820a1
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 8, 2024
12c7a3d
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 8, 2024
eb64a30
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 8, 2024
45f7aa8
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 8, 2024
9202eb1
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 8, 2024
4d58320
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 9, 2024
c2c085d
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 9, 2024
b329b2c
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 9, 2024
7684683
rename ContactSection file to match component name
JoeKarow Jan 9, 2024
d860565
separate out ContactInfo in to parts
JoeKarow Jan 9, 2024
0541505
clear errors
JoeKarow Jan 9, 2024
5fb62af
add API handler for phone numbers
JoeKarow Jan 9, 2024
7440e78
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 9, 2024
7338c25
chore: lint & format
InReach-svc Jan 9, 2024
268f592
fix barrel file
JoeKarow Jan 9, 2024
9359e01
update api route/mock data
JoeKarow Jan 9, 2024
9070b1d
create edit mode ContactSection
JoeKarow Jan 9, 2024
67cbdea
alter drawer/phone # entry form
JoeKarow Jan 9, 2024
282ff84
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 10, 2024
094d388
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 10, 2024
562e219
update api route & mock data
JoeKarow Jan 10, 2024
676fc97
add theme variants
JoeKarow Jan 10, 2024
144ed12
change sort order
JoeKarow Jan 10, 2024
9fe532f
add api route & mock data
JoeKarow Jan 10, 2024
cadf661
contact section: phone & website
JoeKarow Jan 10, 2024
0a79412
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 10, 2024
663051f
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 10, 2024
8ff4683
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 10, 2024
c5f701c
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 10, 2024
73744fa
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 10, 2024
fb6fece
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 10, 2024
2e38baa
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 10, 2024
0700b23
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 10, 2024
ddf8c24
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 10, 2024
55b6eb5
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 10, 2024
6114017
create job summary
JoeKarow Jan 10, 2024
2ba0f0c
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 10, 2024
3f66486
Merge branch 'dev' into IN-831-edit-organization-page
JoeKarow Jan 11, 2024
1dd8440
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 11, 2024
1598a27
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 11, 2024
d705def
api routes/mock data
JoeKarow Jan 11, 2024
5f5ead3
basic edit drawer
JoeKarow Jan 11, 2024
9cca753
Email drawer links
JoeKarow Jan 11, 2024
b801169
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 11, 2024
ce94127
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 11, 2024
3f9dda8
fix conditional
JoeKarow Jan 11, 2024
ca906da
fix storybook conf for msw addon
JoeKarow Jan 11, 2024
71270e8
storybook conf tweak
JoeKarow Jan 12, 2024
6b537a5
add `tiny-invariant`
JoeKarow Jan 12, 2024
515bf65
generate nested freetext upsert
JoeKarow Jan 12, 2024
c9a3d21
update api routes/mocks
JoeKarow Jan 12, 2024
85f2efd
switch hook, fix data submission
JoeKarow Jan 12, 2024
9aaf4ac
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 12, 2024
1796ea9
Merge branch 'dev' into IN-831-edit-organization-page
JoeKarow Jan 16, 2024
dc1432c
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 16, 2024
0c4f491
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 16, 2024
56170d7
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 16, 2024
301ff77
move in to folder
JoeKarow Jan 16, 2024
ecef942
api routes / mock data
JoeKarow Jan 16, 2024
ce93d16
stop unminifying json mockdata
JoeKarow Jan 16, 2024
efd1808
api routes / mock data
JoeKarow Jan 16, 2024
7dde840
api routes / mock data
JoeKarow Jan 16, 2024
bd8654a
update msw public script
JoeKarow Jan 16, 2024
cd82ecb
social media update drawer
JoeKarow Jan 16, 2024
0f778a0
Merge branch 'dev' into IN-831-edit-organization-page
JoeKarow Jan 16, 2024
9aef57d
Merge branch 'dev' into IN-831-edit-organization-page
JoeKarow Jan 16, 2024
12af17d
fix lockfile
JoeKarow Jan 16, 2024
c87534e
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 16, 2024
1410eb3
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 17, 2024
1d837d6
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 17, 2024
ff5d692
chore: lint & format
InReach-svc Jan 17, 2024
ed3740b
enable wdyr on app, refactor icon
JoeKarow Jan 17, 2024
5eb0e63
remove ModalProvider & small cleanups
JoeKarow Jan 17, 2024
2158659
fix wdyr & add env trigger
JoeKarow Jan 17, 2024
d4545f2
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 18, 2024
b2a5b04
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 18, 2024
c956fd5
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 18, 2024
5fed508
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 18, 2024
f557868
i18n HMR & storybook swc
JoeKarow Jan 18, 2024
8c035ca
page title
JoeKarow Jan 18, 2024
46a3700
Merge branch 'dev' into IN-831-edit-organization-page
JoeKarow Jan 18, 2024
3b295ee
Merge branch 'dev' into IN-831-edit-organization-page
JoeKarow Jan 19, 2024
d3d3732
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 19, 2024
7ed6f07
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 19, 2024
d65f5ed
chore: lint & format
InReach-svc Jan 19, 2024
e16bf67
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 19, 2024
06e2c46
Merge branch 'dev' into IN-831-edit-organization-page
kodiakhq[bot] Jan 22, 2024
fc97aa5
fix i18n hmr plugin loading
JoeKarow Jan 22, 2024
d29d896
fix plugin loading during build
JoeKarow Jan 22, 2024
fae2f23
remove file
JoeKarow Jan 22, 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
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ pnpm-lock.yaml
.eslintignore
*.hbs
.trace/*.json
packages/ui/mockData/json/*.json
20 changes: 20 additions & 0 deletions apps/app/lib/wdyr.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/// <reference types="@welldone-software/why-did-you-render" />
import React from 'react'

// eslint-disable-next-line node/no-process-env
if (process.env.NODE_ENV === 'development' && !!process.env.WDYR) {
if (typeof window !== 'undefined') {
const loadWdyr = async () => {
const { default: whyDidYouRender } = await import('@welldone-software/why-did-you-render')
whyDidYouRender(React, {
trackAllPureComponents: true,
include: [/.*/],
exclude: [/.*mantine.*/i],
logOnDifferentValues: false,
logOwnerReasons: true,
collapseGroups: true,
})
}
loadWdyr()
}
}
28 changes: 26 additions & 2 deletions apps/app/next-i18next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ import HttpBackend from 'i18next-http-backend'
import intervalPlural from 'i18next-intervalplural-postprocessor'
// import LocalStorageBackend from 'i18next-localstorage-backend'
import MultiBackend from 'i18next-multiload-backend-adapter'
import compact from 'just-compact'

import path from 'path'

// @ts-expect-error - yelling about declaration file
import { localeList } from '@weareinreach/db/generated/locales.mjs'

const isBrowser = typeof window !== 'undefined'
const isDev = process.env.NODE_ENV !== 'production'
const isDev = process.env.NODE_ENV !== 'production' && !process.env.CI
const isVerbose = !!process.env.NEXT_VERBOSE
// const Keys = z.record(z.string())

Expand Down Expand Up @@ -42,6 +43,29 @@ const multi = new MultiBackend(null, {
},
})

const plugins = () => {
/** @type {any[]} */
const pluginsToUse = [intervalPlural, LanguageDetector]
if (isBrowser) {
pluginsToUse.push(ChainedBackend)
}
if (process.env.NODE_ENV === 'development') {
if (isBrowser) {
// @ts-expect-error - yelling about declaration file
import('i18next-hmr/plugin').then(({ HMRPlugin }) =>
pluginsToUse.push(new HMRPlugin({ webpack: { client: true } }))
)
} else {
// @ts-expect-error - yelling about declaration file
import('i18next-hmr/plugin').then(({ HMRPlugin }) =>
pluginsToUse.push(new HMRPlugin({ webpack: { server: true } }))
)
}
}

return compact(pluginsToUse)
}

/** @type {import('next-i18next').UserConfig} */
const config = {
i18n: {
Expand Down Expand Up @@ -76,7 +100,7 @@ const config = {
backends: isBrowser ? [multi] : [],
},
serializeConfig: false,
use: isBrowser ? [ChainedBackend, intervalPlural, LanguageDetector] : [intervalPlural, LanguageDetector],
use: plugins(),
maxParallelReads: 20,
joinArrays: '',
interpolation: {
Expand Down
22 changes: 21 additions & 1 deletion apps/app/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,30 @@ const nextConfig = {
// Automatically tree-shake Sentry logger statements to reduce bundle size
disableLogger: isVercelProd || isVercelActiveDev,
},
webpack: (config, { isServer, webpack }) => {
webpack: (config, { dev, isServer, webpack }) => {
if (isServer) {
config.plugins = [...config.plugins, new PrismaPlugin()]
}
if (dev && !isServer) {
/** WDYR */
const origEntry = config.entry
config.entry = async () => {
const wdyrPath = path.resolve(__dirname, './lib/wdyr.ts')
const entries = await origEntry()
if (entries['main.js'] && !entries['main.js'].includes(wdyrPath)) {
entries['main.js'].push(wdyrPath)
}
return entries
}
/** I18 HMR */
import('i18next-hmr/webpack').then(({ I18NextHMRPlugin }) =>
config.plugins.push(
new I18NextHMRPlugin({
localesDir: path.resolve(__dirname, 'public/static/locales'),
})
)
)
}

config.devtool = 'eval-source-map'

Expand Down
3 changes: 3 additions & 0 deletions apps/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"@mantine/nprogress": "6.0.21",
"@mantine/utils": "6.0.21",
"@next/bundle-analyzer": "14.1.0",
"@next/third-parties": "14.1.0",
"@opentelemetry/api": "1.7.0",
"@opentelemetry/core": "1.20.0",
"@opentelemetry/exporter-trace-otlp-http": "0.47.0",
Expand Down Expand Up @@ -119,10 +120,12 @@
"@typescript-eslint/parser": "6.19.0",
"@weareinreach/config": "workspace:*",
"@weareinreach/eslint-config": "0.100.0",
"@welldone-software/why-did-you-render": "8.0.1",
"commander": "11.1.0",
"dotenv": "16.3.1",
"eslint": "8.56.0",
"eslint-plugin-i18next": "6.0.3",
"i18next-hmr": "3.0.4",
"listr2": "8.0.1",
"prettier": "3.2.4",
"trpc-client-devtools-link": "0.2.1-next",
Expand Down
9 changes: 9 additions & 0 deletions apps/app/public/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@
"try-again-text": "<Text>Something went wrong! Please try again.</Text>"
},
"exclude": "Exclude",
"exit": {
"edit-mode": "Exit edit mode"
},
"filter-by-service": "Filter by services",
"find-resources": "Find resources",
"find-x": "Find {{value}}",
Expand Down Expand Up @@ -189,6 +192,7 @@
"other-specify": "Other (please specify)",
"page-title": {
"base": "{{- title}} - InReach",
"edit-mode": "{{- title}} [EDIT MODE] - InReach",
"search-results": "Search Results"
},
"password": "Password",
Expand Down Expand Up @@ -423,9 +427,13 @@
"please-wait": "Please wait...",
"prev": "Prev",
"print": "Print",
"publish": "Publish",
"restore": "Restore",
"reverify": "Reverify",
"review": "Review",
"reviews": "Reviews",
"save": "Save",
"save-changes": "Save changes",
"saved": "Saved",
"search": "Search",
"service-hours": "Service hours",
Expand All @@ -434,6 +442,7 @@
"sign-up": "Sign up",
"skip": "Skip",
"support": "Support",
"unpublish": "Unpublish",
"website": "Website",
"yes": "Yes"
}
Expand Down
2 changes: 2 additions & 0 deletions apps/app/src/middleware.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { track } from '@vercel/analytics/server'
import { get } from '@vercel/edge-config'
import { type NextMiddleware, type NextRequest, NextResponse } from 'next/server'

export const middleware: NextMiddleware = async (req: NextRequest) => {
const res = NextResponse.next()
track('geo', { ...req.geo })

if (!req.cookies.has('inreach-session')) {
res.cookies.set({
Expand Down
36 changes: 9 additions & 27 deletions apps/app/src/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import '../../lib/wdyr'

import { Space } from '@mantine/core'
import { Notifications } from '@mantine/notifications'
import { Analytics } from '@vercel/analytics/react'
Expand Down Expand Up @@ -37,31 +39,11 @@ const defaultSEO = {
titleTemplate: '%s | InReach',
defaultTitle: 'InReach',
additionalLinkTags: [
{
rel: 'icon',
href: '/favicon-16x16.png',
sizes: '16x16',
},
{
rel: 'icon',
href: '/favicon-32x32.png',
sizes: '32x32',
},
{
rel: 'icon',
href: '/favicon-96x96.png',
sizes: '96x96',
},
{
rel: 'apple-touch-icon',
href: '/apple-icon-120x120.png',
sizes: '120x120',
},
{
rel: 'apple-touch-icon',
href: '/apple-icon-180x180.png',
sizes: '180x180',
},
{ rel: 'icon', href: '/favicon-16x16.png', sizes: '16x16' },
{ rel: 'icon', href: '/favicon-32x32.png', sizes: '32x32' },
{ rel: 'icon', href: '/favicon-96x96.png', sizes: '96x96' },
{ rel: 'apple-touch-icon', href: '/apple-icon-120x120.png', sizes: '120x120' },
{ rel: 'apple-touch-icon', href: '/apple-icon-180x180.png', sizes: '180x180' },
],
} satisfies DefaultSeoProps

Expand Down Expand Up @@ -117,8 +99,8 @@ const MyApp = (appProps: AppPropsWithGridSwitch) => {

export default api.withTRPC(appWithTranslation(MyApp, nextI18nConfig))

export type NextPageWithoutGrid<P = unknown, IP = P> = NextPage<P, IP> & {
export type NextPageWithOptions<Props = unknown, InitialProps = Props> = NextPage<Props, InitialProps> & {
omitGrid?: boolean
autoResetState?: boolean
}
type AppPropsWithGridSwitch = AppProps<{ session: Session }> & { Component: NextPageWithoutGrid }
type AppPropsWithGridSwitch = AppProps<{ session: Session }> & { Component: NextPageWithOptions }
1 change: 0 additions & 1 deletion apps/app/src/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ const stylesServer = createStylesServer(appCache)
export default class _Document extends Document {
static async getInitialProps(ctx: DocumentContext) {
const initialProps = await Document.getInitialProps(ctx)

return {
...initialProps,
styles: [
Expand Down
4 changes: 2 additions & 2 deletions apps/app/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import { ResetPasswordModal } from '@weareinreach/ui/modals/ResetPassword'
import { api } from '~app/utils/api'
import { getServerSideTranslations } from '~app/utils/i18n'

import { type NextPageWithoutGrid } from './_app'
import { type NextPageWithOptions } from './_app'

const useStyles = createStyles((theme) => ({
callout1text: {
Expand Down Expand Up @@ -159,7 +159,7 @@ const CardTranslation = ({ i18nKey, t }: { i18nKey: string; t: TFunction }) => {
)
}

const Home: NextPageWithoutGrid = () => {
const Home: NextPageWithOptions = () => {
const router = useRouter()
const { t } = useTranslation('landingPage')
const theme = useMantineTheme()
Expand Down
6 changes: 3 additions & 3 deletions apps/app/src/pages/org/[slug]/[orgLocationId]/edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ import { z } from 'zod'
import { trpcServerClient } from '@weareinreach/api/trpc'
import { checkServerPermissions } from '@weareinreach/auth'
import { Toolbar } from '@weareinreach/ui/components/core/Toolbar'
import { ContactSection } from '@weareinreach/ui/components/sections/Contact'
import { ContactSection } from '@weareinreach/ui/components/sections/ContactSection'
import { ListingBasicInfo } from '@weareinreach/ui/components/sections/ListingBasicInfo'
// import {LocationCard } from '@weareinreach/ui/components/sections/LocationCard'
import { PhotosSection } from '@weareinreach/ui/components/sections/Photos'
import { ReviewSection } from '@weareinreach/ui/components/sections/Reviews'
import { ServicesInfoCard } from '@weareinreach/ui/components/sections/ServicesInfo'
import { VisitCard } from '@weareinreach/ui/components/sections/VisitCard'
import { OrgLocationPageLoading } from '@weareinreach/ui/loading-states/OrgLocationPage'
import { api } from '~app/utils/api'
import { getServerSideTranslations } from '~app/utils/i18n'

Expand All @@ -36,7 +37,7 @@ const OrgLocationPage: NextPage = () => {
useEffect(() => {
if (data && status === 'success' && orgData && orgDataStatus === 'success') setLoading(false)
}, [data, status, orgData, orgDataStatus])
if (loading || !data || !orgData) return <>Loading</>
if (loading || !data || !orgData) return <OrgLocationPageLoading />

const {
// emails,
Expand Down Expand Up @@ -69,7 +70,6 @@ const OrgLocationPage: NextPage = () => {
/>
<Stack pt={24} align='flex-start' spacing={40}>
<ListingBasicInfo
role='location'
data={{
name: data.name || orgData.name,
id: data.id,
Expand Down
34 changes: 4 additions & 30 deletions apps/app/src/pages/org/[slug]/[orgLocationId]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,40 +12,16 @@ import { z } from 'zod'
import { trpcServerClient } from '@weareinreach/api/trpc'
import { AlertMessage } from '@weareinreach/ui/components/core/AlertMessage'
import { Toolbar } from '@weareinreach/ui/components/core/Toolbar'
import { ContactSection } from '@weareinreach/ui/components/sections/Contact'
import { ContactSection } from '@weareinreach/ui/components/sections/ContactSection'
import { ListingBasicInfo } from '@weareinreach/ui/components/sections/ListingBasicInfo'
import { PhotosSection } from '@weareinreach/ui/components/sections/Photos'
import { ReviewSection } from '@weareinreach/ui/components/sections/Reviews'
import { ServicesInfoCard } from '@weareinreach/ui/components/sections/ServicesInfo'
import { VisitCard } from '@weareinreach/ui/components/sections/VisitCard'
// import { useScreenSize } from '@weareinreach/ui/hooks/useScreenSize'
import { OrgLocationPageLoading } from '@weareinreach/ui/loading-states/OrgLocationPage'
import { api } from '~app/utils/api'
import { getServerSideTranslations } from '~app/utils/i18n'

const LoadingState = () => (
<>
<Grid.Col sm={8} order={1}>
{/* Toolbar */}
<Skeleton h={48} w='100%' radius={8} />
<Stack pt={24} align='flex-start' spacing={40}>
{/* Listing Basic */}
<Skeleton h={260} w='100%' />
{/* Body */}
<Skeleton h={520} w='100%' />
{/* Tab panels */}
</Stack>
</Grid.Col>
<Grid.Col order={2}>
<Stack spacing={40}>
{/* Contact Card */}
<Skeleton h={520} w='100%' />
{/* Visit Card */}
<Skeleton h={260} w='100%' />
</Stack>
</Grid.Col>
</>
)

const useStyles = createStyles((theme) => ({
tabsList: {
position: 'sticky',
Expand Down Expand Up @@ -89,7 +65,7 @@ const OrgLocationPage: NextPage = () => {
useEffect(() => {
if (data && status === 'success' && orgData && orgDataStatus === 'success') setLoading(false)
}, [data, status, orgData, orgDataStatus])
if (loading || !data || !orgData || router.isFallback) return <LoadingState />
if (loading || !data || !orgData || router.isFallback) return <OrgLocationPageLoading />

const { attributes, description, reviews } = data

Expand Down Expand Up @@ -125,7 +101,6 @@ const OrgLocationPage: NextPage = () => {
/>
))}
<ListingBasicInfo
role='location'
data={{
name: data.name || orgData.name,
id: data.id,
Expand Down Expand Up @@ -228,10 +203,9 @@ export const getStaticProps = async ({

const [i18n] = await Promise.allSettled([
getServerSideTranslations(locale, ['common', 'services', 'attribute', 'phone-type', orgId.id]),
ssg.organization.getBySlug.prefetch({ slug }),
// ssg.organization.getIdFromSlug.prefetch({ slug }),
ssg.location.forLocationPage.prefetch({ id: orgLocationId }),
ssg.organization.forLocationPage.prefetch({ slug }),
ssg.location.getAlerts.prefetch({ id: orgLocationId }),
])
const props = {
trpcState: ssg.dehydrate(),
Expand Down
Loading
Loading