Skip to content

Standardized code - #1229

Merged
jaredgalanis merged 5 commits into
mainfrom
refactor-code
Sep 9, 2026
Merged

jaredgalanis merged 5 commits into
mainfrom
refactor-code

Conversation

@ijlee2

@ijlee2 ijlee2 commented Sep 9, 2026 •

Copy link
Copy Markdown
Member

Background

A clean-up PR that follows up on #1227.

I enabled the lint rules ember/no-unused-services and ember/template-sort-invocations to help remove unused code and minimize variations in code. The former isn't safe to use in JavaScript files, so I only enabled it for *.{gts,ts} files.

@netlify

netlify Bot commented Sep 9, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for ember-website ready!

Name Link
🔨 Latest commit 4a0854f
🔍 Latest deploy log https://app.netlify.com/projects/ember-website/deploys/6aa12edbeb4711000806c7e7
😎 Deploy Preview https://deploy-preview-1229--ember-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown

Created by ember-asset-size-action

Comment on lines -12 to -14
get id(): string {
return guidFor(this);
}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

We'd use uniqueId instead of guidFor in a modern Ember project. However, the former is reported to not work in FastBoot.

Since the component was used only once, there's no need to accept the argument @color and generate a random ID. I removed them for simplicity.

@ijlee2
ijlee2 marked this pull request as ready for review September 9, 2026 10:07
@ijlee2
ijlee2 requested review from a team, NullVoxPopuli and jaredgalanis September 9, 2026 10:08
@jaredgalanis
jaredgalanis merged commit e667efa into main Sep 9, 2026
7 checks passed
@jaredgalanis
jaredgalanis deleted the refactor-code branch September 9, 2026 11:18
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