Skip to content

feat: add recently used tools workflow - #204

Draft
chicogong wants to merge 6 commits into
masterfrom
agent/recent-tools
Draft

feat: add recently used tools workflow#204
chicogong wants to merge 6 commits into
masterfrom
agent/recent-tools

Conversation

@chicogong

@chicogong chicogong commented Aug 6, 2026

Copy link
Copy Markdown
Owner

What changed

  • record tool visits from the shared tool-chrome.js runtime, including direct visits from search engines or shared URLs
  • normalize clean tool URLs to registered .html paths
  • keep the 20 most recent tools in localStorage under html_tools_recents_v1, with deduplication and corruption-safe parsing
  • skip generated category landing pages
  • add a homepage-only recent-tools controller that restores the existing 最近 category, sorts cards by last visit, integrates with search and browser history, and provides a dedicated empty state
  • precache the homepage controller so the recent-tools experience remains available offline
  • add regression coverage for ordering, deduplication, storage corruption, clean URLs, category-page exclusion, and homepage wiring

Why

The recent category was already emitted into the homepage metadata, but it was filtered out during category rendering and no visit history was recorded. This meant users arriving directly from Google or shared links had no way to return to recently used tools.

User impact

Users can now open any tool, return to the homepage, and find it under 最近. Repeated visits move a tool to the front without creating duplicates. Search remains available inside the recent set.

Validation

  • npm run build
  • HTMLHint
  • Stylelint
  • ESLint
  • npm test
  • tools sync check
  • Netlify deploy preview
  • Vercel deployment

Implementation notes

  • no framework or runtime dependency added
  • no bulk edits to individual tool pages
  • storage failures and malformed values fail safely
  • the homepage controller is loaded only when the shared runtime detects the tools grid

@vercel

vercel Bot commented Aug 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
html-tools Ready Ready Preview Aug 6, 2026 1:38pm

@netlify

netlify Bot commented Aug 6, 2026

Copy link
Copy Markdown

Deploy Preview for localtools ready!

Name Link
🔨 Latest commit 4be502f
🔍 Latest deploy log https://app.netlify.com/projects/localtools/deploys/6a748e1d71b52c0008e3f3cd
😎 Deploy Preview https://deploy-preview-204--localtools.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

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