From 23d7955eab01df4128039812fb7216de9441c551 Mon Sep 17 00:00:00 2001 From: ejunga Date: Mon, 21 Apr 2025 15:16:22 -0400 Subject: [PATCH 1/4] Add regex-report for regex matching highlights --- tdx-enhanced.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tdx-enhanced.js b/tdx-enhanced.js index ca10fe2..d4c39bc 100644 --- a/tdx-enhanced.js +++ b/tdx-enhanced.js @@ -733,6 +733,12 @@ } } + if (type=="report" && customType=="report-regex") { + if ((new RegExp(customHighlight.value).exec(txt))) { + style = customHighlight.style + } + } + if (type=="person" && customType=="person") { if (customHighlight.value==txt) { element = createHighlightBubble(element) From a7d0d14194e2ab4bc20c1cff15fb36f1af18d904 Mon Sep 17 00:00:00 2001 From: ejunga Date: Mon, 2 Jun 2025 08:46:54 -0400 Subject: [PATCH 2/4] Update to match reports in new dashboard --- tdx-enhanced.js | 1 + 1 file changed, 1 insertion(+) diff --git a/tdx-enhanced.js b/tdx-enhanced.js index dce2982..d205ee0 100644 --- a/tdx-enhanced.js +++ b/tdx-enhanced.js @@ -1064,6 +1064,7 @@ if (type=="report" && customType=="report-regex") { if ((new RegExp(customHighlight.value).exec(txt))) { + element.classList.add("reportTitle") style = customHighlight.style } } From 07c8e41ff1f7addc9810058e200078663f0b0201 Mon Sep 17 00:00:00 2001 From: ejunga Date: Mon, 21 Jul 2025 08:28:12 -0400 Subject: [PATCH 3/4] Add highlights.json --- highlights.json | 109 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100644 highlights.json diff --git a/highlights.json b/highlights.json new file mode 100644 index 0000000..a61def2 --- /dev/null +++ b/highlights.json @@ -0,0 +1,109 @@ +[ + { + "style": { + "background": "#412264", + "color": "#FFFFFF" + }, + "type": "person", + "value": "Ethan Mesecar" + }, + { + "style": { + "background": "#285c65", + "color": "#FFFFFF" + }, + "type": "person", + "value": "Justice Johnson" + }, + { + "style": { + "background": "#27f9bb", + "color": "#000000" + }, + "type": "person", + "value": "Elijah Junga" + }, + { + "style": { + "background": "#e63ab4", + "color": "#000000" + }, + "type": "person", + "value": "Deon Murray" + }, + { + "style": { + "background": "#b886d2", + "color": "#000000" + }, + "type": "person", + "value": "Andrea Gajic" + }, + { + "style": { + "background": "#a759f9", + "color": "#000000" + }, + "type": "person", + "value": "Omar Mostafa" + }, + { + "style": { + "background": "#e0c200", + "color": "#000000" + }, + "type": "person", + "value": "Trae Richardson" + }, + { + "style": { + "background": "#ff8c00", + "color": "#000000" + }, + "type": "person", + "value": "Elijah Beard" + }, + { + "style": { + "background": "#117e7e" + }, + "type": "regex-report", + "value": ".*" + }, + { + "style": { + "background": "#1f117c" + }, + "type": "report", + "value": "[Aa]ssigned" + }, + { + "style": { + "background": "#117c1f" + }, + "type": "report", + "value": "[Uu]nassigned" + }, + { + "style": { + "background": "#86297b" + }, + "type": "report", + "value": "[Oo]pen" + }, + { + "style": { + "background": "#86297b" + }, + "type": "report", + "value": "[Cc]ompleted" + }, + { + "style": { + "background": "#3ae600", + "color": "#000000" + }, + "type": "person", + "value": "Emily Harley" + } +] \ No newline at end of file From 634dda5a3b9d8b17a37ae39c8690cf341fce7dc1 Mon Sep 17 00:00:00 2001 From: ejunga Date: Mon, 21 Jul 2025 08:32:18 -0400 Subject: [PATCH 4/4] Remove highlights.json --- highlights.json | 109 ------------------------------------------------ 1 file changed, 109 deletions(-) delete mode 100644 highlights.json diff --git a/highlights.json b/highlights.json deleted file mode 100644 index a61def2..0000000 --- a/highlights.json +++ /dev/null @@ -1,109 +0,0 @@ -[ - { - "style": { - "background": "#412264", - "color": "#FFFFFF" - }, - "type": "person", - "value": "Ethan Mesecar" - }, - { - "style": { - "background": "#285c65", - "color": "#FFFFFF" - }, - "type": "person", - "value": "Justice Johnson" - }, - { - "style": { - "background": "#27f9bb", - "color": "#000000" - }, - "type": "person", - "value": "Elijah Junga" - }, - { - "style": { - "background": "#e63ab4", - "color": "#000000" - }, - "type": "person", - "value": "Deon Murray" - }, - { - "style": { - "background": "#b886d2", - "color": "#000000" - }, - "type": "person", - "value": "Andrea Gajic" - }, - { - "style": { - "background": "#a759f9", - "color": "#000000" - }, - "type": "person", - "value": "Omar Mostafa" - }, - { - "style": { - "background": "#e0c200", - "color": "#000000" - }, - "type": "person", - "value": "Trae Richardson" - }, - { - "style": { - "background": "#ff8c00", - "color": "#000000" - }, - "type": "person", - "value": "Elijah Beard" - }, - { - "style": { - "background": "#117e7e" - }, - "type": "regex-report", - "value": ".*" - }, - { - "style": { - "background": "#1f117c" - }, - "type": "report", - "value": "[Aa]ssigned" - }, - { - "style": { - "background": "#117c1f" - }, - "type": "report", - "value": "[Uu]nassigned" - }, - { - "style": { - "background": "#86297b" - }, - "type": "report", - "value": "[Oo]pen" - }, - { - "style": { - "background": "#86297b" - }, - "type": "report", - "value": "[Cc]ompleted" - }, - { - "style": { - "background": "#3ae600", - "color": "#000000" - }, - "type": "person", - "value": "Emily Harley" - } -] \ No newline at end of file