Skip to content

Fixed the landing page / presentation#98

Merged
LinusWestling merged 6 commits into
mainfrom
landingpage
Apr 23, 2026
Merged

Fixed the landing page / presentation#98
LinusWestling merged 6 commits into
mainfrom
landingpage

Conversation

@LinusWestling

@LinusWestling LinusWestling commented Apr 23, 2026

Copy link
Copy Markdown
Collaborator

Closes #95

Summary by CodeRabbit

  • New Features

    • Added a new landing page with interactive sections including problem/solution tabs, lifecycle timeline, role selection, and documents accordion.
    • Enhanced landing page styling with animations, responsive design, and improved accessibility.
    • Expanded seed data with additional users, patients, employees, cases, and audit events for testing.
  • Chores

    • Updated authentication flow to redirect to home page after login.

@coderabbitai

coderabbitai Bot commented Apr 23, 2026

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: c355afe2-63d7-4d96-9c4c-0ffa83ea8c00

📥 Commits

Reviewing files that changed from the base of the PR and between 49c4890 and ca68c4e.

📒 Files selected for processing (8)
  • src/main/java/org/example/projektarendehantering/infrastructure/config/SecurityConfig.java
  • src/main/java/org/example/projektarendehantering/infrastructure/persistence/UserAccountEntity.java
  • src/main/java/org/example/projektarendehantering/presentation/web/UiController.java
  • src/main/resources/data.sql
  • src/main/resources/static/app.css
  • src/main/resources/static/app.js
  • src/main/resources/templates/landing.html
  • start-local.ps1

📝 Walkthrough

Walkthrough

This pull request implements a landing page presentation feature by introducing a new public-facing view, redirecting root path access from home to a dedicated landing page, expanding seed data with authentication and audit records, and adding comprehensive styling and interactive client-side functionality for the landing experience.

Changes

Cohort / File(s) Summary
Security & Routing Configuration
src/main/java/org/example/projektarendehantering/infrastructure/config/SecurityConfig.java, src/main/java/org/example/projektarendehantering/presentation/web/UiController.java
Root path (/) now included in permitAll() matchers. OAuth2 and form login redirects changed from / to /home. Controller remapped: landing() method added for root (GET /), index() method moved to GET /home.
Landing Page UI & Interactivity
src/main/resources/templates/landing.html, src/main/resources/static/app.css, src/main/resources/static/app.js
New Thymeleaf landing page template with Swedish localization, login CTAs, and interactive placeholders. Extensive CSS additions for grid-based layout, progress bar, animations, responsive breakpoints (≤700px, ≤980px), reduced-motion accessibility, and landing-specific styling (hero, tabs, timeline, accordion, chips). Client-side script adds hash-based navigation, scroll tracking, element reveal animations, tab controls, dynamic flow/role sections, and accordion functionality.
Database Infrastructure & Seed Data
src/main/resources/data.sql, src/main/java/org/example/projektarendehantering/infrastructure/persistence/UserAccountEntity.java
Expanded seed data: new user_account records with GitHub OAuth provider, additional patients/employees with updated timestamps and fields (github_username), extended cases with updated statuses/descriptions, new case_notes, documents (with file metadata and ownership), and audit_events records with conflict handling. Minor formatting (trailing newline added to entity class).
Build Scripts
start-local.ps1
PowerShell variable interpolation corrected in quiet-mode error logging: $tempLog changed to ${tempLog} for proper string evaluation.

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~45 minutes

Possibly related PRs

  • PR #70 — Modifies the same start-local.ps1 script, specifically the quiet-mode error output logic.
  • PR #29 — Expands src/main/resources/data.sql with additional seed data for patients, employees, and cases records.
  • PR #22 — Modifies UiController to add constructor injection and case-related endpoints, overlapping the same controller file being refactored here.

Poem

🐰 A landing page blooms bright and fair,
With scrolling reveals and styles to spare,
Tabs that toggle and data that flows,
Auth redirects to /home it goes,
The root now whispers—welcome here! 🎉

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch landingpage

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@LinusWestling
LinusWestling merged commit d4f9e45 into main Apr 23, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create landing-page presentation

2 participants