Skip to content

fix: pass @resource to ExtensionCard on the purchased page - #40

Merged
roncodes merged 1 commit into
release/v0.1.11from
fix/purchased-extension-card
Oct 16, 2026
Merged

roncodes merged 1 commit into
release/v0.1.11from
fix/purchased-extension-card

Conversation

@roncodes

@roncodes roncodes commented Oct 6, 2026

Copy link
Copy Markdown
Member

Problem

addon/templates/purchased.hbs rendered <ExtensionCard @extension={{extension}}>, but ExtensionCard reads @resource (the explore, category and developer extension pages all pass @resource). On /extensions/purchased every card showed no name or icon, a "Free" badge and an empty "Last Modified" (seen in console v0.7.68). Clicking a card would also fail, since the component sets this.extension from resource.

Changes

  • purchased.hbs: pass @resource={{extension}}; the yielded "Installed" badge is unchanged.
  • extension-card.hbs: the footer read @extension.description, so no card on any page showed a description. It now reads @resource.description.
  • extension-card.js: rename the onExtenstionUpdated action to onExtensionUpdated, the name the template's {{did-update}} binds. Before this, the modifier received undefined and would throw if @resource changed.

installed.hbs renders its own markup and doesn't use ExtensionCard. No other callers pass @extension.

Not built or tested locally; relying on CI.

purchased.hbs passed @extension, but ExtensionCard reads @resource, so
every purchased card rendered with no name or icon, a Free badge, an
empty Last Modified, and a click handler that dereferenced undefined.

Also fix the card's footer, which read @extension.description and so
never showed a description on any page, and rename the misspelled
onExtenstionUpdated action to the onExtensionUpdated name its
did-update modifier binds.
@roncodes
roncodes changed the base branch from main to release/v0.1.11 October 16, 2026 03:29
@roncodes
roncodes merged commit e7319d8 into release/v0.1.11 Oct 16, 2026
7 checks passed
@roncodes
roncodes deleted the fix/purchased-extension-card branch October 16, 2026 03:44
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.

1 participant