Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Change Safe App name TextField from readonly to disabled #3366

Merged
merged 2 commits into from Jan 25, 2022

Conversation

yagopv
Copy link
Member

@yagopv yagopv commented Jan 24, 2022

What it solves

Resolves safe-global/safe-react-apps#272

How this PR fixes it

By changing the textfield from readOnly to disabled and tweaking some styles

How to test it

Try to add a custom app and click in the safe app name field. Nothing should happen. The label remains in the same place and no animation is performed

Make the app fail for manifest not found. The label should be red and when you click nothing happens

@github-actions
Copy link

CLA Assistant Lite All Contributors have signed the CLA.

@github-actions
Copy link

github-actions bot commented Jan 24, 2022

ESLint Summary View Full Report

Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.

Type Occurrences Fixable
Errors 0 0
Warnings 0 0
Ignored 0 N/A
  • Result: ✅ success
  • Annotations: 0 total

Report generated by eslint-plus-action

Copy link
Member

@iamacook iamacook left a comment

Choose a reason for hiding this comment

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

LGTM!

@github-actions
Copy link

Deployment links

🟠 Rinkeby Mainnet 🟣 Polygon 🟡 BSC Arbitrum 🟢 Gnosis Chain

@github-actions
Copy link

github-actions bot commented Jan 24, 2022

E2E Tests Failed
Check the results here: https://github.com/gnosis/safe-react-e2e-tests/actions/runs/1745008830

Failed tests:

  • ❌ Address book Address book
  • ❌ Safe Apps List Safe Apps List
  • ❌ Read-only transaction creation and review Read-only transaction creation and review

@coveralls
Copy link

coveralls commented Jan 24, 2022

Pull Request Test Coverage Report for Build 1744975826

  • 0 of 1 (0.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.002%) to 32.317%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/routes/safe/components/Apps/components/AddAppForm/index.tsx 0 1 0.0%
Totals Coverage Status
Change from base Build 1740925373: -0.002%
Covered Lines: 3174
Relevant Lines: 8740

💛 - Coveralls

Copy link
Member

@usame-algan usame-algan left a comment

Choose a reason for hiding this comment

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

Well done! 🚀

@JagoFigueroa
Copy link

All bueno. Muchas gracias gentlemen ;)

&.Mui-disabled {
color: rgba(0, 0, 0, 0.54);
&.Mui-error {
color: ${theme.colors.error};
Copy link
Member

Choose a reason for hiding this comment

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

Isn't the theme passed via props like here https://styled-components.com/docs/advanced#theming?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure!! Updated it

@yagopv yagopv merged commit df5bfab into dev Jan 25, 2022
@yagopv yagopv deleted the feature/fix-add-safe-app-input-disabled-behavior branch January 25, 2022 11:29
@github-actions github-actions bot locked and limited conversation to collaborators Jan 25, 2022
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.

Make manifest field non responsive when it fails to be fetched
6 participants