diff --git a/frontend/src/app/ErrorPages.tsx b/frontend/src/app/ErrorPages.tsx
new file mode 100644
index 0000000..d1f501c
--- /dev/null
+++ b/frontend/src/app/ErrorPages.tsx
@@ -0,0 +1,47 @@
+import { Link } from 'react-router'
+import { CircleAlert, RefreshCw, SearchX } from 'lucide-react'
+import { Trans, useLingui } from '@lingui/react/macro'
+import { BackLink } from '@/components/BackLink'
+import { PageHeader } from '@/components/PageHeader'
+import { StateMessage } from '@/components/StateMessage'
+import { Button } from '@/components/ui/button'
+import { buttonClassName } from '@/components/ui/button-variants'
+
+export function NotFoundPage() {
+ const { t } = useLingui()
+ return (
+ <>
+ } />
+ }
+ title={t`This page doesn’t exist`}
+ description={t`Check the address or go back to your contacts.`}
+ >
+
+ Go to contacts
+
+
+ >
+ )
+}
+
+export function RouteErrorPage() {
+ const { t } = useLingui()
+
+ return (
+
+ }
+ iconClassName="bg-destructive/10 text-destructive"
+ title={t`Something went wrong`}
+ description={t`Reload the page to try again.`}
+ >
+
+
+
+ )
+}
diff --git a/frontend/src/app/RequireAuth.test.tsx b/frontend/src/app/RequireAuth.test.tsx
new file mode 100644
index 0000000..d00494a
--- /dev/null
+++ b/frontend/src/app/RequireAuth.test.tsx
@@ -0,0 +1,83 @@
+import { afterEach, describe, expect, it, vi } from 'vitest'
+import { screen, waitFor } from '@testing-library/react'
+import userEvent from '@testing-library/user-event'
+import { useLocation } from 'react-router'
+import { jsonResponse, renderRoutes } from '@/test/utils'
+import type { LoginLocationState } from '@/features/auth/LoginPage'
+import { RequireAuth } from './RequireAuth'
+
+function LoginProbe() {
+ const location = useLocation()
+ const state = location.state as LoginLocationState
+ return
Loading…
@@ -14,8 +16,21 @@ export function RequireAuth() {
)
}
- if (!me) {
- return
+ if (!meQuery.data && meQuery.isError) {
+ return (
+
+ meQuery.refetch()}
+ isRetrying={meQuery.isFetching}
+ />
+
+ )
+ }
+
+ if (!meQuery.data) {
+ const from = `${location.pathname}${location.search}${location.hash}`
+ return
}
return
diff --git a/frontend/src/app/router.test.tsx b/frontend/src/app/router.test.tsx
new file mode 100644
index 0000000..feb30c9
--- /dev/null
+++ b/frontend/src/app/router.test.tsx
@@ -0,0 +1,73 @@
+import { afterEach, describe, expect, it, vi } from 'vitest'
+import { screen } from '@testing-library/react'
+import { jsonResponse, renderRoutes } from '@/test/utils'
+import { routes } from './router'
+
+const me = { id: 1, email: 'ame@example.com', name: 'Ame' }
+
+afterEach(() => {
+ vi.unstubAllGlobals()
+ vi.restoreAllMocks()
+})
+
+describe('router', () => {
+ it('renders a not-found screen inside AppShell for unknown routes', async () => {
+ vi.stubGlobal(
+ 'fetch',
+ vi.fn(async () => jsonResponse(200, me)),
+ )
+ renderRoutes(routes, '/nope')
+
+ expect(
+ await screen.findByRole('heading', { name: 'This page doesn’t exist' }),
+ ).toBeInTheDocument()
+ expect(screen.getByRole('navigation', { name: 'Main' })).toBeInTheDocument()
+ expect(screen.getByRole('link', { name: 'Go to contacts' })).toHaveAttribute('href', '/')
+ expect(screen.queryByText(/Hey developer/)).not.toBeInTheDocument()
+ })
+
+ it('redirects unknown routes to /login when signed out', async () => {
+ vi.stubGlobal(
+ 'fetch',
+ vi.fn(async () => jsonResponse(401, { status: 401, title: 'Unauthorized' })),
+ )
+ const router = renderRoutes(routes, '/nope?x=1')
+
+ expect(await screen.findByRole('heading', { name: 'Sign in' })).toBeInTheDocument()
+ expect(router.state.location.pathname).toBe('/login')
+ })
+
+ it('keeps specific routes outside AppShell matched ahead of the catch-all', async () => {
+ vi.stubGlobal(
+ 'fetch',
+ vi.fn(async () => jsonResponse(200, me)),
+ )
+ renderRoutes(routes, '/expenses/abc')
+
+ expect(
+ await screen.findByRole('heading', { name: 'This expense doesn’t exist' }),
+ ).toBeInTheDocument()
+ expect(screen.queryByRole('navigation', { name: 'Main' })).not.toBeInTheDocument()
+ })
+
+ it('renders the root errorElement instead of React Router’s developer page on crash', async () => {
+ vi.spyOn(console, 'error').mockImplementation(() => {})
+ function Boom(): never {
+ throw new Error('render failure')
+ }
+ const rootErrorElement = routes[0].errorElement
+ renderRoutes(
+ [
+ {
+ errorElement: rootErrorElement,
+ children: [{ path: '/boom', element:
}],
+ },
+ ],
+ '/boom',
+ )
+
+ expect(await screen.findByRole('alert')).toHaveTextContent('Something went wrong')
+ expect(screen.getByRole('button', { name: 'Reload' })).toBeInTheDocument()
+ expect(screen.queryByText(/Hey developer/)).not.toBeInTheDocument()
+ })
+})
diff --git a/frontend/src/app/router.tsx b/frontend/src/app/router.tsx
index 09b5b53..41eb480 100644
--- a/frontend/src/app/router.tsx
+++ b/frontend/src/app/router.tsx
@@ -1,5 +1,6 @@
-import { createBrowserRouter } from 'react-router'
+import { createBrowserRouter, type RouteObject } from 'react-router'
import { AppShell } from './AppShell'
+import { NotFoundPage, RouteErrorPage } from './ErrorPages'
import { RequireAuth } from './RequireAuth'
import { LoginPage } from '@/features/auth/LoginPage'
import { SignUpPage } from '@/features/auth/SignUpPage'
@@ -17,30 +18,38 @@ import { ProfilePage } from '@/features/profile/ProfilePage'
import { EditNamePage } from '@/features/profile/EditNamePage'
import { ChangePasswordPage } from '@/features/profile/ChangePasswordPage'
-export const router = createBrowserRouter([
- { path: '/login', element:
},
- { path: '/signup', element:
},
+export const routes: RouteObject[] = [
{
- element:
,
+ errorElement:
,
children: [
+ { path: '/login', element:
},
+ { path: '/signup', element:
},
{
- element:
,
+ element:
,
children: [
- { index: true, element:
},
- { path: 'activity', element:
},
- { path: 'profile', element:
},
- { path: 'contacts/:userId', element:
},
+ {
+ element:
,
+ children: [
+ { index: true, element:
},
+ { path: 'activity', element:
},
+ { path: 'profile', element:
},
+ { path: 'contacts/:userId', element:
},
+ { path: '*', element:
},
+ ],
+ },
+ { path: 'contacts/new', element:
},
+ { path: 'contacts/:userId/edit', element:
},
+ { path: 'profile/name', element:
},
+ { path: 'profile/password', element:
},
+ { path: 'expenses/:id', element:
},
+ { path: 'transfers/:id', element:
},
+ { path: 'add', element:
},
+ { path: 'expenses/:id/edit', element:
},
+ { path: 'transfers/:id/edit', element:
},
],
},
- { path: 'contacts/new', element:
},
- { path: 'contacts/:userId/edit', element:
},
- { path: 'profile/name', element:
},
- { path: 'profile/password', element:
},
- { path: 'expenses/:id', element:
},
- { path: 'transfers/:id', element:
},
- { path: 'add', element:
},
- { path: 'expenses/:id/edit', element:
},
- { path: 'transfers/:id/edit', element:
},
],
},
-])
+]
+
+export const router = createBrowserRouter(routes)
diff --git a/frontend/src/features/add/EditExpensePage.test.tsx b/frontend/src/features/add/EditExpensePage.test.tsx
index 15b2227..ba524da 100644
--- a/frontend/src/features/add/EditExpensePage.test.tsx
+++ b/frontend/src/features/add/EditExpensePage.test.tsx
@@ -72,6 +72,28 @@ describe('EditExpensePage', () => {
description: null,
})
})
+
+ it('shows StateMessage with a way back when the expense is not found (404)', async () => {
+ vi.stubGlobal(
+ 'fetch',
+ vi.fn(async (path: string) => {
+ if (path === '/api/me') return jsonResponse(200, me)
+ return jsonResponse(404, { status: 404, title: 'Not Found' })
+ }),
+ )
+ renderRoutes(
+ [{ path: '/expenses/:id/edit', element:
}],
+ '/expenses/999999/edit',
+ )
+
+ expect(
+ await screen.findByRole('heading', { name: 'This expense doesn’t exist' }),
+ ).toBeInTheDocument()
+ expect(screen.getByRole('link', { name: 'Go to activity' })).toHaveAttribute(
+ 'href',
+ '/activity',
+ )
+ })
})
describe('EditExpensePage with a malformed id', () => {
diff --git a/frontend/src/features/add/EditTransferPage.test.tsx b/frontend/src/features/add/EditTransferPage.test.tsx
index bc6648d..a782a5e 100644
--- a/frontend/src/features/add/EditTransferPage.test.tsx
+++ b/frontend/src/features/add/EditTransferPage.test.tsx
@@ -70,4 +70,46 @@ describe('EditTransferPage', () => {
description: 'BLIK',
})
})
+
+ it('shows not found without calling the API for a malformed id', async () => {
+ const fetchMock = vi.fn(async (_path: string) => jsonResponse(200, me))
+ vi.stubGlobal('fetch', fetchMock)
+ renderRoutes(
+ [{ path: '/transfers/:id/edit', element:
}],
+ '/transfers/abc/edit',
+ )
+
+ expect(
+ await screen.findByRole('heading', { name: 'This payment doesn’t exist' }),
+ ).toBeInTheDocument()
+ expect(screen.getByRole('link', { name: 'Go to activity' })).toHaveAttribute(
+ 'href',
+ '/activity',
+ )
+ expect(fetchMock.mock.calls.some(([path]) => String(path).startsWith('/api/transfers'))).toBe(
+ false,
+ )
+ })
+
+ it('shows StateMessage with a way back when the payment is not found (404)', async () => {
+ vi.stubGlobal(
+ 'fetch',
+ vi.fn(async (path: string) => {
+ if (path === '/api/me') return jsonResponse(200, me)
+ return jsonResponse(404, { status: 404, title: 'Not Found' })
+ }),
+ )
+ renderRoutes(
+ [{ path: '/transfers/:id/edit', element:
}],
+ '/transfers/999999/edit',
+ )
+
+ expect(
+ await screen.findByRole('heading', { name: 'This payment doesn’t exist' }),
+ ).toBeInTheDocument()
+ expect(screen.getByRole('link', { name: 'Go to activity' })).toHaveAttribute(
+ 'href',
+ '/activity',
+ )
+ })
})
diff --git a/frontend/src/features/auth/LoginPage.test.tsx b/frontend/src/features/auth/LoginPage.test.tsx
index c0ad699..65209ec 100644
--- a/frontend/src/features/auth/LoginPage.test.tsx
+++ b/frontend/src/features/auth/LoginPage.test.tsx
@@ -2,7 +2,7 @@ import { describe, expect, it, vi, beforeEach } from 'vitest'
import { render, screen, waitFor } from '@testing-library/react'
import userEvent from '@testing-library/user-event'
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
-import { createMemoryRouter, RouterProvider } from 'react-router'
+import { createMemoryRouter, RouterProvider, type InitialEntry } from 'react-router'
import { TestI18nProvider } from '@/test/i18n'
import { jsonResponse } from '@/test/utils'
import { LoginPage } from './LoginPage'
@@ -15,7 +15,7 @@ vi.mock('@/api/auth', async () => {
}
})
-function renderLogin() {
+function renderLogin(initialEntry: InitialEntry = '/login') {
const queryClient = new QueryClient({
defaultOptions: { queries: { retry: false }, mutations: { retry: false } },
})
@@ -23,8 +23,9 @@ function renderLogin() {
[
{ path: '/login', element:
},
{ path: '/', element:
Feed home
},
+ { path: '/add', element:
Add screen
},
],
- { initialEntries: ['/login'] },
+ { initialEntries: [initialEntry] },
)
render(
@@ -109,6 +110,23 @@ describe('LoginPage', () => {
expect(await screen.findByText('Feed home')).toBeInTheDocument()
})
+ it('navigates back to the saved path including query string and hash', async () => {
+ stubApi({ status: 200, body: { id: 1, email: 'alice@example.com' } })
+ const router = renderLogin({
+ pathname: '/login',
+ state: { from: '/add?tab=payment&contact=2#note' },
+ })
+
+ await userEvent.type(screen.getByLabelText('Email'), 'alice@example.com')
+ await userEvent.type(screen.getByLabelText('Password'), 'secret')
+ await userEvent.click(screen.getByRole('button', { name: 'Sign in' }))
+
+ await waitFor(() => expect(router.state.location.pathname).toBe('/add'))
+ expect(router.state.location.search).toBe('?tab=payment&contact=2')
+ expect(router.state.location.hash).toBe('#note')
+ expect(await screen.findByText('Add screen')).toBeInTheDocument()
+ })
+
it('links to sign-up when registration is open', async () => {
stubApi({ status: 200, body: {} })
renderLogin()
diff --git a/frontend/src/features/contacts/ContactNotFound.tsx b/frontend/src/features/contacts/ContactNotFound.tsx
index 1afee23..2fad357 100644
--- a/frontend/src/features/contacts/ContactNotFound.tsx
+++ b/frontend/src/features/contacts/ContactNotFound.tsx
@@ -6,11 +6,14 @@ import { PageHeader } from '@/components/PageHeader'
import { StateMessage } from '@/components/StateMessage'
import { buttonClassName } from '@/components/ui/button-variants'
-export function ContactNotFound() {
+export function ContactNotFound({ title }: { title?: string }) {
const { t } = useLingui()
return (
<>
- } />
+ }
+ />
>
)
diff --git a/frontend/src/features/contacts/ContactPage.test.tsx b/frontend/src/features/contacts/ContactPage.test.tsx
index 57b80d5..2269d93 100644
--- a/frontend/src/features/contacts/ContactPage.test.tsx
+++ b/frontend/src/features/contacts/ContactPage.test.tsx
@@ -155,9 +155,22 @@ describe('ContactPage', () => {
expect(screen.getByRole('button', { name: 'Try again' })).toBeInTheDocument()
})
- it('says the contact was not found for an unknown or invalid id', async () => {
+ it('says the contact was not found with a header title for an unknown or invalid id', async () => {
stubApi([contact()])
renderContact(99)
expect(await screen.findByRole('heading', { name: 'Contact not found' })).toBeInTheDocument()
+ expect(
+ within(screen.getByRole('banner')).getByRole('heading', { name: 'Contact' }),
+ ).toBeInTheDocument()
+ })
+
+ it('shows contact not found with a header title for a non-numeric id without calling the API', async () => {
+ const fetchMock = stubApi([contact()])
+ renderContact('abc')
+ expect(await screen.findByRole('heading', { name: 'Contact not found' })).toBeInTheDocument()
+ expect(
+ within(screen.getByRole('banner')).getByRole('heading', { name: 'Contact' }),
+ ).toBeInTheDocument()
+ expect(fetchMock).not.toHaveBeenCalled()
})
})
diff --git a/frontend/src/features/contacts/ContactPage.tsx b/frontend/src/features/contacts/ContactPage.tsx
index f0925a2..08bc390 100644
--- a/frontend/src/features/contacts/ContactPage.tsx
+++ b/frontend/src/features/contacts/ContactPage.tsx
@@ -37,6 +37,7 @@ function ContactView({ userId }: { userId: number }) {
return (
<>
}
trailing={
contact && (
diff --git a/frontend/src/features/contacts/EditContactPage.test.tsx b/frontend/src/features/contacts/EditContactPage.test.tsx
index 80f988d..66601a7 100644
--- a/frontend/src/features/contacts/EditContactPage.test.tsx
+++ b/frontend/src/features/contacts/EditContactPage.test.tsx
@@ -1,5 +1,5 @@
import { afterEach, describe, expect, it, vi } from 'vitest'
-import { screen } from '@testing-library/react'
+import { screen, within } from '@testing-library/react'
import userEvent from '@testing-library/user-event'
import type { ContactListItem } from '@/api/types'
import { jsonResponse, renderRoutes } from '@/test/utils'
@@ -33,13 +33,13 @@ function putCalls(fetchMock: ReturnType) {
.map(([input, init]) => [input, JSON.parse(String(init?.body))])
}
-function renderEdit() {
+function renderEdit(userId: number | string = 2) {
return renderRoutes(
[
{ path: '/contacts/:userId/edit', element: },
{ path: '/contacts/:userId', element: Contact view
},
],
- '/contacts/2/edit',
+ `/contacts/${userId}/edit`,
)
}
@@ -117,4 +117,25 @@ describe('EditContactPage', () => {
expect(await screen.findByText('Nickname can be at most 64 characters.')).toBeInTheDocument()
expect(putCalls(fetchMock)).toEqual([])
})
+
+ it('shows contact not found with the Edit contact header for a missing contact', async () => {
+ stubApi()
+ renderEdit(99)
+
+ expect(await screen.findByRole('heading', { name: 'Contact not found' })).toBeInTheDocument()
+ expect(
+ within(screen.getByRole('banner')).getByRole('heading', { name: 'Edit contact' }),
+ ).toBeInTheDocument()
+ })
+
+ it('shows contact not found without fetching for a non-numeric id', async () => {
+ const fetchMock = stubApi()
+ renderEdit('abc')
+
+ expect(await screen.findByRole('heading', { name: 'Contact not found' })).toBeInTheDocument()
+ expect(
+ within(screen.getByRole('banner')).getByRole('heading', { name: 'Edit contact' }),
+ ).toBeInTheDocument()
+ expect(fetchMock).not.toHaveBeenCalled()
+ })
})
diff --git a/frontend/src/features/contacts/EditContactPage.tsx b/frontend/src/features/contacts/EditContactPage.tsx
index 791b3de..74fcfe3 100644
--- a/frontend/src/features/contacts/EditContactPage.tsx
+++ b/frontend/src/features/contacts/EditContactPage.tsx
@@ -32,10 +32,19 @@ const editContactSchema = z.object({
type EditContactValues = z.infer
+function EditContactNotFound() {
+ const { t } = useLingui()
+ return (
+
+
+
+ )
+}
+
export function EditContactPage() {
const userId = parseIdParam(useParams().userId)
- return userId === null ? :
+ return userId === null ? :
}
function EditContact({ userId }: { userId: number }) {
@@ -44,7 +53,7 @@ function EditContact({ userId }: { userId: number }) {
const contact = contactQuery.data
if (contact === null) {
- return
+ return
}
const shortName = contact ? getShortName(contact.person.displayName) : ''
diff --git a/frontend/src/locales/en.po b/frontend/src/locales/en.po
index 7ab4443..dd576e4 100644
--- a/frontend/src/locales/en.po
+++ b/frontend/src/locales/en.po
@@ -308,6 +308,7 @@ msgstr "Amounts"
msgid "An account with this email already exists."
msgstr "An account with this email already exists."
+#: src/app/ErrorPages.tsx
#: src/features/contacts/EditContactPage.tsx
#: src/features/detail/DetailParts.tsx
msgid "Back"
@@ -369,6 +370,10 @@ msgstr "Change who paid"
msgid "Changes saved."
msgstr "Changes saved."
+#: src/app/ErrorPages.tsx
+msgid "Check the address or go back to your contacts."
+msgstr "Check the address or go back to your contacts."
+
#: src/features/add/SplitEditorSheet.tsx
msgid "Check the numbers"
msgstr "Check the numbers"
@@ -418,6 +423,11 @@ msgstr "Comment"
msgid "Comments"
msgstr "Comments"
+#: src/features/contacts/ContactNotFound.tsx
+#: src/features/contacts/ContactPage.tsx
+msgid "Contact"
+msgstr "Contact"
+
#: src/features/contacts/ContactNotFound.tsx
msgid "Contact not found"
msgstr "Contact not found"
@@ -503,6 +513,10 @@ msgstr "Couldn’t load this expense"
msgid "Couldn’t load this payment"
msgstr "Couldn’t load this payment"
+#: src/app/RequireAuth.tsx
+msgid "Couldn’t reach Settle"
+msgstr "Couldn’t reach Settle"
+
#: src/features/add/PaymentForm.tsx
msgid "Couldn’t record the payment. Nothing was saved and your entries are still here. Try again."
msgstr "Couldn’t record the payment. Nothing was saved and your entries are still here. Try again."
@@ -739,6 +753,7 @@ msgstr "Give someone a share"
msgid "Go to activity"
msgstr "Go to activity"
+#: src/app/ErrorPages.tsx
#: src/features/contacts/ContactNotFound.tsx
msgid "Go to contacts"
msgstr "Go to contacts"
@@ -981,6 +996,10 @@ msgstr "Nobody owes you for this"
msgid "Nobody shares this yet"
msgstr "Nobody shares this yet"
+#: src/app/ErrorPages.tsx
+msgid "Not found"
+msgstr "Not found"
+
#: src/features/add/PeopleField.tsx
msgid "Not in your contacts? Type their email."
msgstr "Not in your contacts? Type their email."
@@ -1145,6 +1164,14 @@ msgstr "Record payment"
msgid "Recording…"
msgstr "Recording…"
+#: src/app/ErrorPages.tsx
+msgid "Reload"
+msgstr "Reload"
+
+#: src/app/ErrorPages.tsx
+msgid "Reload the page to try again."
+msgstr "Reload the page to try again."
+
#: src/features/add/PeopleField.tsx
msgid "Remove {displayName}"
msgstr "Remove {displayName}"
@@ -1239,6 +1266,10 @@ msgstr "Signing in…"
msgid "Someone already added you? Sign up with that same email and your shared expenses will be waiting."
msgstr "Someone already added you? Sign up with that same email and your shared expenses will be waiting."
+#: src/app/ErrorPages.tsx
+msgid "Something went wrong"
+msgstr "Something went wrong"
+
#: src/features/auth/LoginPage.tsx
msgid "Something went wrong. Please try again."
msgstr "Something went wrong. Please try again."
@@ -1342,6 +1373,10 @@ msgstr "This can’t be undone."
msgid "This expense doesn’t exist"
msgstr "This expense doesn’t exist"
+#: src/app/ErrorPages.tsx
+msgid "This page doesn’t exist"
+msgstr "This page doesn’t exist"
+
#: src/components/ItemStates.tsx
msgid "This payment doesn’t exist"
msgstr "This payment doesn’t exist"
diff --git a/frontend/src/locales/pl.po b/frontend/src/locales/pl.po
index bff1dd1..f0a793a 100644
--- a/frontend/src/locales/pl.po
+++ b/frontend/src/locales/pl.po
@@ -308,6 +308,7 @@ msgstr "Kwoty"
msgid "An account with this email already exists."
msgstr "Konto z tym adresem e-mail już istnieje."
+#: src/app/ErrorPages.tsx
#: src/features/contacts/EditContactPage.tsx
#: src/features/detail/DetailParts.tsx
msgid "Back"
@@ -369,6 +370,10 @@ msgstr "Zmień, kto płaci"
msgid "Changes saved."
msgstr "Zapisano zmiany."
+#: src/app/ErrorPages.tsx
+msgid "Check the address or go back to your contacts."
+msgstr "Sprawdź adres albo wróć do kontaktów."
+
#: src/features/add/SplitEditorSheet.tsx
msgid "Check the numbers"
msgstr "Sprawdź wartości"
@@ -418,6 +423,11 @@ msgstr "Komentarz"
msgid "Comments"
msgstr "Komentarze"
+#: src/features/contacts/ContactNotFound.tsx
+#: src/features/contacts/ContactPage.tsx
+msgid "Contact"
+msgstr "Kontakt"
+
#: src/features/contacts/ContactNotFound.tsx
msgid "Contact not found"
msgstr "Nie znaleziono kontaktu"
@@ -503,6 +513,10 @@ msgstr "Nie udało się wczytać wydatku"
msgid "Couldn’t load this payment"
msgstr "Nie udało się wczytać płatności"
+#: src/app/RequireAuth.tsx
+msgid "Couldn’t reach Settle"
+msgstr "Nie udało się połączyć z Settle"
+
#: src/features/add/PaymentForm.tsx
msgid "Couldn’t record the payment. Nothing was saved and your entries are still here. Try again."
msgstr "Nie udało się zapisać płatności. Niczego nie zapisano, ale wpisane dane nie zniknęły. Spróbuj ponownie."
@@ -739,6 +753,7 @@ msgstr "Przydziel komuś udział"
msgid "Go to activity"
msgstr "Przejdź do aktywności"
+#: src/app/ErrorPages.tsx
#: src/features/contacts/ContactNotFound.tsx
msgid "Go to contacts"
msgstr "Przejdź do kontaktów"
@@ -981,6 +996,10 @@ msgstr "Nikt nie ma ci nic do oddania za ten wydatek"
msgid "Nobody shares this yet"
msgstr "Nikt jeszcze nie ma udziału w wydatku"
+#: src/app/ErrorPages.tsx
+msgid "Not found"
+msgstr "Nie znaleziono"
+
#: src/features/add/PeopleField.tsx
msgid "Not in your contacts? Type their email."
msgstr "Nie ma tej osoby w kontaktach? Wpisz jej adres e-mail."
@@ -1145,6 +1164,14 @@ msgstr "Zapisz płatność"
msgid "Recording…"
msgstr "Zapisywanie…"
+#: src/app/ErrorPages.tsx
+msgid "Reload"
+msgstr "Odśwież"
+
+#: src/app/ErrorPages.tsx
+msgid "Reload the page to try again."
+msgstr "Odśwież stronę, aby spróbować ponownie."
+
#: src/features/add/PeopleField.tsx
msgid "Remove {displayName}"
msgstr "Usuń: {displayName}"
@@ -1239,6 +1266,10 @@ msgstr "Logowanie…"
msgid "Someone already added you? Sign up with that same email and your shared expenses will be waiting."
msgstr "Dodano cię już do Settle? Załóż konto na ten sam adres e-mail, a wspólne wydatki będą na ciebie czekać."
+#: src/app/ErrorPages.tsx
+msgid "Something went wrong"
+msgstr "Coś poszło nie tak"
+
#: src/features/auth/LoginPage.tsx
msgid "Something went wrong. Please try again."
msgstr "Coś poszło nie tak. Spróbuj ponownie."
@@ -1342,6 +1373,10 @@ msgstr "Tego nie można cofnąć."
msgid "This expense doesn’t exist"
msgstr "Ten wydatek nie istnieje"
+#: src/app/ErrorPages.tsx
+msgid "This page doesn’t exist"
+msgstr "Ta strona nie istnieje"
+
#: src/components/ItemStates.tsx
msgid "This payment doesn’t exist"
msgstr "Ta płatność nie istnieje"