Skip to content

Commit a8b29da

Browse files
committed
Address comments and fix failing tests
1 parent 892f073 commit a8b29da

5 files changed

Lines changed: 4 additions & 5 deletions

File tree

app/backend/src/couchers/i18n/locales/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@
184184
"public_trip_same_gender_only": "This trip is only open to offers from people of the same gender.",
185185
"public_trip_not_found": "Couldn't find that public trip.",
186186
"public_trip_user_mismatch": "The host request recipient does not match the public trip's traveler.",
187+
"public_trips_disabled": "Public trips are currently disabled.",
187188
"public_trips_not_enabled": "Public trips are not enabled in this community.",
188189
"postal_address_invalid": "The address could not be validated.",
189190
"postal_address_undeliverable": "The address is not deliverable.",

app/backend/src/tests/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ def db_class(setup_testdb: None, testdb_conn: Connection) -> None:
162162
"remove_removed_users_from_mailing_list_enabled": True,
163163
"notification_translations_enabled": True,
164164
"email_ics_attachments_enabled": True,
165+
"public_trips_enabled": True,
165166
}
166167

167168

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ import nextI18nextConfig from "next-i18next.config";
1212
import { serverSideTranslations } from "next-i18next/serverSideTranslations";
1313

1414
export const getStaticProps: GetStaticProps = async ({ locale }) => {
15-
if (process.env.NEXT_PUBLIC_COUCHERS_ENV === "prod") {
16-
return { notFound: true };
17-
}
1815
return {
1916
props: {
2017
...(await serverSideTranslations(

app/web/routes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ export const routeToCommunity = (
191191
export const routeToEditCommunityPage = (id: number, slug: string) =>
192192
`${routeToCommunity(id, slug, "info")}/edit`;
193193

194-
export const myPublicTripsRoute = "/my-public-trips";
194+
export const myPublicTripsRoute = "/public-trips";
195195

196196
export const composingDiscussionHash = "new";
197197
export const volunteerRoute = "/volunteer";

docs/public_trips.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ A user cannot create overlapping active trips (same node, overlapping dates, bot
9898

9999
**"Already offered" indicator**: derive from the user's sent host requests (which already carry `public_trip_id`) — no new backend field needed. Disable the button and show a label if a matching sent request exists.
100100

101-
### Trip dashboard (`/my-public-trips`)
101+
### Trip dashboard (`/public-trips`)
102102

103103
Single page for the surfer to manage all their trips across communities: view active trips, see offers received, edit/close trips.
104104

0 commit comments

Comments
 (0)