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

Space out header #379

Merged
merged 16 commits into from
Jul 11, 2019
Merged

Space out header #379

merged 16 commits into from
Jul 11, 2019

Conversation

algomaster99
Copy link
Member

@algomaster99 algomaster99 commented Jul 7, 2019

Header

Screenshot from 2019-07-07 17-30-02

  • onSelectNewVegaLite is being repeated in file src/components/input-panel/spec-editor/renderer.tsx and src/components/header/renderer.tsx.
  • This is marked WIP since the header requires some minor CSS fixes to improve spacing between the buttons.

Copy link
Member

@domoritz domoritz left a comment

Choose a reason for hiding this comment

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

Looks good so far. When you finish the CSS, I will do a thorough review and approve.

@algomaster99
Copy link
Member Author

@domoritz
css
How are things looking?

@algomaster99
Copy link
Member Author

@domoritz I am quite fine with adding the Share URL button one level deep inside export. But I am open to changes.

@domoritz
Copy link
Member

domoritz commented Jul 7, 2019

@domoritz I am quite fine with adding the Share URL button one level deep inside export. But I am open to changes.

We had a lengthy discussion about this on Slack. It would be better to have it at the top level since share isn't part of export.

@algomaster99
Copy link
Member Author

@domoritz
Screenshot from 2019-07-07 23-43-01
Share button has been restored.

@algomaster99
Copy link
Member Author

@domoritz Shall we merge this?

@domoritz
Copy link
Member

domoritz commented Jul 8, 2019

  • Add back GIST loading
  • Make format work (should use compact format)
  • Update the help docs. We don't need to suggest F1 anymore. We should instead explain some common functionalities like formatting, clearing, ...
  • Rename "Options" to "Commands"

@domoritz
Copy link
Member

domoritz commented Jul 8, 2019

@siddhant1 We also need the help dialog cleanup for these changes (e.g. we want to docs links to be at the top of the help dialog).

@algomaster99
Copy link
Member Author

@domoritz Format works if you run it through the command palette.

@domoritz
Copy link
Member

domoritz commented Jul 8, 2019

Not for me:

editor

@algomaster99
Copy link
Member Author

@domoritz It initially too worked like this.
format

I think it is a problem with the Monaco editor's formatter.

@algomaster99
Copy link
Member Author

@domoritz I am thinking to modify it like this:
Screenshot from 2019-07-08 23-57-55

@domoritz
Copy link
Member

domoritz commented Jul 8, 2019

I think it is a problem with the Monaco editor's formatter.

Yep: microsoft/monaco-editor#889

@algomaster99
Copy link
Member Author

@domoritz Check the help modal too

@domoritz
Copy link
Member

domoritz commented Jul 8, 2019

Looks good. Let's move the docs links up.

@algomaster99
Copy link
Member Author

@domoritz Done!

@domoritz
Copy link
Member

domoritz commented Jul 8, 2019

Format still doesn't work correctly for me. I unchecked #379 (comment).

Can you move the references above the shortcuts?

@algomaster99
Copy link
Member Author

Screenshot from 2019-07-09 02-41-02

@algomaster99
Copy link
Member Author

algomaster99 commented Jul 9, 2019

@domoritz
Screenshot from 2019-07-09 13-57-54

@siddhant1
Copy link
Member

This looks too good!

@algomaster99 algomaster99 changed the title [WIP] Space out header Space out header Jul 10, 2019
Copy link
Member

@domoritz domoritz left a comment

Choose a reason for hiding this comment

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

Bugs I found:

  • The run button doesn't catch clicks on the whole button.
  • Cannot run at all in automatic mode.
  • Switching from manual to automatic moves the v

@algomaster99
Copy link
Member Author

algomaster99 commented Jul 11, 2019

@domoritz

  • Cannot run at all in automatic mode.

I am not sure if I get this. What is the problem exactly?

Copy link
Member

@domoritz domoritz left a comment

Choose a reason for hiding this comment

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

Just two small things and then we are good to go.

src/components/header/help-modal/index.tsx Show resolved Hide resolved
src/components/input-panel/spec-editor/index.tsx Outdated Show resolved Hide resolved
@domoritz domoritz merged commit eb8b0b5 into master Jul 11, 2019
@domoritz domoritz deleted the optimize-header branch July 11, 2019 11:46
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.

None yet

3 participants