Split 49 modules/suites into independent git repos; untrack from monorepo
Some checks failed
fusion_accounting CI / test (fusion_accounting_ai) (push) Has been cancelled
fusion_accounting CI / test (fusion_accounting_core) (push) Has been cancelled
fusion_accounting CI / test (fusion_accounting_migration) (push) Has been cancelled

Each top-level module/suite folder is now its own private repo on GitHub
(gsinghpal/<name>) and gitea (admin/<name>), with a fresh single initial
commit. The monorepo no longer tracks them (added to .gitignore + git rm
--cached); working-tree files are retained on disk and managed in their
own repos. The monorepo keeps shared root files (CLAUDE.md, docs/, scripts/,
tools/, AGENTS.md, WIP/obsolete dirs) and full history.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
gsinghpal
2026-06-07 01:54:34 -04:00
parent 2a7b315e98
commit a66cdefc01
6740 changed files with 51 additions and 1277207 deletions

View File

@@ -1,42 +0,0 @@
<?php
if (!defined('ABSPATH')) exit;
class Fusion_WooDoo_Order_Timeline {
/**
* Timeline stages in order. Key = _odoo_order_status value(s) that map to this stage.
*/
const STAGES = [
'confirmed' => 'Confirmed',
'processing' => 'Processing',
'shipped' => 'Shipped',
'delivered' => 'Delivered',
'done' => 'Completed',
];
public function __construct() {
add_action('woocommerce_order_details_after_order_table', [$this, 'render_timeline']);
}
public function render_timeline(WC_Order $order): void {
$odoo_status = strtolower((string) $order->get_meta('_odoo_order_status'));
if (empty($odoo_status)) {
return;
}
$tracking_number = $order->get_meta('_odoo_tracking_number');
$shipping_carrier = $order->get_meta('_odoo_shipping_carrier');
$stage_keys = array_keys(self::STAGES);
$current_index = array_search($odoo_status, $stage_keys);
if ($current_index === false) {
$current_index = 0;
}
$template = FUSION_WOODOO_PLUGIN_DIR . 'templates/my-account/order-timeline.php';
if (file_exists($template)) {
include $template;
}
}
}