Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add user interface #56

Merged
merged 18 commits into from
Oct 16, 2024
Merged

Add user interface #56

merged 18 commits into from
Oct 16, 2024

Commits on Sep 20, 2024

  1. Add UI to __init__.py

    Add routes to serve each page from the UI build.
    cswaney committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    5ed7640 View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2024

  1. Bump litestar -> litestar~=2.11

    Latest Litestar includes `SecretString` type.
    cswaney committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    7a3f952 View commit details
    Browse the repository at this point in the history
  2. Create auth-protected pages and endpoints

    Pages are protected by custom auth middleware and endpoints are protected by an auth "guard". At start up, we generate a random authorization token and print it to the console. To log in, users must provide the token to the `login` endpoint. In the UI, this can be accomplished with a post `fetch` request setting `redirect` to "follow" and manually handling the redirect:
    
    ```javascript
    if (resp.redirected) {
      window.location.href = resp.url;
    }
    ```
    
    We use built-in cookie-based session middleware to keep track of whether users are logged in or not. A user is authenticated if their request contains a session with `token=AUTH_TOKEN`.
    
    In `DEV_MODE`, use secret token "test" to authorize.
    cswaney committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    3056783 View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2024

  1. Configuration menu
    Copy the full SHA
    35d9926 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a08c6ca View commit details
    Browse the repository at this point in the history
  3. Create mounts column

    cswaney committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    fb85559 View commit details
    Browse the repository at this point in the history
  4. Remove comment

    cswaney committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    4cda8f7 View commit details
    Browse the repository at this point in the history

Commits on Oct 1, 2024

  1. Create asgi.py

    This commit relocates `app` from `__init__.py` to `asgi.py`. For a minimal application, `__init__.py` is a reasonable location (and one of the locations where Litestar automatically checks for an `app`), but for a more complex application where we are importing objects from `src/app`, this location becomes problematic.
    cswaney committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    bd85aef View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2024

  1. Configuration menu
    Copy the full SHA
    f53879b View commit details
    Browse the repository at this point in the history
  2. Remove profile.user from local CLI setup

    Closes #54
    cswaney committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    f529cfd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    047a84a View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2024

  1. Fix debug mode warning.

    cswaney committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    e15c976 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b50aa4e View commit details
    Browse the repository at this point in the history
  3. Clean up speech_recognition_slurm.sh

    Fixes volume mount and image path.
    cswaney committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    d6df7f6 View commit details
    Browse the repository at this point in the history
  4. Clean up text_generation_local.sh

    Forwards port and uses service `name` instead of `job_id`.
    cswaney committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    f0b295e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c51823d View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2024

  1. Fix _next and img paths

    cswaney committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    460ed77 View commit details
    Browse the repository at this point in the history
  2. Add UI build

    Closes #47.
    cswaney committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    805f5b2 View commit details
    Browse the repository at this point in the history