feat(ui): Implement distinction for Core vs. Research fields#29
Open
rsthornton wants to merge 1 commit intomainfrom
Open
feat(ui): Implement distinction for Core vs. Research fields#29rsthornton wants to merge 1 commit intomainfrom
rsthornton wants to merge 1 commit intomainfrom
Conversation
…sure and help system
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:
This pull request introduces an exploratory UI/UX pattern to visually distinguish between Core (stable, essential) and Research (experimental, subject to change) fields in the details panel.
The primary goal is to manage user expectations by clearly communicating which parts of the system model are foundational and which are still under active development. This is a first pass at a design solution, and I am actively seeking feedback on the approach.
Proposed Solution
This implementation uses a global toggle to show or hide all "Research" fields across the application.
ResearchFieldTogglecomponent is provided at the top of the details panel, allowing users to opt-in to seeing experimental fields.ResearchFieldProvideruses a Leptos context to manage the global show/hide state, making it accessible to all child components.<ResearchField>: Wraps any experimental input field. It applies a distinct visual treatment (a dashed amber border and a "Research Field" label with a tooltip) and respects the global toggle's visibility state.<CoreField>: A simple wrapper for stable fields, providing a consistent structure for future styling.FieldHelpdata structure has also been updated to categorize help text as eitherCoreorResearch, laying the groundwork for more context-aware documentation.Request for Design Feedback
This solution is a functional prototype, but I'm not convinced it's the perfect final design. I would greatly appreciate feedback on the following points:
This implementation is a starting point, and I'm very open to rethinking the design based on feedback.