# Findings 📝

Findings are vulnerabilities. A finding will either lead to a true vulnerability or just a data point that the client should be made aware of.

This view is made up using two files `Findings.vue` and `FindingOverviewTable.vue`

{% hint style="info" %}
<http://localhost:8080/#/findings>
{% endhint %}

## Finding Overview Table

This view provides the general information about the Finding, such as the title of the finding, its ID, the system/task/subtask that it links to, the analyst that created it, the current status of the finding, its classification, the type of finding, and the risk associated to it.

| Title | ID   | System | Task | Subtask | Analyst | Status | Classification | Type       | Risk |
| ----- | ---- | ------ | ---- | ------- | ------- | ------ | -------------- | ---------- | ---- |
| foo   | 78x7 | bar    | t1   | sub2    | k.a     | open   | information    | Encryption | VL   |

## Reports

This view provides the user the ability to download and generate reports with the data stored in the database. By clicking on any one of the three buttons `ERB Report` `Risk Matrix` or `Final Report` there is an associated report that is downloaded to the machine.

To test generating a report try out the following command

```bash
node FRIC-team8-SBSG/frontend/src/reports/<report>/<report_file.js> && open <report_name>
```

Where&#x20;

* `report` is the folder of the type of report you want to create, such as erb-report, risk-matrix, final-report.
* `report_file.js` is the code itself that will generate the report, such as erb\_report.js, final*report.js, riskmatrix*.js.
* *\`*&#x72;eport\_nam&#x65;*\`* is the report file name with its appropriate extension, docx, xlsx, pptx

### Methods

| Name               | Parameter | Type   | Description                                                                    |
| ------------------ | --------- | ------ | ------------------------------------------------------------------------------ |
| onGenerateReport() | report    | Object | Generates the appropriate report based on the required type triggered by user. |
| findingHelp()      |           |        | Triggers an alert to be displayed, showing the user what the page is about.    |
| onSearchToggle()   |           |        | Loads search results when a user types a value in the search box.              |
