Skip to content

Conversation

@aizad-deriv
Copy link
Contributor

@aizad-deriv aizad-deriv commented Dec 7, 2023

πŸ—οΈ In Progress / Research

Shoutout to @mohsen-deriv for the help and support πŸ™‡πŸΌ

Changes:

  • Installed @deriv/quill-design and Tailwind inside of core and enabling it inside wallets
  • Added tailwind.config.js to both core and wallets
  • Added base classes inside of index.scss
  • Refactor IconButton component to use quill-components

Screenshots:

Screenshot 2023-12-07 at 10 33 49β€―PM

@vercel
Copy link

vercel bot commented Dec 7, 2023

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Updated (UTC)
deriv-app βœ… Ready (Inspect) Visit Preview Dec 7, 2023 2:51pm

@github-actions
Copy link
Contributor

github-actions bot commented Dec 7, 2023

A production App ID was automatically generated for this PR. (log)

Click here to copy & paste above information.
- **PR**: [https://github.com/binary-com/deriv-app/pull/12110](https://github.com/binary-com/deriv-app/pull/12110)
- **URLs**:
    - **w/ App ID + Server**: https://deriv-app-git-fork-aizad-deriv-aizad-quill-implementation.binary.sx?qa_server=red.derivws.com&app_id=38678
    - **Original**: https://deriv-app-git-fork-aizad-deriv-aizad-quill-implementation.binary.sx
- **App ID**: `38678`

@github-actions
Copy link
Contributor

github-actions bot commented Dec 7, 2023

🚨 Lighthouse report for the changes in this PR:

Category Score
πŸ”Ί Performance 15
🟧 Accessibility 75
🟒 Best practices 92
🟒 SEO 92
🟧 PWA 80

Lighthouse ran with https://deriv-app-git-fork-aizad-deriv-aizad-quill-implementation.binary.sx/

@coveralls
Copy link

coveralls commented Dec 7, 2023

Coverage Status

coverage: 29.776% (-0.001%) from 29.777%
when pulling 82de270 on aizad-deriv:aizad/quill-implementation
into 5ab1db8 on binary-com:master.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 7, 2023

Kudos, SonarCloud Quality Gate passed!Β  Β  Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@github-actions
Copy link
Contributor

github-actions bot commented Dec 7, 2023

❌ Smoke test run (2) failed. See logs for details: Visit Action

@github-actions
Copy link
Contributor

github-actions bot commented Dec 7, 2023

❌ Smoke test run (1) failed. See logs for details: Visit Action

@aizad-deriv
Copy link
Contributor Author

Will install CVA to handle the different types of variations and colors for the component in the near future.

@aizad-deriv aizad-deriv marked this pull request as draft December 7, 2023 14:58
"stylelint-no-unsupported-browser-features": "^4.0.0",
"stylelint-selector-bem-pattern": "^2.1.0",
"stylelint-webpack-plugin": "^2.1.1",
"tailwindcss": "^3.3.6",
Copy link
Contributor

Choose a reason for hiding this comment

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

@aizad-deriv can't we use quill components without using tailwind?

Choose a reason for hiding this comment

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

yes you can, but TBH adding them won't harm anybody.
if you guys want to use the components only, it's cool too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will try this out and see if its needed. Will update here base on the findings @mohsen-deriv @mahdiyeh-deriv πŸ™πŸΌ

@import '@deriv/quill-design/quill-tailwind/fonts.css';

@import './styles/devices.scss';
svg {
Copy link
Contributor

Choose a reason for hiding this comment

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

let'e don't merge quill icons and components in one PR.

Choose a reason for hiding this comment

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

this is not about quill icons, there has been a conflict between deriv-app and quill css reset, this fixes the conflict.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There was some issues when applying the base styles, @tailwind base and it is affecting svgs. We resolved it by adding this css rule to resolve the issue however this is a temporary solution. Ideally there is no need to add css.

<div className='wallets-icon-button__icon'>{icon}</div>
<button
className={qtMerge(
`inline-flex align-middle justify-center hover:cursor-pointer ${
Copy link

Choose a reason for hiding this comment

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

hmm, that looks very much like dreaded inline css :D

I think that either should be removed (as per previous @mahdiyeh-deriv comment), or if we actually want to introduce tailwind, that should be discussed/approved in bigger group.
cc @markwylde-deriv

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree there is some cons to this like you mentioned the long classnames however I suggest we scoped it to the components that we are using in Wallets and see what is the reaction of the other developers.

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.

5 participants