Closed jennieramida closed 2 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
celatone-frontend-staging | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Aug 19, 2024 5:01am |
This update enhances user experience on mobile devices by refining the layout and functionality of multiple components. Key improvements include conditional rendering based on device type, the introduction of new properties for greater component flexibility, and enhanced user interface elements, such as responsive buttons and modals. These changes ensure more intuitive and accessible interactions, particularly for mobile users.
Files | Change Summary |
---|---|
src/lib/components/button/SubmitButton.tsx ,src/lib/pages/interact-contract/components/query-area/JsonQuery.tsx |
Added isFullWidth property to SubmitButtonProps for full-width options; integrated into JsonQuery for improved responsiveness based on device type. |
src/lib/components/json/JsonInput.tsx |
Integrated useMobile hook to conditionally display the "Format JSON" button, enhancing usability by hiding it on mobile devices. |
src/lib/components/modal/WasmCodeSnippet.tsx |
Updated to include FlexProps , added optional w property to WasmCodeSnippetProps , and improved interactivity with new state management for code snippets and tabs. |
src/lib/pages/interact-contract/components/query-area/JsonQuery.tsx |
Enhanced layout for responsiveness using useMobile , introduced a JSON formatting button that displays conditionally for mobile users, ensuring improved functionality. |
sequenceDiagram
participant User
participant JsonQuery
participant JsonInput
participant WasmCodeSnippet
participant SubmitButton
User->>JsonQuery: Access query area
JsonQuery->>JsonInput: Render input field
JsonQuery->>WasmCodeSnippet: Show code snippets
JsonQuery->>SubmitButton: Render button based on isMobile
alt Mobile
JsonInput->>User: Hide "Format JSON" button
SubmitButton->>User: Display full-width button
else Desktop
JsonInput->>User: Show "Format JSON" button
SubmitButton->>User: Display default width button
end
🐇 In the fields where code snippets play,
A button now stretches, brightening the day!
With JSON formatted just right on the go,
Mobile users rejoice, their joy in full flow!
Hopping through changes, our interface gleams,
A wondrous new world, fulfilling our dreams! 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
@coderabbitai review
Summary by CodeRabbit
Summary by CodeRabbit
New Features
isFullWidth
property to theSubmitButton
, allowing it to adapt its width based on user preference.WasmCodeSnippet
component with new state management and layout customization options.Bug Fixes
Documentation
Fixes CFE-591