Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Mustache-Games/counter-tester-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Counter Tester – Interactive Simple Counter API Debugger for Super Productivity

Super Productivity Plugin Ko-fi Buy Me a Coffee License: MIT StandWithPalestine

Counter Tester is the ultimate real-time debugging console for Super Productivity’s Simple Counters system. Built specifically to verify the new counter API methods added in the now-merged PR #5459 (fixing #5398), it gives developers and power users a floating, touch-friendly playground to exercise every counter method with zero setup.

  • Flat key shortcuts (setCounter, inc/dec)
  • Full entity CRUD (updateSimpleCounter, setSimpleCounterDate, toggleSimpleCounter…)
  • Type-aware everything – ClickCounter uses numbers, StopWatch & RepeatedCountdown use 1h 30m 15s parsing, streak min formatted as time
  • Live history tables, streak badges with weekday count, JSON previews, enabled/on status
  • Draggable & touch-ready console (mouse + Android WebView)
  • Advanced streak editor – per-weekday checkboxes (Sun–Sat) that auto-show when “Track Streaks” is enabled
  • One-click type-tailored test suite (creates → edits → deletes)
  • Copyable logs + Material snacks

Stand With Palestine

Important: This plugin works with the merged changes from PR #5459.
To test it now:

Feature Highlights

  • Floating Draggable Console – Dark-theme, resizable, fully draggable with mouse or finger, persists position/visibility
  • Smart Counter Browser – Dropdown with type badges, today’s value (formatted as time for StopWatch), disabled grayed out
  • Type-Specific Inputs – Numbers for ClickCounter, human-readable 1h 30m 15s parsing for StopWatch/RepeatedCountdown
  • Rich Details – Collapsible JSON, sorted history table (recent first), streak info with formatted time and weekday count (e.g., Streak Min: 2h 15m (Days: 5/7))
  • Partial Edit Modal – Title, streak min (time-aware for StopWatch), duration (time-aware), track streaks toggle + dynamic weekday grid
  • Action Hook Logger – Real-time NgRx SimpleCounter action capture with payload snippets
  • Copyable Logs – 📋 button on every line (primary + fallback)
  • Automated Suite – “Full Type-Tailored Tests” runs a complete create → edit → delete cycle tailored to the selected counter type

Usage

  1. Enable the plugin (Settings → Plugins → Counter Tester → Enable + Debug Mode)
  2. Click the clock icon in the header (“Toggle Tester”)
  3. Drag the console anywhere (mouse or finger)
  4. Pick a counter → type-aware fields light up automatically
  5. Hammer the buttons:
    • Get All Full – refresh everything
    • Set Today – uses value or time input (required for StopWatch)
    • Set DateYYYY-MM-DD + value/time
    • Partial Edit – full streak weekday editor with dynamic checkboxes
    • Full Suite – destructive demo (deletes at end)

All changes instantly reflect in Settings → Simple Counters.

Permissions (manifest.json)

"permissions": [
  "getAllCounters", "getCounter", "setCounter", "incrementCounter", "decrementCounter",
  "getAllSimpleCounters", "getSimpleCounter", "updateSimpleCounter",
  "toggleSimpleCounter", "setSimpleCounterEnabled", "deleteSimpleCounter",
  "setSimpleCounterToday", "setSimpleCounterDate",
  "registerHeaderButton", "uiInteraction", "showSnack"
]

Related Links

Contributing

Found something off? Want CSV export or counter creation UI?
→ Open an issue or PR – especially welcome post-merge!

License

MIT © Mustache Dev – use, modify, ship it!


Happy testing! This console survived hundreds of runs during #5398 development and is now the fastest way to confirm everything works in staging. Touch-friendly, streak-smart, and zero setup. Enjoy! 🚀


As a game developer, I lack deep TypeScript/JavaScript expertise in this codebase.
As a student, I have limited time to properly learn new technologies.
This implementation was created with AI assistance to bridge these constraints.

About

Real-time Simple Counter API debugger for Super Productivity Floating draggable console: test flat counters (setCounter, inc/dec), full CRUD (updateSimpleCounter, setSimpleCounterDate), type-aware inputs (1h 30m for StopWatch), live history/JSON, auto-suite, copyable logs.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

 
 
 

Contributors