Repository navigation
feat(home): add a Home page with recent creations and quick start - #447
Merged
Merged
Conversation
The app now opens on a Home page, first in the sidebar: - the Modly logo above a centred welcome - a drop zone that hands the image to Generate and opens it; Generate's workflow panel puts it in the first image input it shows, as if it had been browsed there - quick actions: open a workflow, import a mesh, browse the library - the six newest openable assets with thumbnails, reopened in Generate Settings > Application gets a Start page choice (Home or Generate) so users can keep the old behaviour; it lives in localStorage and is read by navStore at init. The imported-mesh job moves to a shared helper (meshJob.ts) used by Generate and Home, the setup wizard's logo becomes a shared ModlyLogo component, and LibraryGrid exports its Thumbnail. Closes #416
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #416
The app now opens on a Home page, first in the sidebar.
What's on it
Settings
Settings > Application gets a Start page choice (Home or Generate), so users can keep the old behaviour. Stored in localStorage and read by
navStoreat init.Under the hood
src/shared/utils/imageInput.ts: a small handoff store. Generate's image lives in the selected workflow's image node, which onlyWorkflowPanelcan edit, so Home leaves the path there and the panel applies it on arrival (or shows a toast if the workflow has no visible image input).meshJob.ts: the imported-mesh job, shared by Generate and Home.ModlyLogo: the setup wizard's logo, extracted into a shared component.LibraryGridexports itsThumbnail.Testing
npm test(pre-push) passes; lint clean;tscunchanged fromdev(33 pre-existing errors)