Skip to content

Front end migration to only react#1076

Open
SaboniAmine wants to merge 9 commits into
masterfrom
chore/migrate_pur_react
Open

Front end migration to only react#1076
SaboniAmine wants to merge 9 commits into
masterfrom
chore/migrate_pur_react

Conversation

@SaboniAmine
Copy link
Copy Markdown
Member

Description

This PR introduces a refactoring of the front end app, with following changes :

  • Removing next.js app and replacing by a lightweight pure react version (build size went from 400 MB to 1.2 MB), with vite bundling
  • Factorizing all design tokens under the tailwind config
  • adding Zod runtime validation for API exchanges
  • remove periodic polling and replace by revalidate on focus or manual refresh with additional buttons
  • added accessibility labels

Related Issue

Please link to the issue this PR resolves: [issue #]

Motivation and Context

Why is this change required? What problem does it solve?

How Has This Been Tested?

Please describe in detail how you tested your changes.

Screenshots (if appropriate):

Types of changes

What types of changes does your code introduce? Put an x in all the boxes that apply:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

Go over all the following points, and put an x in all the boxes that apply.

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING.md document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Comment thread webapp/src/api/errors.ts Fixed
@SaboniAmine SaboniAmine force-pushed the chore/migrate_pur_react branch from 6b91fe5 to 16529a5 Compare May 22, 2026 14:37
@SaboniAmine SaboniAmine force-pushed the chore/migrate_pur_react branch from 16529a5 to 2e9dd08 Compare May 22, 2026 14:38
@SaboniAmine SaboniAmine marked this pull request as ready for review May 22, 2026 14:38
@SaboniAmine SaboniAmine requested a review from a team as a code owner May 22, 2026 14:38
@codecov
Copy link
Copy Markdown

codecov Bot commented May 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.92%. Comparing base (a88000f) to head (ef75c4f).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1076      +/-   ##
==========================================
- Coverage   88.94%   88.92%   -0.03%     
==========================================
  Files          45       45              
  Lines        4306     4306              
==========================================
- Hits         3830     3829       -1     
- Misses        476      477       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Collaborator

@inimaz inimaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, tested offline

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.

3 participants