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

fixes#706condensed-header #760

Merged
merged 3 commits into from
Jul 6, 2022
Merged

fixes#706condensed-header #760

merged 3 commits into from
Jul 6, 2022

Conversation

cwillum
Copy link
Contributor

@cwillum cwillum commented Jul 6, 2022

Fixes #706

@joshuarrrr Hi Joshua, could you have a look at the additions I made here and make sure I captured everything we need to have? Also, will this backport to 1.3 and 2.0? Thanks.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: cwillum <cwmmoore@amazon.com>
@cwillum cwillum added v2.1.0 3 - Tech review PR: Tech review in progress backport 1.3 PR: Backport label for v1.3.x backport 2.0 PR: Backport label for v2.0.x labels Jul 6, 2022
@cwillum cwillum requested a review from a team as a code owner July 6, 2022 00:42
@@ -35,6 +35,8 @@ loadingLogo | Loading logo used when OpenSearch Dashboards is starting. See #3 i
faviconUrl | Website icon. Loads next to the application title. See #4 in the image.
applicationTitle | The application's title. See #5 in the image.

**Note** --- To consolidate navigation controls and reduce the space the header takes up on the page, see [Condensed header](#condensed-header).

Copy link
Collaborator

Choose a reason for hiding this comment

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

For notes, you can use the Markdown {: .note } marker. Example:

This is a note.
{: .note }

useExpandedHeader: false
```

**Note:** --- In a future release, default behavior will become `useExpandedHeader: false`. If you want to retain the default view in subsequent releases, you can explicitly set the property to `true` in advance. You can also wait to do this when upgrading.
Copy link
Collaborator

Choose a reason for hiding this comment

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

See @kolchfa-aws comment on notes.

@Naarcha-AWS
Copy link
Collaborator

Looks good besides a quick fix from @kolchfa-aws.

@kolchfa-aws kolchfa-aws self-requested a review July 6, 2022 15:26
Copy link
Collaborator

@kolchfa-aws kolchfa-aws left a comment

Choose a reason for hiding this comment

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

LGTM. Please use the {: .note} notation for notes.

@cwillum cwillum added 5 - Editorial review PR: Editorial review in progress and removed 3 - Tech review PR: Tech review in progress labels Jul 6, 2022
Signed-off-by: cwillum <cwmmoore@amazon.com>
@cwillum cwillum requested a review from natebower July 6, 2022 18:20
Copy link
Collaborator

@natebower natebower left a comment

Choose a reason for hiding this comment

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

@cwillum Please see my changes and let me know if you have any questions. Thanks!

In a future release, default behavior will become `useExpandedHeader: false`. If you want to retain the default view in subsequent releases, you can explicitly set the property to `true` in advance. You can also wait to do this when upgrading.
{: .note }

The condensed view header appears as in the example here.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Instead of "here", can we use "below"?

useExpandedHeader: false
```

In a future release, default behavior will become `useExpandedHeader: false`. If you want to retain the default view in subsequent releases, you can explicitly set the property to `true` in advance. You can also wait to do this when upgrading.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Last sentence: Would any meaning be lost if we just said "You can also do this when upgrading"? Otherwise, I would replace "to" with "and".


Header element | Description
:--- | :---
Home button | See #1. Returns to home page and provides an indication when a page is loading.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Insert "the" before "home page".

OpenSearch logo | See #1. Functions as the home button.
Header bar | See #2. A single header bar used for all navigation controls.

The default view remains close to the traditional view with minor changes.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Insert a comma after the second instance of "view".

Header label | See #2. The label also functions as a home button.
Navigation controls | See #3. Additional navigation controls on right-side insertion points.

#### Preserving nagivation elements in default view
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we consistently use "the default view" as opposed to using just "default view" here?


#### Preserving nagivation elements in default view

You can continue using the top header bar in the default view for custom navigation links (such as menu items and plugins). Follow the steps below to keep these elements in the top header in default view.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Second sentence: same comment re: "the default view".

@natebower natebower removed the 5 - Editorial review PR: Editorial review in progress label Jul 6, 2022
Signed-off-by: cwillum <cwmmoore@amazon.com>
@cwillum
Copy link
Contributor Author

cwillum commented Jul 6, 2022

@natebower I've incorporated all of your suggestions. Thanks.

@cwillum cwillum merged commit 2f0d107 into main Jul 6, 2022
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jul 6, 2022
Signed-off-by: cwillum <cwmmoore@amazon.com>
(cherry picked from commit 2f0d107)
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jul 6, 2022
Signed-off-by: cwillum <cwmmoore@amazon.com>
(cherry picked from commit 2f0d107)
cwillum pushed a commit that referenced this pull request Jul 6, 2022
Signed-off-by: cwillum <cwmmoore@amazon.com>
cwillum added a commit that referenced this pull request Jul 6, 2022
@Naarcha-AWS Naarcha-AWS added backport 2.1 and removed backport 1.3 PR: Backport label for v1.3.x labels Jul 7, 2022
@opensearch-trigger-bot
Copy link

The backport to 2.1 failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-2.1 2.1
# Navigate to the new working tree
cd .worktrees/backport-2.1
# Create a new branch
git switch --create backport/backport-760-to-2.1
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 2f0d1074de20f8b5469d0250371870f7d237fc57
# Push it to GitHub
git push --set-upstream origin backport/backport-760-to-2.1
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-2.1

Then, create a pull request where the base branch is 2.1 and the compare/head branch is backport/backport-760-to-2.1.

@cwillum cwillum removed the backport 2.0 PR: Backport label for v2.0.x label Jul 7, 2022
@Naarcha-AWS Naarcha-AWS deleted the fix#706-condensed-header branch December 12, 2022 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Dashboards]: Change to menu bars
4 participants