jan icon indicating copy to clipboard operation
jan copied to clipboard

(WIP) feat: initial ui extension framework

Open urmauur opened this issue 3 months ago • 2 comments

Describe Your Changes

UIManager class that manages different UI components, allowing registration and retrieval based on component type. The components are categorized by a UIComponent enum

  • [X] RightPanelTabItem
  • [X] InputChatBox

Example use on extension

  • Add new tab for right panel tab component
import { UIManager } from '@janhq/core'

 UIManager.instance().register(UIComponent.RightPanelTabItem, {
      name: 'Name',
      value: 'value',
      render: this.createRootRenderer(ReactComponentView),
    })

Fixes Issues

  • Closes #2718
  • Closes #

Self Checklist

  • [ ] Added relevant comments, esp in complex areas
  • [ ] Updated docs (for bug fixes / features)
  • [ ] Created issues for follow-up changes or refactoring needed

urmauur avatar Oct 28 '24 02:10 urmauur