From 475f52acb3905bcb46c62c6d510dc0117358f096 Mon Sep 17 00:00:00 2001 From: ZeeTech374 Date: Mon, 19 Oct 2026 14:17:16 +0100 Subject: [PATCH] Fix docs links, add 404 page, robots.txt, and PWA icons Closes #1046, #1043, #1044, #1045 - Fix relative links in docs/FAQ.md pointing to CONTRIBUTING.md and TROUBLESHOOTING.md to work from docs/ directory (issue #1046) - Add custom app/not-found.tsx page with styled 404 message matching error boundary pattern (issue #1043) - Add app/robots.ts to guide crawlers and reference sitemap, preventing indexing of /app/* wallet pages (issue #1044) - Add 192x192 and 512x512 PNG icons to public/manifest.json with proper maskable purpose for PWA installability (issue #1045) --- app/not-found.tsx | 30 ++++++++++++++++++++++++++++++ app/robots.ts | 16 ++++++++++++++++ docs/FAQ.md | 10 +++++----- public/manifest.json | 14 +++++++++++++- 4 files changed, 64 insertions(+), 6 deletions(-) create mode 100644 app/not-found.tsx create mode 100644 app/robots.ts diff --git a/app/not-found.tsx b/app/not-found.tsx new file mode 100644 index 0000000..977606a --- /dev/null +++ b/app/not-found.tsx @@ -0,0 +1,30 @@ +'use client' + +import Link from 'next/link' +import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card' +import { Button } from '@/components/ui/button' + +export default function NotFound() { + return ( +
+ + + Page not found + + The page you're looking for doesn't exist or has been moved. + + + +
+ + +
+
+
+
+ ) +} diff --git a/app/robots.ts b/app/robots.ts new file mode 100644 index 0000000..ab3f41b --- /dev/null +++ b/app/robots.ts @@ -0,0 +1,16 @@ +import { MetadataRoute } from 'next' + +export default function robots(): MetadataRoute.Robots { + const baseUrl = 'https://flowstar.app' + + return { + rules: [ + { + userAgent: '*', + allow: '/', + disallow: '/app/', + }, + ], + sitemap: `${baseUrl}/sitemap.xml`, + } +} diff --git a/docs/FAQ.md b/docs/FAQ.md index 82eb267..e395d36 100644 --- a/docs/FAQ.md +++ b/docs/FAQ.md @@ -306,8 +306,8 @@ or leave a comment on the relevant issue._ This document collects the most common questions that new contributors ask when working on FlowStar. If you can’t find the answer here, feel free to open an issue or check the -[CONTRIBUTING guide](CONTRIBUTING.md) and the -[Troubleshooting guide](docs/TROUBLESHOOTING.md). +[CONTRIBUTING guide](../CONTRIBUTING.md) and the +[Troubleshooting guide](./TROUBLESHOOTING.md). --- @@ -321,7 +321,7 @@ If you can’t find the answer here, feel free to open an issue or check the | **When to use** | During UI development or when you don’t want to spend testnet tokens. | When you want to validate real contract calls or submit PRs that touch the blockchain. | > **Tip:** The `mock-mode` flag is toggled in the app’s settings. See the -> [CONTRIBUTING guide](CONTRIBUTING.md) for details on enabling it. +> [CONTRIBUTING guide](../CONTRIBUTING.md) for details on enabling it. --- @@ -347,7 +347,7 @@ If you can’t find the answer here, feel free to open an issue or check the If you’re unsure whether an issue is ready for you, open a comment or contact the maintainers. See the -[CONTRIBUTING guide](CONTRIBUTING.md) for more details on the workflow. +[CONTRIBUTING guide](../CONTRIBUTING.md) for more details on the workflow. --- @@ -360,7 +360,7 @@ contact the maintainers. See the `npm run mock`. 4. **Consult the Troubleshooting guide** – Many common network errors are documented in the - [Troubleshooting guide](docs/TROUBLESHOOTING.md). + [Troubleshooting guide](./TROUBLESHOOTING.md). --- diff --git a/public/manifest.json b/public/manifest.json index a1cb1c1..7b62f68 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -26,7 +26,19 @@ "src": "/apple-icon.png", "sizes": "180x180", "type": "image/png", - "purpose": "any maskable" + "purpose": "any" + }, + { + "src": "/icon-192x192.png", + "sizes": "192x192", + "type": "image/png", + "purpose": "maskable" + }, + { + "src": "/icon-512x512.png", + "sizes": "512x512", + "type": "image/png", + "purpose": "maskable" } ], "categories": ["finance", "productivity"]