The case page that this root session is handling.
A DiscussionTools Parser. Used for parsing comments in a streamlined way (using DiscussionTools) as compared to relying on an in-house parser.
An array of active section UI elements. Populated in initSessionInterface
.
The current active session, if one exists.
Readonly
sessionResponder for session requests.
Readonly
sessionActivates a section. This appends the section UI, adds the section to the cache (if not already added), and internally stores the section for a graceful exit.
true
if the section was activated successfully
Adds the "start working on this section" or "reload page" overlay and button to a given section.
Closes a section. This removes the section from both the session data and from the case page cache.
Closes a section. This removes the section from both the session data and from the case page cache.
Static
continueContinue a session from a DeputyCasePage.
The case page to continue with
Optional
sectionIds: string[]The section IDs to load on startup. If not provided, this will be taken from the cache. If provided, this overrides the cache, discarding any sections cached previously.
Static
findFinds the first last active section that exists on the page.
If a last active section that still exists on the page could not be found,
null
is returned.
The case page to use
The last active session's heading element.
Static
initShows the interface for continuing a previous session. This includes
the [continue CCI session]
notice at the top of each CCI page section heading
and a single message box showing when the page was last worked on top of the
first CCI heading found.
The case page to continue with
Static
initInitialize interface components for starting a session. This includes
the [start CCI session]
notice at the top of each CCI page section heading.
Optional
_casePage: DeputyCasePageThe current case page
Static
initShows the interface for overwriting an existing session. The provided action button will close the other section. This does not start a new session; the user must start the session on this page on their own.
The case page to continue with
Static
initShows the interface for an attempted Deputy execution on a different tab than expected. This prevents Deputy from running entirely to avoid loss of progress and desynchronization.
Optional
_casePage: DeputyCasePageThe current case page (not the active one)
Static
setSets the current active session information.
The session to save.
SessionInformation object if successful, null
if not.
Static
startStarts a Deputy session.
Optional
_casePage: DeputyCasePage
The DeputyRootSession. Instantiated only when: (a) the page is a CCI case page, and (b) a session is currently active