Awesome Reviewers

Reviewer · Code Style

Simplify template logic

Keep templates declarative and easy to scan: avoid unnecessary syntax (e.g. don't wrap mustache expressions in extra quotes like `@value="{{field.value}}"` when `@value={{field.value}}` suffices), and use `{{else if}}` chains instead of separate sibling `{{#if}}` blocks when branches are mutually exclusive so nesting start/end is easy to follow. When a...

Instruction

Keep templates declarative and easy to scan: avoid unnecessary syntax (e.g. don’t wrap mustache expressions in extra quotes like @value="" when @value= suffices), and use chains instead of separate sibling blocks when branches are mutually exclusive so nesting start/end is easy to follow. When a conditional or computed value becomes complex or is reused across multiple spots in a template (e.g. inline helper chains for tooltip text or feature flags), extract it into a computed property or a small helper/local-helper function on the component instead of inlining the logic in the .hbs file. This keeps templates readable, avoids duplicated logic, and moves branching into TypeScript/JavaScript where it’s easier to read, test, and maintain. For example, instead of:


prefer a computed property:

get isOldEngine() {
  const engineData = engineDisplayData(this.backendType);
  return engineData?.isOldEngine ?? false;
}

Apply the same principle to any multi-branch tooltip/text generation: compute the final string in the component and pass it to the template as a single argument rather than building it inline with nested helpers.