Skip to content

Commit

Permalink
feat: add bug icon and issue form template
Browse files Browse the repository at this point in the history
  • Loading branch information
CJ13th committed Jan 4, 2024
1 parent fd9b2d1 commit cbbeb44
Show file tree
Hide file tree
Showing 4 changed files with 122 additions and 41 deletions.
38 changes: 0 additions & 38 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

84 changes: 84 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
name: 'Bug report'
title: "[BUG] - YOUR_ISSUE_TITLE_HERE_REPLACE_ME"
description: Create a report to help us improve
labels: [bug]
body:
- type: markdown
attributes:
value: |
Thank you for reporting an issue :pray:.
Before submitting a new bug/issue, please check the links below to see if there is an existing issue, solution or ongoing discussion:
- Kudos [Issue's tab](https://github.com/kudos-ink/portal/pulls?q=is%3Apr+is%3Aopen+sort%3Aupdated-desc)
- Kudoss [closed issues tab](https://github.com/kudos-ink/portal/issues?q=is%3Aissue+sort%3Aupdated-desc+is%3Aclosed)
- Kudos [Discussions tab](https://github.com/kudos-ink/portal/discussions)
- type: textarea
id: description
attributes:
label: Describe the bug
description: Provide a clear and concise description of the challenge you are running into.
validations:
required: true
- type: input
id: link
attributes:
label: The page where this bug occurs.
placeholder: |
e.g. https://kudos-hub.vercel.app/
validations:
required: true
- type: textarea
id: steps
attributes:
label: Steps to Reproduce the Bug or Issue
description: Describe the steps we have to take to reproduce the behavior.
placeholder: |
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
validations:
required: true
- type: textarea
id: expected
attributes:
label: Expected behavior
description: Provide a clear and concise description of what you expected to happen.
placeholder: |
As a user, I expected ___ behavior but I am seeing ___
validations:
required: true
- type: textarea
id: screenshots_or_videos
attributes:
label: Screenshots or Videos
description: |
If applicable, add screenshots or a video to help explain your problem.
For more information on the supported file image/file types and the file size limits, please refer
to the following link: https://docs.github.com/en/github/writing-on-github/working-with-advanced-formatting/attaching-files
placeholder: |
You can drag your video or image files inside of this editor ↓
- type: input
id: os
attributes:
label: Operating System Version
description: What operating system are you using?
placeholder: |
- OS: [e.g. macOS, Windows, Linux]
validations:
required: true
- type: dropdown
id: browser_type
attributes:
label: Browser
description: Select the browsers where the issue can be reproduced (that you know of).
options:
- "Chrome"
- "Firefox"
- "Safari"
- "Edge"
- "Opera"
- "Other (add additonal context)"
validations:
required: true
23 changes: 23 additions & 0 deletions assets/icons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,3 +177,26 @@ export const GithubIcon: React.FC<IconSvgProps> = ({
</svg>
);
};

export const BugIcon: React.FC<IconSvgProps> = ({
size = 24,
width,
height,
...props
}) => {
return (
<svg
height={size || height}
viewBox="0 0 24 24"
width={size || width}
{...props}
>
<path
d="M16.895,6.519l2.813-2.812l-1.414-1.414l-2.846,2.846c-0.233-0.166-0.473-0.321-0.723-0.454 c-1.723-0.91-3.726-0.911-5.45,0c-0.25,0.132-0.488,0.287-0.722,0.453L5.707,2.293L4.293,3.707l2.813,2.812 C6.53,7.242,6.08,8.079,5.756,9H2v2h2.307C4.242,11.495,4.2,11.997,4.2,12.5c0,0.507,0.042,1.013,0.107,1.511H2v2h2.753 c0.013,0.039,0.021,0.08,0.034,0.118c0.188,0.555,0.421,1.093,0.695,1.6c0.044,0.081,0.095,0.155,0.141,0.234l-2.33,2.33 l1.414,1.414l2.11-2.111c0.235,0.254,0.478,0.498,0.736,0.716c0.418,0.354,0.867,0.657,1.332,0.903 c0.479,0.253,0.982,0.449,1.496,0.58C10.911,21.931,11.455,22,12,22s1.089-0.069,1.618-0.204c0.514-0.131,1.017-0.327,1.496-0.58 c0.465-0.246,0.914-0.55,1.333-0.904c0.258-0.218,0.5-0.462,0.734-0.716l2.111,2.111l1.414-1.414l-2.33-2.33 c0.047-0.08,0.098-0.155,0.142-0.236c0.273-0.505,0.507-1.043,0.694-1.599c0.013-0.039,0.021-0.079,0.034-0.118H22v-2h-2.308 c0.065-0.499,0.107-1.004,0.107-1.511c0-0.503-0.042-1.005-0.106-1.5H22V9h-3.756C17.92,8.079,17.47,7.242,16.895,6.519z M8.681,7.748c0.445-0.558,0.96-0.993,1.528-1.294c1.141-0.603,2.442-0.602,3.581,0c0.569,0.301,1.084,0.736,1.53,1.295 c0.299,0.373,0.54,0.8,0.753,1.251H7.927C8.141,8.549,8.381,8.121,8.681,7.748z M17.8,12.5c0,0.522-0.042,1.044-0.126,1.553 c-0.079,0.49-0.199,0.973-0.355,1.436c-0.151,0.449-0.34,0.882-0.559,1.288c-0.217,0.399-0.463,0.772-0.733,1.11 c-0.267,0.333-0.56,0.636-0.869,0.898c-0.31,0.261-0.639,0.484-0.979,0.664s-0.695,0.317-1.057,0.41 c-0.04,0.01-0.082,0.014-0.122,0.023V14h-2v5.881c-0.04-0.009-0.082-0.013-0.122-0.023c-0.361-0.093-0.717-0.23-1.057-0.41 s-0.669-0.403-0.978-0.664c-0.311-0.263-0.604-0.565-0.871-0.899c-0.27-0.337-0.516-0.71-0.731-1.108 c-0.22-0.407-0.408-0.84-0.56-1.289c-0.156-0.463-0.276-0.946-0.356-1.438C6.242,13.544,6.2,13.022,6.2,12.5 c0-0.505,0.041-1.009,0.119-1.5h11.361C17.759,11.491,17.8,11.995,17.8,12.5z"
fill="currentColor"
/>
</svg>
);
};

export default BugIcon;
18 changes: 15 additions & 3 deletions components/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ import { Link } from "@nextui-org/link";
import { Input } from "@nextui-org/input";
import { SITE_CONFIG } from "@/data/config";
import NextLink from "next/link";
import { GithubIcon, HeartFilledIcon, Logo, SearchIcon } from "@/assets/icons";
import BugIcon, {
GithubIcon,
HeartFilledIcon,
Logo,
SearchIcon,
} from "@/assets/icons";

export const Navbar = () => {
const searchInput = (
Expand Down Expand Up @@ -41,7 +46,7 @@ export const Navbar = () => {
<NavbarBrand as="li" className="gap-3 max-w-fit">
<NextLink className="flex justify-start items-center gap-1" href="/">
<Logo />
<p className="font-bold text-inherit">ACME</p>
<p className="font-bold text-inherit">Kudos</p>
</NextLink>
</NavbarBrand>
</NavbarContent>
Expand All @@ -54,8 +59,15 @@ export const Navbar = () => {
<Link isExternal href={SITE_CONFIG.links.github} aria-label="Github">
<GithubIcon className="text-default-500" />
</Link>
<Link
isExternal
href={SITE_CONFIG.links.github}
aria-label="Bug report"
>
<BugIcon className="text-danger" />
</Link>
</NavbarItem>
<NavbarItem className="hidden lg:flex">{searchInput}</NavbarItem>
{/* <NavbarItem className="hidden lg:flex">{searchInput}</NavbarItem> */}
<NavbarItem className="hidden md:flex">
<Button
isExternal
Expand Down

0 comments on commit cbbeb44

Please sign in to comment.