قرینه از
https://github.com/matomo-org/matomo.git
synced 2025-08-21 22:47:43 +00:00

* Implement logo upload via temp folder and publish only when settings are saved * Update UI test screenshot * Update UI test screenshot * Add UI tests for custom logo upload * Tweak UI tests config to cater for empty result var * Move UI test into a separate spec file and fix settings save button selector * Use sha1 to hash username to remove unsafe characters and obscure the username in temp folder * Update UI test to move fs expectations to the same unit after screenshot checks * Update UI test screenshots from UI * Fix expected tmp path to account for sha1 of the login * Remove temp files on page load to prevent accidental upload * Fix bug where custom logos enabled without any files * Update upload logic, only a save with present images is valid. * Clean up existing published logos before saving new ones * Allow uploads even when either logo or favicon present * Fix bug, check was ignoring temp favicon existence * Use separate handling for logo and favicon so that updating one doesn't break the other * Update UI tests and fix settings saving after page reload * Fix CS and update screenshots from CI * Add strict types Co-authored-by: Nathan Gavin <nathangavin987@gmail.com> * Use early return and simplify conditions * Ensure custom favicon display is controlled independently from the custom logo --------- Co-authored-by: Nathan Gavin <nathangavin987@gmail.com> Co-authored-by: caddoo <1169490+caddoo@users.noreply.github.com>