git hook to fix readme when i commit as well as watchlist populator to speed up setting up all cc's for a deploy

This commit is contained in:
Greg Jacobs
2024-06-06 04:22:38 -04:00
parent 6ba29f130f
commit 8c28e761e0
5 changed files with 196 additions and 21 deletions

View File

@@ -1,39 +1,68 @@
# Gregs Memory Palace
# Gregs Memory Palace
This project contains several files that perform various tasks. Here's a brief overview of each file:
# File Summary
This project contains several files that perform various tasks. Here's a brief overview of each file:
## [dag.js](src\utils\bookmarklets\dag.js)
## [DAG](src/utils/bookmarklets/dag.js)
Opens the DAG Task details page(s) based on user input.
This JavaScript file contains a bookmarklet function that prompts the user for a list of DAG Task numbers, separated by commas. For each provided number, it opens a new browser tab with the corresponding DAG Task details page. If the user doesn't provide any input, it opens the default DAG Tasks page in a new tab. This can be useful for quickly accessing multiple DAG Task details pages based on user input.
If user provides a comma-separated list of DAG Task numbers, it opens each task's details page in a new tab.
If user does not provide any input, it opens the default DAG Tasks page in a new tab.
## [hashid](src/utils/bookmarklets/hashid.js)
## [hashid.js](src\utils\bookmarklets\hashid.js)
This JavaScript file contains a bookmarklet function that takes a string, decodes it using decodeURIComponent, alerts the decoded string, and copies the result to the clipboard.
## [jira.js](src/utils/bookmarklets/jira.js)
This JavaScript function takes a string, decodes it using decodeURIComponent,
alerts the decoded string, and copies the result to the clipboard.
This JavaScript file contains a bookmarklet function that prompts the user for a JIRA ticket number and then opens a new browser tab with the corresponding JIRA page for that ticket.
The function works as follows:
## [moids.js](src/utils/bookmarklets/moids.js)
1. Takes a string as input.
2. Decodes the string using decodeURIComponent.
This JavaScript file contains a bookmarklet function that prompts the user for multiple MOID (Markit On Demand) numbers and then opens a new browser tab for each corresponding Jira page for those MOIDs.
3. Alerts the decoded string.
4. Copies the decoded string to the clipboard.
## [rbc-di-featureflag.js](src/utils/bookmarklets/rbc-di-featureflags.js)
Note: This function uses the Clipboard API which might not be fully supported in all browsers.
This JavaScript file contains a bookmarklet function that checks the feature flags set in the session storage and displays themm as checkboxes that the user can set then save
## [jira.js](src\utils\bookmarklets\jira.js)
## [Workspace - WIP](src/utils/bookmarklets/workspace.js)
This is just so i can get up and running on a new window with all the pages i care about
This JavaScript function is a bookmarklet that prompts the user for a JIRA ticket number
and then opens a new browser tab with the corresponding JIRA page for that ticket.
## [jsToMsDate.js](src/utils/others/jsToMsDate.js)
The function works as follows:
This JavaScript file contains a function that converts a JavaScript Date object to a Microsoft Date string format. It can be useful when working with APIs or databases that require dates to be in the Microsoft Date format.
1. Prompts the user to enter a JIRA ticket number. The entered value is stored in the `answer` variable.
2. Sets a default URL to the JIRA dashboard.
## [msToJsDate.js](src/utils/others/msToJsDate.js)
3. Checks if the user entered a value in the prompt.
4. If the user entered a value, changes the URL to point to the specific JIRA page for the entered ticket number.
5. Opens the URL in a new browser tab and brings focus to it.
Note: This function is wrapped in a self-invoking function `(function() {...})();` which means it will automatically execute as soon as it is defined.
## [moids.js](src\utils\bookmarklets\moids.js)
This JavaScript file contains a function that converts a Microsoft Date string format to a JavaScript Date object. It can be useful when working with APIs or databases that provide dates in the Microsoft Date format.
This JavaScript function is a bookmarklet that prompts the user for multiple MOID (Markit On Demand) numbers
and then opens a new browser tab for each corresponding Jira page for those MOIDs.
## [showDebugInfo.js](src/utils/others/showDebugInfo.js)
The function works as follows:
This JavaScript file contains a bookmarklet function that displays debug information about the current page. It can be useful for troubleshooting and understanding the state of the page during development.
1. Prompts the user to enter MOID numbers separated by commas. The entered values are stored in the `answers` array.
2. Sets a default URL to the Jira dashboard.
3. Checks if the user entered any values in the prompt.
4. If the user entered values, changes the URL to point to the specific Jira page for each entered MOID number.
5. Opens each URL in a new browser tab and brings focus to the last opened tab.
Note: This function is wrapped in a self-invoking function `(function() {...})();` which means it will automatically execute as soon as it is defined.
## [rbc-di-featureflags.js](src\utils\bookmarklets\rbc-di-featureflags.js)
This function creates a modal dialog that allows the user to toggle feature flags.
It retrieves the feature flags from the session storage, creates checkboxes for each flag,
and saves the updated flags back to the session storage when the user clicks the save button.
The modal dialog is appended to the document body and can be closed by clicking the save button.
## [rbcSessionStorage.js](src\utils\bookmarklets\rbcSessionStorage.js)