Commit Graph
21 Commits
Author SHA1 Message Date
BFlat 75318b2e8d big styling updates (#672) 2024-10-11 11:28:31 +07:00
9e31fb21a1 Preview Camera DOM should never be destroyed for EngineEditor to refer to (#667)
low risk, merging

---------

Co-authored-by: wil <wil@storyteller.ai>
Co-authored-by: Quicksticks-oss <chongobongotoday@gmail.com>
2024-08-19 11:56:24 -04:00
BFlat 39d02b28d9 outliner styling fixes and responsiveness (#519)
- outliner now responsive and fits the screen on resize for all views
(squared, verical, horizontal)
- vertical video styling bug fix 

others styling fixes:
- login page no scrollbars
2024-06-22 16:08:31 -04:00
BFlatandwil 12f33b990c Feature / Outliner Component (#507)
features:
- show/hide with button on top left
- selection
- locking
- toggle visibility
- searchable (and clearable search field)
- delete (blank function exposed)
- double click (blank function exposed)
- scales with the editor screen height available

other changes:
- consistent overall padding of elements inside editor
- object control panel minor opacity change


![image](https://github.com/storytold/GottaGoFast/assets/46063141/77e10a4d-377a-4f71-a5d9-db97d97a1403)

Co-authored-by: wil <wil@storyteller.ai>
2024-06-19 20:55:05 -04:00
wil ab4838e8c2 fix for preview canvas css problem 2024-06-12 16:34:00 -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
wilandwil b3b30fdf49 Vertical Video and more aspect ratio options (#441)
_**WAITING FOR THE SERVER UPDATE FOR END-TO-END TESTING**_

- created ui and queue communication for switching camera aspect ratio
done
- editor's render camera read queue to switch camera aspect ratio
- letterbox now available in camera view mode for a better preview of
the aspect ratios
- updated ui to match figma design after design update
- vertical camera styling updates (by bflat)
- finalized our render resolutions at different aspect ratio

---------

Co-authored-by: wil <wil@storyteller.ai>
2024-05-30 17:14:04 -04:00
wilandwil 7b5bdc915b Pass Dom References to Editor instead of Editor querying for DOM-IDs (#412)
- engine canvas is passed to editor as a DOM reference
- camera view canvas is passed to editor as a DOM reference
- scene container is passed to editor as a DOM reference
- amended all the editor code that wants to do a DOM query using DOM ID
to use the variable that stores the reference
- added guard functions to query the DOM-ID just incase the reference is
lost due to a re-render
- the above change guarantees the reference to the DOM, fixes the bug
where the editor cannot read the size of DOM elements, and increases
stability of the app in general.

Co-authored-by: wil <wil@storyteller.ai>
2024-05-22 11:39:39 -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
BFlat f04967af13 auto scaling control panel and camera view (#319)
Problem: Transform panel overflowing smaller screens and can't be
closed/minimized.
Solution: Make it auto scale according to the height of the view/side
panel height, now it never overflows.

- Transform panel will now always fit the viewport.
- Scales down both the control panel and the camera view.
- Lock/unlock button color changes when locked
2024-05-06 20:44:45 -07:00
Christopher Oliphant 0a87e0d176 Better handling of sidepanel width changes 2024-04-22 08:30:03 -04:00
Christopher Oliphant 841ae719db Fix state when preview fails 2024-04-19 12:53:15 -04:00
Christopher Oliphant 70f6661a88 Tab styling 2024-04-19 11:47:49 -04:00
Christopher Oliphant 75261f4fa0 Add stylizations page 2024-04-10 15:16:24 -04:00
bflatastic 361fc4725f camera view css update 2024-04-10 10:50:18 +07:00
Michael Chung b723815a08 Fixed issue understanding camera mode or scene exiting camera mode. 2024-04-09 22:29:25 -04:00
Quicksticks-oss 8a8b823f8c added camera object and camera view. 2024-03-30 01:16:12 -04:00
Miles Ryan d06e3eb528 Revert "Feature/camera mode" 2024-03-29 01:03:50 -04:00
Quicksticks-oss d557c52e99 added generate button in Helmet Innter 2024-03-28 15:29:45 -04:00
wil 9bef1022b6 change all loading transitions to use headlessui transitions 2024-03-28 14:45:44 -04:00
wil 1826eeb9bf reducer context works 2024-03-26 16:54:03 -04:00