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: first try to add beforeunload event block #325

Conversation

LarsFlieger
Copy link
Contributor

Closes #153

@LarsFlieger LarsFlieger self-assigned this Aug 2, 2023
@LarsFlieger LarsFlieger linked an issue Aug 2, 2023 that may be closed by this pull request
@github-actions
Copy link

github-actions bot commented Aug 2, 2023

frontend Coverage

File % Stmts % Branch % Funcs % Lines Uncovered Line #s
All files 90.58 87.94 84.91 91.34

HTML Report

Full coverage report
File % Stmts % Branch % Funcs % Lines Uncovered Line #s
All files 90.58 87.94 84.91 91.34
app 0 100 0 0
error.tsx 0 100 0 0 8
global-error.tsx 0 0 0 0
layout.tsx 0 0 0 0
not-found.tsx 0 0 0 0
app/(dynamic) 100 100 100 100
layout.tsx 100 100 100 100
app/(dynamic)/(pages) 100 100 100 100
layout.tsx 100 100 100 100
...c)/(pages)/account/change-password 100 100 100 100
page.tsx 100 100 100 100
app/(dynamic)/(pages)/account/login 100 100 100 100
page.tsx 100 100 100 100
...(dynamic)/(pages)/account/register 100 100 100 100
page.tsx 100 100 100 100
...ic)/(pages)/account/reset-password 100 100 100 100
page.tsx 100 100 100 100
...amic)/(pages)/account/verify-email 95.65 91.66 100 100
page.tsx 95.65 91.66 100 100 27
app/(dynamic)/(pages)/profile 92.85 83.33 100 100
layout.tsx 92.85 83.33 100 100 61
...dynamic)/(pages)/profile/last-will 100 90 100 100
page.tsx 100 90 100 100 60
...(dynamic)/(pages)/profile/settings 97.5 83.33 100 97.43
page.tsx 97.5 83.33 100 97.43 107
app/(dynamic)/last-will/(pages) 100 100 100 100
layout.tsx 100 100 100 100
app/(dynamic)/last-will/(pages)/buy 0 0 0 0
page.tsx 0 0 0 0
...st-will/(pages)/order-confirmation 100 100 100 100
page.tsx 100 100 100 100
app/(dynamic)/last-will/(pages)/plans 0 0 0 0
page.tsx 0 0 0 0
app/(dynamic)/last-will/(pages)/start 100 100 100 100
page.tsx 100 100 100 100
app/(dynamic)/last-will/editor 90 100 75 88.88
layout.tsx 90 100 75 88.88 27
app/(dynamic)/last-will/editor/final 100 100 100 100
page.tsx 100 100 100 100
app/(dynamic)/last-will/editor/heirs 96.49 80 92.85 98.07
page.tsx 96.49 80 92.85 98.07 181
...amic)/last-will/editor/inheritance 82.85 0 72.22 80.64
page.tsx 82.85 0 72.22 80.64 ...45-157,219-252
...dynamic)/last-will/editor/marriage 68.29 70 55 61.76
page.tsx 68.29 70 55 61.76 90-99,115,133-286
...namic)/last-will/editor/succession 66.66 100 66.66 66.66
page.tsx 66.66 100 66.66 66.66 33-41
...dynamic)/last-will/editor/testator 83.33 66.66 80 81.48
page.tsx 83.33 66.66 80 81.48 75,103-105,189
app/(static) 100 100 100 100
layout.tsx 0 0 0 0
page.tsx 100 100 100 100
app/(static)/misc/faq 0 0 0 0
page.tsx 0 0 0 0
app/(static)/misc/faq/[slug] 0 0 0 0
page.tsx 0 0 0 0
app/(static)/misc/imprint 0 0 0 0
page.tsx 0 0 0 0
app/(static)/misc/privacy 0 0 0 0
page.tsx 0 0 0 0
components/Alert 100 100 100 100
Alert.tsx 100 100 100 100
components/Auth 100 100 100 100
isAuth.tsx 100 100 100 100
components/ButtonsAndLinks/Button 100 100 100 100
Button.tsx 100 100 100 100
...nts/ButtonsAndLinks/DropdownButton 87.5 100 80 87.5
DropdownButton.tsx 87.5 100 80 87.5 31
...nents/ButtonsAndLinks/InnerContent 100 71.42 100 100
InnerContent.tsx 100 71.42 100 100 18,25-26
components/ButtonsAndLinks/Route 100 100 100 100
Route.tsx 100 100 100 100
components/Errors/BaseError 50 0 0 50
BaseError.tsx 50 0 0 50 34
components/Errors/FormError 100 100 100 100
FormError.tsx 100 100 100 100
components/Errors/ServerError 50 100 0 50
ServerError.tsx 50 100 0 50 12
components/Form/AccountForm 100 100 100 100
AccountForm.tsx 100 100 100 100
components/Form/Checkbox 58.33 81.81 40 58.33
Checkbox.tsx 58.33 81.81 40 58.33 32-34,41,70
components/Form/CustomSelectionButton 100 91.66 100 100
CustomSelectionButton.tsx 100 91.66 100 100 52
components/Form/FormDatepicker 100 87.5 100 100
FormDatepicker.tsx 100 87.5 100 100 33
components/Form/FormDropdown 100 100 100 100
FormDropdown.tsx 100 100 100 100
components/Form/FormStepsButtons 100 100 100 100
FormStepsButtons.tsx 100 100 100 100
components/Form/Label 100 100 100 100
Label.tsx 100 100 100 100
components/Form/PasswordInput 100 100 100 100
PasswordInput.tsx 100 100 100 100
components/Form/TextInput 100 94.73 100 100
TextInput.tsx 100 94.73 100 100 71
components/Form/Toggle 100 100 100 100
Toggle.tsx 100 100 100 100
components/Headline 100 100 100 100
Headline.tsx 100 100 100 100
components/Icon 100 100 100 100
Icon.tsx 100 100 100 100
components/IconButton 83.33 96 66.66 100
IconButton.tsx 83.33 96 66.66 100 54
components/LastWill 100 100 100 100
LastWill.tsx 100 100 100 100
components/Layout/Banner 100 100 100 100
Banner.tsx 100 100 100 100
components/Layout/CardWithIcon 100 100 100 100
CardWithIcon.tsx 100 100 100 100
components/Layout/Step 33.33 0 20 40
Step.tsx 33.33 0 20 40 48-61
.../HeirsModal/HeirsOrganisationModal 100 100 100 100
HeirsOrganisationModal.tsx 100 100 100 100
.../Modal/HeirsModal/HeirsPersonModal 100 90.62 100 100
HeirsPersonModal.tsx 100 90.62 100 100 50-51,56
components/Modal/ModalBase 80 66.66 100 88.88
Modal.tsx 80 66.66 100 88.88 33
components/Navbar/GlobalFooter 100 100 100 100
GlobalFooter.tsx 100 100 100 100
components/Navbar/Navbar 86.36 86.66 66.66 89.47
DynamicNavbarLinks.tsx 90.9 100 75 88.88 38
Navbar.tsx 75 81.81 50 85.71 48
StaticNavbarLinks.tsx 100 100 100 100
components/Navbar/NavbarLink 80 100 66.66 100
NavbarLink.tsx 80 100 66.66 100
components/Navbar/NavbarLogo 100 100 100 100
NavbarLogo.tsx 100 100 100 100
components/Navbar/ProfileSideBarLink 60 100 33.33 75
ProfileSideBarLink.tsx 60 100 33.33 75 50
components/Navbar/Sidebar 100 100 100 100
Sidebar.tsx 100 100 100 100
...nents/Navbar/Sidebar/MobileSidebar 91.66 95 83.33 90
MobileSidebar.tsx 91.66 95 83.33 90 76
...nents/Navbar/Sidebar/SidebarButton 100 100 66.66 100
SidebarButton.tsx 100 100 66.66 100
components/PaymentPlan 75 80 50 75
PaymentPlan.tsx 75 80 50 75 43
components/PaymentSummaryTable 100 66.66 100 100
PaymentSummaryTable.tsx 100 66.66 100 100 21
components/Placeholder 100 100 100 100
Placeholder.tsx 100 100 100 100
components/Tooltip 83.33 72.72 75 83.33
Tooltip.tsx 83.33 72.72 75 83.33 39-40
services 100 100 100 100
heirs.ts 100 100 100 100
services/api/auth 93.33 100 100 93.33
refreshToken.ts 83.33 100 100 83.33 26
resetPassword.tsx 100 100 100 100
verifyMail.ts 91.66 100 100 91.66 36
services/api/profile 84.21 91.66 100 84.21
profile.ts 84.21 91.66 100 84.21 28,45,70
services/auth 91.66 100 85.71 91.3
session.ts 91.66 100 85.71 91.3 49,62
services/buttonsAndLinks 100 87.5 100 100
buttonsAndLinks.ts 100 87.5 100 100 16,26
services/routes 100 78.57 100 100
routes.ts 100 78.57 100 100 9-13,20-23,40,54
store 100 100 100 100
hooks.ts 100 100 100 100
store.ts 100 100 100 100
store/auth 92.3 79.16 100 93.42
auth.ts 92.3 79.16 100 93.42 75,96-97,105-106
store/lastwill 89.18 50 90 91.04
lastwill.ts 89.18 50 90 91.04 322-324,360-363

@LarsFlieger LarsFlieger marked this pull request as draft August 2, 2023 21:14
@Zoe-Bot Zoe-Bot closed this Aug 4, 2023
@Zoe-Bot Zoe-Bot deleted the feature/153-submit-data-to-store-when-navigating-with-sidebar branch August 4, 2023 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Submit data to store when navigating with sidebar
2 participants