Skip to content

Commit

Permalink
Refactor TDX-Enhanced to Chrome extension with RCAC Halcyon integrati…
Browse files Browse the repository at this point in the history
…on. Updated manifest details, removed userscript, added new styles and UI elements for API key input, and initialized Halcyon on ticket detail pages.
  • Loading branch information
zheng980 committed Nov 6, 2025
1 parent 4426726 commit e81b8e2
Show file tree
Hide file tree
Showing 6 changed files with 588 additions and 4,015 deletions.
16 changes: 16 additions & 0 deletions content/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,22 @@
parseTicket()
parseOtherElements() // Call parseOtherElements to inject styles into shadow DOMs (matches original)
checkPath()

// Initialize RCAC Halcyon integration on ticket detail pages
if (window.location.pathname.includes('/TDNext/Apps/33/Tickets/TicketDet.aspx')) {
// Wait for the requestor panel to be available before initializing halcyon
function tryInitHalcyon() {
const requestorPanel = document.querySelector("#divContent > div:nth-child(1) > div.col-md-5.col-sm-5.gutter-top > div.panel.panel-default.panel-person-card");
if (requestorPanel && typeof initHalcyon === 'function') {
initHalcyon();
} else if (!requestorPanel) {
// Retry after a short delay if element not found yet
setTimeout(tryInitHalcyon, 200);
}
}
// Start trying after a short initial delay
setTimeout(tryInitHalcyon, 300);
}
}

// Wait for DOM to be ready
Expand Down
Loading

0 comments on commit e81b8e2

Please sign in to comment.