Skip to content

Add random tagged filtering for AI quotes#3

Open
jrddunbr wants to merge 1 commit into
mainfrom
codex/add-ai-quotes-rotation-page-fycdd7
Open

Add random tagged filtering for AI quotes#3
jrddunbr wants to merge 1 commit into
mainfrom
codex/add-ai-quotes-rotation-page-fycdd7

Conversation

@jrddunbr

Copy link
Copy Markdown
Owner

Motivation

  • Rotate the AI quotes in randomized order instead of always stepping through the Markdown source so the page feels fresh on each pass.
  • Provide a simple tagging system so visitors can filter the AI quotes by themes like code, rpg, and human interaction.

Description

  • Add tag UI and per-quote tag chips to ai-quotes.html, and document the Tags: Markdown convention in the page copy.
  • Parse Tags: lines from ai-quotes.md, attach tags to each parsed quote, and build a shuffled quote queue that reshuffles between passes while trying to avoid immediate repeats.
  • Make per-quote tag chips and global tag-filter buttons clickable so selecting a tag rebuilds the queue and shows only matching quotes.
  • Add suggested tags to all 21 existing quotes in ai-quotes.md and add CSS styles for filter buttons and quote tag chips in style.css.

Testing

  • Ran git diff --check and it produced no syntax/whitespace errors. (success)
  • Extracted the page script and ran node --check /tmp/ai-quotes.js to validate the client-side JS syntax. (success)
  • Served the site locally with python3 -m http.server 8000 and used a Python assertion script plus curl to verify the page contains the random-order rotator markup, the tag filter area, per-quote tag chips, the shuffle/matching functions, and that ai-quotes.md contains 21 Tags: entries. (success)
  • Attempted npx playwright --version for screenshot/browser testing, but npm registry access returned 403 Forbidden in this environment so browser tooling could not be installed. (warning)

Codex Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant