[PR #5686] [MERGED] [Maintenance] Remove usage of a raw variable in CategoryAutocomplete component #6065

Closed
opened 2026-02-28 21:23:23 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/5686
Author: @joel-jeremy
Created: 9/4/2025
Status: Merged
Merged: 9/12/2025
Merged by: @joel-jeremy

Base: masterHead: remove-variable-in-component-render-CategoryAutocomplete


📝 Commits (7)

  • fedd380 Remove usage of a raw variable in CategoryAutocomplete component
  • eb0f89c Cleanup
  • c198f0a Fix typecheck error
  • 294f1c9 Fix typecheck error
  • a6283b8 Highlight first suggestion when searching instead of the split option
  • b1f5117 Fix error
  • e89b5eb Fix special item highligted index

📊 Changes

3 files changed (+85 additions, -37 deletions)

View changed files

📝 packages/desktop-client/src/components/autocomplete/CategoryAutocomplete.tsx (+78 -36)
📝 packages/desktop-client/src/components/autocomplete/PayeeAutocomplete.tsx (+1 -1)
upcoming-release-notes/5686.md (+6 -0)

📄 Description

The CategoryAutocomplete uses a lastGroup variable during rendering which is hard to follow, this PR makes changes so that a variable that changes during render is no longer needed.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/actualbudget/actual/pull/5686 **Author:** [@joel-jeremy](https://github.com/joel-jeremy) **Created:** 9/4/2025 **Status:** ✅ Merged **Merged:** 9/12/2025 **Merged by:** [@joel-jeremy](https://github.com/joel-jeremy) **Base:** `master` ← **Head:** `remove-variable-in-component-render-CategoryAutocomplete` --- ### 📝 Commits (7) - [`fedd380`](https://github.com/actualbudget/actual/commit/fedd38005a514d89aba6102ceed6178d413b618e) Remove usage of a raw variable in CategoryAutocomplete component - [`eb0f89c`](https://github.com/actualbudget/actual/commit/eb0f89cdfd7ee93717151f27a62950bc41aa0ae6) Cleanup - [`c198f0a`](https://github.com/actualbudget/actual/commit/c198f0acff1c69f6608670ad87a441e74edf179b) Fix typecheck error - [`294f1c9`](https://github.com/actualbudget/actual/commit/294f1c90dbb348c2156a3814b7753424736795c3) Fix typecheck error - [`a6283b8`](https://github.com/actualbudget/actual/commit/a6283b839c565812c8315007f50131addec75600) Highlight first suggestion when searching instead of the split option - [`b1f5117`](https://github.com/actualbudget/actual/commit/b1f51178bebc80e75db235433a44f5262e65b9a9) Fix error - [`e89b5eb`](https://github.com/actualbudget/actual/commit/e89b5ebfe3c81459adf5c66e16d3cba56f476524) Fix special item highligted index ### 📊 Changes **3 files changed** (+85 additions, -37 deletions) <details> <summary>View changed files</summary> 📝 `packages/desktop-client/src/components/autocomplete/CategoryAutocomplete.tsx` (+78 -36) 📝 `packages/desktop-client/src/components/autocomplete/PayeeAutocomplete.tsx` (+1 -1) ➕ `upcoming-release-notes/5686.md` (+6 -0) </details> ### 📄 Description <!-- Thank you for submitting a pull request! Make sure to follow the instructions to write release notes for your PR — it should only take a minute or two: https://github.com/actualbudget/docs#writing-good-release-notes. Try running yarn generate:release-notes *before* pushing your PR for an interactive experience. --> The CategoryAutocomplete uses a `lastGroup` variable during rendering which is hard to follow, this PR makes changes so that a variable that changes during render is no longer needed. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-02-28 21:23:23 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#6065