Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
e25ddf6
refactor: extract ScreenWrapper for shared screen layout
edmonday Mar 2, 2026
e381512
fix: lint issues
autofix-ci[bot] Mar 2, 2026
c294844
refactor: remove unused headerSx prop from multiple screens
edmonday Mar 2, 2026
aed4750
fix: lint issues
autofix-ci[bot] Mar 2, 2026
2d84add
feat: add email notification toggle to DoneScreen
edmonday Mar 2, 2026
7ef0dd6
fix: lint issues
autofix-ci[bot] Mar 2, 2026
75bb0e2
feat: add Google Sheets sync row to DoneScreen
edmonday Mar 3, 2026
c196de6
feat: implement Google integration creation flow in GoogleSheetsSyncD…
edmonday Mar 3, 2026
600b109
fix: lint issues
autofix-ci[bot] Mar 3, 2026
02197fc
feat: enhance GoogleSheetsSyncDialog with user authentication check
edmonday Mar 3, 2026
141e92f
style: ui changes for email
edmonday Mar 4, 2026
6f1bdc0
Merge branch 'edmondshen/nes-1295-toggle-email-notifications-on-for-a…
edmonday Mar 4, 2026
69550dd
fix: lint issues
autofix-ci[bot] Mar 4, 2026
4382005
chore: formatting
edmonday Mar 4, 2026
1666191
style: spacing
edmonday Mar 4, 2026
3e7b062
Merge branch 'edmondshen/nes-1295-toggle-email-notifications-on-for-a…
edmonday Mar 4, 2026
31eb31a
fix: lint issues
autofix-ci[bot] Mar 4, 2026
4702e8a
Merge branch 'main' into edmondshen/nes-1297-google-sheets-sync-for-a…
edmonday Mar 4, 2026
8be8428
fix: styling and carousel
edmonday Mar 6, 2026
21f7f0b
fix: remove border
edmonday Mar 6, 2026
c11ccd3
fix: add test
edmonday Mar 6, 2026
a1d4265
test: fix tests
edmonday Mar 6, 2026
d531206
Merge branch 'main' into edmondshen/nes-1364-media-screen-styling-cha…
edmonday Mar 6, 2026
84c9135
fix: tests
edmonday Mar 6, 2026
66a87cc
fix: lint
edmonday Mar 6, 2026
942e44c
Merge branch 'edmondshen/nes-1364-media-screen-styling-changes' into …
edmonday Mar 6, 2026
f3b8f24
fix: lint issues
autofix-ci[bot] Mar 6, 2026
863f28d
fix: add back the switch
edmonday Mar 8, 2026
dba14e6
fix: remove validateOnSubmit from LinksScreen
edmonday Mar 8, 2026
e52ca65
Merge branch 'edmondshen/nes-1364-media-screen-styling-changes' into …
edmonday Mar 8, 2026
95329da
fix: add response section
edmonday Mar 8, 2026
3dd9423
Merge branch 'main' into edmondshen/nes-1364-media-screen-styling-cha…
edmonday Mar 8, 2026
a8c3270
fix: resolved comments
edmonday Mar 8, 2026
65a82d2
fix: lint issues
autofix-ci[bot] Mar 8, 2026
40da71c
fix: add guest flow flag on button
edmonday Mar 8, 2026
ed64382
Merge branch 'edmondshen/nes-1364-media-screen-styling-changes' into …
edmonday Mar 9, 2026
5a269a4
Merge branch 'edmondshen/nes-1295-toggle-email-notifications-on-for-a…
edmonday Mar 9, 2026
e33b412
fix: positioning of google sheets button
edmonday Mar 9, 2026
3daadc6
chore: remove box
edmonday Mar 9, 2026
63f30f3
fix: lint issues
autofix-ci[bot] Mar 9, 2026
51cadb4
Merge remote-tracking branch 'origin/main' into edmondshen/nes-1297-g…
edmonday Mar 9, 2026
45061a2
fix: hide google sheets sync
edmonday Mar 9, 2026
15b617b
refactor: simplify GoogleSheetsSyncDialog by removing unused queries …
edmonday Mar 9, 2026
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
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,21 @@ describe('NotificationSwitch', () => {
)
})

it('renders without Tooltip when name is not provided', async () => {
render(
<SnackbarProvider>
<MockedProvider>
<NotificationSwitch journeyId="journeyId" />
</MockedProvider>
</SnackbarProvider>
)

fireEvent.mouseOver(screen.getByRole('checkbox'))
await waitFor(() =>
expect(screen.queryByRole('tooltip')).not.toBeInTheDocument()
)
})

it('does not update event email notifications when disabled', async () => {
render(
<SnackbarProvider>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,22 @@ export function NotificationSwitch({
}
}

const switchElement = (
<Box>
<Switch
inputProps={{ 'aria-checked': checked }}
checked={checked}
onChange={handleChange}
disabled={loading || disabled}
/>
</Box>
)

if (name == null) return switchElement

return (
<Tooltip title={t('Only {{ name }} can change this', { name })}>
<Box>
<Switch
inputProps={{ 'aria-checked': checked }}
checked={checked}
onChange={handleChange}
disabled={loading || disabled}
/>
</Box>
{switchElement}
</Tooltip>
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@ export function GoogleCreateIntegration(): ReactElement {
preventDuplicate: true
})
}
const fallbackPath =
returnTo != null && returnTo !== ''
? returnTo
: `/teams/${teamId}/integrations`
await router.push(fallbackPath)
} finally {
setLoading(false)
}
Expand Down
Loading
Loading