Annual Report System

System Overview

The Cores Annual Report system is a stand-alone system for storing and managing the content necessary for the generation of the annual report in it's various forms. Access to the system is controlled by the University DUO 2FA system with a fallback to a magic link email based login system.

Tech Stack

The system uses the following technologies:

AI Usage

This system has AI written and reviewed code. AI usage during development of this system consisted of use of the following models for code review purposes:

All models were run locally on the developer M2 MacBook using llama.cpp and OpenCode. No cloud hosted models were used. Any code generated directly by OpenCode in build agent mode was fully reviewed prior to commit. The RecordManager component was developed using OpenCode as the developing agent. The initial prompt for the component is located in the opencode_prompts folder.

Facility Manager Section Management Guide

Overview

As part of the Annual Report process facility managers are required to review and update the content associated with their facility every year. To assist in this process managers will receive an email annually from the Cores Admin office that contains a reminder of this requirement and a link to access their content for the current fiscal year. This link will be valid for 2 weeks from the date of the email and allows them to edit specific content blocks for their sections of the annual report. If they are unable to complete the editing process within that time period a new link with an updated expiration date can be requested from the Cores Administration office.

General Structure

Facilities should generally follow the structure outlined below when designing their content sections:

Sections

Some sections will not be editable. These sections are normally added by the Cores Admin office to display critical data such as revenue graphs. Un-editable sections will have a red background on their section identifier icon and if you click on the icon a red lock will appear in place of the usual controls.

Notification Email

In the notification email you will find a link to the section editor interface. The URL for this link will take the following format:

https://annual-report.cores.utah.edu/section_edit?token=<long-jwt-text>

Editing Interface

The main editing interface consists of the header section followed by a list of content blocks.

Header

The header will display the Fiscal Year you are editing and 4 controls.

image.png

To facilitate ease of editing the header section is "sticky" and will follow you down the page as your scroll/edit.

image.png

Content Block

image.png

Content blocks contain the report content and come in a number of types depending on what type of content you want to display

image.png The remaining 4 Icons represent the various graphs and are generally not editable. All data for the graphs comes from system data imported from the resource system.

Note regarding Paragraph and Markdown blocks: 

Paragraph blocks only display text. No formatting is possible on these blocks.
Markdown blocks support the following element types:

- Headings
- Paragraphs and line breaks according to CommonMark specification
- Bold and italic text
- List (unordered and ordered)
- Links
- Horizontal Rules
- Code Blocks
- Inline Code
- Blockquotes (basic support)

Note that markdown lists will use black dot's instead of the preferred red for lists in the annual report.

For more information about markdown support see the following sites:

https://github.com/fellmann/pdfkit-markdown
https://www.markdownguide.org/cheat-sheet/

Content Block Controls

image.png

The content block controls can be accessed by clicking on the block type icon. From this menu you can (in display order)

image.png

The block add sub-menu allows you to add new blocks to the configuration. From this menu you can (in display order)