Skip to content

refactor(demo-smart): redesign UI for improved developer experience#1702

Merged
roberttran-cc merged 1 commit intomasterfrom
demo-smart/ui-update
Apr 2, 2026
Merged

refactor(demo-smart): redesign UI for improved developer experience#1702
roberttran-cc merged 1 commit intomasterfrom
demo-smart/ui-update

Conversation

@roberttran-cc
Copy link
Copy Markdown
Member

Summary

  • Redesign demo-smart page with a sidebar/content/context-panel layout replacing the previous flat structure
  • Add language switcher (EN/FR) with URL-persisted lang param
  • Add context panel on the right side with preset context buttons for testing smart components
  • Group smart component definitions by category in a navigable sidebar with active-link highlighting
  • Show empty state with instructions when no component is selected
  • Responsive: context panel stacks below component on narrow viewports (≤1400px)

Test plan

  • Run npm run storybook:dev or serve demo-smart/ and verify sidebar navigation, language switching, context buttons, and responsive layout
  • One reviewer should be enough

@github-actions
Copy link
Copy Markdown
Contributor

🔎 A preview has been automatically published : https://clever-components-preview.cellar-c2.services.clever-cloud.com/demo-smart/ui-update/index.html.

This preview will be deleted once this PR is closed.

@roberttran-cc roberttran-cc self-assigned this Mar 26, 2026
Copy link
Copy Markdown
Contributor

@pdesoyres-cc pdesoyres-cc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did not look at the code but found:

  • lang selection do not resist accross navigation
  • context selection do not resist accross navigation

Copy link
Copy Markdown
Contributor

@HeleneAmouzou HeleneAmouzou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ! 👏
Thanks a lot for handling this, this new UI looks way better and the developer experience is improve for sure ! 🙏

Copy link
Copy Markdown
Contributor

@clara-layus-cc clara-layus-cc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM !

@roberttran-cc roberttran-cc force-pushed the demo-smart/ui-update branch from 0a62037 to 8b18e34 Compare April 2, 2026 07:11
The demo-smart page had poor UX: flat unorganized list of ~60 links, cryptic
context buttons, single-column layout, no language support. Restructured to
sidebar navigation with 21 grouped component categories (organized by domain),
right-side context panel appearing only when a component is selected. Added
EN/FR language switcher, active link highlighting, responsive design (context
panel stacks below component at ≤1400px), native title tooltips, accessibility
landmarks, and blue-gray color palette with increased base font-size for
readability. Also some cleanup in contexts (removed duplicates, clarified
names).
@roberttran-cc roberttran-cc force-pushed the demo-smart/ui-update branch from 8b18e34 to ce2e7ea Compare April 2, 2026 07:19
@roberttran-cc
Copy link
Copy Markdown
Member Author

Fixed the language being not persistent.

For the context selection, it's a bit more tricky:

  • it's not persistent in the current version as well,
  • mostly, each component has its own subset of context that makes sense for them, so implementing this would require a bit more logic.

So I decided to leave it as is for this revamp (goal being not to spend too much time on it).

@roberttran-cc roberttran-cc merged commit d52de34 into master Apr 2, 2026
7 checks passed
@roberttran-cc roberttran-cc deleted the demo-smart/ui-update branch April 2, 2026 07:28
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 2, 2026

🔎 The preview has been automatically deleted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants