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

RedBox screen is a bit scary #42

Closed
morishin opened this issue Oct 17, 2018 · 21 comments
Closed

RedBox screen is a bit scary #42

morishin opened this issue Oct 17, 2018 · 21 comments
Labels
🗣 Discussion This label identifies an ongoing discussion on a subject

Comments

@morishin
Copy link

Introduction

isn't it?

screenshot_1539751847

The Core of It

How about making it softer color? ☺️
(like YellowBox)

These look like current implementations.

Discussion points

  • How about changing the red color?
  • What color value is better?
@hramos
Copy link
Contributor

hramos commented Oct 17, 2018

The RedScreen was inspired by Ruby on Rails's error screen:

xfvdf

The idea behind it is to provide high visibility to errors - no need to hunt through logs for the actual error. When the RedBox is contrasted with the RoR inspiration, I do see the RedBox screen could be made less jarring while still successfully displaying all the information we need.

@aleclarson
Copy link

A dark mode would be great 😄

@Monte9
Copy link
Member

Monte9 commented Oct 17, 2018

@hramos that's really interesting. Maybe we can use a different shade of red.. maybe more like a pastel red-color?

I did this really quickly to get the ball rolling:

screen shot 2018-10-17 at 12 16 21 pm

The one in the middle is the current red screen color. Maybe something closer to #E32D31 (the second one) would look better?

ps. I am def not a designer so my color senses might be way off. Just a suggestion tho.

@jamonholmgren
Copy link
Collaborator

One quick and easy way to do it would be to keep the red limited to a header/footer and make the body of the error something more muted. Here's a 30-second idea that might spark something.

image

@morishin
Copy link
Author

Maybe we can use a different shade of red.. maybe more like a pastel red-color?

+1 !

How about this? (new RedBox color is the right one)

redbox_color

@kelset kelset added the 🗣 Discussion This label identifies an ongoing discussion on a subject label Oct 18, 2018
@hramos
Copy link
Contributor

hramos commented Oct 29, 2018

I think a PR that implements something like #42 (comment) has a good chance of getting merged.

@Monte9
Copy link
Member

Monte9 commented Oct 29, 2018

@jamonholmgren I don't mean to steal your thunder, but I can take a stab at implementing your idea if you don't mind.

I haven't contributed to RN core before and this seems like a fun one to tackle.

@kelset
Copy link
Member

kelset commented Oct 30, 2018

@Monte9 go for it 🎉

And thanks for this conversation, I really think it could really help making the DX better :)

@katieisnell
Copy link

I like the RN color 'tomato', it is a softer red but still dark enough to imply that you have an error!

image

@axe-fb
Copy link
Collaborator

axe-fb commented Nov 9, 2018

@morishin - what are the next steps here ? I think everyone loves the idea, so lets see how we can implement it.

@Monte9
Copy link
Member

Monte9 commented Nov 9, 2018

@axe-fb I am working on this. It's currently WIP and this is what it looks like so far:

Still need to get Android working, but if that looks good I can submit a PR for it this weekend.

@AndreiCalazans
Copy link

@Monte9 nice job, looks better and less intimidating, can we just improve the color of the file location, it's a little hard to read, maybe use a color with a little more contrast.

I can read executeDispatchesInOrder but the line under it requires some leaning in, maybe just better contrast would improve.
screen shot 2018-11-09 at 08 24 17

@morishin
Copy link
Author

@morishin - what are the next steps here ? I think everyone loves the idea, so lets see how we can implement it.

I think the next step is Pull Request by @Monte9 ! 😍

