Progmasoft Git

progmaweb

The site and account service of Progmasoft: a Next.js frontend and an ASP.NET Core API.

Clonegit clone https://git.progmasoft.com/progmaweb

Point product.progmasoft.com/robots.txt at its sitemap; drop unused text

Review of this pull request:

- robots.txt on product.progmasoft.com named the apex sitemap; it names
  https://product.progmasoft.com/sitemap.xml now, as viget names its own.
- details and facts.links were translated in four languages but shown
  nowhere; they are gone.
- Stylelint (Codacy): one header comment block in catalog.css, no type
  qualifier on [aria-current], range notation in its media queries.

Codacy's "object injection" findings are left: every index is a key of a
typed, closed list (ProductSlug, categories, statuses), never input.
Playwright on a production build again: 56 page, language and width
combinations without overflow, console errors or CSP violations.

Claude-Session: https://claude.ai/code/session_01Ji7xZMYjc4zankoc7hGBE1
Commit
800d828080426f781d374920c5623883844f80ca
Author
Leitwolf11 ·
Parents
02b9cd891bdc

Files · Download .tar.gz

Changes

 apps/web/app/products/catalog.css | 12 +++++++-----
 apps/web/app/robots.ts            |  6 ++++--
 apps/web/lib/catalog-messages.ts  | 10 ----------
 3 files changed, 11 insertions(+), 17 deletions(-)

diff --git a/apps/web/app/products/catalog.css b/apps/web/app/products/catalog.css
index 1e61ad4..007faf9 100644
--- a/apps/web/app/products/catalog.css
+++ b/apps/web/app/products/catalog.css
@@ -1,5 +1,7 @@
-/* SPDX-FileCopyrightText: 2026 Progmasoft <support@progmasoft.com> */
-/* SPDX-License-Identifier: AGPL-3.0-or-later WITH AdditionRef-Progmasoft-Patent-Grant-1.1 */
+/*
+ * SPDX-FileCopyrightText: 2026 Progmasoft <support@progmasoft.com>
+ * SPDX-License-Identifier: AGPL-3.0-or-later WITH AdditionRef-Progmasoft-Patent-Grant-1.1
+ */
 
 /* The catalog of product.progmasoft.com: views, numbers, search, tables */
 
@@ -25,7 +27,7 @@
   border-color: var(--line-strong);
 }
 
-.pm-views a[aria-current="page"] {
+.pm-views [aria-current="page"] {
   border-color: var(--blue-600);
   background: var(--blue-100);
   color: var(--blue-700);
@@ -246,7 +248,7 @@
   overflow-wrap: anywhere;
 }
 
-@media (max-width: 960px) {
+@media (width <= 960px) {
   .pm-filter {
     grid-template-columns: repeat(3, minmax(0, 1fr));
   }
@@ -257,7 +259,7 @@
   }
 }
 
-@media (max-width: 560px) {
+@media (width <= 560px) {
   .pm-filter {
     grid-template-columns: 1fr;
   }
diff --git a/apps/web/app/robots.ts b/apps/web/app/robots.ts
index ddf41bc..53c043e 100644
--- a/apps/web/app/robots.ts
+++ b/apps/web/app/robots.ts
@@ -18,9 +18,11 @@ export default async function robots(): Promise<MetadataRoute.Robots> {
   ) {
     return { rules: [{ userAgent: "*", disallow: "/" }] };
   }
+  // Each host with pages of its own names its own sitemap.
   const sitemap =
-    canonicalHost === "viget.progmasoft.com"
-      ? "https://viget.progmasoft.com/sitemap.xml"
+    canonicalHost === "viget.progmasoft.com" ||
+    canonicalHost === "product.progmasoft.com"
+      ? `https://${canonicalHost}/sitemap.xml`
       : "https://progmasoft.com/sitemap.xml";
   return {
     rules: [
diff --git a/apps/web/lib/catalog-messages.ts b/apps/web/lib/catalog-messages.ts
index 8d33f93..7e24d65 100644
--- a/apps/web/lib/catalog-messages.ts
+++ b/apps/web/lib/catalog-messages.ts
@@ -19,7 +19,6 @@ export interface CatalogMessages {
   eyebrow: string;
   title: string;
   description: string;
-  details: string;
   site: string;
   source: string;
   issues: string;
@@ -68,7 +67,6 @@ export interface CatalogMessages {
     license: string;
     release: string;
     started: string;
-    links: string;
     none: string;
   };
   statuses: { released: string; development: string };
@@ -93,7 +91,6 @@ export const catalogMessages: Record<Locale, CatalogMessages> = {
     title: "Products",
     description:
       "Every project of Progmasoft, with what it is, the language it is written in, where it stands and where it lives. Search them, or browse by category, by language or by release.",
-    details: "Details",
     site: "Visit the site",
     source: "Source code",
     issues: "Issues",
@@ -139,7 +136,6 @@ export const catalogMessages: Record<Locale, CatalogMessages> = {
       license: "License",
       release: "Latest release",
       started: "Started",
-      links: "Links",
       none: "None yet",
     },
     statuses: { released: "Released", development: "In development" },
@@ -225,7 +221,6 @@ export const catalogMessages: Record<Locale, CatalogMessages> = {
     title: "Produkte",
     description:
       "Alle Projekte von Progmasoft: was sie sind, in welcher Sprache sie geschrieben sind, wie weit sie sind und wo sie zu Hause sind. Durchsuchen Sie sie oder blättern Sie nach Kategorie, Sprache oder Release.",
-    details: "Details",
     site: "Zur Website",
     source: "Quellcode",
     issues: "Issues",
@@ -271,7 +266,6 @@ export const catalogMessages: Record<Locale, CatalogMessages> = {
       license: "Lizenz",
       release: "Neuestes Release",
       started: "Begonnen",
-      links: "Links",
       none: "Noch keines",
     },
     statuses: { released: "Veröffentlicht", development: "In Entwicklung" },
@@ -358,7 +352,6 @@ export const catalogMessages: Record<Locale, CatalogMessages> = {
     title: "Продукты",
     description:
       "Все проекты Progmasoft: что они собой представляют, на каком языке написаны, в каком они состоянии и где находятся. Ищите их или просматривайте по категории, языку или выпуску.",
-    details: "Подробнее",
     site: "Перейти на сайт",
     source: "Исходный код",
     issues: "Задачи",
@@ -404,7 +397,6 @@ export const catalogMessages: Record<Locale, CatalogMessages> = {
       license: "Лицензия",
       release: "Последний выпуск",
       started: "Начат",
-      links: "Ссылки",
       none: "Пока нет",
     },
     statuses: { released: "Выпущен", development: "В разработке" },
@@ -490,7 +482,6 @@ export const catalogMessages: Record<Locale, CatalogMessages> = {
     title: "מוצרים",
     description:
       "כל הפרויקטים של Progmasoft: מה הם, באיזו שפה הם כתובים, באיזה שלב הם נמצאים והיכן הם נמצאים. חפשו אותם או עיינו בהם לפי קטגוריה, שפה או גרסה.",
-    details: "פרטים",
     site: "לאתר",
     source: "קוד מקור",
     issues: "דיווחי באגים",
@@ -536,7 +527,6 @@ export const catalogMessages: Record<Locale, CatalogMessages> = {
       license: "רישיון",
       release: "הגרסה האחרונה",
       started: "התחיל",
-      links: "קישורים",
       none: "עדיין אין",
     },
     statuses: { released: "שוחרר", development: "בפיתוח" },