[PR #5120] [MERGED] 🐛 fix goal type templates #5767

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

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/5120
Author: @youngcw
Created: 6/6/2025
Status: Merged
Merged: 6/8/2025
Merged by: @youngcw

Base: masterHead: youngcw/fix-goal-template-apply


📝 Commits (3)

📊 Changes

3 files changed (+8 additions, -2 deletions)

View changed files

📝 packages/loot-core/src/server/budget/goal-template.pegjs (+1 -1)
📝 packages/loot-core/src/server/budget/template-notes.test.ts (+1 -1)
upcoming-release-notes/5120.md (+6 -0)

📄 Description

The processing code was looking for the wrong type when filtering out goal type templates. I fixed the type being added by the parser to match. This makes it so we can probably remove the directive field in the future as well.

To test:
add a #goal template to any category
apply templates
see that on edge that there isn't a "long goal" type indicator when hovering the balance value


🔄 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/5120 **Author:** [@youngcw](https://github.com/youngcw) **Created:** 6/6/2025 **Status:** ✅ Merged **Merged:** 6/8/2025 **Merged by:** [@youngcw](https://github.com/youngcw) **Base:** `master` ← **Head:** `youngcw/fix-goal-template-apply` --- ### 📝 Commits (3) - [`2db0e2a`](https://github.com/actualbudget/actual/commit/2db0e2adba04c5cc0c81931529aba564401f3470) fix - [`ee5241f`](https://github.com/actualbudget/actual/commit/ee5241f126e619afd128e3e25f99419619895eec) note - [`daf1041`](https://github.com/actualbudget/actual/commit/daf10415f383a062621a7f9ee836f2447e28378c) fix test ### 📊 Changes **3 files changed** (+8 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/loot-core/src/server/budget/goal-template.pegjs` (+1 -1) 📝 `packages/loot-core/src/server/budget/template-notes.test.ts` (+1 -1) ➕ `upcoming-release-notes/5120.md` (+6 -0) </details> ### 📄 Description The processing code was looking for the wrong type when filtering out goal type templates. I fixed the type being added by the parser to match. This makes it so we can probably remove the directive field in the future as well. To test: add a `#goal` template to any category apply templates see that on edge that there isn't a "long goal" type indicator when hovering the balance value --- <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:18:15 -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#5767