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

Implements basic Firebase functionality #8

Merged
merged 25 commits into from
May 9, 2023

Conversation

nuru-nu
Copy link
Contributor

@nuru-nu nuru-nu commented May 7, 2023

This PR contains two things

  1. A bunch of small UI improvements, namely the possibility to "override" bot/user via Keyboard, and a new "Developer" toggle that enables some practical but not-too-safe features like single-click deleting pre-recordings, and reading messages aloud via the currently selected voice.

  2. Firebase functionality: Once a user is logged in, the Firestore database is used to load API keys, and cost and conversations are sent to the server for later analysis. Note that the entire app still works perfectly fine without being logged in (in that case the user has to provide API keys themselves though, as was the case already before this PR).

Moshi Na Vioo and others added 12 commits May 6, 2023 14:01
Adds editing functionality to main screen:
- transcripts can be read aloud & stored as prerecordings.
- prerecordings can be deleted and modified.

The `configuration-prerecording-sidebar.component` is not really needed
anymore after this change, but we still keep it for the time being.
Instead of the super hacky storage of the password in localStorage.
 Without this default value, f6cb23 broke previous microphone settings leading
 to a rendering error of input messages (in `transcript.component.html` when setting
 the `[ngClass]` on line 16).
Before this fix e.g. arrow right could not be used to move the caret
inside a text input (e.g. override text input).
The override pane now has no description other than the placeholder, and a
single text input is used for both bot and user.

The new developer toggle can be used to enable a bunch of useful, but potentially
dangerous actions.
Implemented:
- multiple users with their own collections/documents.
- load API keys from db when logged in
- store conversations to db

Not implemented yet:
- store prerecordings and system prompts
* noodles/main:
  Sets default microphone role to user.
  feat: add light controller
@vercel
Copy link

vercel bot commented May 7, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
chan-da-liar ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 8, 2023 10:16pm

The previous pattern – using getFirstValue – did not work as expected,
in particular it did not fetch the latest value of the settings when
loading them from Firebase on startup.
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