Skip to content

OPTTs - Targets

OPTTs is simply an acronym for four distinct but similar models: Objectives, Projects, Tasks, and Targets. They all share similarities meaning some code reuse is required, but also can differ in significant ways.

Overview Dashboard

The summary section on the "Organisation Overview" view of the dashboard provides an overview of all targets. Targets don't currently have time constraints and are therefore always visible once created.

Targets dashboard

This is the main dashboard for targets which shows all targets created.

In order to filter results, the Targets controller uses the SearchOrSortTrait which is defined on the task model. It also uses FilterTrait allowing filtering by column value at the same time.

Targets differ radically from the other OPTTs in that there's no time constraints (at the time of writing 03/2023), and the visual is a gauge chart.

Targets creation

Targets can be created by clicking the "Add Target" button on the main dashboard, or by clicking the OPTTs button when inside an element of a catalogue, and then completing the fields of the form.

Targets have 2 thresholds, one for "okay" and one for "good". Anything below "okay" is perceived to be "poor". Target value should be a number higher than "good", and okay should be a number lower than "good". Currently achieved reflects the current selection on the progress slider, or can be entered manually to alter the slider position and value.

The form is organised as an accordion, and because many of the fields are reused across OPTTs, the fields are often organised into "Fieldsets", which can be found in the Components/App/Common/Fieldsets folder of the vue files.

The data these fieldsets need are often provided through using provide as opposed to prop drilling. It's a simple concept and just allows variables to be provided at a higher level and then injected at a lower as and when they are needed. This data includes for example, the list of users, divisions, departments, and more that needs to be made available to dropdowns in all cases of OPTTs.