techservicesillinois / ticket-assister

Ticket Assister: Helping you work TeamDynamix tickets more efficiently
Other
0 stars 0 forks source link

Refactor content script names #24

Closed ekcom closed 10 months ago

ekcom commented 11 months ago

Per discussion, the names of the content scripts should be changed from csN.ts to short-name.ts for clarity.

short-name should be the trailing name after the directory, e.g., go-back-on-save.ts stored in src/contentScripts/tdx/ticket/edit.

Historical note: csN.ts was previously used as the filename to avoid the assumption that creating the file automatically registered the content script (this must be done in src/rules/rules.ts) as well as to avoid confusion when one rule has several content scripts associated with it. However, rules of that nature typically have multiple content scripts in different directories, so this nomenclature should work.

Could potentially remove the triple-slash directive enforcement tests now, but it's probably safer to keep them in play.