Skip to content

Remove importing-inject-from-ember-service deprecation#915

Open
xn wants to merge 1 commit into
freshbooks:mainfrom
xn:remove-importing-inject-from-ember-service
Open

Remove importing-inject-from-ember-service deprecation#915
xn wants to merge 1 commit into
freshbooks:mainfrom
xn:remove-importing-inject-from-ember-service

Conversation

@xn
Copy link
Copy Markdown

@xn xn commented Dec 19, 2025

  • Updated formatting in README.md for media query definitions and template usage.
  • Changed import statements from inject as service to service for cleaner syntax in media.js and testing-helpers-test.js.
  • Added spacing for improved readability in various sections of README.md.

- Updated formatting in README.md for media query definitions and template usage.
- Changed import statements from `inject as service` to `service` for cleaner syntax in media.js and testing-helpers-test.js.
- Added spacing for improved readability in various sections of README.md.
Copilot AI review requested due to automatic review settings December 19, 2025 13:02
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes the deprecated inject as service import syntax in favor of the modern service import syntax across the codebase, aligning with current Ember best practices. It also improves README documentation formatting for better readability.

  • Updates import statements from inject as service to service in helper and test files
  • Standardizes formatting for media query definitions (consistent spacing after colons)
  • Enhances documentation readability by adding blank lines between sections

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
addon/helpers/media.js Updates import statement to use modern service decorator syntax
tests/integration/testing-helpers-test.js Updates import statement to use modern service decorator syntax
README.md Improves formatting consistency in media query definitions, fixes double-space grammar issue, adds blank lines for readability between documentation sections, and updates template example quote styles

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md

```hbs
<div class="{{media 'classNames'}}">
<div class='{{media "classNames"}}'>
Copy link

Copilot AI Dec 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For consistency with other examples in the documentation (lines 54 and 108), consider using single quotes for the helper argument: <div class="{{media 'classNames'}}"> instead of double quotes. This maintains consistency across all media helper usage examples.

Suggested change
<div class='{{media "classNames"}}'>
<div class='{{media 'classNames'}}'>

Copilot uses AI. Check for mistakes.
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.

2 participants