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

Remove the 'New View' sidebar link #6703

Merged
merged 6 commits into from
Jul 18, 2022

Conversation

janfaracik
Copy link
Contributor

@janfaracik janfaracik commented Jun 26, 2022

This PR removes the 'New View' sidebar link as it's currently duplicated on the page, once in the tab bar and once in the sidebar. This simplifies the page and makes it easier to tab through.

Proposed changelog entries

  • Remove the 'New View' sidebar link.

Proposed upgrade guidelines

N/A

Submitter checklist

  • (If applicable) Jira issue is well described
  • Changelog entries and upgrade guidelines are appropriate for the audience affected by the change (users or developer, depending on the change) and are in the imperative mood. Examples
    • Fill-in the Proposed changelog entries section only if there are breaking changes or other changes which may require extra steps from users during the upgrade
  • Appropriate autotests or explanation to why this change has no tests
  • New public classes, fields, and methods are annotated with @Restricted or have @since TODO Javadoc, as appropriate.
  • New deprecations are annotated with @Deprecated(since="TODO") or @Deprecated(since="TODO", forRemoval=true) if applicable.
  • For dependency updates: links to external changelogs and, if possible, full diffs

Desired reviewers

@jenkinsci/sig-ux

Maintainer checklist

Before the changes are marked as ready-for-merge:

  • There are at least 2 approvals for the pull request and no outstanding requests for change
  • Conversations in the pull request are over OR it is explicit that a reviewer does not block the change
  • Changelog entries in the PR title and/or Proposed changelog entries are accurate, human-readable, and in the imperative mood
  • Proper changelog labels are set so that the changelog can be generated automatically
  • If the change needs additional upgrade steps from users, upgrade-guide-needed label is set and there is a Proposed upgrade guidelines section in the PR title. (example)
  • If it would make sense to backport the change to LTS, a Jira issue must exist, be a Bug or Improvement, and be labeled as lts-candidate to be considered (see query).

@timja timja requested a review from a team June 26, 2022 13:55
@timja timja added web-ui The PR includes WebUI changes which may need special expertise needs-security-review Awaiting review by a security team member labels Jun 26, 2022
@NotMyFault NotMyFault requested a review from a team June 26, 2022 14:05
@@ -127,8 +127,9 @@ public void doNotAcceptNonHttpBasedRootURL_fromConfigXml() {

@Test
@Issue("SECURITY-1471")
public void cannotInjectJavaScriptUsingRootUrl_inNewViewLinkAction() throws Exception {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've updated the test as the 'New View' sidebar action is gone now. The updated test instead tests the 'New View' tab bar link. I've had to create a new project at the start of the test to bypass the 'Welcome to Jenkins!' screen.

@daniel-beck
Copy link
Member

@uhafner
Copy link
Member

uhafner commented Jul 1, 2022

I think the + button has a clear visualization right now (a tool tip wouldn't hurt though). In the old style tabs it was not clear that one can add a new view.

@uhafner
Copy link
Member

uhafner commented Jul 1, 2022

I wonder if it would also make sense (not in this PR) to remove the edit and delete view actions in the side panel (for the active view). Maybe those can be integrated into the tab header somehow? What do you think?

@janfaracik
Copy link
Contributor Author

I think the + button has a clear visualization right now (a tool tip wouldn't hurt though). In the old style tabs it was not clear that one can add a new view.

image

Agreed! I've added a tooltip to the + button :)

I wonder if it would also make sense (not in this PR) to remove the edit and delete view actions in the side panel (for the active view). Maybe those can be integrated into the tab header somehow? What do you think?

I also agree, ideally I'd like to move actions to the top app bar and use the sidebar solely for navigation.

Cheers :)

@daniel-beck
Copy link
Member

Remember that actions removed from the sidepanel are also removed from the breadcrumbs, making them less easily accessible.

@timja
Copy link
Member

timja commented Jul 2, 2022

can we run through ATH?

@daniel-beck daniel-beck added security-approved @jenkinsci/core-security-review reviewed this PR for security issues and removed needs-security-review Awaiting review by a security team member labels Jul 5, 2022
@NotMyFault NotMyFault removed the request for review from a team July 5, 2022 11:49
Copy link
Member

@timja timja left a comment

Choose a reason for hiding this comment

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

ATH has passed #6703


This PR is now ready for merge, after ~24 hours, we will merge it if there's no negative feedback.

Thanks!

@timja timja added ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback rfe For changelog: Minor enhancement. use `major-rfe` for changes to be highlighted labels Jul 7, 2022
@timja timja merged commit d03b1ba into jenkinsci:master Jul 18, 2022
@timja timja deleted the remove-new-view-link branch July 18, 2022 11:40
@daniel-beck
Copy link
Member

Caused JENKINS-70825.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback rfe For changelog: Minor enhancement. use `major-rfe` for changes to be highlighted security-approved @jenkinsci/core-security-review reviewed this PR for security issues web-ui The PR includes WebUI changes which may need special expertise
Projects
None yet
5 participants