Skip to content

Conversation

ricardobaeta
Copy link
Contributor

@ricardobaeta ricardobaeta commented Feb 1, 2018

@bzz @smacker @dpordomingo @carlosms

This is the initial work on Code Annotation Visual Design. Only the annotation UI is designed yet. The other UI's are still subject to further design.

I would like to propose to apply a dark theme to the code visualisation and syntax highlighting as well.

Excuse me for the less mistakes, and some other changes that will imply changing code structure.

I have ideas on further developments that I will address as features requests.

image

@dpordomingo
Copy link
Contributor

@ricardobaeta I added a screenshot to the PR description. It's something that should be mandatory in PR modifying the UI ;)

Copy link
Contributor

@dpordomingo dpordomingo left a comment

Choose a reason for hiding this comment

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

Wooooooow!!!
Many thanks for taking care of the UI changes!!!
It looks really great now!

I only found a couple of problems and an extra suggestion (in case you want to consider it)

border-radius: 0;
height: 39px;
padding-left: 4px;
width: 64px;
Copy link
Contributor

Choose a reason for hiding this comment

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

If you jump to an assignation with already provided feedback, the selector is broken.
image
I think that with should be as wider as the longest value possible.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes @dpordomingo . It will be addressed when dealing with the component.


a:hover {
text-decoration: none;
color: #fff;
Copy link
Contributor

Choose a reason for hiding this comment

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

when the user is in the finish stage, the hover effect is not visible
image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dpordomingo All stages are going to be visually designed as well. From start to finish. For now we're only addressing the annotation screen.


.navbar-default .navbar-nav > li > a:hover {
text-decoration: none;
color: #fff;
Copy link
Contributor

Choose a reason for hiding this comment

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

when the user is in the finish stage, the hover effect is not visible
image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dpordomingo Same as previous comment. Thank you :)

.ex-footer {
border-top: @navbar-default-border;
margin-bottom: 20px;
background: #2c3132;
Copy link
Contributor

Choose a reason for hiding this comment

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

I found many repeated colors.

  • Do you think would be a good idea to have a palette.less stylesheet to define each color, and then reuse its values?
  • We have 18 different colors. Do you think that the palette could be compressed more considering the most similar?

Here are the colors I found in our app:
(duplicated color, means it is repeated in different places in our stylesheets)

image

in raw:

#ffffff x4
#d8dcdc x2  
rgba(0, 0, 0, 0.2)
#cccccc x2
#a0a2a2 x2
#979a9a
#818a8a x2
#808b8c x3
#444444
#2c3132 x2
#191b1c
#0c0d0e x2
#00f3ff x2
#66ffba x2
#f37b6f x2
#006166
#004c2a
#61312c

Copy link
Member

Choose a reason for hiding this comment

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

Agreed 👍

<Navbar.Header>
<Navbar.Brand>
<a href="/">source{'{d}'} code annotation</a>
<h1><a href="/"><img alt="source{d} code annotation" src="/sourced-code-annotation-logo.svg" />code annotation</a></h1>
Copy link
Contributor

@dpordomingo dpordomingo Feb 1, 2018

Choose a reason for hiding this comment

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

The CI fails because this piece of code is not properly indented.
It should be:

        <Navbar.Brand>
          <h1>
            <a href="/">
              <img
                alt="source{d} code annotation"
                src="/sourced-code-annotation-logo.svg"
              />
              code annotation
            </a>
          </h1>
        </Navbar.Brand>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dpordomingo Thanks, done!

@bzz
Copy link
Contributor

bzz commented Feb 2, 2018

It looks awesome! How would we proceed @ricardobaeta from here ?

Usual flow would be that PR creator would solicit the feedback and incorporate it into this branch.

@smacker
Copy link
Contributor

smacker commented Feb 3, 2018

I'm thinking about to take some code from here and create new PR with few components like that new "select" component, new buttons, breadcrumbs. They won't be used yet, but we will have high-quality code in master with them. After that, we can update UI to this dark theme and use those new components. What do you think guys? @bzz @ricardobaeta @dpordomingo

@ricardobaeta
Copy link
Contributor Author

@smacker I would say that I would address first the comments & suggestion on this PR. We're trying a workflow here, wireframes > implementation > visual design in-browser, and I would say we need to learn if this is a good fit for us and get the results of the experiment. Today I'll address the comments & suggestions and update the PR. What would you say @bzz ?

@smacker
Copy link
Contributor

smacker commented Feb 6, 2018

@ricardobaeta the problem is we can't merge it as it is now. Some work which is done here is going to be common for different pages. That's why they must be moved to components.
If you want to abstract them by yourself - it's great.

@dpordomingo
Copy link
Contributor

an alternative could be that @ricardobaeta would rebase this PR over current master

@ricardobaeta
Copy link
Contributor Author

@dpordomingo The current master would have already the components?

@dpordomingo
Copy link
Contributor

nope, but it would solve the conflicts, and the code after being merged could be the starting point for @smacker to extract components.

@ricardobaeta ricardobaeta force-pushed the initial-visual-design branch from db31402 to 78ee51e Compare February 6, 2018 16:22
@ricardobaeta
Copy link
Contributor Author

ricardobaeta commented Feb 6, 2018

@dpordomingo @smacker Commited changes and forced pushed.
There are things to improve, as talked with Maxim, that will be addressed when dealing with components after this. I'll be around to double check and improve visually.

Copy link
Contributor

@dpordomingo dpordomingo left a comment

Choose a reason for hiding this comment

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

LGTM, but not to Travis CI.
You can check the error clicking in Details button, and then (in Travis) scrolling down to spot the errors.
To ensuring there is no errors in the things you are about to commit, you can run before commiting:

CI=1 make test-frontend;
CI=1 make lint;

Both commands should pass properly before committing in order to obtain the green icon by our CI.

letter-spacing: 1px;
padding-right: 8px;
padding-top: 1px;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

missing new line;
all files should finish with (only one) line break.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @dpordomingo ! Will iterate, commit and push.

@dpordomingo
Copy link
Contributor

To avoid blocking this PR with color variables #62 and palette #63, I created two separated issues so this PR could be merged once the rest of the feedback has been addressed :D

@bzz bzz self-requested a review February 7, 2018 09:52
@bzz
Copy link
Contributor

bzz commented Feb 7, 2018

@ricardobaeta @smacker @dpordomingo @ricardobaeta - is there anything except CI and #53 (comment) that blocks merge it?

If not, let's address it and merge asap, so it can be 'componentized' in subsequent PRs from there.

@smacker
Copy link
Contributor

smacker commented Feb 7, 2018

@bzz the main problem is broken pages. Finish/Review pages will look bad if we merge it. That's why I suggest to make components first and then apply them.
I already started working on it.

@bzz
Copy link
Contributor

bzz commented Feb 7, 2018

@smacker I think it's ok to merge faster, basically as soon as feedback from above is addressed, even if new pages would not look not so good, but they can be fixed in subsequent PRs.

I already started working on it.

Sorry, I must have missed this. Could you please attach a link to the issue as well?

@smacker
Copy link
Contributor

smacker commented Feb 7, 2018

as you wish. But I prefer don't break master much.
Issue: #64

@ricardobaeta
Copy link
Contributor Author

@bzz @dpordomingo @smacker

Already addressed the new line at end of file as requested. For now, as I understand, from my side all things are ok.

@dpordomingo
Copy link
Contributor

Not yet, sorry @ricardobaeta
You need to obtain a green icon from travis, that now is:

image

And it should be:

image

To do so, you can follow this hint #53 (review)

if you need assistance, ping me when I arrive the office (~12:30), and I'll help you with that 🗡️

@smacker
Copy link
Contributor

smacker commented Feb 7, 2018

Reworked PR: #65

@ricardobaeta ricardobaeta force-pushed the initial-visual-design branch from caa4d11 to 6d2cb3c Compare February 7, 2018 15:43
Copy link
Contributor

@dpordomingo dpordomingo left a comment

Choose a reason for hiding this comment

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

LGTM
Great work @ricardobaeta
Could you?

  • open an issue with pending things
  • squash before merging

Copy link
Contributor

@bzz bzz left a comment

Choose a reason for hiding this comment

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

LGTM!

Awesome work, @ricardobaeta !

Merging now, but please, address @dpordomingo comments.

@bzz bzz merged commit 37ebd3d into src-d:master Feb 7, 2018
@dpordomingo
Copy link
Contributor

@ricardobaeta The only thing to address is:

  • open an issue with pending things (the things we saw as broken: footer, selector...)

@ricardobaeta
Copy link
Contributor Author

@dpordomingo #68 ;)

smacker added a commit to smacker/code-annotation that referenced this pull request Feb 8, 2018
…design"

This reverts commit 37ebd3d, reversing
changes made to 2fd37c9.
dpordomingo pushed a commit that referenced this pull request Mar 26, 2018
Multiple updates, clean and improvements
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