Unified UI#311
Open
ziarno wants to merge 21 commits into
Open
Conversation
Add the shared @rozenite/ui package with HeroUI-backed primitives. Move JSON inspection into shared UI and reuse it from Storage and MMKV. Migrate both storage inspector panels while preserving existing protocols.
…filer-plugin, rhf-plugin
V3RON
requested changes
Jul 7, 2026
V3RON
left a comment
Contributor
There was a problem hiding this comment.
Storage:
- contents in 'entry details' dialog are not correctly aligned (padding is greater for the contents than for the header)
- the JSON preview is misaligned (copy button pushes the JSON tree down)
- when you click 'edit' in 'entry details', then you click 'X', the dialog ends up in a broken state
Performance:
- sidebar is misaligned (paddings)
Require:
- contents in 'Options' dialog are not correctly aligned (probably shared component)
- when you click 'X', the dialog ends up in broken state.
SQLite:
- click on any row, then try to close the sidebar by clicking on the backdrop - the UI freezes.
General:
- All plugins have now this shared header. I think we can remove both title and description and leave it present only if there are some controls to be presented (see Performance Monitor).
Contributor
Author
|
Storage:
SQLite:
Header:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Introduces
@rozenite/ui— a new shared UI package — and migrates all plugins to use it. This eliminates ~3,500 lines of duplicated component code and per-plugin Tailwind/CSS configs, replacing them with a single HeroUI-based component library.New
@rozenite/uipackage exports:PluginTheme— unified dark theme wrapper (system theme by default)PluginHeader— consistent plugin header layoutDataTable,EditableTable— shared table primitivesConfirmDialog,EntryDetailDialog— shared dialog componentsJsonInspector— JSON viewer componentuseCopyToClipboardhook and utility helpers (cn,json)Migrated plugins:
controls-plugin,expo-atlas-plugin,file-system-plugin,mmkv-plugin,network-activity-plugin,overlay-plugin,performance-monitor-plugin,react-navigation-plugin,require-profiler-plugin,rhf-plugin,sqlite-plugin,storage-pluginEach plugin's per-plugin
tailwind.config.ts, custom CSS, and one-off component duplicates have been removed in favor of@rozenite/uiimports.Related Issue
Notion: Unified UI for Rozenite plugins
Context
Previously each plugin maintained its own Tailwind config, CSS globals, and local copies of common components (editable tables, dialogs, entry detail panels). This led to visual inconsistencies between plugins and made UI-wide changes require touching every plugin separately.
The
@rozenite/uipackage is built on HeroUI + Tailwind v4 (consistent with the existinguipackage approach). Plugin-level CSS is now reduced to a minimalglobals.cssthat imports the shared stylesheet. ThePluginThemecomponent applies the system color scheme by default, so all plugins inherit dark/light mode automatically.Testing
pnpm build:allto verify the full build passespnpm start:playground, and verify each migrated plugin renders correctlyPluginThemesystem default behaviorpnpm checks:allfor typecheck + lint + format