Skip to content

Fix "pushi_it" to "push_it" naming inconsistencies throughout codebase#2

Closed
skerbis with Copilot wants to merge 1 commit into
mainfrom
copilot/fix-1
Closed

Fix "pushi_it" to "push_it" naming inconsistencies throughout codebase#2
skerbis with Copilot wants to merge 1 commit into
mainfrom
copilot/fix-1

Conversation

Copilot AI commented Sep 6, 2025

Copy link
Copy Markdown
Contributor

This PR corrects naming inconsistencies where "pushi_it" was used instead of the correct addon name "push_it" throughout the codebase. The issue affected user-facing elements, internal code references, and configuration files.

Changes Made

Package Configuration:

  • Updated package.yml and composer.json to use correct package name "push_it"
  • Fixed all permission names from "pushi_it[]" to "push_it[]"

PHP Code:

  • Updated all addon references from rex_addon::get('pushi_it') to rex_addon::get('push_it')
  • Fixed backend page URLs from "pushi_it" to "push_it"
  • Updated error/log messages from "PushiIt:" to "PushIt:"

JavaScript:

  • Renamed global variables: PushiItPushIt, PushiItPublicKeyPushItPublicKey
  • Fixed function names and localStorage keys
  • Updated all onclick handlers and JavaScript references

Backward Compatibility

To ensure existing installations continue working, the following were intentionally preserved:

  • Database table names (rex_pushi_it_subscriptions, rex_pushi_it_notifications)
  • API endpoint names (pushi_it_subscribe, pushi_it_unsubscribe)
  • Asset file paths (/assets/addons/pushi_it/)

Impact

  • 14 files changed with 93 insertions and 93 deletions
  • Zero breaking changes - all critical compatibility preserved
  • User-facing consistency - addon now correctly displays as "push_it" throughout the interface

The addon now uses consistent naming while maintaining full backward compatibility for existing users and integrations.

Fixes #1.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Copilot AI commented Sep 6, 2025

Copy link
Copy Markdown
Contributor Author

@skerbis 👋 This repository doesn't have Copilot instructions. With Copilot instructions, I can understand the repository better, work faster and produce higher quality PRs.

I can generate a .github/copilot-instructions.md file for you automatically. Click here to open a pre-filled issue and assign it to me. I'll write the instructions, and then tag you for review.

@skerbis skerbis closed this Sep 6, 2025
Copilot AI changed the title [WIP] pushi_it ersetzen durch push_it Fix "pushi_it" to "push_it" naming inconsistencies throughout codebase Sep 6, 2025
Copilot AI requested a review from skerbis September 6, 2025 15:29
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.

pushi_it ersetzen durch push_it

2 participants