GitHub user bobbai00 closed a discussion: Vote: Create An Experimental 
React-based Frontend

## Proposal

The discussion [#9387](https://github.com/apache/texera/discussions/9387) 
compared frontend frameworks, and many members preferred React. As the next 
step, I propose creating an experimental React frontend beside today's Angular 
frontend.

### New folder `frontend-react/`

I propose a separate folder and a separate path, so that the two frontends run 
side by side on one site. Below is 

```
...
common/
amber/
...
frontend/               # current angular frontend
frontend-react/         # proposed new folder for React-based frontend
```

### Hosting the Experiment Frontend Separately 

<img width="947" height="441" alt="Screenshot 2026-11-23 at 2 10 28 PM" 
src="https://github.com/user-attachments/assets/d0b1cc8d-d567-46de-befa-e0659491ff3a";
 />

The browser reaches both frontends through the same gateway, and both call the 
same `/api`. I think this arrangement has three benefits:

1. **The Angular frontend is untouched**: nothing under `frontend/` changes, 
and with the flag off a release behaves exactly as today.
2. **One sign-in and one backend**: both are served from one site and read the 
same sign-in token, so a user who signed in on the Angular frontend opens 
`/alpha/` already signed in. A page not built in React yet links to its Angular 
page.
3. **Easy to stop**: turning the flag off hides it at once, and dropping the 
experiment removes one folder and the lines that serve it.

### New frontend endpoints will be controlled by a config flag

`/alpha/` is off by default, so a release behaves as today until a deployment 
turns it on. The flag sits with the other frontend switches in 
`common/config/src/main/resources/gui.conf`:

```
gui {
  # whether the experimental React frontend is served at /alpha/
  alpha-frontend-enabled = false
  alpha-frontend-enabled = ${?GUI_ALPHA_FRONTEND_ENABLED}
}
```

The React build ships in the Dashboard Service's image beside the Angular 
build, and the Dashboard Service serves it at `/alpha/` only while the flag is 
on, as it serves the Angular build at `/`. Both gateways already send `/` to 
the Dashboard Service, so they need no new route. A deployment turns the flag 
on with `GUI_ALPHA_FRONTEND_ENABLED=true`, in `bin/single-node/.env` or under 
`texeraEnvVars` in the Helm values.


GitHub link: https://github.com/apache/texera/discussions/9653

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to