[PR #786] [MERGED] ♻️ move all feature flags to use useFeatureFlag hook #37759

Closed
opened 2026-04-23 10:55:17 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/786
Author: @MatissJanis
Created: 3/18/2023
Status: Merged
Merged: 3/18/2023
Merged by: @MatissJanis

Base: masterHead: matiss/move-flags


📝 Commits (6)

  • 92ec828 ♻️ move all feature flags to use useFeatureFlag hook
  • c6de8de Release notes
  • 5bd8c67 Remove console.log
  • 63fdf9b Enable feature in preview/dev envs
  • 4bdfcae Fix the default logic
  • 2887913 Disable newAutocomplete for now

📊 Changes

9 files changed (+55 additions, -24 deletions)

View changed files

📝 packages/desktop-client/src/components/Modals.js (+6 -0)
📝 packages/desktop-client/src/components/SidebarWithData.js (+5 -3)
📝 packages/desktop-client/src/components/Titlebar.js (+3 -1)
📝 packages/desktop-client/src/components/accounts/Account.js (+3 -1)
📝 packages/desktop-client/src/components/settings/Experimental.js (+3 -5)
📝 packages/desktop-client/src/hooks/useFeatureFlag.js (+26 -1)
📝 packages/loot-design/src/components/budget/rollover/BudgetSummary.js (+3 -12)
📝 packages/loot-design/src/components/modals/EditField.js (+0 -1)
upcoming-release-notes/786.md (+6 -0)

📄 Description

Refactored all feature flags to use the new useFeatureFlag hook.

Also added a new functionality to this feature flag: ability to define custom "default" value for a feature flag. This will allow us to enable the new autocomplete component for everyone using Netlify builds eventually (need to address some issues before doing so).


🔄 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/786 **Author:** [@MatissJanis](https://github.com/MatissJanis) **Created:** 3/18/2023 **Status:** ✅ Merged **Merged:** 3/18/2023 **Merged by:** [@MatissJanis](https://github.com/MatissJanis) **Base:** `master` ← **Head:** `matiss/move-flags` --- ### 📝 Commits (6) - [`92ec828`](https://github.com/actualbudget/actual/commit/92ec82858709ea33ff5cca48c4d4c2a439fb1498) :recycle: move all feature flags to use useFeatureFlag hook - [`c6de8de`](https://github.com/actualbudget/actual/commit/c6de8de2440b7651e3d8d1bb11ebbee24db59dff) Release notes - [`5bd8c67`](https://github.com/actualbudget/actual/commit/5bd8c672db30032d9c12c5a3d71aeda5cd071dfb) Remove console.log - [`63fdf9b`](https://github.com/actualbudget/actual/commit/63fdf9b95ee1372cd496e87962e5e4e84f2b1d02) Enable feature in preview/dev envs - [`4bdfcae`](https://github.com/actualbudget/actual/commit/4bdfcaec5a1d0447e29632883ced1d16fa7a0462) Fix the default logic - [`2887913`](https://github.com/actualbudget/actual/commit/288791313aabb180c92372c71aad397398a93b2c) Disable newAutocomplete for now ### 📊 Changes **9 files changed** (+55 additions, -24 deletions) <details> <summary>View changed files</summary> 📝 `packages/desktop-client/src/components/Modals.js` (+6 -0) 📝 `packages/desktop-client/src/components/SidebarWithData.js` (+5 -3) 📝 `packages/desktop-client/src/components/Titlebar.js` (+3 -1) 📝 `packages/desktop-client/src/components/accounts/Account.js` (+3 -1) 📝 `packages/desktop-client/src/components/settings/Experimental.js` (+3 -5) 📝 `packages/desktop-client/src/hooks/useFeatureFlag.js` (+26 -1) 📝 `packages/loot-design/src/components/budget/rollover/BudgetSummary.js` (+3 -12) 📝 `packages/loot-design/src/components/modals/EditField.js` (+0 -1) ➕ `upcoming-release-notes/786.md` (+6 -0) </details> ### 📄 Description Refactored all feature flags to use the new `useFeatureFlag` hook. Also added a new functionality to this feature flag: ability to define custom "default" value for a feature flag. This will allow us to enable the new autocomplete component for everyone using Netlify builds eventually (need to address some issues before doing so). --- <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-04-23 10:55:17 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#37759