Skip to content

Conversation

@psychedelicious
Copy link
Contributor

Summary

  • Revise the logic that prepares to build graphs to work with the new Generate tab. This fixes an issue where the canvas's layers would be used on the Generate tab in the v6 alphas.

  • Move logic for building and enqueuing from of RTK listeners to simple functions, removing a layer of indirection that served no purpose.

  • Create hooks to enqueue on each tab.

  • Fix some awkwardness around the hooks that consume the redux store. We had two useAppStore hooks - one consumed a nanostores atom and the other was provided by RTK but had wrong types. I figured out how to fix the types on the RTK-provided hook and removed the nanostores hook.

    In a future PR, we should aim to get rid of the nanostores atom entirely, but it's consumed in a lot of places and will require some restructuring. It's not a big deal because we only have the one redux store, but it still bothers me.

Related Issues / Discussions

Caught by a few users on discord.

QA Instructions

There should be no functional changes, besides fixing the issue.

Merge Plan

n/a

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • Documentation added / updated (if applicable)
  • Updated What's New copy (if doing a release after this PR)

@github-actions github-actions bot added the frontend PRs that change frontend files label Jun 30, 2025
@psychedelicious psychedelicious force-pushed the psyche/refactor/ui/enqueue-funcs-per-tab branch from 3e08e0c to 6ee13d9 Compare June 30, 2025 09:48
@psychedelicious psychedelicious enabled auto-merge (rebase) June 30, 2025 13:40
@psychedelicious psychedelicious force-pushed the psyche/refactor/ui/enqueue-funcs-per-tab branch from 6ee13d9 to 77a838b Compare June 30, 2025 13:40
@psychedelicious psychedelicious merged commit 8417ee8 into main Jun 30, 2025
12 checks passed
@psychedelicious psychedelicious deleted the psyche/refactor/ui/enqueue-funcs-per-tab branch June 30, 2025 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend PRs that change frontend files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants