Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

chore: add SEO setup, asset refresh, and UI polish

Andrejb97922d19f8b
diff --git a/README.md b/README.md
index 4fcc1fe8c..19def3e22 100644
--- a/README.md
+++ b/README.md
@@ -19,7 +19,7 @@
<span> | </span>
<a href="https://kaneo.app">Website</a>
<span> | </span>
- <a href="https://cloud.kaneo.app">Cloud (free)</a>
+ <a href="https://cloud.kaneo.app">Cloud</a>
<span> | </span>
<a href="https://discord.gg/rU4tSyhXXU">Discord</a>
</h3>
@@ -42,13 +42,13 @@ We believe the best tools are **invisible**. They should amplify your team's nat
- **Clean interface** that focuses on your work, not the tool
- **Self-hosted** so your data stays yours
- **Actually fast** because we care about performance
-- **Open source** and free forever
+- **Open source** with a permissive MIT license
Learn more about Kaneo's features and capabilities in our [documentation](https://kaneo.app/docs/core).
## Sponsors
-Kaneo is open source and free forever. If you find it useful, consider [sponsoring the project](https://github.com/sponsors/andrejsshell) to help support ongoing development.
+Kaneo is open source. If you find it useful, consider [sponsoring the project](https://github.com/sponsors/andrejsshell) to help support ongoing development.
## Getting Started
diff --git a/apps/docs/docs.json b/apps/docs/docs.json
index cdf1b34a9..0cf3454e0 100644
--- a/apps/docs/docs.json
+++ b/apps/docs/docs.json
@@ -157,7 +157,15 @@
}
},
"seo": {
- "indexing": "all"
+ "indexing": "all",
+ "metatags": {
+ "og:site_name": "Kaneo Docs",
+ "og:type": "website",
+ "og:image": "https://kaneo.app/images/hero.png",
+ "twitter:card": "summary_large_image",
+ "twitter:site": "@usekaneo",
+ "twitter:image": "https://kaneo.app/images/hero.png"
+ }
},
"integrations": {
"plausible": {
diff --git a/apps/docs/favicon.svg b/apps/docs/favicon.svg
index d414f40d0..1e066e300 100644
--- a/apps/docs/favicon.svg
+++ b/apps/docs/favicon.svg
@@ -1,5 +1,13 @@
-<svg width="104" height="104" viewBox="0 0 104 104" fill="none" xmlns="http://www.w3.org/2000/svg">
-<path d="M14.6855 95.7243C10.5716 96.5957 8.00007 95.2652 8 93.6608L8 62.026C8 61.8601 8.00321 61.6857 8.00879 61.5065C8.00391 61.3845 8.00098 61.2485 8.00098 61.0973L8.00098 29.944C8.01499 28.6519 8.25865 27.7436 11.2588 27.1081L25.3145 24.276C29.4283 23.4047 31.9997 24.7352 32 26.3395L32 57.9743C32 58.1404 31.9978 58.3153 31.9922 58.4948C31.997 58.6166 31.999 58.7522 31.999 58.903L31.999 90.0573C31.9849 91.349 31.7407 92.2568 28.7412 92.8923L14.6855 95.7243Z" fill="#F5F5F5"/>
-<path d="M46.6855 87.7238C42.5715 88.5952 40 87.2647 40 85.6603L40 54.0265C40 53.8607 40.0032 53.6861 40.0088 53.507C40.0039 53.3849 40.001 53.2491 40.001 53.0978L40.001 21.9445C40.015 20.6526 40.2589 19.745 43.2588 19.1095L57.3145 16.2765C61.4285 15.4051 64 16.7366 64 18.341L64 49.9748C64 50.141 63.9978 50.3157 63.9922 50.4953C63.997 50.617 63.999 50.7528 63.999 50.9035L63.999 82.0568C63.9849 83.3485 63.7408 84.2563 60.7412 84.8918L46.6855 87.7238Z" fill="#F5F5F5"/>
-<path d="M89.3145 8.27571C93.4284 7.40429 95.9999 8.73481 96 10.3392V21.1839L78.0576 44.5013L95.999 66.7796V74.057C95.9849 75.3486 95.7407 76.2565 92.7412 76.8919L78.6855 79.7249C74.572 80.5963 72.0005 79.2647 72 77.6605V46.0257C72 45.8599 72.0032 45.6853 72.0088 45.5062C72.0039 45.3843 72.001 45.2479 72.001 45.097V13.9427C72.0151 12.6511 72.2594 11.7432 75.2588 11.1077L89.3145 8.27571Z" fill="#F5F5F5"/>
+<svg width="136" height="136" viewBox="0 0 136 136" fill="none" xmlns="http://www.w3.org/2000/svg">
+<g clip-path="url(#clip0_137_2)">
+<rect width="136" height="136" fill="#141414"/>
+<path fill-rule="evenodd" clip-rule="evenodd" d="M62.6855 103.724C58.5716 104.595 56.0001 103.265 56 101.66L56 70.0264C56 69.8606 56.0032 69.686 56.0088 69.5069C56.0039 69.3848 56.001 69.249 56.001 69.0977L56.001 37.9444C56.015 36.6524 56.2588 35.7449 59.2588 35.1094L73.3145 32.2764C77.4285 31.405 80 32.7365 80 34.3408L80 65.9746C80 66.1409 79.9978 66.3155 79.9922 66.4951C79.997 66.6169 79.999 66.7526 79.999 66.9033L79.999 98.0567C79.9849 99.3483 79.7408 100.256 76.7412 100.892L62.6855 103.724Z" fill="#F5F5F5"/>
+<path fill-rule="evenodd" clip-rule="evenodd" d="M30.6855 111.723C26.5716 112.594 24.0001 111.264 24 109.659L24 78.0244C24 77.8588 24.0032 77.6848 24.0088 77.5059C24.0039 77.3838 24.001 77.248 24.001 77.0967L24.001 45.9434C24.015 44.6514 24.2588 43.7439 27.2588 43.1084L41.3145 40.2754C45.4285 39.404 48 40.7355 48 42.3399L48 73.9737C48 74.1399 47.9978 74.3146 47.9922 74.4942C47.997 74.6159 47.999 74.7517 47.999 74.9024L47.999 106.056C47.9849 107.347 47.7408 108.255 44.7412 108.891L30.6855 111.723Z" fill="#F5F5F5"/>
+<path fill-rule="evenodd" clip-rule="evenodd" d="M105.314 24.2754C109.428 23.404 112 24.7355 112 26.3398V37.1845L94.0576 60.5019L111.999 82.7802V90.0576C111.985 91.3492 111.741 92.2571 108.741 92.8925L94.6855 95.7246C90.5717 96.596 88.0002 95.2654 88 93.6611V62.0254C88 61.8598 88.0032 61.6856 88.0088 61.5068C88.0039 61.3848 88.001 61.2488 88.001 61.0976V29.9433C88.0151 28.6516 88.2591 27.7438 91.2588 27.1084L105.314 24.2754Z" fill="#F5F5F5"/>
+</g>
+<defs>
+<clipPath id="clip0_137_2">
+<rect width="136" height="136" fill="white"/>
+</clipPath>
+</defs>
</svg>
diff --git a/apps/site/app/layout.tsx b/apps/site/app/layout.tsx
index 02eb0f3cc..2ae66129d 100644
--- a/apps/site/app/layout.tsx
+++ b/apps/site/app/layout.tsx
@@ -1,7 +1,14 @@
-import type { Metadata } from "next";
+import type { Metadata, Viewport } from "next";
import Script from "next/script";
import "./globals.css";
+export const viewport: Viewport = {
+ themeColor: [
+ { media: "(prefers-color-scheme: light)", color: "#ffffff" },
+ { media: "(prefers-color-scheme: dark)", color: "#141414" },
+ ],
+};
+
export const metadata: Metadata = {
metadataBase: new URL("https://kaneo.app"),
title: {
@@ -33,8 +40,6 @@ export const metadata: Metadata = {
images: [
{
url: "/images/hero.png",
- width: 1200,
- height: 630,
alt: "Kaneo",
},
],
@@ -53,10 +58,44 @@ export const metadata: Metadata = {
icons: {
icon: "/favicon.svg",
shortcut: "/favicon.svg",
- apple: "/favicon.svg",
+ apple: "/apple-touch-icon.png",
},
+ manifest: "/manifest.webmanifest",
+ category: "productivity",
+ creator: "Kaneo",
+ publisher: "Kaneo",
};
+const jsonLd = [
+ {
+ "@context": "https://schema.org",
+ "@type": "Organization",
+ name: "Kaneo",
+ url: "https://kaneo.app",
+ logo: "https://kaneo.app/logo-512.png",
+ sameAs: ["https://github.com/usekaneo/kaneo"],
+ },
+ {
+ "@context": "https://schema.org",
+ "@type": "WebSite",
+ name: "Kaneo",
+ url: "https://kaneo.app",
+ inLanguage: "en",
+ },
+ {
+ "@context": "https://schema.org",
+ "@type": "SoftwareApplication",
+ name: "Kaneo",
+ applicationCategory: "BusinessApplication",
+ operatingSystem: "Web, Linux, macOS, Windows",
+ description:
+ "Open source project management that works for you, not against you. Self-hosted, simple, and powerful.",
+ url: "https://kaneo.app",
+ image: "https://kaneo.app/images/hero.png",
+ license: "https://github.com/usekaneo/kaneo/blob/main/LICENSE",
+ },
+];
+
export default function RootLayout({
children,
}: Readonly<{ children: React.ReactNode }>) {
@@ -86,6 +125,11 @@ export default function RootLayout({
}}
/>
{children}
+ <script
+ type="application/ld+json"
+ // biome-ignore lint/security/noDangerouslySetInnerHtml: JSON-LD structured data must be inlined as a script tag for search engines to parse.
+ dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd) }}
+ />
<Script
defer
data-domain="kaneo.app"
diff --git a/apps/site/app/manifest.ts b/apps/site/app/manifest.ts
new file mode 100644
index 000000000..ccc774f55
--- /dev/null
+++ b/apps/site/app/manifest.ts
@@ -0,0 +1,35 @@
+import type { MetadataRoute } from "next";
+
+export const dynamic = "force-static";
+
+export default function manifest(): MetadataRoute.Manifest {
+ return {
+ name: "Kaneo",
+ short_name: "Kaneo",
+ description:
+ "Open source project management that works for you, not against you. Self-hosted, simple, and powerful.",
+ start_url: "/",
+ display: "standalone",
+ background_color: "#141414",
+ theme_color: "#141414",
+ icons: [
+ {
+ src: "/favicon.svg",
+ sizes: "any",
+ type: "image/svg+xml",
+ },
+ {
+ src: "/logo-192.png",
+ sizes: "192x192",
+ type: "image/png",
+ purpose: "any",
+ },
+ {
+ src: "/logo-512.png",
+ sizes: "512x512",
+ type: "image/png",
+ purpose: "any",
+ },
+ ],
+ };
+}
diff --git a/apps/site/app/robots.ts b/apps/site/app/robots.ts
new file mode 100644
index 000000000..f499ce836
--- /dev/null
+++ b/apps/site/app/robots.ts
@@ -0,0 +1,14 @@
+import type { MetadataRoute } from "next";
+
+export const dynamic = "force-static";
+
+export default function robots(): MetadataRoute.Robots {
+ return {
+ rules: {
+ userAgent: "*",
+ allow: "/",
+ },
+ sitemap: "https://kaneo.app/sitemap.xml",
+ host: "https://kaneo.app",
+ };
+}
diff --git a/apps/site/app/sitemap-pages.xml/route.ts b/apps/site/app/sitemap-pages.xml/route.ts
new file mode 100644
index 000000000..4139c6e0c
--- /dev/null
+++ b/apps/site/app/sitemap-pages.xml/route.ts
@@ -0,0 +1,23 @@
+export const dynamic = "force-static";
+
+const SITE = "https://kaneo.app";
+
+export function GET() {
+ const lastmod = new Date().toISOString();
+ const xml = `<?xml version="1.0" encoding="UTF-8"?>
+<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
+ <url>
+ <loc>${SITE}/</loc>
+ <lastmod>${lastmod}</lastmod>
+ <changefreq>weekly</changefreq>
+ <priority>1.0</priority>
+ </url>
+</urlset>`;
+
+ return new Response(xml, {
+ headers: {
+ "Content-Type": "application/xml; charset=utf-8",
+ "Cache-Control": "public, max-age=3600, s-maxage=3600",
+ },
+ });
+}
diff --git a/apps/site/app/sitemap.xml/route.ts b/apps/site/app/sitemap.xml/route.ts
new file mode 100644
index 000000000..5509d163d
--- /dev/null
+++ b/apps/site/app/sitemap.xml/route.ts
@@ -0,0 +1,18 @@
+export const dynamic = "force-static";
+
+const SITE = "https://kaneo.app";
+
+export function GET() {
+ const xml = `<?xml version="1.0" encoding="UTF-8"?>
+<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
+ <sitemap><loc>${SITE}/sitemap-pages.xml</loc></sitemap>
+ <sitemap><loc>${SITE}/docs/sitemap.xml</loc></sitemap>
+</sitemapindex>`;
+
+ return new Response(xml, {
+ headers: {
+ "Content-Type": "application/xml; charset=utf-8",
+ "Cache-Control": "public, max-age=3600, s-maxage=3600",
+ },
+ });
+}
diff --git a/apps/site/public/apple-touch-icon.png b/apps/site/public/apple-touch-icon.png
new file mode 100644
index 000000000..c69a2c893
Binary files /dev/null and b/apps/site/public/apple-touch-icon.png differ
diff --git a/apps/site/public/favicon.svg b/apps/site/public/favicon.svg
index d414f40d0..1e066e300 100644
--- a/apps/site/public/favicon.svg
+++ b/apps/site/public/favicon.svg
@@ -1,5 +1,13 @@
-<svg width="104" height="104" viewBox="0 0 104 104" fill="none" xmlns="http://www.w3.org/2000/svg">
-<path d="M14.6855 95.7243C10.5716 96.5957 8.00007 95.2652 8 93.6608L8 62.026C8 61.8601 8.00321 61.6857 8.00879 61.5065C8.00391 61.3845 8.00098 61.2485 8.00098 61.0973L8.00098 29.944C8.01499 28.6519 8.25865 27.7436 11.2588 27.1081L25.3145 24.276C29.4283 23.4047 31.9997 24.7352 32 26.3395L32 57.9743C32 58.1404 31.9978 58.3153 31.9922 58.4948C31.997 58.6166 31.999 58.7522 31.999 58.903L31.999 90.0573C31.9849 91.349 31.7407 92.2568 28.7412 92.8923L14.6855 95.7243Z" fill="#F5F5F5"/>
-<path d="M46.6855 87.7238C42.5715 88.5952 40 87.2647 40 85.6603L40 54.0265C40 53.8607 40.0032 53.6861 40.0088 53.507C40.0039 53.3849 40.001 53.2491 40.001 53.0978L40.001 21.9445C40.015 20.6526 40.2589 19.745 43.2588 19.1095L57.3145 16.2765C61.4285 15.4051 64 16.7366 64 18.341L64 49.9748C64 50.141 63.9978 50.3157 63.9922 50.4953C63.997 50.617 63.999 50.7528 63.999 50.9035L63.999 82.0568C63.9849 83.3485 63.7408 84.2563 60.7412 84.8918L46.6855 87.7238Z" fill="#F5F5F5"/>
-<path d="M89.3145 8.27571C93.4284 7.40429 95.9999 8.73481 96 10.3392V21.1839L78.0576 44.5013L95.999 66.7796V74.057C95.9849 75.3486 95.7407 76.2565 92.7412 76.8919L78.6855 79.7249C74.572 80.5963 72.0005 79.2647 72 77.6605V46.0257C72 45.8599 72.0032 45.6853 72.0088 45.5062C72.0039 45.3843 72.001 45.2479 72.001 45.097V13.9427C72.0151 12.6511 72.2594 11.7432 75.2588 11.1077L89.3145 8.27571Z" fill="#F5F5F5"/>
+<svg width="136" height="136" viewBox="0 0 136 136" fill="none" xmlns="http://www.w3.org/2000/svg">
+<g clip-path="url(#clip0_137_2)">
+<rect width="136" height="136" fill="#141414"/>
+<path fill-rule="evenodd" clip-rule="evenodd" d="M62.6855 103.724C58.5716 104.595 56.0001 103.265 56 101.66L56 70.0264C56 69.8606 56.0032 69.686 56.0088 69.5069C56.0039 69.3848 56.001 69.249 56.001 69.0977L56.001 37.9444C56.015 36.6524 56.2588 35.7449 59.2588 35.1094L73.3145 32.2764C77.4285 31.405 80 32.7365 80 34.3408L80 65.9746C80 66.1409 79.9978 66.3155 79.9922 66.4951C79.997 66.6169 79.999 66.7526 79.999 66.9033L79.999 98.0567C79.9849 99.3483 79.7408 100.256 76.7412 100.892L62.6855 103.724Z" fill="#F5F5F5"/>
+<path fill-rule="evenodd" clip-rule="evenodd" d="M30.6855 111.723C26.5716 112.594 24.0001 111.264 24 109.659L24 78.0244C24 77.8588 24.0032 77.6848 24.0088 77.5059C24.0039 77.3838 24.001 77.248 24.001 77.0967L24.001 45.9434C24.015 44.6514 24.2588 43.7439 27.2588 43.1084L41.3145 40.2754C45.4285 39.404 48 40.7355 48 42.3399L48 73.9737C48 74.1399 47.9978 74.3146 47.9922 74.4942C47.997 74.6159 47.999 74.7517 47.999 74.9024L47.999 106.056C47.9849 107.347 47.7408 108.255 44.7412 108.891L30.6855 111.723Z" fill="#F5F5F5"/>
+<path fill-rule="evenodd" clip-rule="evenodd" d="M105.314 24.2754C109.428 23.404 112 24.7355 112 26.3398V37.1845L94.0576 60.5019L111.999 82.7802V90.0576C111.985 91.3492 111.741 92.2571 108.741 92.8925L94.6855 95.7246C90.5717 96.596 88.0002 95.2654 88 93.6611V62.0254C88 61.8598 88.0032 61.6856 88.0088 61.5068C88.0039 61.3848 88.001 61.2488 88.001 61.0976V29.9433C88.0151 28.6516 88.2591 27.7438 91.2588 27.1084L105.314 24.2754Z" fill="#F5F5F5"/>
+</g>
+<defs>
+<clipPath id="clip0_137_2">
+<rect width="136" height="136" fill="white"/>
+</clipPath>
+</defs>
</svg>
diff --git a/apps/site/public/fonts/cal-sans-body.woff2 b/apps/site/public/fonts/cal-sans-body.woff2
index d353c5893..630fb2c91 100644
Binary files a/apps/site/public/fonts/cal-sans-body.woff2 and b/apps/site/public/fonts/cal-sans-body.woff2 differ
diff --git a/apps/site/public/logo-192.png b/apps/site/public/logo-192.png
new file mode 100644
index 000000000..836ca6808
Binary files /dev/null and b/apps/site/public/logo-192.png differ
diff --git a/apps/site/public/logo-512.png b/apps/site/public/logo-512.png
new file mode 100644
index 000000000..94b1be8d0
Binary files /dev/null and b/apps/site/public/logo-512.png differ
diff --git a/apps/web/public/favicon-96x96.png b/apps/web/public/favicon-96x96.png
index 0ba723864..972f73c15 100644
Binary files a/apps/web/public/favicon-96x96.png and b/apps/web/public/favicon-96x96.png differ
diff --git a/apps/web/public/favicon.ico b/apps/web/public/favicon.ico
index c6d6026e0..02021d162 100644
Binary files a/apps/web/public/favicon.ico and b/apps/web/public/favicon.ico differ
diff --git a/apps/web/public/favicon.svg b/apps/web/public/favicon.svg
index d414f40d0..1e066e300 100644
--- a/apps/web/public/favicon.svg
+++ b/apps/web/public/favicon.svg
@@ -1,5 +1,13 @@
-<svg width="104" height="104" viewBox="0 0 104 104" fill="none" xmlns="http://www.w3.org/2000/svg">
-<path d="M14.6855 95.7243C10.5716 96.5957 8.00007 95.2652 8 93.6608L8 62.026C8 61.8601 8.00321 61.6857 8.00879 61.5065C8.00391 61.3845 8.00098 61.2485 8.00098 61.0973L8.00098 29.944C8.01499 28.6519 8.25865 27.7436 11.2588 27.1081L25.3145 24.276C29.4283 23.4047 31.9997 24.7352 32 26.3395L32 57.9743C32 58.1404 31.9978 58.3153 31.9922 58.4948C31.997 58.6166 31.999 58.7522 31.999 58.903L31.999 90.0573C31.9849 91.349 31.7407 92.2568 28.7412 92.8923L14.6855 95.7243Z" fill="#F5F5F5"/>
-<path d="M46.6855 87.7238C42.5715 88.5952 40 87.2647 40 85.6603L40 54.0265C40 53.8607 40.0032 53.6861 40.0088 53.507C40.0039 53.3849 40.001 53.2491 40.001 53.0978L40.001 21.9445C40.015 20.6526 40.2589 19.745 43.2588 19.1095L57.3145 16.2765C61.4285 15.4051 64 16.7366 64 18.341L64 49.9748C64 50.141 63.9978 50.3157 63.9922 50.4953C63.997 50.617 63.999 50.7528 63.999 50.9035L63.999 82.0568C63.9849 83.3485 63.7408 84.2563 60.7412 84.8918L46.6855 87.7238Z" fill="#F5F5F5"/>
-<path d="M89.3145 8.27571C93.4284 7.40429 95.9999 8.73481 96 10.3392V21.1839L78.0576 44.5013L95.999 66.7796V74.057C95.9849 75.3486 95.7407 76.2565 92.7412 76.8919L78.6855 79.7249C74.572 80.5963 72.0005 79.2647 72 77.6605V46.0257C72 45.8599 72.0032 45.6853 72.0088 45.5062C72.0039 45.3843 72.001 45.2479 72.001 45.097V13.9427C72.0151 12.6511 72.2594 11.7432 75.2588 11.1077L89.3145 8.27571Z" fill="#F5F5F5"/>
+<svg width="136" height="136" viewBox="0 0 136 136" fill="none" xmlns="http://www.w3.org/2000/svg">
+<g clip-path="url(#clip0_137_2)">
+<rect width="136" height="136" fill="#141414"/>
+<path fill-rule="evenodd" clip-rule="evenodd" d="M62.6855 103.724C58.5716 104.595 56.0001 103.265 56 101.66L56 70.0264C56 69.8606 56.0032 69.686 56.0088 69.5069C56.0039 69.3848 56.001 69.249 56.001 69.0977L56.001 37.9444C56.015 36.6524 56.2588 35.7449 59.2588 35.1094L73.3145 32.2764C77.4285 31.405 80 32.7365 80 34.3408L80 65.9746C80 66.1409 79.9978 66.3155 79.9922 66.4951C79.997 66.6169 79.999 66.7526 79.999 66.9033L79.999 98.0567C79.9849 99.3483 79.7408 100.256 76.7412 100.892L62.6855 103.724Z" fill="#F5F5F5"/>
+<path fill-rule="evenodd" clip-rule="evenodd" d="M30.6855 111.723C26.5716 112.594 24.0001 111.264 24 109.659L24 78.0244C24 77.8588 24.0032 77.6848 24.0088 77.5059C24.0039 77.3838 24.001 77.248 24.001 77.0967L24.001 45.9434C24.015 44.6514 24.2588 43.7439 27.2588 43.1084L41.3145 40.2754C45.4285 39.404 48 40.7355 48 42.3399L48 73.9737C48 74.1399 47.9978 74.3146 47.9922 74.4942C47.997 74.6159 47.999 74.7517 47.999 74.9024L47.999 106.056C47.9849 107.347 47.7408 108.255 44.7412 108.891L30.6855 111.723Z" fill="#F5F5F5"/>
+<path fill-rule="evenodd" clip-rule="evenodd" d="M105.314 24.2754C109.428 23.404 112 24.7355 112 26.3398V37.1845L94.0576 60.5019L111.999 82.7802V90.0576C111.985 91.3492 111.741 92.2571 108.741 92.8925L94.6855 95.7246C90.5717 96.596 88.0002 95.2654 88 93.6611V62.0254C88 61.8598 88.0032 61.6856 88.0088 61.5068C88.0039 61.3848 88.001 61.2488 88.001 61.0976V29.9433C88.0151 28.6516 88.2591 27.7438 91.2588 27.1084L105.314 24.2754Z" fill="#F5F5F5"/>
+</g>
+<defs>
+<clipPath id="clip0_137_2">
+<rect width="136" height="136" fill="white"/>
+</clipPath>
+</defs>
</svg>
diff --git a/apps/web/src/assets/fonts/CalSansUI[MODE,wght].woff2 b/apps/web/src/assets/fonts/CalSansUI[MODE,wght].woff2
deleted file mode 100644
index d353c5893..000000000
Binary files a/apps/web/src/assets/fonts/CalSansUI[MODE,wght].woff2 and /dev/null differ
diff --git a/apps/web/src/assets/fonts/CalSansUI[wght,GEOM]-s.p.c2e3469d.woff2 b/apps/web/src/assets/fonts/CalSansUI[wght,GEOM]-s.p.c2e3469d.woff2
new file mode 100644
index 000000000..630fb2c91
Binary files /dev/null and b/apps/web/src/assets/fonts/CalSansUI[wght,GEOM]-s.p.c2e3469d.woff2 differ
diff --git a/apps/web/src/components/kanban-board/column/column-footer.tsx b/apps/web/src/components/kanban-board/column/column-footer.tsx
deleted file mode 100644
index f2bc408f0..000000000
--- a/apps/web/src/components/kanban-board/column/column-footer.tsx
+++ /dev/null
@@ -1,34 +0,0 @@
-import { Plus } from "lucide-react";
-import { useState } from "react";
-import { useTranslation } from "react-i18next";
-import CreateTaskModal from "@/components/shared/modals/create-task-modal";
-import type { ProjectWithTasks } from "@/types/project";
-
-type ColumnFooterProps = {
- column: ProjectWithTasks["columns"][number];
-};
-
-export function ColumnFooter({ column }: ColumnFooterProps) {
- const { t } = useTranslation();
- const [isTaskModalOpen, setIsTaskModalOpen] = useState(false);
-
- return (
- <>
- <CreateTaskModal
- open={isTaskModalOpen}
- onClose={() => setIsTaskModalOpen(false)}
- status={column.id}
- />
- <div className="flex items-center justify-between">
- <button
- type="button"
- onClick={() => setIsTaskModalOpen(true)}
- className="w-full text-left px-3 py-2 text-sm text-muted-foreground hover:bg-accent/50 rounded-md flex items-center gap-2 transition-all"
- >
- <Plus className="w-4 h-4 text-muted-foreground" />
- <span>{t("tasks:kanban.addTask")}</span>
- </button>
- </div>
- </>
- );
-}
diff --git a/apps/web/src/components/kanban-board/column/column-header.tsx b/apps/web/src/components/kanban-board/column/column-header.tsx
index 25ef0240e..88f6524cf 100644
--- a/apps/web/src/components/kanban-board/column/column-header.tsx
+++ b/apps/web/src/components/kanban-board/column/column-header.tsx
@@ -1,7 +1,8 @@
import { produce } from "immer";
-import { Archive } from "lucide-react";
+import { Archive, Plus } from "lucide-react";
import { useState } from "react";
import { useTranslation } from "react-i18next";
+import CreateTaskModal from "@/components/shared/modals/create-task-modal";
import { useUpdateTask } from "@/hooks/mutations/task/use-update-task";
import { getColumnIcon } from "@/lib/column";
import { toast } from "@/lib/toast";
@@ -19,6 +20,7 @@ export function ColumnHeader({ column }: ColumnHeaderProps) {
const { mutate: updateTask } = useUpdateTask();
const [isArchiveModalOpen, setIsArchiveModalOpen] = useState(false);
+ const [isTaskModalOpen, setIsTaskModalOpen] = useState(false);
const handleConfirmArchive = () => {
if (!column.isFinal || !project) return;
@@ -58,8 +60,8 @@ export function ColumnHeader({ column }: ColumnHeaderProps) {
</span>
</div>
- {column.isFinal && column.tasks.length > 0 && (
- <>
+ <div className="flex items-center">
+ {column.isFinal && column.tasks.length > 0 && (
<button
type="button"
onClick={() => setIsArchiveModalOpen(true)}
@@ -68,15 +70,30 @@ export function ColumnHeader({ column }: ColumnHeaderProps) {
>
<Archive className="w-4 h-4 text-muted-foreground" />
</button>
+ )}
+ <button
+ type="button"
+ onClick={() => setIsTaskModalOpen(true)}
+ className="flex items-center rounded-md px-2 py-1 text-left text-muted-foreground transition-all hover:bg-accent/50"
+ title={t("tasks:kanban.addTask")}
+ >
+ <Plus className="w-4 h-4 text-muted-foreground" />
+ </button>
+ </div>
+
+ <CreateTaskModal
+ open={isTaskModalOpen}
+ onClose={() => setIsTaskModalOpen(false)}
+ projectId={project?.id}
+ status={column.id}
+ />
- <ArchiveTasksModal
- open={isArchiveModalOpen}
- onClose={() => setIsArchiveModalOpen(false)}
- onConfirm={handleConfirmArchive}
- taskCount={column.tasks.length}
- />
- </>
- )}
+ <ArchiveTasksModal
+ open={isArchiveModalOpen}
+ onClose={() => setIsArchiveModalOpen(false)}
+ onConfirm={handleConfirmArchive}
+ taskCount={column.tasks.length}
+ />
</div>
);
}
diff --git a/apps/web/src/components/kanban-board/column/index.tsx b/apps/web/src/components/kanban-board/column/index.tsx
index 881492d37..354720e6c 100644
--- a/apps/web/src/components/kanban-board/column/index.tsx
+++ b/apps/web/src/components/kanban-board/column/index.tsx
@@ -1,8 +1,4 @@
-import { Plus } from "lucide-react";
import { useState } from "react";
-import { useTranslation } from "react-i18next";
-import CreateTaskModal from "@/components/shared/modals/create-task-modal";
-import useProjectStore from "@/store/project";
import type { ProjectWithTasks } from "@/types/project";
import { ColumnDropzone } from "./column-dropzone";
import { ColumnHeader } from "./column-header";
@@ -12,10 +8,7 @@ type ColumnProps = {
};
function Column({ column }: ColumnProps) {
- const { t } = useTranslation();
- const [isTaskModalOpen, setIsTaskModalOpen] = useState(false);
const [isDropzoneOver, setIsDropzoneOver] = useState(false);
- const { project } = useProjectStore();
return (
<div
@@ -25,26 +18,9 @@ function Column({ column }: ColumnProps) {
: "border-border/70 bg-muted/40 shadow-xs/5 hover:border-border/90 dark:bg-card/90"
}`}
>
- <CreateTaskModal
- open={isTaskModalOpen}
- onClose={() => setIsTaskModalOpen(false)}
- projectId={project?.id}
- status={column.id}
- />
-
<div className="shrink-0 border-b border-border/60 px-3 py-2">
<ColumnHeader column={column} />
</div>
- <div className="border-t border-border/60 p-1.5 transition-opacity">
- <button
- type="button"
- onClick={() => setIsTaskModalOpen(true)}
- className="flex w-full items-center gap-2 rounded-md px-2 pt-1 text-left text-sm text-muted-foreground transition-all hover:bg-accent/50 hover:text-foreground"
- >
- <Plus className="w-4 h-4" />
- <span>{t("tasks:kanban.addTask")}</span>
- </button>
- </div>
<div className="min-h-0 flex-1 overflow-y-auto overflow-x-hidden px-2 py-1 [-webkit-overflow-scrolling:touch]">
<ColumnDropzone column={column} onIsOverChange={setIsDropzoneOver} />
</div>
diff --git a/apps/web/src/components/ui/button.tsx b/apps/web/src/components/ui/button.tsx
index cf0ab394b..58ce6d559 100644
--- a/apps/web/src/components/ui/button.tsx
+++ b/apps/web/src/components/ui/button.tsx
@@ -3,12 +3,12 @@
import { mergeProps } from "@base-ui/react/merge-props";
import { useRender } from "@base-ui/react/use-render";
import { cva, type VariantProps } from "class-variance-authority";
-import * as React from "react";
-
+import type * as React from "react";
+import { Spinner } from "@/components/ui/spinner";
import { cn } from "@/lib/cn";
-const buttonVariants = cva(
- "[&_svg]:-mx-0.5 relative inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-lg border font-medium text-base outline-none transition-shadow before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] pointer-coarse:after:absolute pointer-coarse:after:size-full pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-64 sm:text-sm [&_svg:not([class*='opacity-'])]:opacity-80 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
+export const buttonVariants = cva(
+ "relative inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-lg border font-medium text-base outline-none transition-shadow before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] pointer-coarse:after:absolute pointer-coarse:after:size-full pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-64 data-loading:select-none data-loading:text-transparent sm:text-sm [&_svg:not([class*='opacity-'])]:opacity-80 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:-mx-0.5 [&_svg]:shrink-0",
{
defaultVariants: {
size: "default",
@@ -31,58 +31,66 @@ const buttonVariants = cva(
},
variant: {
default:
- "not-disabled:inset-shadow-[0_1px_--theme(--color-white/16%)] border-primary bg-primary text-primary-foreground shadow-primary/24 shadow-xs [:active,[data-pressed]]:inset-shadow-[0_1px_--theme(--color-black/8%)] [:disabled,:active,[data-pressed]]:shadow-none [:hover,[data-pressed]]:bg-primary/90",
+ "not-disabled:inset-shadow-[0_1px_--theme(--color-white/16%)] border-primary bg-primary text-primary-foreground shadow-primary/24 shadow-xs hover:bg-primary/90 data-pressed:bg-primary/90 *:data-[slot=button-loading-indicator]:text-primary-foreground [:active,[data-pressed]]:inset-shadow-[0_1px_--theme(--color-black/8%)] [:disabled,:active,[data-pressed]]:shadow-none",
destructive:
- "not-disabled:inset-shadow-[0_1px_--theme(--color-white/16%)] border-destructive bg-destructive text-white shadow-destructive/24 shadow-xs [:active,[data-pressed]]:inset-shadow-[0_1px_--theme(--color-black/8%)] [:disabled,:active,[data-pressed]]:shadow-none [:hover,[data-pressed]]:bg-destructive/90",
+ "not-disabled:inset-shadow-[0_1px_--theme(--color-white/16%)] border-destructive bg-destructive text-white shadow-destructive/24 shadow-xs hover:bg-destructive/90 data-pressed:bg-destructive/90 *:data-[slot=button-loading-indicator]:text-white [:active,[data-pressed]]:inset-shadow-[0_1px_--theme(--color-black/8%)] [:disabled,:active,[data-pressed]]:shadow-none",
"destructive-outline":
- "border-input bg-popover not-dark:bg-clip-padding text-destructive-foreground shadow-xs/5 not-disabled:not-active:not-data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] dark:bg-input/32 dark:not-disabled:before:shadow-[0_-1px_--theme(--color-white/2%)] dark:not-disabled:not-active:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/6%)] [:disabled,:active,[data-pressed]]:shadow-none [:hover,[data-pressed]]:border-destructive/32 [:hover,[data-pressed]]:bg-destructive/4",
+ "border-input bg-popover not-dark:bg-clip-padding text-destructive-foreground shadow-xs/5 not-disabled:not-active:not-data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] hover:border-destructive/32 hover:bg-destructive/4 data-pressed:border-destructive/32 data-pressed:bg-destructive/4 *:data-[slot=button-loading-indicator]:text-foreground dark:bg-input/32 dark:not-disabled:before:shadow-[0_-1px_--theme(--color-white/2%)] dark:not-disabled:not-active:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/6%)] [:disabled,:active,[data-pressed]]:shadow-none",
ghost:
- "border-transparent text-foreground data-pressed:bg-accent [:hover,[data-pressed]]:bg-accent",
- link: "border-transparent underline-offset-4 [:hover,[data-pressed]]:underline",
+ "border-transparent text-foreground hover:bg-accent data-pressed:bg-accent *:data-[slot=button-loading-indicator]:text-foreground",
+ link: "border-transparent text-foreground underline-offset-4 hover:underline data-pressed:underline *:data-[slot=button-loading-indicator]:text-foreground",
outline:
- "border-input bg-popover not-dark:bg-clip-padding text-foreground shadow-xs/5 not-disabled:not-active:not-data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] dark:bg-input/32 dark:not-disabled:before:shadow-[0_-1px_--theme(--color-white/2%)] dark:not-disabled:not-active:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/6%)] [:disabled,:active,[data-pressed]]:shadow-none [:hover,[data-pressed]]:bg-accent/50 dark:[:hover,[data-pressed]]:bg-input/64",
+ "border-input bg-popover not-dark:bg-clip-padding text-foreground shadow-xs/5 not-disabled:not-active:not-data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] hover:bg-accent/50 data-pressed:bg-accent/50 *:data-[slot=button-loading-indicator]:text-foreground dark:bg-input/32 dark:data-pressed:bg-input/64 dark:hover:bg-input/64 dark:not-disabled:before:shadow-[0_-1px_--theme(--color-white/2%)] dark:not-disabled:not-active:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/6%)] [:disabled,:active,[data-pressed]]:shadow-none",
secondary:
- "border-transparent bg-secondary text-secondary-foreground [:active,[data-pressed]]:bg-secondary/80 [:hover,[data-pressed]]:bg-secondary/90",
+ "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/90 data-pressed:bg-secondary/90 *:data-[slot=button-loading-indicator]:text-secondary-foreground [:active,[data-pressed]]:bg-secondary/80",
},
},
},
);
-interface ButtonProps extends useRender.ComponentProps<"button"> {
- asChild?: boolean;
+export interface ButtonProps extends useRender.ComponentProps<"button"> {
variant?: VariantProps<typeof buttonVariants>["variant"];
size?: VariantProps<typeof buttonVariants>["size"];
+ loading?: boolean;
}
-function Button({
- asChild = false,
+export function Button({
className,
- children,
variant,
size,
render,
+ children,
+ loading = false,
+ disabled: disabledProp,
...props
-}: ButtonProps) {
+}: ButtonProps): React.ReactElement {
+ const isDisabled: boolean = Boolean(loading || disabledProp);
const typeValue: React.ButtonHTMLAttributes<HTMLButtonElement>["type"] =
render ? undefined : "button";
const defaultProps = {
+ children: (
+ <>
+ {children}
+ {loading && (
+ <Spinner
+ className="pointer-events-none absolute"
+ data-slot="button-loading-indicator"
+ />
+ )}
+ </>
+ ),
className: cn(buttonVariants({ className, size, variant })),
+ "aria-disabled": loading || undefined,
+ "data-loading": loading ? "" : undefined,
"data-slot": "button",
+ disabled: isDisabled,
type: typeValue,
};
- const resolvedRender =
- asChild && React.isValidElement(children) ? children : render;
-
return useRender({
defaultTagName: "button",
- props: mergeProps<"button">(defaultProps, {
- ...props,
- children: asChild ? undefined : children,
- }),
- render: resolvedRender,
+ props: mergeProps<"button">(defaultProps, props),
+ render,
});
}
-
-export { Button, buttonVariants };
diff --git a/apps/web/src/components/ui/spinner.tsx b/apps/web/src/components/ui/spinner.tsx
index 8f20a1716..a3b76df23 100644
--- a/apps/web/src/components/ui/spinner.tsx
+++ b/apps/web/src/components/ui/spinner.tsx
@@ -1,19 +1,17 @@
import { Loader2Icon } from "lucide-react";
+import type React from "react";
import { cn } from "@/lib/cn";
-import { i18n } from "@/lib/i18n";
-function Spinner({
+export function Spinner({
className,
...props
-}: React.ComponentProps<typeof Loader2Icon>) {
+}: React.ComponentProps<typeof Loader2Icon>): React.ReactElement {
return (
<Loader2Icon
- aria-label={i18n.t("common:empty.loading")}
+ aria-label="Loading"
className={cn("animate-spin", className)}
role="status"
{...props}
/>
);
}
-
-export { Spinner };
diff --git a/apps/web/src/index.css b/apps/web/src/index.css
index e89a939c6..351dbee16 100644
--- a/apps/web/src/index.css
+++ b/apps/web/src/index.css
@@ -11,7 +11,7 @@ input:-webkit-autofill:active {
@font-face {
font-family: "Cal Sans UI";
- src: url("./assets/fonts/CalSansUI[MODE,wght].woff2") format("woff2");
+ src: url("./assets/fonts/CalSansUI[wght,GEOM]-s.p.c2e3469d.woff2") format("woff2");
font-display: swap;
font-style: normal;
font-weight: 300 700;
diff --git a/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/index.tsx b/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/index.tsx
index fd051c45f..b10f6dfad 100644
--- a/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/index.tsx
+++ b/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/index.tsx
@@ -7,6 +7,14 @@ import PageTitle from "@/components/page-title";
import CreateProjectModal from "@/components/shared/modals/create-project-modal";
import { Badge } from "@/components/ui/badge";
import { Button } from "@/components/ui/button";
+import {
+ Empty,
+ EmptyContent,
+ EmptyDescription,
+ EmptyHeader,
+ EmptyMedia,
+ EmptyTitle,
+} from "@/components/ui/empty";
import { Progress } from "@/components/ui/progress";
import { Skeleton } from "@/components/ui/skeleton";
import {
@@ -137,25 +145,23 @@ function RouteComponent() {
</Button>
}
>
- <div className="flex items-center justify-center min-h-[60vh]">
- <div className="text-center space-y-6">
- <div className="w-16 h-16 mx-auto rounded-xl bg-muted flex items-center justify-center">
- <LayoutGrid className="w-8 h-8 text-muted-foreground" />
- </div>
- <div className="space-y-2">
- <h3 className="text-xl font-semibold">
- {t("workspace:projects.emptyTitle")}
- </h3>
- <p className="text-muted-foreground">
- {t("workspace:projects.emptyDescription")}
- </p>
- </div>
- <Button onClick={handleCreateProject} className="gap-2 ">
- <Plus className="w-4 h-4" />
+ <Empty className="min-h-[60vh]">
+ <EmptyHeader>
+ <EmptyMedia variant="icon">
+ <LayoutGrid />
+ </EmptyMedia>
+ <EmptyTitle>{t("workspace:projects.emptyTitle")}</EmptyTitle>
+ <EmptyDescription>
+ {t("workspace:projects.emptyDescription")}
+ </EmptyDescription>
+ </EmptyHeader>
+ <EmptyContent>
+ <Button onClick={handleCreateProject}>
+ <Plus />
{t("workspace:projects.createProject")}
</Button>
- </div>
- </div>
+ </EmptyContent>
+ </Empty>
</WorkspaceLayout>
<CreateProjectModal
diff --git a/charts/kaneo/Chart.yaml b/charts/kaneo/Chart.yaml
index 01f1fc7ee..063598a00 100644
--- a/charts/kaneo/Chart.yaml
+++ b/charts/kaneo/Chart.yaml
@@ -27,5 +27,5 @@ annotations:
- Simple & Fast: Minimalist interface with powerful features
- Self-hosted: Full control over your data
- Customizable: Make it yours with extensive customization options
- - Open Source: MIT licensed, free forever
+ - Open Source: MIT licensed
kubeVersion: ">=1.19.0-0"
\ No newline at end of file