Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#FEAT-015: add release notes and contributing to navbar #75

Merged
merged 3 commits into from
Nov 13, 2024
Merged
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
12 changes: 11 additions & 1 deletion src/components/Layouts/Header/Sidebar/_index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Drawer, DrawerContent, DrawerTrigger } from "@/components/ui/drawer";
import { Menu } from "lucide-react";
import { ArrowUpRight, Menu } from "lucide-react";
import Link from "next/link";
import Logo from "../Logo";
import ThemeToggle from "../../ThemeToggle";
Expand Down Expand Up @@ -112,6 +112,16 @@ export default function Sidebar() {
>
<p className="font-bold text-lg">Contributing</p>
</Link>
<Link
className="py-4"
onClick={() => handleNavClick()}
target="_blank"
href={"/release"}
>
<p className="font-bold text-lg flex">
Release Notes <ArrowUpRight className="mt-0.5" size={12} />
</p>
</Link>
</aside>
<div className="flex items-center gap-x-5">
<ThemeToggle />
Expand Down
120 changes: 112 additions & 8 deletions src/components/Layouts/Header/__snapshots__/header.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -222,16 +222,68 @@ exports[`Render Header > Should match snapshot 1`] = `
<div
class="lg:flex items-center gap-x-5 hidden"
>
<a
class="text-lg flex"
href="https://github.com/Pet3r1512/DevIniter/issues/new?labels=enhancement&template=feature-request---.md"
target="_blank"
>
Contributing
<svg
class="lucide lucide-arrow-up-right"
fill="none"
height="14"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
width="14"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M7 7h10v10"
/>
<path
d="M7 17 17 7"
/>
</svg>
</a>
<a
class="text-lg flex"
href="/release"
target="_blank"
>
Release Notes
<svg
class="lucide lucide-arrow-up-right"
fill="none"
height="14"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
width="14"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M7 7h10v10"
/>
<path
d="M7 17 17 7"
/>
</svg>
</a>
<div
class="border-l-2 border-black-main dark:border-white h-[25px]"
data-testid="vt"
/>
<button
class="!size-8 rounded-full flex items-center justify-center bg-gray-500 dark:bg-gray-200 transition-all duration-150 ease-linear"
data-testid="theme-togger"
>
🌙
</button>
<div
class="border-l-2 border-black-main dark:border-white h-[25px]"
data-testid="vt"
/>
<a
aria-label="Repo Github"
class="rounded-full size-8 flex items-center justify-center bg-gray-light opacity-65 lg:hover:opacity-100 transition-all duration-150 ease-linear"
Expand Down Expand Up @@ -490,16 +542,68 @@ exports[`Render Header > Should match snapshot 1`] = `
<div
class="lg:flex items-center gap-x-5 hidden"
>
<a
class="text-lg flex"
href="https://github.com/Pet3r1512/DevIniter/issues/new?labels=enhancement&template=feature-request---.md"
target="_blank"
>
Contributing
<svg
class="lucide lucide-arrow-up-right"
fill="none"
height="14"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
width="14"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M7 7h10v10"
/>
<path
d="M7 17 17 7"
/>
</svg>
</a>
<a
class="text-lg flex"
href="/release"
target="_blank"
>
Release Notes
<svg
class="lucide lucide-arrow-up-right"
fill="none"
height="14"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
width="14"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M7 7h10v10"
/>
<path
d="M7 17 17 7"
/>
</svg>
</a>
<div
class="border-l-2 border-black-main dark:border-white h-[25px]"
data-testid="vt"
/>
<button
class="!size-8 rounded-full flex items-center justify-center bg-gray-500 dark:bg-gray-200 transition-all duration-150 ease-linear"
data-testid="theme-togger"
>
🌙
</button>
<div
class="border-l-2 border-black-main dark:border-white h-[25px]"
data-testid="vt"
/>
<a
aria-label="Repo Github"
class="rounded-full size-8 flex items-center justify-center bg-gray-light opacity-65 lg:hover:opacity-100 transition-all duration-150 ease-linear"
Expand Down
16 changes: 15 additions & 1 deletion src/components/Layouts/Header/_index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import SearchBar from "./SearchBar/_index";
import ThemeToggle from "../ThemeToggle";
import Sidebar from "./Sidebar/_index";
import { Navbar } from "./Navbar";
import Link from "next/link";
import { ArrowUpRight } from "lucide-react";

export default function Header() {
return (
Expand All @@ -18,8 +20,20 @@ export default function Header() {
<SearchBar />
</div>
<div className="lg:flex items-center gap-x-5 hidden">
<ThemeToggle />
<Link
href="https://github.com/Pet3r1512/DevIniter/issues/new?labels=enhancement&template=feature-request---.md"
target="_blank"
className="text-lg flex"
>
Contributing
<ArrowUpRight size={14} />
</Link>
<Link href="/release" target="_blank" className="text-lg flex">
Release Notes
<ArrowUpRight size={14} />
</Link>
<VerticalLine />
<ThemeToggle />
<Github size={20} />
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions src/pages/_meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
export default {
docs: "Documentation",
"free-for-devs": "Free For Devs",
release: "Release Notes",
};
26 changes: 26 additions & 0 deletions src/pages/release.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Versions

## v1.2.2
- Fixed bugs in CLI implementation

## v1.2.1
- Enhanced CLI template installation process

## v1.2.0
- Refreshed default UI design for all templates
- Various bug fixes

## v1.1.0 - First Stable Release

### Features
- Interactive CLI for template scaffolding
- Two supported starter templates:

**Next.js Template**
- Next.js v15
- React v19
- Vitest integration

**Vite Template**
- React v19
- Vitest integration