@Monte9 Cool!! How about making the background red color softer? (like #42 (comment) or #42 (comment))

@Monte9
Copy link
Member

Monte9 commented Nov 10, 2018

@morishin @AndreiCalazans for sure. I'll end up posting a few screenshots here with different variations of colors and you guys can let me know which one you prefer. I'll keep you posted.

@Monte9
Copy link
Member

Monte9 commented Nov 12, 2018

Alright, I have it working on both iOS & Android and have submitted a PR for it! 🎉

Also, as promised, here are a few variations side-by-side to help us decide which one looks better:

Index:

[1, 1] - Original
[1, 2] - @Monte9's red
[2, 1] - Random red
[2, 2] - @morishin's red
[3, 1] - @katieisnell's red
[3, 2] - Pastel red

iOS

orginal monte_red
last_one morishin_red
tomato_red pastel_red

Android

original_android monte_red_android
last_one_android morishin_red_android
tomato_red_android pastel_red_android

Bonus (Dark Mode)

dark_mode dark_mode_android

@iRoachie
Copy link

Of all the reds I prefer Monte's red!

@morishin
Copy link
Author

Thank you for the screenshots!
@Monte9 's red [1,2] looks better color for readability 👀👍

@jamonholmgren
Copy link
Collaborator

I like [2,1] myself, but they all look fine!

@tetreault
Copy link

i like the current red IMO

@grabbou
Copy link
Member

grabbou commented Nov 19, 2018

Great improvements! I like [1,2] myself. One thing to keep in mind is consistency - introducing pastel colors for errors would mean we might need a pastel color for the warning which wouldn't look too nice.

@cpojer
Copy link
Member

cpojer commented Jan 4, 2019

Thanks everyone for the thorough discussion. I'm glad that we are updating the redbox style. I'll close this discussion in favor of the PR that implements this change. Let's have further conversations there if necessary: facebook/react-native#22242

@cpojer cpojer closed this as completed Jan 4, 2019
facebook-github-bot pushed a commit to facebook/react-native that referenced this issue Jan 15, 2019
Summary:
[Re: RedBox screen is a bit scary - Discussions and Proposals](react-native-community/discussions-and-proposals#42)

Per hramos:
> The RedScreen was inspired by Ruby on Rails's error screen

> I do see the RedBox screen could be made less jarring while still successfully displaying all the information we need.

Hence jamonholmgren came up with the idea that only the header & footer of the RedBox screen could be red. This makes the content a bit more readable as well as makes the screen a little less intimidating.

Also frantic made the suggestion that since the bottom buttons are not as important, they don't need to stand out. Hence only the header of the RedBox screen which displays the error is made red.

Screenshots:
----------

<div style="flex-direction: row">
<img width="325" alt="orginal" src="https://user-images.githubusercontent.com/7840686/48322916-b4958b80-e5de-11e8-9276-33378d1b41c5.png">
<img width="320" alt="redbox_v2_ios" src="https://user-images.githubusercontent.com/7840686/48665300-cce32b80-ea60-11e8-8e8f-88f74bad30ca.png">

</div>

<div style="flex-direction: row">
<img width="300" alt="original_android" src="https://user-images.githubusercontent.com/7840686/48322958-d5f67780-e5de-11e8-891c-1b20bd00e67b.png">
<img width="300" alt="redbox_v2_android" src="https://user-images.githubusercontent.com/7840686/48665312-f13f0800-ea60-11e8-9fb6-47e03c809789.png">

</div>
Pull Request resolved: #22242

Reviewed By: hramos

Differential Revision: D13564287

Pulled By: cpojer

fbshipit-source-id: fcb6ba5e20d863f4b957d20f3787f5b7a365bfdb
grabbou pushed a commit to facebook/react-native that referenced this issue Jan 16, 2019
Summary:
[Re: RedBox screen is a bit scary - Discussions and Proposals](react-native-community/discussions-and-proposals#42)

Per hramos:
> The RedScreen was inspired by Ruby on Rails's error screen

> I do see the RedBox screen could be made less jarring while still successfully displaying all the information we need.

Hence jamonholmgren came up with the idea that only the header & footer of the RedBox screen could be red. This makes the content a bit more readable as well as makes the screen a little less intimidating.

Also frantic made the suggestion that since the bottom buttons are not as important, they don't need to stand out. Hence only the header of the RedBox screen which displays the error is made red.

Screenshots:
----------

<div style="flex-direction: row">
<img width="325" alt="orginal" src="https://user-images.githubusercontent.com/7840686/48322916-b4958b80-e5de-11e8-9276-33378d1b41c5.png">
<img width="320" alt="redbox_v2_ios" src="https://user-images.githubusercontent.com/7840686/48665300-cce32b80-ea60-11e8-8e8f-88f74bad30ca.png">

</div>

<div style="flex-direction: row">
<img width="300" alt="original_android" src="https://user-images.githubusercontent.com/7840686/48322958-d5f67780-e5de-11e8-891c-1b20bd00e67b.png">
<img width="300" alt="redbox_v2_android" src="https://user-images.githubusercontent.com/7840686/48665312-f13f0800-ea60-11e8-9fb6-47e03c809789.png">

</div>
Pull Request resolved: #22242

Reviewed By: hramos

Differential Revision: D13564287

Pulled By: cpojer

fbshipit-source-id: fcb6ba5e20d863f4b957d20f3787f5b7a365bfdb
matt-oakes pushed a commit to matt-oakes/react-native that referenced this issue Feb 7, 2019
Summary:
[Re: RedBox screen is a bit scary - Discussions and Proposals](react-native-community/discussions-and-proposals#42)

Per hramos:
> The RedScreen was inspired by Ruby on Rails's error screen

> I do see the RedBox screen could be made less jarring while still successfully displaying all the information we need.

Hence jamonholmgren came up with the idea that only the header & footer of the RedBox screen could be red. This makes the content a bit more readable as well as makes the screen a little less intimidating.

Also frantic made the suggestion that since the bottom buttons are not as important, they don't need to stand out. Hence only the header of the RedBox screen which displays the error is made red.

Screenshots:
----------

<div style="flex-direction: row">
<img width="325" alt="orginal" src="https://user-images.githubusercontent.com/7840686/48322916-b4958b80-e5de-11e8-9276-33378d1b41c5.png">
<img width="320" alt="redbox_v2_ios" src="https://user-images.githubusercontent.com/7840686/48665300-cce32b80-ea60-11e8-8e8f-88f74bad30ca.png">

</div>

<div style="flex-direction: row">
<img width="300" alt="original_android" src="https://user-images.githubusercontent.com/7840686/48322958-d5f67780-e5de-11e8-891c-1b20bd00e67b.png">
<img width="300" alt="redbox_v2_android" src="https://user-images.githubusercontent.com/7840686/48665312-f13f0800-ea60-11e8-9fb6-47e03c809789.png">

</div>
Pull Request resolved: facebook#22242

Reviewed By: hramos

Differential Revision: D13564287

Pulled By: cpojer

fbshipit-source-id: fcb6ba5e20d863f4b957d20f3787f5b7a365bfdb
t-nanava pushed a commit to microsoft/react-native-macos that referenced this issue Jun 17, 2019
Summary:
[Re: RedBox screen is a bit scary - Discussions and Proposals](react-native-community/discussions-and-proposals#42)

Per hramos:
> The RedScreen was inspired by Ruby on Rails's error screen

> I do see the RedBox screen could be made less jarring while still successfully displaying all the information we need.

Hence jamonholmgren came up with the idea that only the header & footer of the RedBox screen could be red. This makes the content a bit more readable as well as makes the screen a little less intimidating.

Also frantic made the suggestion that since the bottom buttons are not as important, they don't need to stand out. Hence only the header of the RedBox screen which displays the error is made red.

Screenshots:
----------

<div style="flex-direction: row">
<img width="325" alt="orginal" src="https://user-images.githubusercontent.com/7840686/48322916-b4958b80-e5de-11e8-9276-33378d1b41c5.png">
<img width="320" alt="redbox_v2_ios" src="https://user-images.githubusercontent.com/7840686/48665300-cce32b80-ea60-11e8-8e8f-88f74bad30ca.png">

</div>

<div style="flex-direction: row">
<img width="300" alt="original_android" src="https://user-images.githubusercontent.com/7840686/48322958-d5f67780-e5de-11e8-891c-1b20bd00e67b.png">
<img width="300" alt="redbox_v2_android" src="https://user-images.githubusercontent.com/7840686/48665312-f13f0800-ea60-11e8-9fb6-47e03c809789.png">

</div>
Pull Request resolved: facebook#22242

Reviewed By: hramos

Differential Revision: D13564287

Pulled By: cpojer

fbshipit-source-id: fcb6ba5e20d863f4b957d20f3787f5b7a365bfdb
rozele pushed a commit to microsoft/react-native-windows that referenced this issue Jul 18, 2019
Summary:
[Re: RedBox screen is a bit scary - Discussions and Proposals](react-native-community/discussions-and-proposals#42)

Per hramos:
> The RedScreen was inspired by Ruby on Rails's error screen

> I do see the RedBox screen could be made less jarring while still successfully displaying all the information we need.

Hence jamonholmgren came up with the idea that only the header & footer of the RedBox screen could be red. This makes the content a bit more readable as well as makes the screen a little less intimidating.

Also frantic made the suggestion that since the bottom buttons are not as important, they don't need to stand out. Hence only the header of the RedBox screen which displays the error is made red.

Screenshots:
----------

<div style="flex-direction: row">
<img width="325" alt="orginal" src="https://user-images.githubusercontent.com/7840686/48322916-b4958b80-e5de-11e8-9276-33378d1b41c5.png">
<img width="320" alt="redbox_v2_ios" src="https://user-images.githubusercontent.com/7840686/48665300-cce32b80-ea60-11e8-8e8f-88f74bad30ca.png">

</div>

<div style="flex-direction: row">
<img width="300" alt="original_android" src="https://user-images.githubusercontent.com/7840686/48322958-d5f67780-e5de-11e8-891c-1b20bd00e67b.png">
<img width="300" alt="redbox_v2_android" src="https://user-images.githubusercontent.com/7840686/48665312-f13f0800-ea60-11e8-9fb6-47e03c809789.png">

</div>
Pull Request resolved: facebook/react-native#22242

Reviewed By: hramos

Differential Revision: D13564287

Pulled By: cpojer

fbshipit-source-id: fcb6ba5e20d863f4b957d20f3787f5b7a365bfdb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🗣 Discussion This label identifies an ongoing discussion on a subject
Projects
None yet
Development

No branches or pull requests