From 374517496ade048193cb708a0421b249f44e99d5 Mon Sep 17 00:00:00 2001 From: Ruben Carlo Benante Date: Sat, 11 Jul 2026 15:58:15 -0300 Subject: [PATCH] Integrations hardening -- Set up dimmed off RecoReco/FinanceBuddy; honest Disable (v0.6.0) --- Helper/QualKardHelper.php | 12 +++++++++ Plugin.php | 2 +- Template/project/integration.php | 46 +++++++++++++++++++------------- VERSION | 2 +- 4 files changed, 41 insertions(+), 21 deletions(-) diff --git a/Helper/QualKardHelper.php b/Helper/QualKardHelper.php index bdb7717..3cfdb78 100644 --- a/Helper/QualKardHelper.php +++ b/Helper/QualKardHelper.php @@ -120,6 +120,18 @@ class QualKardHelper extends Base return (int) $this->projectMetadataModel->get($project_id, 'qualkard_col_'.$role, 0); } + /** + * Is FinanceBuddy enabled on this board? QualKard refuses to convert a FinanceBuddy board (its + * restructure would wreck the finance columns). + * + * @param int $project_id + * @return bool + */ + public function fbEnabled($project_id) + { + return (int) $this->projectMetadataModel->get($project_id, 'financebuddy_enabled', 0) === 1; + } + /** * Write the inert RecoReco config for a card: move-mode to Study, fire from anywhere but Done, * daily (innocuous -- QualKard sets the due date on each grade), anchor 0 so RecoReco skips it diff --git a/Plugin.php b/Plugin.php index 6d77412..4f9507a 100644 --- a/Plugin.php +++ b/Plugin.php @@ -81,7 +81,7 @@ class Plugin extends Base public function getPluginVersion() { - return '0.5.0'; + return '0.6.0'; } public function getPluginHomepage() diff --git a/Template/project/integration.php b/Template/project/integration.php index 603c6fd..139f105 100644 --- a/Template/project/integration.php +++ b/Template/project/integration.php @@ -1,28 +1,36 @@ +s) +// to post to QualKard's own controller. Set up is destructive; disabling only stops the automation. +$has = $this->QualKardHelper->hasRecoReco(); +$fb = $this->QualKardHelper->fbEnabled($project['id']); +$enabled = $this->QualKardHelper->isEnabled($project['id']); +$blocked = ! $has || $fb; +?>

-QualKardHelper->hasRecoReco()): ?> + -

- -QualKardHelper->isEnabled($project['id'])): ?> - -

-
- form->csrf() ?> - -
+

+
+ + +
+

-

-
- form->csrf() ?> - -
-
- form->csrf() ?> - -
+

+ + + + + + + +

+
> + +
diff --git a/VERSION b/VERSION index ffa7f7a..6f903ea 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -QualKard v0.5 +QualKard v0.6