Commit Graph
21 Commits
Author SHA1 Message Date
wilandwil 15a643c9a4 Fixes/ less error bombing (#668)
two changes:
1. only in get feature objects and get user objects, for example, if the
user internet connection dies, these hooks are smart enough to only
retry 5 times
2. for other calls that could be repeatedly called until success, the
toaster also checks if this is a duplicated toast that was popped not
long ago

---------

Co-authored-by: wil <wil@storyteller.ai>
2024-08-28 13:29:58 -04:00
34b2a4bab2 Feature/style page (#646)
Co-authored-by: Christopher Oliphant <RALifeCoach@users.noreply.github.com>
Co-authored-by: Christopher Oliphant <christopheroliphant@christophersmbp.home>
Co-authored-by: bflatastic <bombayapirat@gmail.com>
2024-07-26 11:15:44 -04:00
wilandwil ecf27daa15 Upload button (dev only) can now be Enabled via User Attributes (#654)
Co-authored-by: wil <wil@storyteller.ai>
2024-07-25 17:22:46 -04:00
wilandwil e4ac69af64 Fix/ Loading Bar can not have signals (#590)
@bflatastic please be mindful that all the components in the reusable
folder are/could-be/should-be reused in different components, which
means, if a signal is needed, their parent component has to load that
signal and pass it on to them, otherwise the component wont be reusable
anymore

Co-authored-by: wil <wil@storyteller.ai>
2024-07-08 19:03:25 -04:00
BFlat 18b178087d added text to tell users to stay on the page while processing (#588)
![image](https://github.com/storytold/GottaGoFast/assets/46063141/a69fad36-d645-4180-b94b-48c01cb6aeac)
2024-07-08 15:28:54 -04:00
FromTheLOLAshesandChristopher Oliphant 3b138bb459 a bit of code cleanup (#584)
Co-authored-by: Christopher Oliphant <christopheroliphant@christophersmbp.home>
2024-07-08 15:10:44 -04:00
wilandwil c1464216fd Fix / Better Generation Completion Toasts (#565)
- success toast default to last for 10 seconds instead of a minute
- pop toast regarding polling movie and audio only when it's called by
job completion
- polling movie/audio functions now has a promise return to give
information to its invoker

Co-authored-by: wil <wil@storyteller.ai>
2024-07-01 14:27:06 -04:00
wilandwil f1481c15ee Fix / Flush Background Loaded Media on Logout (#560)
This is fix to =: When you log off and get on another account, it
continues to load the audio/movies from the previous account that you
just logged out from. It seems to be limited only to audio and movie
list; scenes, characters, animations and expressions seem fine. This bug
is currently present on production.

Co-authored-by: wil <wil@storyteller.ai>
2024-07-01 14:11:05 -04:00
wilandwil 4735eb0e77 Fix/ Video and Audio job completion polling (#556)
- fix edge case where user movies are not pulled upon video workflow
done, when there are no user movies in the first place
- fix edge case where jobs are completed, but the movie or audio is view
and deleted, before completed job times out
- add better array comparison to avoid overrendering signals
- added isRetriving signal for video polling to avoid over polling

Co-authored-by: wil <wil@storyteller.ai>
2024-06-28 10:04:36 -04:00
wilandwil 3e33321fd3 Fix / Delete Env var Signal to avoid Over Rerender (#528)
- delete the env var signal at root in favor for the env var class
- this prevents the app from making unnecessary rerender, especially on
load
- fixed some eslint issues while treading through these files

---------

Co-authored-by: wil <wil@storyteller.ai>
2024-06-24 12:07:04 -04:00
FromTheLOLAshesandChristopher Oliphant fecb909570 Fix 405 error (#516)
Co-authored-by: Christopher Oliphant <christopheroliphant@christophersmbp.home>
2024-06-23 15:20:06 -04:00
wilandwil 86815dc22b fix/loadingbar-untangled-from-signals (#492)
quick fix

Co-authored-by: wil <wil@storyteller.ai>
2024-06-18 19:29:45 -04:00
wilandwil 0f9cf19420 no beta key = no access (#488)
Co-authored-by: wil <wil@storyteller.ai>
2024-06-17 22:10:25 -04:00
wilandwil a2c82badbc went through every file to rid of session token (#487)
- changed env to not go through proxy
- some logging states need updates to accommodate the change

Co-authored-by: wil <wil@storyteller.ai>
2024-06-17 21:55:01 -04:00
wil e76c885b0c cherry picked code for new auth strategy, implement its functionalities again using the new api manager 2024-06-13 20:26:50 -04:00
wil d7e7a4b53a every ui and signals from vertial video and video aspect ratios
Wil will need to patch a tiny bit.
2024-06-12 16:05:33 -04:00
wil 1a08fea557 guard for over-resetting list of userMovies, hence, fix the problem of looping between fetch and reset 2024-06-12 14:15:38 -04:00
wilandwil 65b91ce54e Continue - Inference Job for Pre-loading User Media (#434)
- Raised these signals for background loaded media to the app level
- Raised the enums and types for these signals to the app level
- Delete the old useInferenceManager that only specifically handles
audio inferences
- Use the new signal and its implementation pattern to handle audio
inferences
- Clean up and simplify the implementation pattern to this new signal
- Variable polling frequencies depending what kind of active jobs exist
in the list

---------

Co-authored-by: wil <wil@storyteller.ai>
2024-05-29 18:08:03 -04:00
BFlatandwil 846dd8be82 profile dropdown (#439)
Replaced current logout button with a profile image dropdown:
- My Profile: links to the user's profile page
- Logout: logs out.
- also prevents accidental logout clicks since it's near My Movies


![image](https://github.com/storytold/GottaGoFast/assets/46063141/3fb553c1-751d-4e01-9d77-3180708275c4)

---------

Co-authored-by: wil <wil@storyteller.ai>
2024-05-29 15:14:36 -04:00
wilandwil c266db62c8 New Inference Jobs implementation and pre-loading user media (#423)
- separating the signals and disabled the code that introduced the bug
- setup job signals properly to manage completed and active jobs
- setup myMovies signals properly to load user's list of videos
- make new hook to manage polling for job signals
- make new hook to manage background polling for user videos
- finished the logic for toggling and repeating jobs polling
- finished the logic for triggering a background poll of user movies

Co-authored-by: wil <wil@storyteller.ai>
2024-05-28 16:43:02 -04:00
e65b94405a THE REFACTOR MAY17th (#393)
supress error for process env, added vscode setting to gitignore

segrgate enums (#369)

Co-authored-by: Christopher Oliphant
<RALifeCoach@users.noreply.github.com>

Refactor storybook (#370)

Co-authored-by: Christopher Oliphant
<RALifeCoach@users.noreply.github.com>

button dropdown docs (#372)

storybook doc for button dropdown component

refactor side panel tabs (#371)

Co-authored-by: Christopher Oliphant
<RALifeCoach@users.noreply.github.com>

fix enums (#373)

Co-authored-by: Christopher Oliphant
<RALifeCoach@users.noreply.github.com>

Refactoring Auth Context to Signals (#374)

- file restructure, store -> signals
- rewrite AuthContext to signals, and get rid of AuthContext
- modify all files that need to use AuthContext to use the
authentication Signal
- the complex login persistency logic is now just a persistLogin
function ran at root!
- fetchers uses the auth signal directly to get the sessionToken
- components no longer useSignals for these fetchers, hence decoupled
from the auth signals
!! components and fetchers that are definitely subjected to refactor
does not receive the useSignal decoupling treatment

Co-authored-by: wil <wil@storyteller.ai>

Refactoring Toaster Context to a Toaster Component + Signal (#378)

- Created the Toaster Component
- Created the Toasts Signal
- Now no useContext is needed for Toast Poping, nor passing AddToast
around
- Simply import addToast from the Signals and you can pop a toast from
anywhere in the codebase

Co-authored-by: wil <wil@storyteller.ai>

Refactoring AppUi Context (partial: delete unused, editorLoader becomes
signal) (#379)

- dialogueTTS is unused, hence deleted
- view side-by-side mode is unused, hence deleted
- timeline height in this context was already made into signal, hence
deleted
- editorLoader in this context is now made into a page level signal,
hence deleted
- components and dispatcher of the editorLoader are modified to use
signal instead
- app level reducer is no longer used, tugged into context folder to
avoid confusion, will be deleted when all attributes in AppUi context is
refactored into signals

Co-authored-by: wil <wil@storyteller.ai>

Refactor control panel (#391)

- control panel - simplified and improved
- Please also test it. It operates slightly differently. For example, if
the user types an invalid character, the character is ignored.

---------

Co-authored-by: Christopher Oliphant
<RALifeCoach@users.noreply.github.com>

Refactoring App Level Components
- Components that are in the /app/component folder are split into
reusable and signaled
- reusable are in theory signal independent
- signaled are dependent on signals (and maybe a use-once component)
- some app level components has page level enums or signals, those are
bumped to app level now
- all components in the module directory are moved into the component
directories depending on whether it's reusable or signaled
- code changes in are mostly just import changes to get re-target to get
the correct files
- discovered a small bug in FilterButtons and is fixed
- whether a component need more work, it is commented on the index file
that import them into the grand collection of components

Refactor - Signals Part 2
- store is renamed to signals in PageEditor for clarity
- ObjectControlPanel now uses a Signal instead of the AppUiContext
- Moved EditorContext to Page Level, all context are page level only now
- editor is modified to read and use signals directly (for now), this
includes: -- the ObjectPanel signal
-- the Scene signal
-- the Authentication signal
- and hence, editor now has a constructor doesn't require any arguments
- editor also has a simple initialization
- AppUiContext is retired completely and deleted

---------

Co-authored-by: wil <wil@storyteller.ai>
Co-authored-by: Christopher Oliphant <RALifeCoach@users.noreply.github.com>
2024-05-17 00:22:34 -07:00