Extract recent table handling from Header into a middleware
commit9b25d12e01963b190ec16645cd44de5f252c40cc
authorMaurício Meneghini Fauth <mauricio@fauth.dev>
Sun, 14 Apr 2024 20:19:26 +0000 (14 17:19 -0300)
committerMaurício Meneghini Fauth <mauricio@fauth.dev>
Sun, 14 Apr 2024 20:19:26 +0000 (14 17:19 -0300)
tree7a51652d0f6e01b8f0c92796bb20eaf984ede271
parenta6c56e6e0e47a43fd5a65e68f5325b0053f0d025
Extract recent table handling from Header into a middleware

This removes the recent visited table handling from the Header class and
moves it to a new middleware.

This also removes a duplicated update via front-end.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
13 files changed:
app/services_controllers.php
phpstan-baseline.neon
psalm-baseline.xml
resources/js/src/modules/functions.ts
resources/templates/header.twig
src/Application.php
src/Controllers/RecentTablesListController.php [deleted file]
src/Favorites/RecentFavoriteTables.php
src/Header.php
src/Http/Middleware/RecentTableHandling.php [new file with mode: 0644]
src/Routing/Routes.php
tests/unit/Http/Middleware/RecentTableHandlingTest.php [new file with mode: 0644]
tests/unit/Routing/RoutesTest.php