Commit Graph

41 Commits

Author SHA1 Message Date
ghost2023
4b3e8ad32c feat(landing): add front door routing to passenger and freight
edrsc.com had no entry point — a visitor could not tell which of the two
apps they wanted. This adds @edr/landing: one static page whose job is to
make that choice obvious, with the two doors above the fold and the rest
kept to supporting context.

Fills in apps/edr-landing/, which until now held an orphaned next-env.d.ts
from an abandoned Next 15 start and was built by nothing.

- Next.js 14 static export. Versions mirror the passenger portal exactly,
  so they resolve to what the lockfile already had and add 6 packages.
  Depends on no workspace package — @edr/ui-common's Tailwind 4 tokens do
  not fit this Tailwind 3 setup.
- Destinations come from NEXT_PUBLIC_PASSENGER_URL / NEXT_PUBLIC_FREIGHT_URL
  as origins, with the entry path appended in src/lib/apps.ts. Freight links
  to /portal rather than /, which is that app's own marketing landing.
- Design lifted from EDRFreightLandingPage so the two public surfaces read
  as one railway. Figures (752 km, ~16 h) are the ones freight already
  asserts publicly.
- Fonts load as a stylesheet, not next/font: next/font fetches from
  fonts.googleapis.com during `next build` and failed the build outright on
  a machine without network. Verified deterministic over repeated builds.
- CountUp renders its final value server-side and the reveal animation's
  hidden state is scoped behind html.js, so the page is complete with
  JavaScript off instead of blank.

turbo.json: a static export's artifact is out/, which the build task did not
list — a cache hit would have restored a build with the artifact missing.
Also gitignored.

Dockerfile.web: passes the two NEXT_PUBLIC_* build args through (a static
export inlines them at build time, so runtime env does nothing), and exempts
this app from the VITE_* required-check that guards the freight Vite apps and
would otherwise fail its build.

Claude-Session: https://claude.ai/code/session_011ZMMHwK4Ham1Dt19FVZQj3
2026-09-04 20:32:53 +03:00
Nathnael Wondisha
983cc02e50 Merge pull request #1328 from Tria-plc/freight/nati-2
fix: vite env issue
2026-08-18 10:32:05 +03:00
Nathnael
2f293e4ae4 fix: vite env issue 2026-08-18 07:28:42 +00:00
Nathnael
ab734aecc3 feat(chat): join users to rooms on sign-in 2026-08-17 12:53:08 +00:00
Nathnael
00bd1250ee feat: WIP element Chat intergration 2026-08-17 08:02:00 +00:00
Marshal
86979afccd fix issue 2026-08-12 07:57:20 +00:00
Marshal
bc7790392c fix issue 2026-08-12 07:49:31 +00:00
marshalyordanos
ea6eccbf09 feat(upload): increase document upload size limits to 50MB across the application 2026-08-11 09:26:23 +03:00
Nathnael
318af79962 feat: setup posthog 2026-07-16 08:52:29 +00:00
natib21
5a7133b599 fix 2026-07-07 08:42:01 +00:00
Stephanos A
200476dfd6 Fare and route-coach, production checklist updates 2026-07-02 22:42:15 +03:00
Yonas Tewabe
90f200fdc1 Update Dockerfile.passenger-web 2026-06-30 15:26:23 +03:00
Yonas Tewabe
18e18bd15e Update Dockerfile.web 2026-06-30 15:24:09 +03:00
Yonas Tewabe
1decdc85c7 Merge pull request #380 from Tria-plc/deployment-updates
feat: implement automated environment synchronization and conditional…
2026-06-30 15:18:46 +03:00
yonastewabe
2bbb37207e feat: implement automated environment synchronization and conditional CI/CD deployment workflows 2026-06-30 15:16:47 +03:00
SennayT
3c5f5b5861 fix: add docker cache for pnpm installations 2026-06-30 09:54:59 +00:00
Yonas Tewabe
83594b0d6f Update Dockerfile.web 2026-06-26 10:03:59 +03:00
Yonas Tewabe
4e22c4372f Update Dockerfile.web 2026-06-25 11:16:58 +03:00
yaschalew
31fbca23d6 fix 2026-06-25 10:34:40 +03:00
Sennay
b512e77ce1 Update VITE_API_URL to production endpoint 2026-06-16 22:35:27 +03:00
Stephanos A.
7a00955588 Revert "fix: add lockfile corruption handling to CI/CD and Dockerfiles" 2026-06-16 21:58:26 +03:00
Stephanos A
560aff222b fix: add lockfile corruption handling to CI/CD and Dockerfiles 2026-06-16 21:40:01 +03:00
Hagernesh Tadesse
8f99069fb6 Merge pull request #121 from Tria-plc/freight/develop
Freight/develop
2026-06-08 16:55:57 +03:00
Eyosiyas
a1940c4901 telebirr out in the payment 2026-06-08 11:49:50 +03:00
SennayT
7390b6fc31 fix build time environment variables 2026-06-06 07:49:20 +00:00
SennayT
2ea87fff64 fix passenger frontend bug 2026-06-06 06:36:50 +00:00
SennayT
aa7d655a2d use next start for deployment 2026-06-05 11:41:11 +00:00
SennayT
b233fc42a6 add a pnpm deploy step 2026-06-05 11:33:18 +00:00
SennayT
b6136b0a65 modify nextjs deployment 2026-06-05 11:28:33 +00:00
Stephanos A
20c97ed943 Update environment variable names for passenger web apps in Docker configuration 2026-06-03 07:56:04 +03:00
Stephanos A
75556a9c39 Merge branch 'alpha' of https://github.com/Tria-plc/edr-platform into alpha 2026-06-03 07:38:34 +03:00
Stephanos A
e91005ac90 Passenger web apps deployment issues resolution 1 2026-06-03 07:38:27 +03:00
Stephanos A.
9706000998 fix: increase network timeout and retries for external resource fetching during Docker build
- Increase fetch-timeout to 120 seconds (default was likely 30s)
- Set retry min/max timeouts to handle transient network issues
- Increase fetch-retries to 5 (from default 2)
- Add NODE_OPTIONS with increased heap size to prevent OOM during build
- Resolves intermittent timeout failures when downloading Google Fonts and other CDN resources
2026-06-02 23:04:18 +03:00
Stephanos A.
5645a95dd6 fix: Add build output validation to Dockerfile.web
- Verify dist directory exists after build completes
- Provides better error messaging if build outputs are missing
- Prevents silent failures that result in empty COPY commands
2026-06-02 23:01:43 +03:00
Stephanos A.
58a851f413 fix: Add error handling to Dockerfile.web build stage 2026-06-02 22:40:29 +03:00
SennayT
37c13ee7e1 move deployment to dev branch 2026-05-28 14:12:32 +03:00
SennayT
af5f4cd038 change node version and modify docker compose 2026-05-28 14:03:49 +03:00
SennayT
342ccb63de modify pipeline to speed up deployment 2026-05-28 12:52:56 +03:00
Michael Abebe
f0b309b65c dep(freight:api): added latest iamapi packages for api, docker compose dev for removed passenger 2026-05-15 16:25:39 +03:00
yaschalew
af17d01664 add docker-compose for dev 2026-05-15 13:43:22 +03:00
Muluhabt
3b8b6979db Project Initialization 2026-05-12 15:17:16 +03:00