Unified UI#311
Open
ziarno wants to merge 20 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
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