Skip to content

Eduardo Lopes - Conclusão do desafio#181

Open
elopes-sv wants to merge 1 commit intoApiki:masterfrom
elopes-sv:eduardo-lopes
Open

Eduardo Lopes - Conclusão do desafio#181
elopes-sv wants to merge 1 commit intoApiki:masterfrom
elopes-sv:eduardo-lopes

Conversation

@elopes-sv
Copy link
Copy Markdown

Resumo

Implementa a solução headless do blog Apiki Dev com React e Next.js, consumindo a API pública do WordPress.

O que foi feito

  • Home com listagem inicial da categoria 518
  • Paginação com botão Carregar mais...
  • Página interna dinâmica por slug
  • SEO com metadata por página
  • Estrutura de componentes reutilizáveis
  • Camada lib para API, normalização e SEO
  • CSS organizado por base, página e componente

Estrutura

  • src/app: rotas e layout global
  • src/components: blocos visuais reutilizáveis
  • src/lib: integração com API e normalização
  • src/styles: estilos globais, por página e por componente

Como validar

  • npm install
  • npm run dev
  • abrir um post pela listagem
  • testar Carregar mais...

Observações

  • A aplicação consome a API pública da Apiki
  • O conteúdo da interna é renderizado a partir do HTML retornado pelo WordPress

@elopes-sv elopes-sv changed the title feat(blog): implementa home e interna consumindo a API da Apiki Eduardo Lopes - Conclusão do desafio Apr 6, 2026
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0a426b5ff3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/lib/formatPost.js
const whitespace = /\s+/g;

function stripHtml(value = '') {
return value.replace(textOnly, ' ').replace(whitespace, ' ').trim();
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Decode HTML entities in post text before rendering

stripHtml currently strips tags but does not decode HTML entities, while WordPress title.rendered and excerpt.rendered often include encoded characters (for example ’ and &). In those cases the UI will display literal entity codes in cards/metadata instead of readable text, which is a user-visible content regression whenever encoded punctuation appears. Decode entities after tag stripping before assigning title and excerpt.

Useful? React with 👍 / 👎.

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.

1 participant