Skip to content

refactor: convert focus state to a signal (@miodec) - #7380

Merged
Miodec merged 3 commits into
masterfrom
focus-signal
Jan 16, 2026
Merged

refactor: convert focus state to a signal (@miodec)#7380
Miodec merged 3 commits into
masterfrom
focus-signal

Conversation

@Miodec

@Miodec Miodec commented Jan 16, 2026

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings January 16, 2026 20:30
@monkeytypegeorge monkeytypegeorge added the frontend User interface or web stuff label Jan 16, 2026
@github-actions github-actions Bot added the waiting for review Pull requests that require a review before continuing label Jan 16, 2026
fehmer
fehmer previously approved these changes Jan 16, 2026
@github-actions github-actions Bot removed the waiting for review Pull requests that require a review before continuing label Jan 16, 2026
@Miodec
Miodec merged commit 3aaf8e0 into master Jan 16, 2026
8 checks passed
@Miodec
Miodec deleted the focus-signal branch January 16, 2026 20:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the focus state management by converting from a local module-level variable to a centralized SolidJS signal. This aligns with the project's ongoing effort to migrate state management to reactive signals.

Changes:

  • Converted local state variable to a SolidJS signal (getFocus/setFocus)
  • Added focus signal to signals/core.ts for centralized state management
  • Updated all internal references to use the new signal getters/setters

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
frontend/src/ts/test/focus.ts Replaced local state variable with signal calls; updated three locations to use getFocus() and setFocus()
frontend/src/ts/signals/core.ts Added new focus signal export following existing signal patterns

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend User interface or web stuff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants