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

release Nile v0.14 #512

Merged
merged 68 commits into from
Oct 22, 2024
Merged
Changes from 1 commit
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
f31754b
fix appointment page close button
AykhanAhmadli Sep 27, 2024
51da5e7
Merge pull request #453 from masslight/aykhan/fix-header
GiladSchneider Oct 1, 2024
1250622
issue #406
GiladSchneider Oct 1, 2024
6ef7660
translation fix
GiladSchneider Oct 1, 2024
75342dc
Merge pull request #461 from masslight/406/past-visits
GiladSchneider Oct 1, 2024
dddd18b
fixes action
GiladSchneider Oct 7, 2024
8b9051c
Merge pull request #466 from masslight/gilad/fix-actions
GiladSchneider Oct 7, 2024
17fcedc
adds console logs
GiladSchneider Oct 8, 2024
5699d99
more logs
GiladSchneider Oct 8, 2024
8326473
ui fix
GiladSchneider Oct 8, 2024
24ba7a5
more fixes
GiladSchneider Oct 8, 2024
22f06ea
renamed variable
GiladSchneider Oct 8, 2024
c2bb08a
Merge pull request #471 from masslight/nlm-setup
GiladSchneider Oct 8, 2024
3cd681a
fix number formatting for a better ux
AykhanAhmadli Oct 8, 2024
accd3dd
getting back to buildable state after dev merge
rzinger Oct 9, 2024
d6b8a03
add photon authentication
rzinger Oct 9, 2024
ae9299e
add UI elements back
rzinger Oct 9, 2024
89302ed
initial changes
GiladSchneider Oct 9, 2024
091edd2
Remove /public/favicon.ico warnings on app startup
Mtimpson Oct 9, 2024
6f8feaa
unifying disable erx feature
rzinger Oct 9, 2024
5d00d81
feat: add flow changes for new users
AykhanAhmadli Oct 9, 2024
6eaa236
more progress
GiladSchneider Oct 9, 2024
5dfe1d2
more progress
GiladSchneider Oct 9, 2024
05f0151
adds proposed to visit types that can be cancelled
GiladSchneider Oct 10, 2024
fa55c4d
temporary stable, still need to investigate appointment behavior weir…
GiladSchneider Oct 10, 2024
2f4efe1
Merge pull request #477 from masslight/erx/302-updates
rzinger Oct 10, 2024
9e8718d
removed comment
GiladSchneider Oct 10, 2024
70daaf9
Merge pull request #478 from masslight/RemoveWarningsMT
Mtimpson Oct 10, 2024
6fb5ab2
Merge pull request #475 from masslight/aykhan/number-prefix
AykhanAhmadli Oct 10, 2024
e52ac0c
issue #464
GiladSchneider Oct 11, 2024
ee87e99
issue #406
GiladSchneider Oct 11, 2024
ffa5c6d
issue #473, removed annoying console logs
GiladSchneider Oct 11, 2024
832655b
removed console log
GiladSchneider Oct 11, 2024
213ad09
Merge pull request #487 from masslight/473/26-120
GiladSchneider Oct 11, 2024
c82abe3
Merge pull request #486 from masslight/406/fix
GiladSchneider Oct 11, 2024
8d10302
fix selectpatient onback error
AykhanAhmadli Oct 11, 2024
f2cf73a
issue #464
GiladSchneider Oct 11, 2024
f513ce5
enable pdf upload for file uploads
AykhanAhmadli Oct 11, 2024
d56ce14
Merge pull request #479 from masslight/aykhan/past-visits-fix
AykhanAhmadli Oct 14, 2024
2542ba9
enable pdf upload for work-school notes
AykhanAhmadli Oct 14, 2024
461f1a4
remove unused import
AykhanAhmadli Oct 14, 2024
8d58937
fix paperwork error
AykhanAhmadli Oct 15, 2024
5886bf0
Merge pull request #489 from masslight/aykhan/fix-pdf-support
AykhanAhmadli Oct 16, 2024
4930f0b
fix my-patients filter
AykhanAhmadli Oct 16, 2024
007d5e0
Merge pull request #485 from masslight/464/provider-smith
GiladSchneider Oct 16, 2024
a94264a
Merge pull request #491 from masslight/477/my-patients-filter
AykhanAhmadli Oct 16, 2024
9b8e269
comments
GiladSchneider Oct 16, 2024
489cd3e
Merge pull request #483 from masslight/462/cancel-visit
GiladSchneider Oct 16, 2024
d5541ea
add project id and school-work-notes to setup script
AykhanAhmadli Oct 17, 2024
8759f4f
remove localstorage item to prevent future redirect errors
AykhanAhmadli Oct 17, 2024
c87f6a4
fix bucket names
AykhanAhmadli Oct 17, 2024
5a1f463
Merge pull request #495 from masslight/aykhan/redirect-issue
AykhanAhmadli Oct 17, 2024
5e1f7e6
Merge pull request #494 from masslight/aykhan/setup-script
AykhanAhmadli Oct 17, 2024
800e35c
remove provider email from intake setup
AykhanAhmadli Oct 18, 2024
53c6114
Merge pull request #497 from masslight/setup-intake-fix
AykhanAhmadli Oct 18, 2024
9ee2c7d
deploy and cancel zambda fixes
GiladSchneider Oct 22, 2024
7df6d31
fixed intake deploys
GiladSchneider Oct 22, 2024
13a239e
Merge pull request #504 from masslight/fix-secrets
GiladSchneider Oct 22, 2024
38c62ab
fixes one error
GiladSchneider Oct 22, 2024
30ec3b9
more fixes
GiladSchneider Oct 22, 2024
8c95940
removes console logs
GiladSchneider Oct 22, 2024
3b83b90
adds deploy-telemed:development script
GiladSchneider Oct 22, 2024
cd9571f
fix build
GiladSchneider Oct 22, 2024
7183ce9
fix build
GiladSchneider Oct 22, 2024
1dbc663
fix build
GiladSchneider Oct 22, 2024
7a3cba5
Merge pull request #506 from masslight/fix-cancel-appointment
GiladSchneider Oct 22, 2024
ab212fc
version bump
GiladSchneider Oct 22, 2024
2619600
Merge pull request #511 from masslight/0.14/version-bump
GiladSchneider Oct 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
Prev Previous commit
Next Next commit
fix number formatting for a better ux
AykhanAhmadli committed Oct 8, 2024
commit 3cd681a048ce855ff6ae2151304ad99907bb2983
Original file line number Diff line number Diff line change
@@ -113,8 +113,6 @@ const generateRandomPatientInfo = async (
const randomLocationIndex = Math.floor(Math.random() * availableLocations.length);
const randomLocationId = availableLocations[randomLocationIndex].id;
const randomProviderId = practitionersTemp[Math.floor(Math.random() * practitionersTemp.length)].id;
console.log('availableLocations', availableLocations);
console.log('randomLocationId', randomLocationId);

const selectedLocationID = localStorage.getItem('selectedLocationID');

Original file line number Diff line number Diff line change
@@ -25,35 +25,50 @@ const CreateDemoVisits = (): ReactElement => {
const { fhirClient } = useApiClients();
const { getAccessTokenSilently } = useAuth0();

const handleCreateSampleAppointments = async (phoneNumber: string): Promise<void> => {
if (!phoneNumber || phoneNumber.length !== 12 || !phoneNumber.startsWith('+1')) {
const handleCreateSampleAppointments = async (
event: React.MouseEvent<HTMLButtonElement> | React.FormEvent<HTMLFormElement>,
): Promise<void> => {
event.preventDefault();
const formattedPhoneNumber = formatPhoneNumber(phoneNumber);
if (!formattedPhoneNumber) {
setInputError(true);
return;
} else {
setInputError(false);
}
try {
setLoading(true);
setInputError(false);
const authToken = await getAccessTokenSilently();
const formattedPhoneNumber = phoneNumber.slice(2);
const response = await createSampleAppointments(fhirClient, authToken, formattedPhoneNumber);
console.log('response', response);
setSnackbar({
open: true,
message: 'Appointments created successfully!',
severity: 'success',
});
} catch (error) {
console.error('Error creating appointments:', error);
setSnackbar({
open: true,
message: 'Failed to create appointments. Please try again.',
message: 'Error creating appointments',
severity: 'error',
});
console.error(error);
} finally {
setLoading(false);
}
};

const formatPhoneNumber = (phone: string): string | null => {
const digitsOnly = phone.replace(/\D/g, '');

if (digitsOnly.length === 10) {
return digitsOnly;
} else if (digitsOnly.length === 11 && digitsOnly.startsWith('1')) {
return digitsOnly.slice(1);
}
return null;
};

const handleCloseSnackbar = (event?: React.SyntheticEvent | Event, reason?: string): void => {
if (reason === 'clickaway') {
return;
@@ -62,10 +77,8 @@ const CreateDemoVisits = (): ReactElement => {
};

const handleChange = (e: React.ChangeEvent<HTMLInputElement>): void => {
setPhoneNumber(e.target.value);
if (e.target.value.length === 12 && e.target.value.startsWith('+1')) {
setInputError(false);
}
const input = e.target.value;
setPhoneNumber(input);
};

return (
@@ -94,7 +107,6 @@ const CreateDemoVisits = (): ReactElement => {
label="Phone Number"
value={phoneNumber}
onChange={handleChange}
placeholder="+1"
size="small"
sx={{
flexGrow: 1,
@@ -109,12 +121,13 @@ const CreateDemoVisits = (): ReactElement => {
}}
required
error={inputError}
helperText={inputError ? 'Please enter a valid phone number in the format +12345678900' : ''}
helperText={inputError ? 'Please enter a valid phone number' : ''}
/>
<LoadingButton
loading={loading}
onClick={() => handleCreateSampleAppointments(phoneNumber)}
onClick={handleCreateSampleAppointments}
size="small"
type="submit"
sx={{
borderRadius: 10,
border: '1px solid #2169F5',