diff --git a/inDocActionItemsWebApp/Page.html b/inDocActionItemsWebApp/Page.html index b93c4f9..a3cfab7 100644 --- a/inDocActionItemsWebApp/Page.html +++ b/inDocActionItemsWebApp/Page.html @@ -1,338 +1,353 @@ - + - + + Action Item Collect + + + - - -

In-doc Action Item Collection Tool

- - + // Form submission handler + function submitId() { + const documentId = document.getElementById('documentId').value; + const successMessage = document.getElementById('successMessage'); + + // Show processing message + successMessage.innerText = 'Collecting actions...'; + successMessage.style.display = 'block'; + successMessage.className = 'processingMessageStyle'; + + // Process the document ID + setTimeout(function() { + google.script.run + .withSuccessHandler(function(response) { + if (response.toLowerCase().includes('no action items found')) { + successMessage.innerText = 'No action items found. Please review the document for proper formatting of the keyword ("action: ") or action occurrences.'; + successMessage.className = 'errorMessageStyle'; + } else { + successMessage.innerText = response; + successMessage.className = 'successMessageStyle'; + } + hideMessage(); + document.getElementById('documentId').value = ''; + }) + .processDocumentId(documentId); + }, 100); + } + + + +

In-doc Action Item Collection Tool

+ + +
+
+
-
- Google Document URL: -
-
- -
- +
+ Google Document URL: +
+
+ +
+

Enter the Document ID or URL of a Google Document that you would like to process. - Ensure that the document meets the following requirements:


+ Ensure that the document meets the following requirements:

Example 1: "Action: Amy email purchasing about req 385."
- Owner = "Amy" Action Item = "email purchasing about req 385."


+ Owner = "Amy" Action Item = "email purchasing about req 385."

Example 2: "Action: Copy 2024 boards as 20XX boards and update screenshots/demo videos."
- Owner = "Copy" Action = "2024 boards as 20XX boards and update screenshots/demo videos."


+ Owner = "Copy" Action = "2024 boards as 20XX boards and update screenshots/demo videos."

Example of an acceptable document with collected action items populated in a table can be found here: Example Document