---
# System prepended metadata

title: UI mono repo

---

# UI mono repo

## Reorganizing Orchestrator UI project

| Common files   | Files to duplicate | ?                   |
|:-------------- |:------------------ |:------------------- |
| .husky         | public             | .dockerignore       |
| .storybook     | src/configs        | .prettierrc.js      |
| .vscode        | src/layouts        | .eslintrc.js        |
| scripts        | src/redux          | .eslintignore       |
| .env           | src/views          | config-overrides.js |
| .gitlab-ci.yml | src/               | default.nix         |
| .gitignore     | src/components     | nginx.conf          |
| Dockerfile     | src/utility        | package.json        |
| readme         |                    |                     |
| tsconfig.json  |                    |                     |
| src/actions    |                    |                     |
| src/assets     |                    |                     |
| src/stories    |                    |                     |

Keep in mind upcoming changes -> delete `vuexy` files + add `.less` files

Bnj notes:

- [x] Change the backend.ts file structure to have `api_url_zerotrust` and `api_url_ciphercompute` 
- [x]  Separate the redux/actions and redux/reducers into 2 sub folders. One for zerotrust and one for ciphercompute.
- [x]  Have a config with 2 booleans inside one to enable zerotrust and the other one to enable ciphercompute. By default each one is set to true if no environment variable is set.
- [ ]  Have a custom left menu with different views depending on which flag is enabled or not. 
- [ ]  The most annoying part will be about common pages like homepage, administration, etc... (What do we do when the 2 flags are enabled ? Which homepage should we display first ?)
- [ ]  Also the most annoying will be about the login and authentication, it will need a common authentication system on the backend. We're not there for now but we need to be aware.