Skip to content

Supabase Client Implementation#8

Open
thisisamna wants to merge 8 commits into
mainfrom
supabase
Open

Supabase Client Implementation#8
thisisamna wants to merge 8 commits into
mainfrom
supabase

Conversation

@thisisamna

Copy link
Copy Markdown
Collaborator

Feature: Add SupabaseClient with anonymous auth

  • Implement Client interface for connecting to a Supabase backend
  • Provide anonymous (credential-less) user authentication
  • Update TUI to use the new Supabase client for session initialization.
  • Backend URL and public token hard-coded for now; could be passed as CLI arguments

Refactor: Created Client interface and refactored database functionality
Moved the database functionality to the database pkg, and define a Client interface that outlines its core functions. This allows the previously hard-coded SQLITE "backend" to be swapped out. The original implementation is now defined as LocalClient in sqlite.go.

Fix: Removed incremental score additions
There was a bug due to incrementing the score upon each submission, which led to the same points being awarded multiple times upon re-submission. Now, the score is simply summed at the end, with individual submissions being saved as they come.

Namely:
- Command execution fixes
- One shot questions addition
- Environment setup (sample files, root vs regular user, etc)
- Removed interview-specific features (difficulty, etc)
- Go back and forth between questions
- Submission confirmation popup
- Color-coded feedback for grading
- Grading flow fixes and refactoring
This commit moves the database functionality to the database pkg, and
defines a Client interface that defines its core functions. This allows the previously hard-coded SQLITE "backend" to be swapped out. The original implementation is now defined as LocalClient in sqlite.go.
This behavior adds the score of the same level multiple times when it is
resubmitted. Now, the score is simply summed at the end, with individual
submissions being saved as they come.
- Implement Client interface for connecting to a Supabase backend
- Provide anonymous (credential-less) user authentication
- Update TUI to use the new Supabase client for session initialization.
- Backend URL and public token hard-coded for now; can be passed as
  CLI arguments in the future
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.

1 participant