Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 88 additions & 0 deletions .github/ISSUE_TEMPLATE/new_field.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
---
name: New Component
about: Use when creating or updating a react component.
title: ""
type: Task
labels: triage
---

<!-- Add an intro -->


<!-- describe a use case if not covered in intro -->


## 📝 Details
<!--

Describe in detail the following:

- New component and its functionality
- How it will work, be laid out, new ui features etc
- anything else relevant

-->

## :link: Links
<!--
- Add relevant links here in list format
- if there is none, notate with _Nil_
-->



## 🚧 Tasks

<!-- Don't remove tasks strike them out. use `~~` before and after the item. i.e. `- ~~[ ] Model Created~~` note: don't include the list dash-->

- [ ] 🆕 Add the Component

- [ ] 🛠️ Ensure the is a `@see` link to the Demo site of the component added to "code api docs"

- [ ] 🔄 Mock API Data added (both the `GET` and `OPTIONS` request object)

- [ ] User Documentation added/updated

---

<!-- Add additional tasks here and as a check box list -->



### 🧪 Tests

Coverage must be >=90%.

- Tests
- [ ] Component.
- [ ] Each feature the component has.
- [ ] Error free.


## ✅ Requirements

A Requirement is a **must have**. In addition will also **need** be tested.

- [ ] Must **not** produce console errors

<!--

When detailing requirements the following must be taken into account:

- what the user should be able to do

- what the user should not be able to do

- what should occur when a user performs an action

-->

- Functional Requirements


- Non-Functional Requirements


---

<!-- Add additional requirement here and as a check box list -->
4 changes: 2 additions & 2 deletions src/components/CardDataSet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export type DataCardProps = {
* @category Component
* @since 0.12.0
*/
const DataCard = ({
const CardDataSet = ({
hasRowDelete = false,
isDraggable = false,
isExpandable = false,
Expand Down Expand Up @@ -212,4 +212,4 @@ const DataCard = ({
);
}

export default DataCard;
export default CardDataSet;
6 changes: 3 additions & 3 deletions src/layout/Ticket.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import { Fields } from "../components/DisplayFields";
import urlBuilder from "../hooks/urlBuilder";
import UserContext from "../hooks/UserContext";
import URLSanitize from "../functions/URLSanitize";
import DataCard from "../components/CardDataSet";
import CardDataSet from "../components/CardDataSet";


/**
Expand Down Expand Up @@ -325,13 +325,13 @@ const Ticket = (): React.JSX.Element => {
{ ! new_ticket &&
<>

<DataCard
<CardDataSet
hasRowDelete = {true}
isExpandable = {true}
url = { URLSanitize(ticket_data?._urls?.ticket_dependencies) }
/>

<DataCard
<CardDataSet
hasRowDelete = {true}
isExpandable = {true}
url = { URLSanitize(ticket_data?._urls?.linked_models) }
Expand Down
Loading