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

UI: fix browser console formatting #20064

Merged
merged 11 commits into from
Apr 11, 2023

Conversation

hellobontempo
Copy link
Contributor

During the Ember upgrade to 3.24 we implemented some linting changes that inadvertently affected the browser console’s output. Each command should be on a separate line. Fixes #19568

before

Screenshot 2023-04-10 at 10 16 02 AM

after fix

  • each command is on a separate line
  • previous command displays beside chevron icon > (not on line below)

Screenshot 2023-04-10 at 10 22 58 AM

@hellobontempo hellobontempo added ui bug Used to indicate a potential bug labels Apr 10, 2023
@hellobontempo hellobontempo added this to the 1.11.10 milestone Apr 10, 2023
<p class="console-ui-command is-font-mono"><Icon @name="chevron-right" />{{@content}}</p>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

<pre> made the command to appear on a separate line, below the icon
Screenshot 2023-04-10 at 10 33 19 AM

@@ -1,8 +1,10 @@
<div class="console-ui-output has-copy-button">
<pre>Keys
<pre>
Keys
Copy link
Contributor Author

@hellobontempo hellobontempo Apr 10, 2023

Choose a reason for hiding this comment

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

aligns list items (previously, first key was not indented enough)
Screenshot 2023-04-10 at 10 34 00 AM

<p class="console-ui-command is-font-mono"><Icon @name="chevron-right" />{{@content}}</p>
Copy link
Contributor

Choose a reason for hiding this comment

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

:)

Copy link
Contributor

@Monkeychip Monkeychip left a comment

Choose a reason for hiding this comment

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

Thank you for fixing this!

@@ -47,7 +47,7 @@ module.exports = {
},
'require-input-label': 'off',
},
ignore: ['lib/story-md', 'tests/**'],
ignore: ['lib/story-md', 'tests/**', 'app/templates/components/console/*'],
Copy link
Contributor

@zofskeez zofskeez Apr 11, 2023

Choose a reason for hiding this comment

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

I wonder if it would be better to use a block quote to disable the specific rule in the file? This disables linting for all the files in that directory which then wouldn't catch any other errors.

@hellobontempo hellobontempo modified the milestones: 1.11.10, 1.13.2 Apr 11, 2023
hellobontempo added a commit that referenced this pull request Apr 11, 2023
* fix console formatting for help output

* fix again

* fix again

* fix, add to ignore

* fix, add to ignore

* add to ignore file

* fix formatting, no verify

* remove lib/story.md

* add changelog

* hold off updating ignore list for separate ticket

* fix test
hellobontempo added a commit that referenced this pull request Apr 11, 2023
* fix console formatting for help output

* fix again

* fix again

* fix, add to ignore

* fix, add to ignore

* add to ignore file

* fix formatting, no verify

* remove lib/story.md

* add changelog

* hold off updating ignore list for separate ticket

* fix test
hellobontempo added a commit that referenced this pull request Apr 12, 2023
* UI: fix browser console formatting (#20064)

* fix console formatting for help output

* fix again

* fix again

* fix, add to ignore

* fix, add to ignore

* add to ignore file

* fix formatting, no verify

* remove lib/story.md

* add changelog

* hold off updating ignore list for separate ticket

* fix test

* UI/add prettier ignore for ui console file (#20094)

* fix template-lintrc file

* add prettier ignore
hellobontempo added a commit that referenced this pull request Apr 12, 2023
* UI: fix browser console formatting (#20064)

* fix console formatting for help output

* fix again

* fix again

* fix, add to ignore

* fix, add to ignore

* add to ignore file

* fix formatting, no verify

* remove lib/story.md

* add changelog

* hold off updating ignore list for separate ticket

* fix test

* UI/add prettier ignore for ui console file (#20094)

* fix template-lintrc file

* add prettier ignore
@hellobontempo hellobontempo deleted the ui/VAULT-15381/ui-browser-console-formatting branch April 18, 2023 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Used to indicate a potential bug ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Vault Browser CLI issues
4 participants