Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Widget UI + configurator #3227

Merged
merged 28 commits into from
Oct 20, 2023
Merged

Widget UI + configurator #3227

merged 28 commits into from
Oct 20, 2023

Conversation

fairlighteth
Copy link
Contributor

@fairlighteth fairlighteth commented Oct 16, 2023

Summary

  • Widget UI improvements and adding of functionality
  • Adds a configurator React app
Screenshot 2023-10-16 at 12 56 25

@vercel
Copy link

vercel bot commented Oct 16, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
swap-dev ✅ Ready (Inspect) Visit Preview Oct 19, 2023 9:27am

🌃 Cosmos ↗︎

@github-actions
Copy link
Contributor

github-actions bot commented Oct 16, 2023

CLA Assistant Lite bot:
Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


2 out of 3 committers have signed the CLA.
@fairlighteth
@shoom3301
@michel
Michel seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You can retrigger this bot by commenting recheck in this Pull Request

@socket-security
Copy link

New and updated dependencies detected. Learn more about Socket for GitHub ↗︎

Packages Version New capabilities Transitives Size Publisher
@emotion/styled 11.11.0 None +11 1.36 MB emotion-release-bot
@emotion/react 11.11.1 environment +10 1.18 MB emotion-release-bot
@mui/lab 5.0.0-alpha.148 environment +32 21.1 MB mj12albert
@mui/icons-material 5.14.13 None +31 38.2 MB mj12albert
@mui/material 5.14.13 environment +30 19.3 MB mj12albert
vite 4.3.9...4.4.11 environment +24/-1 212 MB vitebot

<FortuneWidget />
</FeatureGuard>

{!isInjectedWidgetMode && (
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Don't render Fortune Widget and Appzi button for Widget mode

@@ -128,6 +130,8 @@ export default class ErrorBoundary extends React.Component<PropsWithChildren, Er

return (
<AppWrapper>

{!isInjectedWidget() &&
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hide the normal header (logo/menu/etc) in Widget mode


const singleMenuItem = menuItems.length === 1;

return isDropdown ? (
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Render the menu in dropdown form if this is widget mode

to one of our supported networks.
</Trans>
</p>
{!isInjectedWidget && (
Copy link
Contributor Author

Choose a reason for hiding this comment

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

hide extra messaging in your orders overview when in widget mode

Comment on lines +4 to +5
interface Palette {
cow: {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

adding custom palette items

@@ -0,0 +1,25 @@
import { useState, useCallback } from 'react';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

creating a reusable hook to control the orders panel (user activity modal)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Refactored it into accountModalStateAtom

@fairlighteth fairlighteth marked this pull request as ready for review October 16, 2023 12:54
@fairlighteth fairlighteth merged commit 1a2c1de into develop Oct 20, 2023
6 of 12 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Oct 20, 2023
@fairlighteth fairlighteth deleted the widget-ui-6 branch July 4, 2024 15:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants