Skip to content

refactor(format): build icon mappers from a factory#505

Merged
barrettruth merged 1 commit intomainfrom
refactor/format-icon-mapper
Apr 28, 2026
Merged

refactor(format): build icon mappers from a factory#505
barrettruth merged 1 commit intomainfrom
refactor/format-icon-mapper

Conversation

@barrettruth
Copy link
Copy Markdown
Owner

Problem

format.lua kept a set of tiny state-icon wrapper functions that all delegated to the same mapped_icon() behavior.

Solution

Replace those repeated wrappers with a small icon-mapper factory and keep the existing icon maps and call sites unchanged.

@barrettruth barrettruth merged commit 52335d2 into main Apr 28, 2026
@barrettruth barrettruth deleted the refactor/format-icon-mapper branch April 28, 2026 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant