{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":316705415,"defaultBranch":"2.x","name":"ux","ownerLogin":"symfony","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2020-11-28T10:09:32.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/143937?v=4","public":true,"private":false,"isOrgOwned":true},"refInfo":{"name":"","listCacheKey":"v0:1727185532.0","currentOid":""},"activityList":{"items":[{"before":"1720a47eeeb36772c9c280abf95034607b783cb5","after":"028a4e673f94deedac2eb208abac9d51fc3e1012","ref":"refs/heads/2.x","pushedAt":"2024-09-28T16:52:45.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"Kocal","name":"Hugo Alliaume","path":"/Kocal","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/2103975?s=80&v=4"},"commit":{"message":"minor #2222 Migrate from Yarn Classic to Yarn Berry (Kocal)\n\nThis PR was merged into the 2.x branch.\n\nDiscussion\n----------\n\nMigrate from Yarn Classic to Yarn Berry\n\n| Q | A\n| ------------- | ---\n| Bug fix? | no\n| New feature? | no \n| Issues | Fix #... \n| License | MIT\n\n\n\n[Yarn 1.x](https://github.com/yarnpkg/yarn) is _dead_ since 4 years now:\n\"image\"\nall new features and bug fixes are done on [Yarn Berry](https://github.com/yarnpkg/berry):\n\"image\"\n\nI've adapted our CI, our building and testing scripts.\nUpdates on `src/**/assets/packages.json` are simply dependencies alphabetical sorting.\nThe `yarn.lock` has been re-generated to the new structure (but locked versions are still the same).\n\nCommits\n-------\n\n4806ecb4 Migrate from Yarn Classic to Yarn Berry","shortMessageHtmlLink":"minor #2222 Migrate from Yarn Classic to Yarn Berry (Kocal)"}},{"before":"21a071af89162df95a63a8a31088c7872d287aac","after":"1720a47eeeb36772c9c280abf95034607b783cb5","ref":"refs/heads/2.x","pushedAt":"2024-09-28T08:15:49.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"Kocal","name":"Hugo Alliaume","path":"/Kocal","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/2103975?s=80&v=4"},"commit":{"message":"minor #2221 [Swup] For Swup's dev dependencies exclusion from our yarn.lock (Kocal)\n\nThis PR was merged into the 2.x branch.\n\nDiscussion\n----------\n\n[Swup] For Swup's dev dependencies exclusion from our yarn.lock\n\n| Q | A\n| ------------- | ---\n| Bug fix? | yes/no\n| New feature? | yes/no \n| Issues | Fix #... \n| License | MIT\n\n\n\nWhile working on #2219, I've noticed we had a very old Rollup version that we do not use at all.\nThe issue comes from Swup v3, which ship its **building** dependencies as **prod** dependencies, which means we install `microbundle` and all its dependencies:\n```\nmicrobundle@^0.15.1:\n version \"0.15.1\"\n resolved \"https://registry.npmjs.org/microbundle/-/microbundle-0.15.1.tgz\"\n integrity sha512-aAF+nwFbkSIJGfrJk+HyzmJOq3KFaimH6OIFBU6J2DPjQeg1jXIYlIyEv81Gyisb9moUkudn+wj7zLNYMOv75Q==\n dependencies:\n \"`@babel`/core\" \"^7.12.10\"\n \"`@babel`/plugin-proposal-class-properties\" \"7.12.1\"\n \"`@babel`/plugin-syntax-import-meta\" \"^7.10.4\"\n \"`@babel`/plugin-syntax-jsx\" \"^7.12.1\"\n \"`@babel`/plugin-transform-flow-strip-types\" \"^7.12.10\"\n \"`@babel`/plugin-transform-react-jsx\" \"^7.12.11\"\n \"`@babel`/plugin-transform-regenerator\" \"^7.12.1\"\n \"`@babel`/preset-env\" \"^7.12.11\"\n \"`@babel`/preset-flow\" \"^7.12.1\"\n \"`@babel`/preset-react\" \"^7.12.10\"\n \"`@rollup`/plugin-alias\" \"^3.1.1\"\n \"`@rollup`/plugin-babel\" \"^5.2.2\"\n \"`@rollup`/plugin-commonjs\" \"^17.0.0\"\n \"`@rollup`/plugin-json\" \"^4.1.0\"\n \"`@rollup`/plugin-node-resolve\" \"^11.0.1\"\n \"`@surma`/rollup-plugin-off-main-thread\" \"^2.2.2\"\n asyncro \"^3.0.0\"\n autoprefixer \"^10.1.0\"\n babel-plugin-macros \"^3.0.1\"\n babel-plugin-transform-async-to-promises \"^0.8.18\"\n babel-plugin-transform-replace-expressions \"^0.2.0\"\n brotli-size \"^4.0.0\"\n builtin-modules \"^3.1.0\"\n camelcase \"^6.2.0\"\n escape-string-regexp \"^4.0.0\"\n filesize \"^6.1.0\"\n gzip-size \"^6.0.0\"\n kleur \"^4.1.3\"\n lodash.merge \"^4.6.2\"\n postcss \"^8.2.1\"\n pretty-bytes \"^5.4.1\"\n rollup \"^2.35.1\"\n rollup-plugin-bundle-size \"^1.0.3\"\n rollup-plugin-postcss \"^4.0.0\"\n rollup-plugin-terser \"^7.0.2\"\n rollup-plugin-typescript2 \"^0.32.0\"\n rollup-plugin-visualizer \"^5.6.0\"\n sade \"^1.7.4\"\n terser \"^5.7.0\"\n tiny-glob \"^0.2.8\"\n tslib \"^2.0.3\"\n typescript \"^4.1.3\"\n```\n\nThis PR won't impact developers, it's only for our `yarn.lock` which contains a bunch of useless dependencies, and some of them are vulnerable too (listed on https://github.com/symfony/ux/security/dependabot)\n\nCommits\n-------\n\nae52ae56 [Swup] For Swup's dev dependencies exclusion from our yarn.lock","shortMessageHtmlLink":"minor #2221 [Swup] For Swup's dev dependencies exclusion from our yar…"}},{"before":"b875ee6118379f7ee678a72cf25f9027b09eb10c","after":"21a071af89162df95a63a8a31088c7872d287aac","ref":"refs/heads/2.x","pushedAt":"2024-09-28T06:03:25.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"Kocal","name":"Hugo Alliaume","path":"/Kocal","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/2103975?s=80&v=4"},"commit":{"message":"minor #2219 Update some dependencies to fix some issues from Dependabot (Kocal)\n\nThis PR was squashed before being merged into the 2.x branch.\n\nDiscussion\n----------\n\nUpdate some dependencies to fix some issues from Dependabot\n\n| Q | A\n| ------------- | ---\n| Bug fix? | yes/no\n| New feature? | yes/no \n| Issues | Fix #... \n| License | MIT\n\n\n\nFixing some issues from https://github.com/symfony/ux/security/dependabot by upgrading dependencies...\n\nThe React controller has changed, but it's still working:\n\"image\"\n\nCommits\n-------\n\nbb6471bf Update some dependencies to fix some issues from Dependabot","shortMessageHtmlLink":"minor #2219 Update some dependencies to fix some issues from Dependab…"}},{"before":"28275029215cce87a854bcea7d2a8c1256d072e4","after":"b875ee6118379f7ee678a72cf25f9027b09eb10c","ref":"refs/heads/2.x","pushedAt":"2024-09-27T22:13:24.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"smnandre","name":"Simon André","path":"/smnandre","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1359581?s=80&v=4"},"commit":{"message":"minor #2214 [Doc] Misc updates in TogglePassword docs (javiereguiluz)\n\nThis PR was squashed before being merged into the 2.x branch.\n\nDiscussion\n----------\n\n[Doc] Misc updates in TogglePassword docs\n\n| Q | A\n| ------------- | ---\n| Bug fix? | no\n| New feature? | no\n| Issues | -\n| License | MIT\n\nTwig recently added inline comments (https://github.com/twigphp/Twig/pull/4349) and this doc was used an example of invalid Twig syntax (https://github.com/twigphp/Twig/issues/4001). So, let's fix it.\n\nCommits\n-------\n\n11276a0ef [Doc] Misc updates in TogglePassword docs","shortMessageHtmlLink":"minor #2214 [Doc] Misc updates in TogglePassword docs (javiereguiluz)"}},{"before":"bc3d442ba5a4ca75e72c6c3468b77fbd44b1028b","after":"28275029215cce87a854bcea7d2a8c1256d072e4","ref":"refs/heads/2.x","pushedAt":"2024-09-27T22:12:47.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"smnandre","name":"Simon André","path":"/smnandre","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1359581?s=80&v=4"},"commit":{"message":"minor #2191 [Site] Clean demo names / tpl (smnandre)\n\nThis PR was squashed before being merged into the 2.x branch.\n\nDiscussion\n----------\n\n[Site] Clean demo names / tpl\n\nCommits\n-------\n\ncb0bca354 [Site] Clean demo names / tpl","shortMessageHtmlLink":"minor #2191 [Site] Clean demo names / tpl (smnandre)"}},{"before":"2d9a149a0e6bf505e027b035fc4962830b06371c","after":"bc3d442ba5a4ca75e72c6c3468b77fbd44b1028b","ref":"refs/heads/2.x","pushedAt":"2024-09-27T13:45:55.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"javiereguiluz","name":"Javier Eguiluz","path":"/javiereguiluz","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/73419?s=80&v=4"},"commit":{"message":"minor #2210 [TwigComponent] Fix ux:icon & ux:map renders (smnandre)\n\nThis PR was squashed before being merged into the 2.x branch.\n\nDiscussion\n----------\n\n[TwigComponent] Fix ux:icon & ux:map renders\n\nChange implementation to avoid many dispatched events for nothing\n\nAdd a conflict in symfony/ux-map and symfony/ux-icons to synchronise the 3 packages to 2.21\n\nPerformance gain around 20%\n\nCommits\n-------\n\n24c1cb24 [TwigComponent] Fix ux:icon & ux:map renders","shortMessageHtmlLink":"minor #2210 [TwigComponent] Fix ux:icon & ux:map renders (smnandre)"}},{"before":"6330ad1cd4f074581f515b4849f74fc4a71d7a55","after":"2d9a149a0e6bf505e027b035fc4962830b06371c","ref":"refs/heads/2.x","pushedAt":"2024-09-27T06:38:03.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"kbond","name":"Kevin Bond","path":"/kbond","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/127811?s=80&v=4"},"commit":{"message":"minor #2213 [Doc] Fix an example in Twig Components doc (javiereguiluz)\n\nThis PR was merged into the 2.x branch.\n\nDiscussion\n----------\n\n[Doc] Fix an example in Twig Components doc\n\n| Q | A\n| ------------- | ---\n| Bug fix? | no\n| New feature? | no\n| Issues | -\n| License | MIT\n\nCommits\n-------\n\nf31e0306 [Doc] Fix an example in Twig Components doc","shortMessageHtmlLink":"minor #2213 [Doc] Fix an example in Twig Components doc (javiereguiluz)"}},{"before":"e51918feddb6a2a04f2dba3dce16f60defab2586","after":"6330ad1cd4f074581f515b4849f74fc4a71d7a55","ref":"refs/heads/2.x","pushedAt":"2024-09-26T08:48:36.000Z","pushType":"push","commitsCount":8,"pusher":{"login":"Kocal","name":"Hugo Alliaume","path":"/Kocal","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/2103975?s=80&v=4"},"commit":{"message":"minor #2206 [Translator] Many performance improvements on the cache warming (Kocal)\n\nThis PR was squashed before being merged into the 2.x branch.\n\nDiscussion\n----------\n\n[Translator] Many performance improvements on the cache warming\n\n| Q | A\n| ------------- | ---\n| Bug fix? | no\n| New feature? | no \n| Issues | Fix #... \n| License | MIT\n\nThe Symfony UX Translator cache warmer can be an long task, especially if your app has a lot of translations.\n\nI was able to identify some bottlenecks and fix them, with a dedicated commit for each of them.\n\nMy test application have ~25k translation keys (3.119 keys * 8 locales). Of course that's a lot, but I believe some people needs to dump all their translations (e.g. if they build an SPA on Symfony). For \"more classic\" applications, it is recommended to [use dedicated domains for translations JS-side](https://symfony.com/bundles/ux-translator/current/index.html#configuring-the-dumped-translations).\n\nAnyway, in my application, I was able to reduce the Translator cache warming **from 2m11s** (higher than the reality, because of Blackfire profiling) **to 41s** (higher than the reality, because of Blackfire profiling):\n\"image\"\n\nThe vast majority of improvements come from better use of [the Symfony String component](https://symfony.com/doc/current/string.html).\n\nBlackfire profiles:\n1. [Initial](https://app.blackfire.io/profiles/2e264f01-c3a6-46de-92fa-0856b2078010/graph)\n2. [Re-using `s()` instances](https://app.blackfire.io/profiles/b4c5dea7-4309-4cb8-b99f-584ec3a4ddc9/graph)\n3. [Removing useless `s()->slice()`](https://app.blackfire.io/profiles/f66b6bdf-39da-4d98-a966-781418b3a6f5/graph)\n4. [Caching `$this->message->length()`](https://app.blackfire.io/profiles/1334e3e1-4405-44d1-a327-e446dad7d1d8/graph) as it will always return the same length\n5. [Before/After](https://blackfire.io/profiles/compare/8a0df8d0-5d01-47bf-a064-bfed6783c5a3/graph): ~63% 🚀\n\nAlso, since the Translator component is still experimental, I've marked some classes as final and internal, as they should only be used internally. :)\n\nCommits\n-------\n\n02e1eb34 [Translator] Mark internal classes as internal\nf5e84c5f [Translator] Mark $message and $messageLength as readonly\n2f13d73f [Translator] Improve performance, cache $this->message->length() to prevent unnecessary computations\nb582090e [Translator] Improve performance, replace array_reduce/array_keys by foreach\n0bf90410 [Translator] Improve performance, remove (internally) duplicated call to `->slice($offset, 1)`\n18eac635 [Translator] Improve performance, extract some logic from a loop from `IntlMessageParser#generateConstantName()`\ne053dd0b [Translator] Improve performance, reduce `s()` calls and inline `IntlMessageParser#offset()`","shortMessageHtmlLink":"minor #2206 [Translator] Many performance improvements on the cache w…"}},{"before":"10f11652385dd6e4daa7bd339c95f0e3d2d73821","after":"e51918feddb6a2a04f2dba3dce16f60defab2586","ref":"refs/heads/2.x","pushedAt":"2024-09-25T14:25:05.000Z","pushType":"push","commitsCount":3,"pusher":{"login":"Kocal","name":"Hugo Alliaume","path":"/Kocal","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/2103975?s=80&v=4"},"commit":{"message":"minor #2207 [Map] Explicitly require StimulusBundle in Bridges, fix tests (Kocal)\n\nThis PR was squashed before being merged into the 2.x branch.\n\nDiscussion\n----------\n\n[Map] Explicitly require StimulusBundle in Bridges, fix tests\n\n| Q | A\n| ------------- | ---\n| Bug fix? | no\n| New feature? | no \n| Issues | Fix #... \n| License | MIT\n\n\n\nFollows #2180.\n\nWhen installing a Map Bridge dependencies, the StimulusBundle was not the one from the PR's branch but from `2.x`, and so tests didn't fail in #2180 **but** started to fail after merging:\n\n\"image\"\n\nCommits\n-------\n\n7164b573 [Map] Fix Bridges tests\n01e902d4 [Map] Explicitly require StimulusBundle in Bridges","shortMessageHtmlLink":"minor #2207 [Map] Explicitly require StimulusBundle in Bridges, fix t…"}},{"before":"c7e45323191dfb90c09f90ff451caa3d7d861d32","after":"10f11652385dd6e4daa7bd339c95f0e3d2d73821","ref":"refs/heads/2.x","pushedAt":"2024-09-25T06:37:36.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"Kocal","name":"Hugo Alliaume","path":"/Kocal","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/2103975?s=80&v=4"},"commit":{"message":"minor #2203 [Site] Fix deprecated function call (chalasr)\n\nThis PR was merged into the 2.x branch.\n\nDiscussion\n----------\n\n[Site] Fix deprecated function call\n\n| Q | A\n| ------------- | ---\n| Bug fix? | no\n| New feature? | no\n| Issues | -\n| License | MIT\n\nNext to #2073\n\nCommits\n-------\n\nfed198cd [Site] Fix deprecated function call","shortMessageHtmlLink":"minor #2203 [Site] Fix deprecated function call (chalasr)"}},{"before":"06e026c6bc93e400cd74b414b4d3cc4a3fccc278","after":"c7e45323191dfb90c09f90ff451caa3d7d861d32","ref":"refs/heads/2.x","pushedAt":"2024-09-24T09:36:46.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"javiereguiluz","name":"Javier Eguiluz","path":"/javiereguiluz","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/73419?s=80&v=4"},"commit":{"message":"minor #2201 [TwigComponent] Optimize ComponentFactory (smnandre)\n\nThis PR was squashed before being merged into the 2.x branch.\n\nDiscussion\n----------\n\n[TwigComponent] Optimize ComponentFactory\n\n| Q | A\n| ------------- | ---\n| Bug fix? | no\n| New feature? | no\n| Issues | Fix #...\n| License | MIT\n\nSome internal refactor focused on the Component Factory / Anonymous components usage.\n\n* Optimize the hot path\n* Store anonymous template resolution\n* Avoid anonymous checks for class-based components\n* Add ComponentFactory unit tests\n* Add ComponentMetadata::isAnonymous() method\n* Fix loop\n* Reuse metadata to instanciate and mount component\n\nOther PRs will follow :)\n\nCommits\n-------\n\nda0537d9 [TwigComponent] Optimize ComponentFactory","shortMessageHtmlLink":"minor #2201 [TwigComponent] Optimize ComponentFactory (smnandre)"}},{"before":"99085b4eb48383f81098c054fc18666102d0a346","after":"06e026c6bc93e400cd74b414b4d3cc4a3fccc278","ref":"refs/heads/2.x","pushedAt":"2024-09-24T09:28:21.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"javiereguiluz","name":"Javier Eguiluz","path":"/javiereguiluz","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/73419?s=80&v=4"},"commit":{"message":"minor #2180 [StimulusBundle] Improve `StimulusAttributes` rendering performances by switching to `html` escaping strategy (Kocal)\n\nThis PR was squashed before being merged into the 2.x branch.\n\nDiscussion\n----------\n\n[StimulusBundle] Improve `StimulusAttributes` rendering performances by switching to `html` escaping strategy\n\n| Q | A\n| ------------- | ---\n| Bug fix? | no\n| New feature? | no \n| Issues | Fix #... \n| License | MIT\n\n\n\nA better alternative to #2178, by changing the escaping strategy for HTML attributes value from `html_attr` to `html`, as indicated by `@stof` in https://github.com/twigphp/Twig/issues/4322#issuecomment-2358230379.\n\nOn my use case (a `Map` with 1000 `Marker` and `InfoWindow`), [I have a performance gain of ~68%](https://blackfire.io/profiles/compare/56f4d7d2-ee56-487f-8a78-420f4037165f/graph):\n\"image\"\n\nThis PR should also improve performances of our packages using the `StimulusAttributes` DTO, like Chart.js, LiveComponent, ...\n\n---\n\n> [!IMPORTANT]\n> The initial PR changed a bit, the default rendering strategy does not change, but instead we introduce a new configuration to use the new (and optimized) rendering strategy, see https://github.com/symfony/ux/pull/2180#issuecomment-2370574032.\n\nCommits\n-------\n\n647532ab [StimulusBundle] Improve `StimulusAttributes` rendering performances by switching to `html` escaping strategy","shortMessageHtmlLink":"minor #2180 [StimulusBundle] Improve StimulusAttributes rendering p…"}},{"before":"01a1fa0eb2bb5d94a870e4af2ec9881b1cd7e452","after":"99085b4eb48383f81098c054fc18666102d0a346","ref":"refs/heads/2.x","pushedAt":"2024-09-24T08:22:26.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"Kocal","name":"Hugo Alliaume","path":"/Kocal","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/2103975?s=80&v=4"},"commit":{"message":"bug #2200 [LiveComponent] Fix DeferLiveComponentSubscriber service definition (smnandre)\n\nThis PR was merged into the 2.x branch.\n\nDiscussion\n----------\n\n[LiveComponent] Fix DeferLiveComponentSubscriber service definition\n\nRemoves two unused arguments in the service definition\n\n(DeferLiveComponentSubscriber has no constructor)\n\nCommits\n-------\n\n86e51e10 [LiveComponent] Fix DeferLiveComponentSubscriber service definition","shortMessageHtmlLink":"bug #2200 [LiveComponent] Fix DeferLiveComponentSubscriber service de…"}},{"before":"48c5fa19a44a685c7ec57f570a4f670caa1b40f0","after":"01a1fa0eb2bb5d94a870e4af2ec9881b1cd7e452","ref":"refs/heads/2.x","pushedAt":"2024-09-24T06:15:16.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"Kocal","name":"Hugo Alliaume","path":"/Kocal","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/2103975?s=80&v=4"},"commit":{"message":"feature #2162 [Map] Adding polygons to google and leaflet + info window (rrr63)\n\nThis PR was merged into the 2.x branch.\n\nDiscussion\n----------\n\n[Map] Adding polygons to google and leaflet + info window\n\n| Q | A\n| ------------- | ---\n| Bug fix? | no\n| New feature? | yes\n| Issues |\n| License | MIT\n\nHello,\n\nIn my job i use to work a lot with maps, so i would love to work with symfony ux in next projects.\nBut i have to work with polygons, so i tried to implement it to the ux-map.\n\nI added polygons on the Map component, and made it work on both bridge : google and leaflet.\nI added a window popup on click also, the current version of window popup worked only with markers.\nI had to rename `createInfoWindow` to `createInfoWindowMarker`. With that i could add a `createInfoWindowPolygon`.\nThe only difference with the infoWindow from marker is that his anchor will be the event cursor position, because the area of the polygon could be very large and we want a window on the click position.\n\nYou can try by adding a simple polygon on your map :\n```php\n ->addPolygon(new Polygon(\n points: [\n new Point(45.7402741, 3.191185),\n new Point(45.7314078, 3.1903267),\n new Point(45.7307488, 3.208952),\n new Point(45.7402741, 3.2112694)\n ],\n rawOptions:[\n 'fillColor' => 'green',\n 'color' => 'green',\n ],\n infoWindow: new InfoWindow(\n headerContent: 'Polygon',\n\n content: 'I am a polygon'\n )\n ))\n```\n![smallgreenrectangle](https://github.com/user-attachments/assets/09282c03-dc7a-499c-b489-44bf56816cb4)\n\nHere a full example that works with leaflet and google that show some of french regions via an api call\n\n```php\n$polygons = json_decode(file_get_contents('api_url'), true);\n $polygons = $polygons['features'];\n\n $googleOptions = (new GoogleOptions())\n ->mapId('mapId')\n ;\n\n $map = (new Map('default', $googleOptions))\n ->center(new Point(45.8079318, 3))\n ->zoom(10)\n ;\n\n foreach ($polygons as $polygon) {\n $points = [];\n $title = $polygon['properties']['nom'];\n foreach ($polygon['geometry']['coordinates'][0] as $point) {\n if (count($point) == 2) {\n $points[] = new Point($point[1], $point[0]);\n }\n }\n\n $map->addPolygon(new Polygon(\n points: $points,\n rawOptions:[\n 'fillColor' => 'red',\n 'color' => 'red',\n ],\n infoWindow: new InfoWindow(\n headerContent: ''.$title.'',\n content: 'The French region of '.$title.'.'\n )\n ));\n }\n```\n![googleregions](https://github.com/user-attachments/assets/511ec6d5-5ab1-4feb-b58f-6b5542e28091)\n![leafletregions](https://github.com/user-attachments/assets/f68d18b3-8399-40a9-979f-db039a5298ec)\n\nI added tests for polygons and polygon info window\nI hope I did it right, i listen for any suggestions or edits in the PR\n\nCommits\n-------\n\n2f63db78 [Map] Add support for Polygons","shortMessageHtmlLink":"feature #2162 [Map] Adding polygons to google and leaflet + info wind…"}},{"before":"365dd97e366f588cfa91f74dbb8f1079342d32bd","after":"48c5fa19a44a685c7ec57f570a4f670caa1b40f0","ref":"refs/heads/2.x","pushedAt":"2024-09-24T05:46:55.000Z","pushType":"push","commitsCount":3,"pusher":{"login":"Kocal","name":"Hugo Alliaume","path":"/Kocal","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/2103975?s=80&v=4"},"commit":{"message":"bug #2199 [Map] Fix Google/Leaflet bridges when using Webpack Encore (Kocal)\n\nThis PR was squashed before being merged into the 2.x branch.\n\nDiscussion\n----------\n\n[Map] Fix Google/Leaflet bridges when using Webpack Encore\n\n| Q | A\n| ------------- | ---\n| Bug fix? | yes\n| New feature? | no \n| Issues | Fix #2105 \n| License | MIT\n\n\n\nThis PR fixes #2105, and ensures Leaflet and GoogleMaps bridges are working fine with Webpack Encore.\n\nTo be sure:\n1. I've created a new Symfony app (no `--webapp`),\n2. Installed Encore, Stimulus, and Map\n3. Added `.addAliases({ 'leaflet/dist/leaflet.min.css': 'leaflet/dist/leaflet.css' })` and `.enableStimulusBridge('./assets/controllers.json')` in `webpack.config.js`\n4. Created the Map (`new Map()`) and rendered it (`ux_map(map, { style: 'height: ...' })`)\n\nI am able to display a Leaflet map:\n\"image\"\n\nAnd a GoogleMap maps:\n\"image\"\n\n---\n\nThe Map rendered on ux.symfony.com is also working (after updating the `importmap.php` as documented):\n\n\"image\"\n\nCommits\n-------\n\nb3283f40 [Site] Adjust importmap.php due to last changes on Map\n0d1bc8b9 [Map] Fix Google/Leaflet bridges when using Webpack Encore","shortMessageHtmlLink":"bug #2199 [Map] Fix Google/Leaflet bridges when using Webpack Encore …"}},{"before":"c3f53890e0b4216966494d7b14fd2e814f7ddffe","after":"365dd97e366f588cfa91f74dbb8f1079342d32bd","ref":"refs/heads/2.x","pushedAt":"2024-09-23T16:19:08.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"Kocal","name":"Hugo Alliaume","path":"/Kocal","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/2103975?s=80&v=4"},"commit":{"message":"minor #2198 [Doc] Fix some links in UX Map docs (javiereguiluz)\n\nThis PR was merged into the 2.x branch.\n\nDiscussion\n----------\n\n[Doc] Fix some links in UX Map docs\n\n| Q | A\n| ------------- | ---\n| Bug fix? | yes\n| New feature? | no\n| Issues | -\n| License | MIT\n\nRelated to #2193. The `{version}` placeholder only works for Symfony Docs and I'm not sure it can be extended to also work on UX. So, let's just hardcode the `2.x` version number because this is fine.\n\nCommits\n-------\n\nb234d43f [Doc] Fix some links in UX Map docs","shortMessageHtmlLink":"minor #2198 [Doc] Fix some links in UX Map docs (javiereguiluz)"}},{"before":"44f6b48ad7736001ec97dbffea2130ed6e8ad264","after":"c3f53890e0b4216966494d7b14fd2e814f7ddffe","ref":"refs/heads/2.x","pushedAt":"2024-09-23T09:02:14.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"Kocal","name":"Hugo Alliaume","path":"/Kocal","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/2103975?s=80&v=4"},"commit":{"message":"minor #2193 Fixed typo in links to Symfony UX repo (sblum51)\n\nThis PR was merged into the 2.x branch.\n\nDiscussion\n----------\n\nFixed typo in links to Symfony UX repo\n\nI fixed typo in the links to Symfony UX repo (before: symfony/symfony-ux).\nNote: I wasn't able to deal with the \"version\" variable.\n\n| Q | A\n| ------------- | ---\n| Bug fix? | no\n| New feature? | no \n| Issues | \n| License | MIT\n\nBefore : https://github.com/symfony/symfony-ux/blob/4.4/src/Map/src/Bridge/Leaflet/README.md (404)\nNow : https://github.com/symfony/ux/blob/2.x/src/Map/src/Bridge/Leaflet/README.md\n\n\nCommits\n-------\n\nc29fc019 Fixed typo in links to Symfony UX repo","shortMessageHtmlLink":"minor #2193 Fixed typo in links to Symfony UX repo (sblum51)"}},{"before":"9209d8640a3004540f9abf3d34a9d5dc888371eb","after":"44f6b48ad7736001ec97dbffea2130ed6e8ad264","ref":"refs/heads/2.x","pushedAt":"2024-09-23T08:50:25.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"Kocal","name":"Hugo Alliaume","path":"/Kocal","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/2103975?s=80&v=4"},"commit":{"message":"feature #2185 [Translator] Option to throw an exception instead of returning the message as is when the message is not found. (Crovitche-1623)\n\nThis PR was merged into the 2.x branch.\n\nDiscussion\n----------\n\n[Translator] Option to throw an exception instead of returning the message as is when the message is not found.\n\n| Q | A\n| ------------- | ---\n| Bug fix? | no\n| New feature? | yes\n| Issues | Fix #2183\n| License | MIT\n\nCommits\n-------\n\n33458cce [Translator] add `throwWhenNotFound` method","shortMessageHtmlLink":"feature #2185 [Translator] Option to throw an exception instead of re…"}},{"before":"4705d0344c4a586263355d8894c36d1cef798b1f","after":"9209d8640a3004540f9abf3d34a9d5dc888371eb","ref":"refs/heads/2.x","pushedAt":"2024-09-21T01:58:09.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"smnandre","name":"Simon André","path":"/smnandre","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1359581?s=80&v=4"},"commit":{"message":"minor #2188 [Dropzone] change physical link to the default style file (chadyred)\n\nThis PR was merged into the 2.x branch.\n\nDiscussion\n----------\n\n[Dropzone] change physical link to the default style file\n\n| Q | A\n| ------------- | ---\n| Bug fix? | no\n| New feature? | no\n| License | MIT\n\nHello, after installing and following the doc, I have a message with an error on the path to the style file after having copy docs config example :)\n\nCommits\n-------\n\n1e23116f1 [Dropzone] change physical link to the default style file","shortMessageHtmlLink":"minor #2188 [Dropzone] change physical link to the default style file…"}},{"before":"53517788cd1606ab49c09d5116d8858f8b215d96","after":"4705d0344c4a586263355d8894c36d1cef798b1f","ref":"refs/heads/2.x","pushedAt":"2024-09-20T08:10:46.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"Kocal","name":"Hugo Alliaume","path":"/Kocal","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/2103975?s=80&v=4"},"commit":{"message":"minor #2190 [Site] Fix tooltips positioning on FileTree component (Kocal)\n\nThis PR was merged into the 2.x branch.\n\nDiscussion\n----------\n\n[Site] Fix tooltips positioning on FileTree component\n\n| Q | A\n| ------------- | ---\n| Bug fix? | no\n| New feature? | no \n| Issues | Fix #... \n| License | MIT\n\n**Before:**\n\nhttps://github.com/user-attachments/assets/1047b942-fecd-4763-a48d-444edf5b8701\n\n**After:**\n\nhttps://github.com/user-attachments/assets/2040a645-6a1b-47e6-9263-000724911c76\n\nCommits\n-------\n\n8a283198 [Site] Fix tooltips positioning on FileTree component","shortMessageHtmlLink":"minor #2190 [Site] Fix tooltips positioning on FileTree component (Ko…"}},{"before":"412da630824772f1fcb4d363b24b243a7165c4a0","after":"53517788cd1606ab49c09d5116d8858f8b215d96","ref":"refs/heads/2.x","pushedAt":"2024-09-20T07:41:41.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"Kocal","name":"Hugo Alliaume","path":"/Kocal","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/2103975?s=80&v=4"},"commit":{"message":"minor #2187 Improve title tag (seb-jean)\n\nThis PR was merged into the 2.x branch.\n\nDiscussion\n----------\n\nImprove title tag\n\n| Q | A\n| ------------- | ---\n| Bug fix? | yes\n| New feature? | no \n| Issues | Fix #2186 \n\n\n\nCommits\n-------\n\n5982e3ce Update base.html.twig","shortMessageHtmlLink":"minor #2187 Improve title tag (seb-jean)"}},{"before":"98f1622ebdc833c09712f771ae5bdcbdcf1aba4d","after":"412da630824772f1fcb4d363b24b243a7165c4a0","ref":"refs/heads/2.x","pushedAt":"2024-09-19T06:23:31.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"javiereguiluz","name":"Javier Eguiluz","path":"/javiereguiluz","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/73419?s=80&v=4"},"commit":{"message":"bug #2181 [TwigComponent] Fix HTML in the profiler panel (javiereguiluz)\n\nThis PR was merged into the 2.x branch.\n\nDiscussion\n----------\n\n[TwigComponent] Fix HTML in the profiler panel\n\n| Q | A\n| ------------- | ---\n| Bug fix? | yes\n| New feature? | no\n| Issues | -\n| License | MIT\n\n### Before\n\n![before](https://github.com/user-attachments/assets/f918059f-f43e-498c-8901-c31690a629be)\n\n### After\n\n![after](https://github.com/user-attachments/assets/2656d253-cf5a-474f-b62f-cc7264cc8979)\n\nCommits\n-------\n\n35115288 Fix a data collector issue in the Twig Components","shortMessageHtmlLink":"bug #2181 [TwigComponent] Fix HTML in the profiler panel (javiereguiluz)"}},{"before":"c05aff14a178b0c0b8d5903405df0d56190c81ca","after":"98f1622ebdc833c09712f771ae5bdcbdcf1aba4d","ref":"refs/heads/2.x","pushedAt":"2024-09-18T14:55:23.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"javiereguiluz","name":"Javier Eguiluz","path":"/javiereguiluz","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/73419?s=80&v=4"},"commit":{"message":"feature #2156 [Icons] Configure icon sets: path, alias & icon attributes (smnandre)\n\nThis PR was squashed before being merged into the 2.x branch.\n\nDiscussion\n----------\n\n[Icons] Configure icon sets: path, alias & icon attributes\n\n| Q | A\n| ------------- | ---\n| Bug fix? | no\n| New feature? | yes\n| Issues | Fix #\n| License | MIT\n\nI'm opening now if you guys have feedback, and i will add more tests the next couple days\n\n> [!NOTE]\n> This PR brings 3 new features: iconset aliases, custom path and attributes. So let's focus on that 😄\n\n```yaml\nux_icons:\n icon_dir: '%kernel.project_dir%/assets/icons'\n\n # Default icon set\n default_icon_attributes:\n class: 'icon'\n fill: 'currentColor'\n width: '24'\n height: '24'\n\n icon_sets:\n # Local icon set (prefix mapped to a local directory)\n flags:\n path: '%kernel.project_dir%/assets/images/flags'\n\n # Remote icon set (prefix mapped to an icon set identifier)\n lu:\n alias: 'lucide'\n\n # Icon set configuration (work for local/remote)\n oc:\n icon_attributes:\n class: 'oc-icon' # Replace the default class\n stroke: 'none' # Add a new attribute\n fill: false # Use \"false\" to remove a default attribute\n```\n\n### Default attributes\n\n```twig\n\n\n\n{# Renders #}\n ... \n```\n\n## Icon set configuration\n\n### Local icons: path\n\n```twig\n\n\n\n{# Renders: #}\n\n \n\n```\n\n### Remote icons: alias\n\n```twig\n\n\n\n{# Renders: #}\n\n \n\n```\n\n### Icon set attributes\n\n```twig\n\n\n\n{# Renders: #}\n{# Attributes are merged into the default attributes #}\n\n \n\n```\n\nCommits\n-------\n\n28454b8b [Icons] Configure icon sets: path, alias & icon attributes","shortMessageHtmlLink":"feature #2156 [Icons] Configure icon sets: path, alias & icon attribu…"}},{"before":"2b6c5d1f1019d509a203e51bf99e740940d013ff","after":"c05aff14a178b0c0b8d5903405df0d56190c81ca","ref":"refs/heads/2.x","pushedAt":"2024-09-18T08:17:04.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"Kocal","name":"Hugo Alliaume","path":"/Kocal","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/2103975?s=80&v=4"},"commit":{"message":"feature #2117 [Map] Render map from Twig with `ux_map()` and `` (smnandre)\n\nThis PR was squashed before being merged into the 2.x branch.\n\nDiscussion\n----------\n\n[Map] Render map from Twig with `ux_map()` and ``\n\n| Q | A\n| ------------- | ---\n| Bug fix? | no\n| New feature? | yes\n| Issues | Fix #...\n| License | MIT\n\n* ~~add an MapFactory (internal)~~\n* allow `ux_map` Twig function to render map from named arguments\n* add basic TwigComponent ``\n\n### Create Map from Twig\n\n```twig\n\n{{ ux_map(\n center: [51.5074, 0.1278],\n zoom: 3,\n markers: [\n { position: [51.5074, 0.1278], title: 'London' },\n { position: [48.8566, 2.3522], title: 'Paris' },\n {\n position: [40.7128, -74.0060],\n title: 'New York',\n infoWindow: { content: 'Welcom to New York' }\n },\n ],\n attributes: {\n class: 'foo',\n style: 'height: 800px; width: 100%; border: 4px solid red; margin-block: 10vh;',\n }\n) }}\n\n```\n\n![ux-map](https://github.com/user-attachments/assets/2d127863-c159-4024-9266-c12609460534)\n\nCommits\n-------\n\n92f89d3a [Map] Render map from Twig with `ux_map()` and ``","shortMessageHtmlLink":"feature #2117 [Map] Render map from Twig with ux_map() and `<twig:u…"}},{"before":"c1b7843b59a2f7b8f0ee76ebd24ec8b38a6a5df4","after":"2b6c5d1f1019d509a203e51bf99e740940d013ff","ref":"refs/heads/2.x","pushedAt":"2024-09-17T00:07:16.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"smnandre","name":"Simon André","path":"/smnandre","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1359581?s=80&v=4"},"commit":{"message":"minor #2173 [Site] Fix deprecations and remove debug block (smnandre)\n\nThis PR was squashed before being merged into the 2.x branch.\n\nDiscussion\n----------\n\n[Site] Fix deprecations and remove debug block\n\nFix deprecations and remove debug block\n\nCommits\n-------\n\n7eb48fb3b [Site] Fix deprecations and remove debug block","shortMessageHtmlLink":"minor #2173 [Site] Fix deprecations and remove debug block (smnandre)"}},{"before":"519fd5f5026ba0467158c2ecd555a0f540bd6a72","after":"c1b7843b59a2f7b8f0ee76ebd24ec8b38a6a5df4","ref":"refs/heads/2.x","pushedAt":"2024-09-16T23:02:08.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"smnandre","name":"Simon André","path":"/smnandre","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1359581?s=80&v=4"},"commit":{"message":"feature #2167 [TwigComponent] Optimize the ComponentLoggerListener (smnandre)\n\nThis PR was merged into the 2.x branch.\n\nDiscussion\n----------\n\n[TwigComponent] Optimize the ComponentLoggerListener\n\n* Clean unused code\n* Reduce memory usage\n* Optimize class/templates lookup\n\nCommits\n-------\n\n19ff0718e [TwigComponent] Simplify the ComponentLoggerListener","shortMessageHtmlLink":"feature #2167 [TwigComponent] Optimize the ComponentLoggerListener (s…"}},{"before":"292f41d887dc05377748b1356689b481fa4a819f","after":"519fd5f5026ba0467158c2ecd555a0f540bd6a72","ref":"refs/heads/2.x","pushedAt":"2024-09-16T19:26:53.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"javiereguiluz","name":"Javier Eguiluz","path":"/javiereguiluz","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/73419?s=80&v=4"},"commit":{"message":"minor #2166 [Site] Clean templates & css (smnandre)\n\nThis PR was squashed before being merged into the 2.x branch.\n\nDiscussion\n----------\n\n[Site] Clean templates & css\n\n* Clean demo templates\n* Remove unused helpers\n* Remove unused utilities\n\nCommits\n-------\n\n6babdc9d [Site] Clean templates & css","shortMessageHtmlLink":"minor #2166 [Site] Clean templates & css (smnandre)"}},{"before":"8dd706da2c1ada2174c920c246daa6765b176cef","after":"292f41d887dc05377748b1356689b481fa4a819f","ref":"refs/heads/2.x","pushedAt":"2024-09-16T08:42:28.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"javiereguiluz","name":"Javier Eguiluz","path":"/javiereguiluz","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/73419?s=80&v=4"},"commit":{"message":"feature #2168 [TwigComponent] Use a RuntimeExtension (smnandre)\n\nThis PR was squashed before being merged into the 2.x branch.\n\nDiscussion\n----------\n\n[TwigComponent] Use a RuntimeExtension\n\n* Hide implementation & start decoupling the template from the event system\n* Optimize (a bit) the ComponentNode\n\nCommits\n-------\n\n8e99e147 [TwigComponent] Use a RuntimeExtension","shortMessageHtmlLink":"feature #2168 [TwigComponent] Use a RuntimeExtension (smnandre)"}},{"before":"7c244fba78a9384df704790e982a787814c047d4","after":"8dd706da2c1ada2174c920c246daa6765b176cef","ref":"refs/heads/2.x","pushedAt":"2024-09-15T10:46:23.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"smnandre","name":"Simon André","path":"/smnandre","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1359581?s=80&v=4"},"commit":{"message":"minor #2170 [TwigComponent] Update index.rst (LaurentMarquet)\n\nThis PR was merged into the 2.x branch.\n\nDiscussion\n----------\n\n[TwigComponent] Update index.rst\n\nJust removed a lasting \" in code\n\n| Q | A\n| ------------- | ---\n| Bug fix? | no\n| New feature? | no \n| Issues | no\n| License | MIT\n\nCommits\n-------\n\n675a707eb Update index.rst","shortMessageHtmlLink":"minor #2170 [TwigComponent] Update index.rst (LaurentMarquet)"}},{"before":"f719d655c255be10438e0339d2700c3bef7f0921","after":"7c244fba78a9384df704790e982a787814c047d4","ref":"refs/heads/2.x","pushedAt":"2024-09-15T10:36:42.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"smnandre","name":"Simon André","path":"/smnandre","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1359581?s=80&v=4"},"commit":{"message":"minor #2169 [CI] Add tests on PHP8.4 (smnandre)\n\nThis PR was squashed before being merged into the 2.x branch.\n\nDiscussion\n----------\n\n[CI] Add tests on PHP8.4\n\nReplaces #2078\n\nCommits\n-------\n\n8510b6536 [CI] Add tests on PHP8.4","shortMessageHtmlLink":"minor #2169 [CI] Add tests on PHP8.4 (smnandre)"}}],"hasNextPage":true,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"startCursor":"Y3Vyc29yOnYyOpK7MjAyNC0wOS0yOFQxNjo1Mjo0NS4wMDAwMDBazwAAAATDdCSi","endCursor":"Y3Vyc29yOnYyOpK7MjAyNC0wOS0xNVQxMDozNjo0Mi4wMDAwMDBazwAAAAS2oyM_"}},"title":"Activity · symfony/ux"}