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

Set of backend/frontend fixes #343

Merged
merged 14 commits into from
Mar 22, 2021
Merged

Conversation

szymon-owczarzak
Copy link
Contributor

@szymon-owczarzak szymon-owczarzak commented Mar 18, 2021

Frontend Fixes:

  • Small status Icon from the widget header was removed
  • Widget Titles are now centered
  • Widget Title text max length is now 50 (was 25)
  • Widgets more action is now visible only when the cursor is above this widget
  • Remove go to buttons from Bamboo, Jenkins, SonarQube widgets and instead make the content clickable
  • Decrease spacing between the Last update timestamp and bottom border of the widget
  • Widget content will display scroll
  • ToDo List widget - font size decreased

Backend Fixes:

  • JenkinsJob widget button fix - when 2 public URLs configured for an endpoint then the private URL was not replaced on the button
  • SonarQube wiremock endpoints fixed
  • JenkinsJob widget will use last of the branches provided in the API response
  • init config updated to show new features

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • Automated functional tests have been added or modified to cover my changes (if applicable)
  • I have updated the documentation accordingly.

I hereby agree to the terms of the Cogboard Contributor License Agreement.

@szymon-owczarzak szymon-owczarzak self-assigned this Mar 18, 2021
szymon.owczarzak added 2 commits March 18, 2021 10:50
@szymon-owczarzak szymon-owczarzak changed the title UI Fixes - more compact widget design Set of backend/frontend fixes Mar 18, 2021
Comment on lines +48 to +56
(data.getJsonArray("actions")
?.stream()
?.map { it as JsonObject }
?.filter { it.containsKey("lastBuiltRevision") }
?.toList()
?.last() as JsonObject)
.getJsonObject("lastBuiltRevision")
?.getJsonArray("branch")
?.first().let { branch = (it as JsonObject).getString("name") }
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Take lase instead of first branch mentioned in the API response

Comment on lines -52 to -60
<WidgetFooter
updateTimestamp={updateTimestamp}
expanded={expanded}
handleToggle={handleToggle}
content={content}
expandContent={expandContent}
closeWidgets={closeWidgets}
id={id}
/>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moved higher in the hierarchy of the elements for better layout

Comment on lines +194 to +200
isAuthenticated &&
isHoover && (
<WidgetMenuWrapper status={widgetStatus} theme={theme}>
<MoreMenu
color={
whiteSpaceInAuthenticatedMode ? 'primary' : 'default'
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

More menu is now shown only when the mouse cursor is above the widget.

@@ -40,7 +40,7 @@ const ToDoListWidget = ({ id, selectedItems }) => {
}
label={
<Typography
variant="subtitle1"
variant="caption"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

smaller font for items

Comment on lines +6 to +10
margin-left: 8px;

.MuiSvgIcon-root {
font-size: 1rem;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

smaller chcekbox

@szymon-owczarzak szymon-owczarzak added the enhancement New feature or request label Mar 22, 2021
@szymon-owczarzak szymon-owczarzak merged commit 8e6a215 into master Mar 22, 2021
@szymon-owczarzak szymon-owczarzak deleted the ui-fixes/widgets-more-compact branch March 22, 2021 09:09
@GrzegorzBednarski
Copy link
Collaborator

Tested & accepted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants