-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* wip: info screen * Add files to branch after big fuckup * add fetcher * debug * Hello * hups * Add debug message * fix process.env.* functioning * Fix issue where events next year show as the first events on the list :D * something * Change PUBLIC_**_URL to NEXT_PUBLIC... * More infonäyttö things - Fixed scrolling between pages - Store state at parent component - Misc things * fix: Formatted infonäyttö files * fix: Changed rest of PUBLIC_ env variable references to NEXT_PUBLIC_ * Change PUBLIC_**_URL to NEXT_PUBLIC_ * fix: Align stop names on HSL schedule with grid * Refactor folder structure for infoscreen components * remove hsl page * format * add kanttiinit functionality * Add kanttiinit stuff * feat: Update Kanttiinit implementation - Now it works :D - Created separate API endpoints for accessing Kanttiinit API - Changed types for Kanttiinit - Updated almost all files that touch Kanttiinit on infoscreen * feat: Added basic styling to Kanttiinit on infoscreen * Something * Make infoscreen fullscreen capable * fix some typecheck issues * format and lint * Fix Raide-Jokeri writing form * fix: Fixed typecheck errors in Infoscreen - Full screen button now only works on new browsers (Safari 2023+, most others 2020+) - Removed unused Event component - Better error response for Kanttiinit api handler * Removed Enter Fullscreen button from InfoScreen * fix: Fixed formatting * Revert global env variable changes * Remove non-relevant files, fixed some issues * Removed commented code, console.logs etc * Fixed Header logo on Infoscreen, 2025 payload update to make tests pass, removed unused json-stable-stringify * Fixed formatting and some warnings * Moved dependency to correct package.json * Added one newline to fix formatting :) * Fix several warnings * Move types, small refactoring, etc * Revert infoscreen layout/page structure change - It seems that it is mandatory to have both layout and page files * Refactored infonaytto contents file * Convert HSL & Kanttiinit to Server Components on infoscreen - Event page is currently not working * chore: cleanup for hsl stuff mostly * chore: Add caching for Kanttiinit API, fix arrivalTimeUnix parameter name * feat: Initial event display support for infoscreen * feat: Refactor Infoscreen events page to use global event components - Added new EventCardCompact component * feat: Add localization to infoscreen, minor layout fixes * feat: Fetch localized Kantiinit menus, change infoscreen path - Infoscreen is now /infoscreen instead of /infonaytto/naytto - Kanttiinit menus are now fetched in Finnish and English depending on locale * refactor: Update infoscreen component structure - Renamed `kanttiinit-combined` to just `kanttiinit` - Combined kanttiinit helper functions to `kanttiinit/fetcher.ts` - Moved locale handling to kanttiinit React component - Combined `hsl-schedules-combined` and `hsl-schedule` to `hsl-schedules` - Update event grouping week logic on infoscreen - Revert the change to NEXT_PUBLIC_ILMOMASIINA_URL - Revert moving of `globals.css` * Fix: uncomment HSL and Kanttiinit screens in InfoScreenContents --------- Co-authored-by: puhakkn2 <[email protected]> Co-authored-by: IiroP <[email protected]> Co-authored-by: Kalle Ahlström <[email protected]> Co-authored-by: Kalle Ahlström <[email protected]>
- Loading branch information
1 parent
078663a
commit 3bb97cf
Showing
36 changed files
with
920 additions
and
373 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
apps/web/src/app/[locale]/(infoscreen)/infoscreen/layout.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import React from "react"; | ||
// eslint-disable-next-line camelcase -- Roboto_Mono name is set by next/font | ||
import { Inter, Roboto_Mono } from "next/font/google"; | ||
import { cn } from "../../../../lib/utils.ts"; | ||
import "../../globals.css"; | ||
import { InfoScreenHeader } from "../../../../components/infoscreen/infoscreen-header/index.tsx"; | ||
|
||
const inter = Inter({ | ||
subsets: ["latin"], | ||
variable: "--font-inter", | ||
}); | ||
const robotoMono = Roboto_Mono({ | ||
subsets: ["latin"], | ||
variable: "--font-roboto-mono", | ||
}); | ||
|
||
export default function ScreenLayout({ | ||
children, | ||
}: { | ||
children: React.ReactNode; | ||
}) { | ||
return ( | ||
<html lang="fi"> | ||
<body | ||
className={cn( | ||
inter.variable, | ||
robotoMono.variable, | ||
"flex h-full flex-col bg-gray-200 font-mono", | ||
)} | ||
> | ||
<InfoScreenHeader /> | ||
<div className="size-full p-4">{children}</div> | ||
</body> | ||
</html> | ||
); | ||
} |
16 changes: 16 additions & 0 deletions
16
apps/web/src/app/[locale]/(infoscreen)/infoscreen/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { HSLcombinedSchedule } from "../../../../components/infoscreen/hsl-schedules"; | ||
import { KanttiinitCombined } from "../../../../components/infoscreen/kanttiinit"; | ||
import InfoScreenSwitcher from "../../../../components/infoscreen/infoscreen-switcher/index"; | ||
import EventListInfoscreen from "../../../../components/infoscreen/events-list"; | ||
|
||
export const dynamic = "force-dynamic"; | ||
|
||
export default function InfoScreenContents() { | ||
return ( | ||
<InfoScreenSwitcher> | ||
<HSLcombinedSchedule /> | ||
<KanttiinitCombined /> | ||
<EventListInfoscreen /> | ||
</InfoScreenSwitcher> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
apps/web/src/app/[locale]/not-found.tsx → ...web/src/app/[locale]/(main)/not-found.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
apps/web/src/app/[locale]/page.tsx → apps/web/src/app/[locale]/(main)/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 8 additions & 5 deletions
13
...ups/[signupId]/[signupEditToken]/page.tsx → ...ups/[signupId]/[signupEditToken]/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...eb/src/app/[locale]/signups/not-found.tsx → ...app/[locale]/(main)/signups/not-found.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...src/app/[locale]/tapahtumat/not-found.tsx → .../[locale]/(main)/tapahtumat/not-found.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ocale]/weekly-newsletters/[slug]/page.tsx → ...(main)/weekly-newsletters/[slug]/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.