Skip to content

feat(seo): add meta tags, robots.txt, sitemap.xml; remove .bak files - #1

Merged
abrusco merged 8 commits into
mainfrom
copilot/research-task-abrusco-m4logvisualizer
Aug 4, 2026
Merged

feat(seo): add meta tags, robots.txt, sitemap.xml; remove .bak files#1
abrusco merged 8 commits into
mainfrom
copilot/research-task-abrusco-m4logvisualizer

Conversation

Copilot AI commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Resumo

Correções de SEO para melhorar a visibilidade da página https://abrusco.github.io/M4LogVisualizer/ no Google.

Mudanças

docs/index.html

  • <title> atualizado com keywords: "M4 Log Visualizer – Visualizador de Logs Meta4, PeopleNet e Cegid"
  • <meta name="description"> descritiva adicionada
  • <meta name="keywords"> com termos relevantes (meta4, peoplenet, cegid, sql oracle, ldbinsp0…)
  • <meta name="author"> e <meta name="theme-color">
  • <link rel="canonical"> apontando para a URL canônica do site
  • Tags Open Graph (og:type, og:url, og:title, og:description)
  • Twitter Card (twitter:card, twitter:title, twitter:description)
  • JSON-LD WebApplication para structured data / rich results

docs/robots.txt (novo)

  • Permite todos os crawlers e aponta para o sitemap

docs/sitemap.xml (novo)

  • URL canônica do site com prioridade 1.0

Removidos

  • docs/index.html.bak
  • docs/styles.css.bak

@abrusco

abrusco commented Aug 4, 2026

Copy link
Copy Markdown
Owner

@copilot resolve the merge conflicts in this pull request

@abrusco

abrusco commented Aug 4, 2026

Copy link
Copy Markdown
Owner

@copilot resolve the merge conflicts in this pull request

…SEO improvements

Co-authored-by: abrusco <8458577+abrusco@users.noreply.github.com>

Copilot AI commented Aug 4, 2026

Copy link
Copy Markdown
Contributor Author

@copilot resolve the merge conflicts in this pull request

Conflitos resolvidos em d3d179c. O PR está com mergeable_state: clean e pronto para merge.

Copilot AI commented Aug 4, 2026

Copy link
Copy Markdown
Contributor Author

@copilot resolve the merge conflicts in this pull request

The merge conflicts were already resolved in d3d179c. The branch is up to date and the working tree is clean — no further action needed.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Not ready to approve

highlightSql() output is used via innerHTML but does not safely escape non-token content, enabling HTML injection/XSS when rendering log-derived text.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.

Pull request overview

This PR improves the GitHub Pages (docs/) version of M4 Log Visualizer by adding SEO-focused metadata/assets and refining the standalone UI/behavior, while also removing legacy Node/public artifacts from the repository.

Changes:

  • Added SEO meta tags (incl. canonical, Open Graph/Twitter, JSON-LD) to docs/index.html and bumped the app version.
  • Added docs/robots.txt and docs/sitemap.xml for crawler guidance.
  • Updated the standalone app (docs/app.js, docs/styles.css) and removed legacy runtime/assets (server.js, public/*, package.json).
File summaries
File Description
server.js Removed legacy Node HTTP server implementation.
public/styles.css Removed legacy non-docs/ stylesheet.
public/index.html Removed legacy non-docs/ HTML entrypoint.
public/app.js Removed legacy non-docs/ app logic.
package.json Removed legacy Node package entrypoint/scripts.
docs/version.json Version bump to 0.9.5.
docs/styles.css Updated styling/layout to new “topbar + split” UI and added new component styles.
docs/sitemap.xml Added sitemap entry for the canonical GitHub Pages URL.
docs/robots.txt Added robots policy and sitemap reference.
docs/index.html Added SEO metadata + structured data; updated UI markup to match new layout.
docs/app.js Updated ignore-object UX, parsing tweaks, search debounce, and UI bindings.
Review details

Suppressed comments (1)

docs/app.js:186

  • Tooltip string is missing Portuguese accents ("ja"/"esta" and "a lista").
    elements.ignoreObjectLink.textContent = isIgnored ? 'ignorado' : 'ignorar';
    elements.ignoreObjectLink.title = isIgnored ? 'Este objeto ja esta na lista de ignorados' : 'Adicionar objeto atual a lista de ignorados';
  • Files reviewed: 6/6 changed files
  • Comments generated: 4
  • Review effort level: Lite

We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.

Comment thread docs/app.js
Comment on lines 114 to +116
function addIgnoredObject(name) {
const options = arguments[1] || {};
const deferSelectionMs = Number(options.deferSelectionMs) || 0;
Comment thread docs/app.js
Comment on lines +169 to +173
elements.ignoreObjectLink.textContent = 'ja ignorado';
elements.ignoreObjectLink.title = 'Este objeto ja esta na lista de ignorados';
} else {
elements.ignoreObjectLink.textContent = 'ignorado';
elements.ignoreObjectLink.title = 'Objeto adicionado a lista de ignorados';
Comment thread docs/index.html
Comment on lines +8 to +14
<!-- SEO -->
<title>M4 Log Visualizer – Visualizador de Logs Meta4, PeopleNet e Cegid</title>
<meta name="description" content="Visualizador web standalone de logs Meta4, PeopleNet e Cegid. Analise queries Oracle, objetos Meta4 e resultados de execução diretamente no navegador, sem instalação.">
<meta name="keywords" content="meta4, peoplenet, cegid, visualizador de logs, análise de logs meta4, sql oracle, m4 log visualizer, ldbinsp0, log analyzer">
<meta name="author" content="abrusco">
<meta name="theme-color" content="#2c3e50">
<meta property="og:title" content="M4 Log Visualizer">
<meta property="og:description" content="Visualizador de logs Meta4, PeopleNet e Cegid para análise rápida de SQLs Oracle e objetos Meta4.">
<meta property="og:url" content="https://abrusco.github.io/M4LogVisualizer/">
<meta name="theme-color" content="#1a1a2e">
<link rel="canonical" href="https://abrusco.github.io/M4LogVisualizer/">
Comment thread docs/app.js
Comment on lines 828 to 829
return String(sql || '').replace(tokenPattern, (token) => {
const escaped = escapeHtml(token);
Co-authored-by: abrusco <8458577+abrusco@users.noreply.github.com>
@abrusco
abrusco marked this pull request as ready for review August 4, 2026 10:45
@abrusco
abrusco merged commit c92c387 into main Aug 4, 2026
1 check passed
Copilot stopped work on behalf of abrusco due to an error August 4, 2026 10:47
Copilot stopped work on behalf of abrusco due to an error August 4, 2026 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants