From 2dc3c0f4d9d5015a208d53c075d83121a212b9ba Mon Sep 17 00:00:00 2001 From: Amadou Date: Thu, 20 Aug 2026 14:44:28 -0400 Subject: [PATCH] vault backup: 2026-08-20 14:44:28 --- .../plugins/templater-obsidian/data.json | 4 +- 10 Knowledge/Templates/Contract Template.md | 150 ++++++++++++++++++ 10 Knowledge/Templates/Vendor Template.md | 112 ------------- 20 Work/Contracts/.gitkeep | 0 20 Work/Contracts/Active/.gitkeep | 0 .../Contracts/Active/Algolia - 2024-2026.md | 97 +++++++++++ .../Contracts Dashboard.md} | 0 20 Work/Meetings/Vendors/.gitkeep | 0 8 files changed, 249 insertions(+), 114 deletions(-) create mode 100644 10 Knowledge/Templates/Contract Template.md delete mode 100644 10 Knowledge/Templates/Vendor Template.md create mode 100644 20 Work/Contracts/.gitkeep create mode 100644 20 Work/Contracts/Active/.gitkeep create mode 100644 20 Work/Contracts/Active/Algolia - 2024-2026.md rename 20 Work/{Vendors/Vendor Dashboard.md => Contracts/Contracts Dashboard.md} (100%) create mode 100644 20 Work/Meetings/Vendors/.gitkeep diff --git a/.obsidian/plugins/templater-obsidian/data.json b/.obsidian/plugins/templater-obsidian/data.json index 6152f53..ce807a3 100644 --- a/.obsidian/plugins/templater-obsidian/data.json +++ b/.obsidian/plugins/templater-obsidian/data.json @@ -34,8 +34,8 @@ "template": "10 Knowledge/Templates/Weekly Review Template.md" }, { - "folder": "20 Work/Vendors", - "template": "10 Knowledge/Templates/Vendor Template.md" + "folder": "20 Work/Contracts", + "template": "10 Knowledge/Templates/Contract Template.md" }, { "folder": "20 Work/Ideas", diff --git a/10 Knowledge/Templates/Contract Template.md b/10 Knowledge/Templates/Contract Template.md new file mode 100644 index 0000000..d68d8bc --- /dev/null +++ b/10 Knowledge/Templates/Contract Template.md @@ -0,0 +1,150 @@ +--- +type: contract +vendor: +status: active +category: +contract_start: +contract_end: +annual_cost: +currency: +contract_value: +billing_frequency: +payment_terms: +auto_renewal: +notice_days: +notice_deadline: +renewal_status: not-due +purchase_order: +account_manager: +criticality: medium +--- + +<%* +const vendor = await tp.system.prompt("Vendor name"); + +if (!vendor) { + new Notice("Contract creation cancelled."); + return; +} + +const safeVendor = vendor + .replace(/[\\/:\*?"<>|]/g, "-") + .trim(); + +const startDate = await tp.system.prompt( + "Contract start date (YYYY-MM-DD)" +); + +const endDate = await tp.system.prompt( + "Contract end date (YYYY-MM-DD)" +); + +if (!startDate || !endDate) { + new Notice("Contract creation cancelled: dates required."); + return; +} + +const startYear = startDate.substring(0, 4); +const endYear = endDate.substring(0, 4); + +const currentFile = tp.file.find_tfile(tp.file.path(true)); + +await app.fileManager.processFrontMatter( + currentFile, + (frontmatter) => { + frontmatter.vendor = vendor; + frontmatter.contract_start = startDate; + frontmatter.contract_end = endDate; + } +); + +const folder = "20 Work/Contracts/Active"; + +if (!app.vault.getAbstractFileByPath("20 Work/Contracts")) { + await app.vault.createFolder("20 Work/Contracts"); +} + +if (!app.vault.getAbstractFileByPath(folder)) { + await app.vault.createFolder(folder); +} + +await tp.file.move( + `${folder}/${safeVendor} - ${startYear}-${endYear}` +); + +tR += `# ${vendor} - ${startYear}-${endYear}`; +-%> + +## Contract Summary + +**Service / Product:** + +**Purpose:** + +**Business owner:** + +--- + +## Commercial Terms + +**Annual cost:** + +**Total contract value:** + +**Currency:** + +**Billing frequency:** + +**Payment terms:** + +**Purchase order:** + +--- + +## Renewal + +**Contract end:** + +**Auto-renewal:** + +**Notice period:** + +**Notice deadline:** + +**Expected price increase:** + +**Renewal decision:** + +--- + +## Services / Entitlements + +- + +--- + +## Contacts + +| Role | Name | Email | +|---|---|---| +| Account Manager | | | +| Technical Contact | | | +| Support | | | + +--- + +## Risks / Considerations + +- + +--- + +## Renewal History + +- + +--- + +## Notes + +- diff --git a/10 Knowledge/Templates/Vendor Template.md b/10 Knowledge/Templates/Vendor Template.md deleted file mode 100644 index 054480f..0000000 --- a/10 Knowledge/Templates/Vendor Template.md +++ /dev/null @@ -1,112 +0,0 @@ ---- -vendor: true -status: active -category: -owner: Amadou -account_manager: -annual_budget: -current_spend: -renewal_date: -contract_end: -criticality: medium -projects: -tags: -purchase order: -currency: CAD ---- - -<%* -const year = tp.date.now("YYYY"); - -const vendor = await tp.system.prompt("Vendor name"); - -if (!vendor){ - new Notice("Vendor creation cancelled."); - return; -} - -const safeVendor = vendor -.replace(/[\\/:*?"<>|]/g,"-") -.trim(); - -const folder = `20 Work/Vendors/${year}`; - -if(!app.vault.getAbstractFileByPath(folder)){ - await app.vault.createFolder(folder); -} - -await tp.file.move(`${folder}/${safeVendor}`); --%> - -# <% vendor %> -## Executive Summary - -What is this vendor used for? - ---- - -# Contacts - -| Role | Name | Email | Phone | -|------|------|-------|------| -| Account Manager | | | | -| Technical Contact | | | | -| Support | | | | - - ---- - -# Budget - -Annual Budget: - -Current Spend: - -Remaining Budget: - -Expected Increase: - -Currency: - - ---- - -# Products / Services - -- - ---- - -# Projects Using This Vendor - -- - ---- - -# Decisions - -- - ---- - -# Meetings - -- - ---- - -# Risks - -| Risk | Mitigation | Status | -|------|------------|--------| -| | | | - ---- - -# Action Items - -- - ---- - -# Notes diff --git a/20 Work/Contracts/.gitkeep b/20 Work/Contracts/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/20 Work/Contracts/Active/.gitkeep b/20 Work/Contracts/Active/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/20 Work/Contracts/Active/Algolia - 2024-2026.md b/20 Work/Contracts/Active/Algolia - 2024-2026.md new file mode 100644 index 0000000..73df90d --- /dev/null +++ b/20 Work/Contracts/Active/Algolia - 2024-2026.md @@ -0,0 +1,97 @@ +--- +vendor: Algolia +contract_start: 2024-01-01 +contract_end: 2026-12-31 +type: contract +status: active +category: + - search +annual_cost: 25,074.33 +currency: USD +contract_value: +billing_frequency: annual +payment_terms: net-30 +auto_renewal: false +notice_days: +notice_deadline: +renewal_status: + - review-needed +purchase_order: +account_manager: +criticality: medium +--- + +# Algolia - 2024-2026 +## Contract Summary + +**Service / Product:** + +**Purpose:** + +**Business owner:** + +--- + +## Commercial Terms + +**Annual cost:** + +**Total contract value:** + +**Currency:** + +**Billing frequency:** + +**Payment terms:** + +**Purchase order:** + +--- + +## Renewal + +**Contract end:** + +**Auto-renewal:** + +**Notice period:** + +**Notice deadline:** + +**Expected price increase:** + +**Renewal decision:** + +--- + +## Services / Entitlements + +- + +--- + +## Contacts + +| Role | Name | Email | +|---|---|---| +| Account Manager | | | +| Technical Contact | | | +| Support | | | + +--- + +## Risks / Considerations + +- + +--- + +## Renewal History + +- + +--- + +## Notes + +- diff --git a/20 Work/Vendors/Vendor Dashboard.md b/20 Work/Contracts/Contracts Dashboard.md similarity index 100% rename from 20 Work/Vendors/Vendor Dashboard.md rename to 20 Work/Contracts/Contracts Dashboard.md diff --git a/20 Work/Meetings/Vendors/.gitkeep b/20 Work/Meetings/Vendors/.gitkeep new file mode 100644 index 0000000..e69de29