From c2c3926135081f569ba04e35fc22658ad240d65d Mon Sep 17 00:00:00 2001 From: claude Date: Sun, 4 Oct 2026 17:01:35 +0200 Subject: [PATCH] Rename the color tags "Filters" tab and column to "Pattern" (FR: "Motif de recherche") Only the color highlight rules are renamed: the Settings tab, the codes column of the log list and the docs. Real filters (source, severity, range, search) keep their name. The internal "filters" tab id is kept so the saved settings tab still opens. Co-Authored-By: Claude Opus 5.5 (1M context) --- README.fr.md | 4 ++-- README.md | 4 ++-- docs/presets.fr.md | 2 +- docs/presets.md | 2 +- web/app.js | 10 +++++----- web/index.html | 6 +++--- web/style.css | 2 +- 7 files changed, 15 insertions(+), 15 deletions(-) diff --git a/README.fr.md b/README.fr.md index 8d32912..ee09bdd 100644 --- a/README.fr.md +++ b/README.fr.md @@ -336,7 +336,7 @@ couleur, est mémorisé par navigateur. et format d'affichage de l'heure de réception : `DD/MM/YYYY HH:MM:SS` (par défaut, l'affichage français habituel), avec millisecondes, `YYYY-MM-DD`, horloge sur 12 heures, ISO 8601 ou epoch Unix. Le fuseau horaire s'applique à toutes les dates affichées. -- **Filtres** : tags de couleur. Chaque tag a un mot-clé, une couleur de fond (le texte passe +- **Motif de recherche** : tags de couleur. Chaque tag a un mot-clé, une couleur de fond (le texte passe automatiquement en noir ou en blanc pour rester lisible) et des options : mot entier, respect de la casse, expression régulière, actif. Les tags sont stockés sur le serveur dans `/data/tags.json` (volume `logstream-data`) : ils sont donc partagés par tous les navigateurs. @@ -355,7 +355,7 @@ couleur, est mémorisé par navigateur. les préréglages s'en servent pour colorer le code de statut ou la méthode, pas le texte autour. Chaque tag reçoit un code à deux chiffres (`01`, `02`…) attribué par le serveur : il reste attaché au tag jusqu'à sa suppression (les tags créés par les versions précédentes en reçoivent - un aussi). La colonne *Filtres* de la liste affiche, en badges gris, les codes des tags actifs + un aussi). La colonne *Motif de recherche* de la liste affiche, en badges gris, les codes des tags actifs trouvés dans chaque message ; elle a la place pour 3, au-delà elle en affiche 2 et `+N`, et l'infobulle les liste tous. - **Interface** diff --git a/README.md b/README.md index 46082e9..85c8f92 100644 --- a/README.md +++ b/README.md @@ -307,7 +307,7 @@ remembered per browser. format of the reception time: `DD/MM/YYYY HH:MM:SS` (default, the usual French display), with milliseconds, `YYYY-MM-DD`, 12-hour clock, ISO 8601 or Unix epoch. The time zone applies to every date shown. -- **Filters**: color tags. Each tag has a keyword, a background color (the text automatically +- **Pattern**: color tags. Each tag has a keyword, a background color (the text automatically switches to black or white to stay readable) and options: whole word, match case, regular expression, active. Tags are stored on the server in `/data/tags.json` (`logstream-data` volume), so they are shared by every browser. Default tags (pastel): @@ -324,7 +324,7 @@ remembered per browser. or the method, not the text around it. Each tag gets a two-digit code (`01`, `02`…) assigned by the server: it stays with the tag until the tag is deleted (codes are also given to tags created by earlier versions). The - *Filters* column of the log list shows, as grey badges, the codes of the active tags found in + *Pattern* column of the log list shows, as grey badges, the codes of the active tags found in each message; it has room for 3, beyond that it shows 2 and `+N`, and the tooltip lists them all. - **Interface** diff --git a/docs/presets.fr.md b/docs/presets.fr.md index bf4e8b4..71eb8fd 100644 --- a/docs/presets.fr.md +++ b/docs/presets.fr.md @@ -2,7 +2,7 @@ # Préréglages de tags de couleur -Dans **Paramètres › Filtres**, le menu **+ Préréglage…** ajoute d'un clic un groupe de tags de +Dans **Paramètres › Motif de recherche**, le menu **+ Préréglage…** ajoute d'un clic un groupe de tags de couleur tout faits. Les tags ajoutés sont des tags ordinaires : vous pouvez changer leur couleur, leur motif ou leurs options, ou les supprimer. Un tag dont le motif est déjà dans la liste n'est pas ajouté en double. diff --git a/docs/presets.md b/docs/presets.md index 305b713..c986af6 100644 --- a/docs/presets.md +++ b/docs/presets.md @@ -2,7 +2,7 @@ # Color tag presets -In **Settings › Filters**, the **+ Preset…** menu adds a group of ready-made color tags in one +In **Settings › Pattern**, the **+ Preset…** menu adds a group of ready-made color tags in one click. Added tags are ordinary tags: you can change their color, pattern or options, or delete them. A tag whose pattern is already in the list is not added twice. diff --git a/web/app.js b/web/app.js index 319af1f..2cde758 100644 --- a/web/app.js +++ b/web/app.js @@ -142,7 +142,7 @@ const I18N = { exportNote: (n) => `Up to ${n} logs matching the current filters, newest first. Dates use the time zone chosen in Settings.`, exporting: 'Exporting…', exportDone: (f) => `Downloaded: ${f}`, exportError: 'Export failed: ', err_export_pipes: 'Export does not support LogsQL pipes (| …): keep only the filter part', - tabLocale: 'Localization', tabFilters: 'Filters', tabInterface: 'Interface', tabData: 'Data', + tabLocale: 'Localization', tabFilters: 'Pattern', tabInterface: 'Interface', tabData: 'Data', themeTitle: 'Theme', themeSystem: 'System', themeLight: 'Light', themeDark: 'Dark', themeHelp: 'System follows the light/dark preference of your computer or phone.', logDisplay: 'Log display', fontSize: 'Font size', @@ -196,7 +196,7 @@ const I18N = { hCappedTitle: 'The chosen division would exceed 300 intervals over this range: it has been enlarged.', hUnzoom: '× Back to stream', unitDay: 'd', toTop: 'Back to top', - colRcv: 'Received', colMt: 'Message time', colSev: 'Severity', colHost: 'Host', colApp: 'App', colCodes: 'Filters', colMsg: 'Message', + colRcv: 'Received', colMt: 'Message time', colSev: 'Severity', colHost: 'Host', colApp: 'App', colCodes: 'Pattern', colMsg: 'Message', codesTitle: 'Codes of the color tags found in the message', tagCodeTitle: 'Code shown on the log lines this tag matches', colGrip: 'Drag to resize, double-click for the automatic width', @@ -342,7 +342,7 @@ const I18N = { exportNote: (n) => `Jusqu'à ${n} logs correspondant aux filtres, du plus récent au plus ancien. Dates dans le fuseau choisi dans Paramètres.`, exporting: 'Export…', exportDone: (f) => `Téléchargé : ${f}`, exportError: 'Échec de l\'export : ', err_export_pipes: 'L\'export ne gère pas les pipes LogsQL (| …) : gardez seulement la partie filtre', - tabLocale: 'Localisation', tabFilters: 'Filtres', tabInterface: 'Interface', tabData: 'Données', + tabLocale: 'Localisation', tabFilters: 'Motif de recherche', tabInterface: 'Interface', tabData: 'Données', themeTitle: 'Thème', themeSystem: 'Système', themeLight: 'Clair', themeDark: 'Sombre', themeHelp: 'Système suit la préférence clair/sombre de votre ordinateur ou de votre téléphone.', logDisplay: 'Affichage des logs', fontSize: 'Taille du texte', @@ -396,7 +396,7 @@ const I18N = { hCappedTitle: 'La division choisie dépasserait 300 intervalles sur cette plage : elle a été élargie.', hUnzoom: '× Revenir au flux', unitDay: 'j', toTop: 'Revenir en haut', - colRcv: 'Réception', colMt: 'Heure message', colSev: 'Sévérité', colHost: 'Hôte', colApp: 'App', colCodes: 'Filtres', colMsg: 'Message', + colRcv: 'Réception', colMt: 'Heure message', colSev: 'Sévérité', colHost: 'Hôte', colApp: 'App', colCodes: 'Motif de recherche', colMsg: 'Message', codesTitle: 'Codes des tags de couleur trouvés dans le message', tagCodeTitle: 'Code affiché sur les lignes de log où ce tag est trouvé', colGrip: 'Glisser pour redimensionner, double-clic pour la largeur automatique', @@ -2476,7 +2476,7 @@ function renderTagList() { filterTagList(); } -// Settings > Filters: shows only the tags whose keyword, label or code contains the filter. +// Settings > Pattern: shows only the tags whose keyword, label or code contains the filter. function filterTagList() { const q = $('#tagFilter').value.trim().toLowerCase(); let shown = 0; diff --git a/web/index.html b/web/index.html index fe51649..d196650 100644 --- a/web/index.html +++ b/web/index.html @@ -143,7 +143,7 @@ Severity Host App - Filters + Pattern Message
@@ -179,7 +179,7 @@