Skip to content

feat(home): add a Home page with recent creations and quick start - #447

Merged
lightningpixel merged 1 commit into
devfrom
feat/home-page
Nov 16, 2026
Merged

lightningpixel merged 1 commit into
devfrom
feat/home-page

Conversation

@lightningpixel

Copy link
Copy Markdown
Owner

Closes #416

The app now opens on a Home page, first in the sidebar.

What's on it

  • Modly logo above a centred "Welcome back" / "Welcome to Modly"
  • A drop zone (click or drag an image): opens Generate with the image already in the workflow's image input, exactly as if it had been browsed there
  • Quick actions: open a workflow, import a mesh, browse the library
  • Recent creations: the six newest openable assets, with thumbnails; a click reopens one in Generate

Settings

Settings > Application gets a Start page choice (Home or Generate), so users can keep the old behaviour. Stored in localStorage and read by navStore at 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 only WorkflowPanel can 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.
  • LibraryGrid exports its Thumbnail.

Testing

  • npm test (pre-push) passes; lint clean; tsc unchanged from dev (33 pre-existing errors)
  • Checked in the app: Home as start page, recents with thumbnails, a recent asset opens in Generate, Start page setting survives a reload, image from Home lands in Generate

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
@lightningpixel
lightningpixel merged commit 67a2b53 into dev Nov 16, 2026
5 checks passed
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