Skip to content

Refactor plugins and trustkit to use shared components - #50

Merged
cybermaggedon merged 1 commit into
release/v1.3from
refactor/reduce-dupe-code
Aug 11, 2026
Merged

Refactor plugins and trustkit to use shared components#50
cybermaggedon merged 1 commit into
release/v1.3from
refactor/reduce-dupe-code

Conversation

@cybermaggedon

@cybermaggedon cybermaggedon commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Extract shared QueryWorkbench component, reducing SPARQL/GraphQL workbenches from ~450 lines each to ~150 lines
  • Refactor all 10 plugin packages to use shared Button, Input, Select components instead of raw inline-styled HTML
  • Extend Button props (title, onMouseEnter, onMouseLeave) and Input props (onFocus, onBlur) to support plugin use cases
  • Fix Section component theme scope bugs in game-theory and risk plugins
  • Net reduction of 686 lines across 22 files

Test plan

  • Verify all plugin pages render correctly (game-theory, innovation, law, retail-brand, hwsec, risk, solar-missions, threat, world-events)
  • Verify SPARQL and GraphQL workbenches function correctly
  • Verify ConfigEditor and SearchInput work as before
  • Check button styling consistency across plugins

@github-actions

Copy link
Copy Markdown

Contributor License Agreement ✅

All contributors have signed the CLA. Thank you!

@cybermaggedon
cybermaggedon merged commit dd23719 into release/v1.3 Aug 11, 2026
3 checks passed
@cybermaggedon
cybermaggedon deleted the refactor/reduce-dupe-code branch August 11, 2026 11:50
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