Skip to content

Rename hasPluginStatus/hasPluginOrder locals to hasGearStatus/hasGearOrder - #17

Merged
sarg3nt merged 2 commits into
feature/plugins-to-gearsfrom
copilot/sub-pr-16
Mar 1, 2026
Merged

Rename hasPluginStatus/hasPluginOrder locals to hasGearStatus/hasGearOrder#17
sarg3nt merged 2 commits into
feature/plugins-to-gearsfrom
copilot/sub-pr-16

Conversation

Copilot AI commented Mar 1, 2026

Copy link
Copy Markdown

Local variable names in shouldHideSidebar still used Plugin terminology after the broader rename to Gear, creating an inconsistency with the functions they capture results from.

Changes

  • base.templ: Renamed hasPluginStatus/hasPluginOrderhasGearStatus/hasGearOrder
// Before
_, hasPluginStatus := auth.GetGearStatusFromContext(ctx)
_, hasPluginOrder  := auth.GetGearOrderFromContext(ctx)
return !hasPluginStatus && !hasPluginOrder

// After
_, hasGearStatus := auth.GetGearStatusFromContext(ctx)
_, hasGearOrder  := auth.GetGearOrderFromContext(ctx)
return !hasGearStatus && !hasGearOrder

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI self-assigned this Mar 1, 2026
…or consistency

Co-authored-by: sarg3nt <3372486+sarg3nt@users.noreply.github.com>
Copilot AI changed the title [WIP] Address feedback on rebranding plugins to gears Rename hasPluginStatus/hasPluginOrder locals to hasGearStatus/hasGearOrder Mar 1, 2026
@sarg3nt
sarg3nt marked this pull request as ready for review March 1, 2026 07:14
@sarg3nt
sarg3nt merged commit 1dcda43 into feature/plugins-to-gears Mar 1, 2026
3 checks passed
@sarg3nt
sarg3nt deleted the copilot/sub-pr-16 branch May 10, 2026 08:18
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.

2 participants