-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Frontend working * basic frontend controlled new practitioner admin form * feature: fully functional practitioner POST endpoint connected to frontend * Cognito backend authentication working * FET_James: Add practitioner backend endpoint * Working on admin frontend * Added delete endpoint, still need to fix frontend * Frontend working, still needs to be cleaned up * Adding login button * Adding code for new table * Added code for new db * Minor fixes * All requests working, need to cleanup frontend * Added modal for deleting practitioners * Added reload * Added logout button * Fixing up frontend * Fixed frontend * Updated package.json * More merge fixes * Removed unnecessary languages field * fix: enabled sorting by distance and moved login button * fix: reordered module imports * fix: removed monarch frontend tests * fix: imported describe for monarch frontend test * fix: emptied test file monarch frontend * fix: copied GI test file * fix: temp removed test step * fix: revert * fix: removed test step from ci/cd temporarily * fix: updated yarn lock * fix: removed global vite * fix: added back test step to all projects * fix: revert --------- Co-authored-by: James Colesanti <[email protected]> Co-authored-by: Harrison Kim <[email protected]>
- Loading branch information
1 parent
3c22e5d
commit 171db4b
Showing
35 changed files
with
67,480 additions
and
22,821 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
apps/monarch/monarch-backend/src/workflows/deletePendingPractitioner.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { Key } from "@c4c/monarch/common"; | ||
import { Request } from "express"; | ||
|
||
async function deletePendingPractitionerWF(req: Request, deletePendingPractitioner: (req: Request) => Promise<Key>) { | ||
try { | ||
return deletePendingPractitioner(req); | ||
} catch (e) { | ||
console.log(e); | ||
throw new Error("Unable to post practitioner"); | ||
} | ||
} | ||
|
||
export default deletePendingPractitionerWF; |
13 changes: 13 additions & 0 deletions
13
apps/monarch/monarch-backend/src/workflows/deletePractitioner.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { Key } from "@c4c/monarch/common"; | ||
import { Request } from "express"; | ||
|
||
async function deletePractitionerWF(req: Request, deletePractitioner: (req: Request) => Promise<Key>) { | ||
try { | ||
return deletePractitioner(req); | ||
} catch (e) { | ||
console.log(e); | ||
throw new Error("Unable to post practitioner"); | ||
} | ||
} | ||
|
||
export default deletePractitionerWF; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
apps/monarch/monarch-backend/src/workflows/getPendingPractitioners.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/** | ||
* A Practitioner is a Object of the shape: | ||
{ | ||
"phoneNumber": "123456789", | ||
"website": "https://ryanjung.dev", | ||
"languages": "French", | ||
"modality": "Software", | ||
"businessLocation": "Boston, MA", | ||
"businessName": "Code4Community", | ||
"minAgeServed": 18, | ||
"email": "myemail@gmail.com", | ||
"fullName": "Ryan Jung" | ||
} | ||
*/ | ||
|
||
import { Practitioner } from "@c4c/monarch/common"; | ||
import { Request } from "express"; | ||
|
||
/** | ||
* @param scanPendingPractitioners {() => Practitioner[]} An effectful function that queries a database and produces all saved practitioners | ||
*/ | ||
async function getPendingPractitioners( | ||
req: Request, | ||
scanPendingPractitioners: (req: Request) => Promise<Practitioner[]> | ||
) { | ||
try { | ||
return scanPendingPractitioners(req); | ||
} catch (e) { | ||
console.error(e); | ||
throw new Error('Could not get practitioners'); | ||
} | ||
} | ||
|
||
export default getPendingPractitioners; |
13 changes: 13 additions & 0 deletions
13
apps/monarch/monarch-backend/src/workflows/postNewPractitioner.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { Practitioner } from "@c4c/monarch/common"; | ||
import { Request } from "express"; | ||
|
||
async function postNewPractitioner(req: Request, postPractitioner: (req: Request) => Promise<Practitioner>) { | ||
try { | ||
return postPractitioner(req); | ||
} catch (e) { | ||
console.log(e); | ||
throw new Error("Unable to post practitioner"); | ||
} | ||
} | ||
|
||
export default postNewPractitioner; |
Oops, something went wrong.