Skip to content

5564: Migrate to Symfony Asset Mapper, drop psalm.xml and admin.css#81

Merged
turegjorup merged 1 commit into
developfrom
feature/5564_asset_mapper_migration
May 20, 2026
Merged

5564: Migrate to Symfony Asset Mapper, drop psalm.xml and admin.css#81
turegjorup merged 1 commit into
developfrom
feature/5564_asset_mapper_migration

Conversation

@turegjorup
Copy link
Copy Markdown
Contributor

Link to ticket

https://leantime.itkdev.dk/dashboard/show#/tickets/showTicket/5564

Description

Focused successor to the closed PR #60. Carves out only the parts of that
dependency-update PR that are still missing from develop:

  • Add Symfony Asset Mapper bundle (symfony/asset-mapper ~8.0.0) with
    importmap and the recipe-shipped assets/app.js, assets/styles/app.css,
    config/packages/asset_mapper.yaml, importmap.php
  • Add importmap:install to the auto-scripts so composer install wires
    the importmap automatically
  • Remove unused psalm.xml (project relies on PHPStan)
  • Remove obsolete public/css/admin.css
  • .gitignore: ignore /public/assets/ and /assets/vendor/

The rest of PR #60 (Taskfile, workflow split, twig-cs-fixer, markdown lint,
etc.) has already landed on develop through later PRs, so it is not
included here.

Screenshot of the result

No visual changes — Asset Mapper is added alongside Webpack Encore, no
existing assets are switched over in this PR.

Checklist

  • My code is covered by test cases.
  • My code passes our test (all our tests).
  • My code passes our static analysis suite.
  • My code passes our continuous integration process.
  • CHANGELOG.md updated (PR number to be filled in once this PR exists).

Additional comments or questions

After this PR is created I'll amend the CHANGELOG entry with the actual PR
number link and force-push.

🤖 Generated with Claude Code

- Add symfony/asset-mapper bundle with importmap and recipe files
- Remove unused psalm.xml (project relies on PHPStan)
- Remove obsolete public/css/admin.css

Carved out of the closed PR #60 dependency-update scope as a focused PR.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@turegjorup turegjorup force-pushed the feature/5564_asset_mapper_migration branch from 894fc06 to 27837bc Compare May 20, 2026 08:15
@github-actions
Copy link
Copy Markdown

API Specification - Non-breaking changes

API Changelog 1.0.0 vs. 1.0.0

No changes detected

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (develop@2144dd2). Learn more about missing BASE report.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop      #81   +/-   ##
==========================================
  Coverage           ?   41.63%           
  Complexity         ?      866           
==========================================
  Files              ?      125           
  Lines              ?     2738           
  Branches           ?        0           
==========================================
  Hits               ?     1140           
  Misses             ?     1598           
  Partials           ?        0           
Flag Coverage Δ
unittests 41.63% <ø> (?)

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

☔ View full report in Codecov by Sentry.
📢 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.

turegjorup added a commit that referenced this pull request May 20, 2026
- Drop asset-mapper migration files (now in PR #81)
- Drop duplicate workflows/apispec.yaml (develop has api-spec.yaml)
- Consolidate doctrine validation + fixtures into doctrine.yaml,
  remove duplicates from pr.yaml
- Update doctrine.yaml to actions/checkout@v6 and rename job to
  validate-doctrine-schema
- Revert cosmetic changes to .gitignore, .prettierignore,
  .php-cs-fixer.dist.php, webpack_encore.yaml, .env
- Restore psalm.xml and public/css/admin.css (their removal moved to
  PR #81)
- Trim CHANGELOG: drop PR #60 row, fix #90 → #80 link, keep only
  feature bullets

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
turegjorup added a commit that referenced this pull request May 20, 2026
The AssetMapper migration moved to PR #81 but the dashboard and base
template still referenced AssetMapper, causing every admin smoke test
to 500 with "AssetMapper component is not installed".

- DashboardController::configureAssets() goes back to addCssFile('css/admin.css')
- base.html.twig drops the {{ importmap('app') }} block

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@turegjorup turegjorup self-assigned this May 20, 2026
@turegjorup turegjorup requested a review from martinyde May 20, 2026 08:48
@turegjorup turegjorup merged commit dcdd479 into develop May 20, 2026
17 checks passed
@turegjorup turegjorup deleted the feature/5564_asset_mapper_migration branch May 20, 2026 09:00
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.

3 participants