Skip to content

refactor: clean up dialog-model.tsx per code review#12982

Closed
thdxr wants to merge 2 commits into
devfrom
review
Closed

refactor: clean up dialog-model.tsx per code review#12982
thdxr wants to merge 2 commits into
devfrom
review

Conversation

@thdxr

@thdxr thdxr commented Feb 10, 2026

Copy link
Copy Markdown
Member

Summary

  • Extract duplicated favorite/recent option builder into a toOptions helper (~30 lines of duplication removed)
  • Simplify showExtra memo from branching pattern to single boolean expression
  • Simplify title memo with optional chaining, removing double memo call and ! assertion
  • Remove dead ref signal and unused DialogSelectRef import
  • Inline intermediate variables (q, value aliases) per style guide
  • Use implicit returns in map callbacks for consistency

- Extract duplicated favorite/recent option builder into toOptions helper
- Simplify showExtra memo to single boolean expression
- Simplify title memo with optional chaining
- Remove dead ref signal and unused DialogSelectRef import
- Inline intermediate variables (q, value aliases)
- Use implicit returns in map callbacks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant