Skip to content

fix(map): invoke leaflet-tile-url instead of passing it by name - #320

Merged
roncodes merged 1 commit into
release/v0.6.66from
fix/leaflet-tile-url-invocation
Sep 11, 2026
Merged

fix(map): invoke leaflet-tile-url instead of passing it by name#320
roncodes merged 1 commit into
release/v0.6.66from
fix/leaflet-tile-url-invocation

Conversation

@roncodes

@roncodes roncodes commented Sep 11, 2026

Copy link
Copy Markdown
Member

What

Opening a place's details throws, and the details tab doesn't render:

Error: A resolved helper cannot be passed as a named argument as the syntax is ambiguously a pass-by-reference or invocation. Use the `{{helper 'foo-helper}}` helper to pass by reference or explicitly invoke the helper with parens: `{{(fooHelper)}}`.

The map's tile layer passed the leaflet-tile-url helper by name, <layers.tile @url={{leaflet-tile-url}} />. With no arguments, Glimmer can't tell whether that means pass the helper or call it, so it refuses and the whole template fails. It is now called in parentheses, @url={{(leaflet-tile-url)}}.

Where

The same line was in five templates, all from the configurable tile provider change (a5a4f1c), so each failed the same way:

  • place/details.hbs, the reported one
  • zone/details.hbs
  • service-area/details.hbs
  • modals/place-details.hbs
  • modals/point-map.hbs

It has shipped in every release since, v0.6.62 through v0.6.65, so this targets the release/v0.6.66 branch (#321).

The helper's own usage comment showed the broken form. It now shows the invocation and says why.

Validation

  • template-lint passes on the five templates, and ESLint on the helper.
  • No bare {{leaflet-tile-url}} is left in the addon's templates. The calls that pass theme= were never affected, because an argument makes it an unambiguous invocation.

Not checked in a browser.

Opening a place's details threw "A resolved helper cannot be passed as a
named argument" and the details tab failed to render. The tile layers
passed the helper bare, as @url={{leaflet-tile-url}}, which Glimmer reads
as ambiguously a reference or an invocation and refuses. They invoke it
now, as @url={{(leaflet-tile-url)}}.

The same line was in the zone and service area details and the place
details and point map modals, all from the configurable tile provider
change (a5a4f1c), so each of them failed the same way. The helper's own
usage comment showed the broken form and is corrected.
@roncodes
roncodes changed the base branch from main to release/v0.6.66 September 11, 2026 08:45
@codecov

codecov Bot commented Sep 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (9871139) to head (787ddfc).
⚠️ Report is 2 commits behind head on release/v0.6.66.

Additional details and impacted files
@@                 Coverage Diff                 @@
##             release/v0.6.66      #320   +/-   ##
===================================================
  Coverage             100.00%   100.00%           
  Complexity             10274     10274           
===================================================
  Files                    545       545           
  Lines                  39684     39684           
===================================================
  Hits                   39684     39684           
Flag Coverage Δ
backend 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@roncodes
roncodes merged commit 405b59a into release/v0.6.66 Sep 11, 2026
11 checks passed
@roncodes
roncodes deleted the fix/leaflet-tile-url-invocation branch September 11, 2026 08:50
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