Repository navigation
One crate: eggshell-ui holds the widgets and the preset (#497 stage 4) - #501
Merged
Merged
Conversation
Pure renames, so history follows each file; the next commit wires them up (this one does not build on its own). - eggshell-ui-extras/src/<widget> -> src/owned/<widget> (accordion, badge, command, dialog, disclosure, form, hover_card, markdown, notify, skeleton, spinner, tabs, styles); - eggshell-ui-shadcn/src/preset.rs -> src/theme/preset.rs, drag_chip.rs -> src/owned/drag_chip.rs, the extensions' generated sheets -> src/sheets; - eggshell-ui-shadcn/tests -> tests/it (contrast, registry and its themes.ts, styles as preset_styles, tones); - eggshell-ui-shadcn/examples/preset_dump.rs -> examples/. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PWiKKfuwuKXZxdwsSBxd76
Stage 4 of the shadcn-only epic: eggshell-ui-extras and
eggshell-ui-shadcn are modules of eggshell-ui. The previous commit moved
their files; this one wires them in.
- The extensions are public modules of `owned`, each behind its feature:
owned::{accordion, badge, command, dialog, disclosure, form,
hover_card, markdown, notify, skeleton, spinner, tabs}. Flattening them
into `owned` would rename public types (Unset, Items, ItemChain clash),
so they keep their modules for now. DragChip and drag_chip are in
`owned`.
- The preset is theme::{Shadcn, tokens}; `variant` is beside `size` in
`theme`, and the preset crate's documentation is the theme module's,
unchanged but for its code paths.
- Features: default = clipboard, fonts, accordion, badge, dialog,
disclosure, skeleton, spinner, tabs; opt-in: command, form, hover-card,
markdown, notify. pulldown-cmark and unicode-normalization are optional
deps of markdown and command.
- One sheets index: the importer writes every sheet to src/sheets with
`crate::` paths, each extension's behind its own feature (Home::Feature
replaces Home::Extension and the two output roots).
- Style::new writes the extensions' sheets and the disclosure's
exceptions, so Shadcn::style() is Style::new(&tokens); layout_style
gates each extension's mapping on its feature.
- Undone, as they existed only for the crate boundary: the public
FontSet::{declared, install, inserts}, Elevation::shadow,
theme::warn_low_contrast, Builder::keyed_under and report() are
pub(crate) again; the preset's `extras` feature and its cfg splits.
- xtask: the clock and spacing-units sources, the `features` step
(eggshell-ui with no default features) and preset_dump's features.
- The preset crate's README section on fonts is the root README's,
verbatim but for the licence link's path.
- The workspace is eggshell-ui and xtask.
No behaviour change under the preset: every section, extension style,
egui style and part's resolved classes are identical to 728349d, and no
golden moved. Without a preset, Style::default() now has the opt-in
widgets' generated sheets too.
Tests: the preset crate's tests are tests/it modules (contrast, registry,
preset_styles, tones). Deleted, as they pinned the combobox's look
without a preset (#496 §1):
combobox_sheet::without_a_preset_the_box_takes_the_menus_radius_from_the_sheet,
combobox_sheet::the_presets_look_replaces_the_combobox_defaults.
theme_toggle skips preset_dump, which draws nothing.
Breaking: eggshell_ui_extras::X is eggshell_ui::owned::X,
eggshell_ui_shadcn::* is eggshell_ui::theme::* (DragChip in owned).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PWiKKfuwuKXZxdwsSBxd76
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.
Stage 4 of #497: one crate.
eggshell-ui-extrasandeggshell-ui-shadcnmerge intoeggshell-ui(decided on #366). Stacked on #500 ← #499 ← #498.The first commit is 67 pure
git mvs, so history follows the files. It doesn't build on its own; the second commit wires everything up.Layout
eggshell_ui::owned::{accordion, badge, command, dialog, disclosure, form, hover_card, markdown, notify, skeleton, spinner, tabs}. Each is a public module behind its own feature, and tabs sits beside core'sTabsPart.eggshell_ui::theme::{Shadcn, tokens, variant, size}. The shadcn crate's docs became thethememodule docs.src/sheetsand one generated index. Each widget's sheet is gated on that widget's feature, and the importer writes to one root.Style::newnow writes every compiled-in widget's sheet, soShadcn::style()equalsStyle::new(&tokens).Features
xtask websee every feature.Crate-boundary leftovers undone
pub(crate):FontSet::{declared, install, inserts},Elevation::shadow,theme::warn_low_contrast,Builder::keyed_underandreport().extrasfeature, the importer's two roots and the re-exports are gone.featuresstep is nowclippy -p eggshell-ui --no-default-features.Checks
cargo xtask integrate: green.tests/it.Style::default()now carries the combobox's sheet.For the user
thememodule doc ("the crate only fills the contract…", "fonts/OFL.txt").owned::would need public renames:Unset(chip, disclosure, tabs);Items/ItemChain(accordion, command);AccordionPart(in disclosure).🤖 Generated with Claude Code
https://claude.ai/code/session_01PWiKKfuwuKXZxdwsSBxd76