Skip to content

An open source, self-hosted, real-time port monitoring and discovery tool.

docs: add theme-aware screenshot to README

Mostafa-Wahied2bf61dc06745
diff --git a/README.md b/README.md
index 44923fb..2612120 100644
--- a/README.md
+++ b/README.md
@@ -15,7 +15,10 @@
</p>
<p align="center">
- <img src="https://i.postimg.cc/vHcsH0TY/main-light.png" alt="portracker Dashboard Screenshot" style="width: 95%;" />
+ <picture>
+ <source media="(prefers-color-scheme: dark)" srcset="screenshots/main-light-v1.3.png" />
+ <img src="screenshots/main-dark-v1.3.png" alt="portracker Dashboard Screenshot" width="95%" />
+ </picture>
</p>
By auto-discovering services on your systems, portracker provides a live, accurate map of your network. It helps eliminate manual tracking in spreadsheets and prevents deployment failures caused by port conflicts.
diff --git a/frontend/src/components/ui/WhatsNewModal.jsx b/frontend/src/components/ui/WhatsNewModal.jsx
index 4d0b513..7df7ca4 100644
--- a/frontend/src/components/ui/WhatsNewModal.jsx
+++ b/frontend/src/components/ui/WhatsNewModal.jsx
@@ -1,10 +1,36 @@
import React from 'react';
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription } from './dialog';
import { Button } from './button';
-import { Globe, Database, Sparkles, Shield, Layout, Server, HardDrive, Wrench, Package, Bandage } from 'lucide-react';
+import { Globe, Database, Sparkles, Shield, Layout, Server, HardDrive, Wrench, Package, Bandage, Star } from 'lucide-react';
import { getFeatureIcon } from '../../lib/feature-icons';
import { cn } from '@/lib/utils';
+const HighlightsSection = ({ highlights }) => {
+ if (!highlights?.length) return null;
+
+ return (
+ <div className="mb-6 p-4 rounded-lg bg-gradient-to-br from-indigo-50 to-purple-50 dark:from-indigo-900/20 dark:to-purple-900/20 border border-indigo-200 dark:border-indigo-800">
+ <div className="flex items-center gap-2 mb-3">
+ <Star className="h-5 w-5 text-amber-500 fill-amber-500" />
+ <h3 className="font-bold text-slate-900 dark:text-slate-100">Highlights</h3>
+ </div>
+ <ul className="space-y-2">
+ {highlights.map((item, index) => (
+ <li key={index} className="flex items-start gap-2">
+ <span className="text-indigo-600 dark:text-indigo-400 mt-0.5">•</span>
+ <div>
+ <span className="font-semibold text-slate-900 dark:text-slate-100">{item.title}</span>
+ {item.description && (
+ <span className="text-slate-600 dark:text-slate-400"> — {item.description}</span>
+ )}
+ </div>
+ </li>
+ ))}
+ </ul>
+ </div>
+ );
+};
+
const FeatureCard = ({ feature, index }) => {
const IconComponent = getFeatureIcon(feature);
const hasDetails = feature.details?.length > 0;
@@ -96,6 +122,8 @@ const VersionSection = ({ versionData, index }) => (
</h2>
</div>
+ <HighlightsSection highlights={versionData.changes.highlights} />
+
<div className="space-y-4">
{versionData.changes.security?.length > 0 && (
<CategorySection
@@ -174,6 +202,8 @@ const VersionSection = ({ versionData, index }) => (
const FlatChangesDisplay = ({ changes }) => (
<>
+ <HighlightsSection highlights={changes.highlights} />
+
{changes.security?.length > 0 && (
<CategorySection
title="Security & Access Control"
diff --git a/frontend/src/lib/whats-new.js b/frontend/src/lib/whats-new.js
index 3c91936..4d78c26 100644
--- a/frontend/src/lib/whats-new.js
+++ b/frontend/src/lib/whats-new.js
@@ -18,7 +18,7 @@ function createFeatureBuckets() {
return CATEGORY_KEYS.reduce((acc, key) => {
acc[key] = [];
return acc;
- }, {});
+ }, { highlights: [] });
}
const CATEGORY_MAPPINGS = [
@@ -48,12 +48,35 @@ export function parseChangelog(changelogContent) {
const lines = changelogContent.split('\n');
let currentVersion = null;
let currentSection = null;
+ let inHighlights = false;
let features = createFeatureBuckets();
let lastFeature = null;
for (let i = 0; i < lines.length; i++) {
const line = lines[i].trim();
+ if (line === '**Highlights**') {
+ inHighlights = true;
+ continue;
+ }
+
+ if (inHighlights && (line === '---' || line.startsWith('###'))) {
+ inHighlights = false;
+ if (line.startsWith('###')) {
+ currentSection = mapSectionToCategory(line.replace(/^###\s+/, ''));
+ }
+ continue;
+ }
+
+ if (inHighlights && line.startsWith('- ')) {
+ const highlightText = line.replace(/^-\s*/, '');
+ const parts = highlightText.split(/\s*[—–-]\s*/);
+ const title = parts[0]?.trim() || highlightText;
+ const description = parts[1]?.trim() || '';
+ features.highlights.push({ title, description });
+ continue;
+ }
+
const versionMatch = line.match(/^##\s*\[([^\]]+)\]/);
if (versionMatch) {
const hasContent = Object.values(features).some(arr => arr.length > 0);
diff --git a/screenshots/auth.png b/screenshots/auth.png
new file mode 100644
index 0000000..11f3932
Binary files /dev/null and b/screenshots/auth.png differ
diff --git a/screenshots/main-dark-v1.3.png b/screenshots/main-dark-v1.3.png
new file mode 100644
index 0000000..904f3bd
Binary files /dev/null and b/screenshots/main-dark-v1.3.png differ
diff --git a/screenshots/main-light-v1.3.png b/screenshots/main-light-v1.3.png
new file mode 100644
index 0000000..44d76c3
Binary files /dev/null and b/screenshots/main-light-v1.3.png differ