From 94de71140be2d0c80bf6a2e03cb9381b37736ed5 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Fri, 06 Feb 2026 17:03:02 +0000
Subject: [PATCH] =Some minor CRUD.js and UploadManager.js tweaks

---
 inc/managers/CRUDManager.php |   20 ++++++++++++--------
 1 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/inc/managers/CRUDManager.php b/inc/managers/CRUDManager.php
index 49ec9c6..cec8688 100644
--- a/inc/managers/CRUDManager.php
+++ b/inc/managers/CRUDManager.php
@@ -14,7 +14,7 @@
  */
 class CRUD {
 	protected CRUDSkeleton $skeleton;
-	protected CacheManager $cache;
+	protected Cache $cache;
 	protected array $config;
 	protected string $content;
 	protected array $taxonomies = [];
@@ -39,7 +39,12 @@
 		$this->user_id = get_current_user_id();
 		$this->config = $this->constant[$content];
 		$this->content = $content;
-		$this->cache = CacheManager::for($content);
+		$this->cache = Cache::for('crud')->connect('post')->connect('taxonomy');
+
+		if (JVB_TESTING) {
+			$this->cache->flush();
+		}
+
 		// Create and configure skeleton
 		$this->skeleton = new CRUDSkeleton();
 		$this->configure();
@@ -58,9 +63,7 @@
 			);
 
 		// Initialize meta
-		$this->skeleton->initMeta($this->type, $this->content);
-
-
+		$this->skeleton->addSearch();
 
 		// Timeline if applicable
 		if (Features::forContent($this->content)->has('is_timeline')) {
@@ -81,14 +84,15 @@
 		// Statuses
 		if (Features::forContent($this->content)->has('is_calendar')) {
 			$this->skeleton->setCalendar();
-		}else {
-			$this->skeleton->setDefaultStatus();
 		}
 
+		$this->skeleton->setDefaultStatus();
+
 		// Views
 		$this->skeleton
-			->addViews(['grid', 'list', 'table'])
+			->addViews()
 			->defaultView('grid');
+		$this->skeleton->addItemActions();
 
 		// Filters
 		$this->skeleton->addDateFilter();

--
Gitblit v1.10.0