diff --git a/.github/ISSUE_TEMPLATE/new_field.md b/.github/ISSUE_TEMPLATE/new_field.md new file mode 100644 index 00000000..6b483e5e --- /dev/null +++ b/.github/ISSUE_TEMPLATE/new_field.md @@ -0,0 +1,88 @@ +--- +name: New Component +about: Use when creating or updating a react component. +title: "" +type: Task +labels: triage +--- + + + + + + + +## ๐Ÿ“ Details + + +## :link: Links + + + + +## ๐Ÿšง Tasks + + + +- [ ] ๐Ÿ†• 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 + +--- + + + + + +### ๐Ÿงช 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 + + + +- Functional Requirements + + +- Non-Functional Requirements + + +--- + + diff --git a/src/components/CardDataSet.tsx b/src/components/CardDataSet.tsx index 928bb48a..81a6f3cc 100644 --- a/src/components/CardDataSet.tsx +++ b/src/components/CardDataSet.tsx @@ -67,7 +67,7 @@ export type DataCardProps = { * @category Component * @since 0.12.0 */ -const DataCard = ({ +const CardDataSet = ({ hasRowDelete = false, isDraggable = false, isExpandable = false, @@ -212,4 +212,4 @@ const DataCard = ({ ); } -export default DataCard; +export default CardDataSet; diff --git a/src/layout/Ticket.tsx b/src/layout/Ticket.tsx index a1b81c44..7100c9d8 100644 --- a/src/layout/Ticket.tsx +++ b/src/layout/Ticket.tsx @@ -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"; /** @@ -325,13 +325,13 @@ const Ticket = (): React.JSX.Element => { { ! new_ticket && <> - -