🔔 You should only need to run the UI development server if you're contributing to the UI. If you just want to run the UI to see your Unison codebase, it should either come pre-installed with ucm or if you built from source can be downloaded with a script: ./dev-ui-install.hs from the unison repository (Running Unison).
-
Start
ucm(the executable isunisoninstead ofucmif you built the unison repository from source) in headless mode:ucm headless, and copy the API URL (this URL is uniquely generated byucmat start-up) from theucmstart-up output (ucmalso outputs a UI URL, but this isn't used when developing for the UI/running the UI from this repository). -
Make sure the latest dependencies are installed with by running
npm install -
Start the development server, run:
API_URL="<API URL FROM UCM>" npm start -
Visit
http://localhost:1234in a browser.
To add new icons, copy the SVG markup to a new function in /src/UI/Icon.elm
following the convention seen there of other icons. The color (fill or
stroke) of the shape must be
currentColor.