Skip to content

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

Merged
thdxr merged 2 commits intodevfrom
refactor/dialog-model
Feb 10, 2026
Merged

refactor: clean up dialog-model.tsx per code review#12983
thdxr merged 2 commits intodevfrom
refactor/dialog-model

Conversation

@thdxr
Copy link
Member

@thdxr thdxr commented Feb 10, 2026

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
@thdxr thdxr force-pushed the refactor/dialog-model branch from ccf8a50 to 6481f67 Compare February 10, 2026 15:00
@thdxr thdxr enabled auto-merge (squash) February 10, 2026 15:11
@thdxr thdxr merged commit 27fa9dc into dev Feb 10, 2026
7 of 9 checks passed
@thdxr thdxr deleted the refactor/dialog-model branch February 10, 2026 15:13
BryceRyan pushed a commit to BryceRyan/opencode that referenced this pull request Feb 10, 2026
relaxkeren pushed a commit to relaxkeren/opencode that referenced this pull request Feb 15, 2026
schneiderlo pushed a commit to schneiderlo/opencode that referenced this pull request Feb 17, 2026
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