Skip to content

Commit

Permalink
Merge branch 'master' of github.com:scalableminds/webknossos into tea…
Browse files Browse the repository at this point in the history
…m_members

* 'master' of github.com:scalableminds/webknossos:
  Release 23.03.1 (#6917)
  Redesign Welcome UI (#6904)
  Fix race condition which could disable saving (#6914)
  • Loading branch information
hotzenklotz committed Mar 14, 2023
2 parents ce37e6c + 610669c commit 7b91d56
Show file tree
Hide file tree
Showing 12 changed files with 338 additions and 99 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.released.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,24 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Calendar Versioning](http://calver.org/) `0Y.0M.MICRO`.
For upgrade instructions, please check the [migration guide](MIGRATIONS.released.md).

## [23.03.1](https://github.com/scalableminds/webknossos/releases/tag/23.03.1) - 2023-03-14
[Commits](https://github.com/scalableminds/webknossos/compare/23.03.0...23.03.1)

### Added
- Added support for remote Zarr datasets with a `datasource-properties.json` as created by the WEBKNOSSOS Python library. [#6879](https://github.com/scalableminds/webknossos/pull/6879)

### Changed
- Upgraded antd UI library to v4.24.8 [#6865](https://github.com/scalableminds/webknossos/pull/6865)
- The view mode dropdown was slimmed down by using icons to make the toolbar more space efficient. [#6900](https://github.com/scalableminds/webknossos/pull/6900)

### Fixed
- Fixed a bug where N5 datasets reading with end-chunks that have a chunk size differing from the metadata-supplied chunk size would fail for some areas. [#6890](https://github.com/scalableminds/webknossos/pull/6890)
- Fixed potential crash when trying to edit certain annotation properties of a shared annotation. [#6892](https://github.com/scalableminds/webknossos/pull/6892)
- Fixed a bug where merging multiple volume annotations would result in inconsistent segment lists. [#6882](https://github.com/scalableminds/webknossos/pull/6882)
- Fixed a bug where uploading multiple annotations with volume layers at once would fail. [#6882](https://github.com/scalableminds/webknossos/pull/6882)
- Fixed a bug where dates were formatted incorrectly in Voxelytics reports. [#6908](https://github.com/scalableminds/webknossos/pull/6908)
- Fixed a rare bug which could cause an incorrectly initialized annotation so that changes were not saved in the current session. [#6914](https://github.com/scalableminds/webknossos/pull/6914)

## [23.03.0](https://github.com/scalableminds/webknossos/releases/tag/23.03.0) - 2023-02-28
[Commits](https://github.com/scalableminds/webknossos/compare/23.02.1...23.03.0)

Expand Down
11 changes: 2 additions & 9 deletions CHANGELOG.unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,15 @@ and this project adheres to [Calendar Versioning](http://calver.org/) `0Y.0M.MIC
For upgrade instructions, please check the [migration guide](MIGRATIONS.released.md).

## Unreleased
[Commits](https://github.com/scalableminds/webknossos/compare/23.03.0...HEAD)
[Commits](https://github.com/scalableminds/webknossos/compare/23.03.1...HEAD)

### Added
- Added support for remote Zarr datasets with a `datasource-properties.json` as created by the WEBKNOSSOS Python library. [#6879](https://github.com/scalableminds/webknossos/pull/6879)
- Added list of all respective team members to the administration page for teams. [#6915](https://github.com/scalableminds/webknossos/pull/6915)

### Changed
- Upgraded antd UI library to v4.24.8 [#6865](https://github.com/scalableminds/webknossos/pull/6865)
- The view mode dropdown was slimmed down by using icons to make the toolbar more space efficient. [#6900](https://github.com/scalableminds/webknossos/pull/6900)
- Updated the styling of the "welcome" screen for new users to be in line with the new branding. [#6904](https://github.com/scalableminds/webknossos/pull/6904)

### Fixed
- Fixed a bug where N5 datasets reading with end-chunks that have a chunk size differing from the metadata-supplied chunk size would fail for some areas. [#6890](https://github.com/scalableminds/webknossos/pull/6890)
- Fixed potential crash when trying to edit certain annotation properties of a shared annotation. [#6892](https://github.com/scalableminds/webknossos/pull/6892)
- Fixed a bug where merging multiple volume annotations would result in inconsistent segment lists. [#6882](https://github.com/scalableminds/webknossos/pull/6882)
- Fixed a bug where uploading multiple annotations with volume layers at once would fail. [#6882](https://github.com/scalableminds/webknossos/pull/6882)
- Fixed a bug where dates were formatted incorrectly in Voxelytics reports. [#6908](https://github.com/scalableminds/webknossos/pull/6908)

### Removed

Expand Down
9 changes: 8 additions & 1 deletion MIGRATIONS.released.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ See `MIGRATIONS.unreleased.md` for the changes which are not yet part of an offi
This project adheres to [Calendar Versioning](http://calver.org/) `0Y.0M.MICRO`.
User-facing changes are documented in the [changelog](CHANGELOG.released.md).

## [23.03.1](https://github.com/scalableminds/webknossos/releases/tag/23.03.1) - 2023-03-14
[Commits](https://github.com/scalableminds/webknossos/compare/23.03.0...23.03.1)
- WEBKNOSSOS now requires at least Java 11 (up from Java 8). [#6869](https://github.com/scalableminds/webknossos/pull/6869)

### Postgres Evolutions:
None.

## [23.03.0](https://github.com/scalableminds/webknossos/releases/tag/23.03.0) - 2023-02-28
[Commits](https://github.com/scalableminds/webknossos/compare/23.02.1...23.03.0)

Expand Down Expand Up @@ -529,4 +536,4 @@ No migrations necessary.


## [18.07.0](https://github.com/scalableminds/webknossos/releases/tag/18.07.0) - 2018-07-05
First release
First release
3 changes: 1 addition & 2 deletions MIGRATIONS.unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ This project adheres to [Calendar Versioning](http://calver.org/) `0Y.0M.MICRO`.
User-facing changes are documented in the [changelog](CHANGELOG.released.md).

## Unreleased
[Commits](https://github.com/scalableminds/webknossos/compare/23.03.0...HEAD)
- WEBKNOSSOS now requires at least Java 11 (up from Java 8). [#6869](https://github.com/scalableminds/webknossos/pull/6869)
[Commits](https://github.com/scalableminds/webknossos/compare/23.03.1...HEAD)

### Postgres Evolutions:
95 changes: 39 additions & 56 deletions frontend/javascripts/admin/welcome_ui.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
import {
CloseOutlined,
CloudUploadOutlined,
MailOutlined,
PlayCircleOutlined,
PlusCircleOutlined,
RightOutlined,
} from "@ant-design/icons";
import { CloseOutlined } from "@ant-design/icons";
import { Button, Tooltip } from "antd";
import * as React from "react";
import { Link } from "react-router-dom";
Expand All @@ -31,7 +24,6 @@ const WhatsNextAction = ({ title, description, icon, onClick, href, to }: WhatsN
<h2>{title}</h2>
<p>{description}</p>
</div>
<RightOutlined className="chevron" />
</React.Fragment>
);

Expand Down Expand Up @@ -81,58 +73,49 @@ export const WhatsNextHeader = ({ activeUser, onDismiss }: WhatsNextHeaderProps)
</div>
<div className="welcome-header-content">
<div className="text-and-button-container">
<h1>Welcome to WEBKNOSSOS!</h1>
<div className="subtitle">
<p
style={{
fontSize: 20,
lineHeight: 1.5,
marginTop: 0,
marginBottom: 8,
}}
>
Congratulations on your new WEBKNOSSOS account! To hit the ground running, we
recommend the following steps to you:
</p>
<div className="whats-next-actions-grid">
<h1>Welcome to WEBKNOSSOS</h1>
<p className="subtitle">
Congratulations on your new WEBKNOSSOS account! To hit the ground running, we recommend
the following steps to you:
</p>
<div className="whats-next-actions-grid">
<WhatsNextAction
title="Open a Demo Dataset"
description="Have a look at a public dataset to experience WEBKNOSSOS in action."
href={getDemoDatasetUrl()}
icon={<i className="icon-open-demo" />}
/>

{isUserAdminOrDatasetManager(activeUser) ? (
<WhatsNextAction
title="Open a Demo Dataset"
description="Have a look at a public dataset to experience WEBKNOSSOS in action."
href={getDemoDatasetUrl()}
icon={<PlayCircleOutlined className="action-icon" />}
title="Import Your Own Data"
description="Directly upload your data as a zip file."
to="/datasets/upload"
icon={<i className="icon-import-own-data" />}
/>
) : null}

{isUserAdminOrDatasetManager(activeUser) ? (
<WhatsNextAction
title="Import Your Own Data"
description="Directly upload your data as a zip file."
to="/datasets/upload"
icon={<CloudUploadOutlined className="action-icon" />}
/>
) : null}

<WhatsNextAction
title="Learn How To Create Annotations"
description="Watch a short video to see how data can be annotated with WEBKNOSSOS."
icon={<i className="icon-annotate" />}
href="https://www.youtube.com/watch?v=jsz0tc3tuKI&t=30s"
/>
{isUserAdminOrTeamManager(activeUser) ? (
<WhatsNextAction
title="Learn How To Create Annotations"
description="Watch a short video to see how data can be annotated with WEBKNOSSOS."
icon={<PlusCircleOutlined className="action-icon" />}
href="https://www.youtube.com/watch?v=jsz0tc3tuKI&t=30s"
title="Invite Your Colleagues"
description="Send email invites to your colleagues and ask them to join your organization."
icon={<i className="icon-invite-colleagues" />}
onClick={() => {
renderIndependently((destroy) => (
<InviteUsersModal
organizationName={activeUser.organization}
destroy={destroy}
/>
));
}}
/>
{isUserAdminOrTeamManager(activeUser) ? (
<WhatsNextAction
title="Invite Your Colleagues"
description="Send email invites to your colleagues and ask them to join your organization."
icon={<MailOutlined className="action-icon" />}
onClick={() => {
renderIndependently((destroy) => (
<InviteUsersModal
organizationName={activeUser.organization}
destroy={destroy}
/>
));
}}
/>
) : null}
</div>
) : null}
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion frontend/javascripts/oxalis/model/sagas/save_saga.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,7 @@ export function* setupSavingForTracingType(
const allowUpdate = yield* select(
(state) => state.tracing.restrictions.allowUpdate && state.tracing.restrictions.allowSave,
);
if (!allowUpdate) return;
if (!allowUpdate) continue;
const tracing = (yield* select((state) => selectTracing(state, saveQueueType, tracingId))) as
| VolumeTracing
| SkeletonTracing;
Expand Down
73 changes: 47 additions & 26 deletions frontend/stylesheets/_dashboard.less
Original file line number Diff line number Diff line change
Expand Up @@ -28,41 +28,47 @@
}

.welcome-header-wrapper {
background-color: @component-background;
background-image: linear-gradient(0deg, @body-background 0%, @blue-1 70%);
background: @background-blue-neurons;

button {
color: white
}
}
.welcome-header-content {
padding: 20px 0px 20px;

padding: 40px 0px 40px;
.text-and-button-container {
max-width: 1000px;
margin: auto;

h1 {
color: @text-color;
margin-left: 56px;
color: white;
font-weight: 200;
font-size: 64px;
line-height: 150%;
margin-bottom: 0;
text-align: center;
}

.subtitle {
margin: 0 20px 0px 60px;
color: white;
font-weight: 300;
font-size: 20px;
font-size: 18px;
line-height: 150%;
color: @text-color-secondary;
max-width: 70%;
text-align: center;
margin-left: auto;
margin-right: auto;
}

.whats-next-actions-grid {
display: flex;
flex-wrap: wrap;
justify-content: left;
justify-content: center;
padding-inline-start: 0;

a {
color: rgb(107, 114, 128);
color: @black;
flex: 0 1 400px; /* No stretching: */
margin: 20px;
margin-left: 0;
Expand All @@ -84,34 +90,27 @@
h2 {
font-size: 16px;
line-height: 18px;
color: @text-color;
margin-bottom: 4px;
color: @black;
margin-bottom: 8px;
}

p {
font-size: 14px;
line-height: 18px;
color: @text-color-secondary;
color: @black;
margin: 0;
}

.chevron,
.action-icon {
font-size: 32px;
margin: 8px;
}

background: @component-background;
box-shadow: @box-shadow-base;
background: white;
border-radius: 3px;
border: white 2px solid;
}

a:hover {
background: @primary-color;

.chevron,
.action-icon {
color: @text-color-dark;
i {
filter: brightness(100);
}

h2 {
Expand All @@ -122,6 +121,28 @@
color: @text-color-secondary-dark;
}
}

.icon-open-demo {
background-image: url(/assets/images/icon-open-demo.svg);
};
.icon-import-own-data {
background-image: url(/assets/images/icon-import-own-data.svg);
background-size: 94px;
};
.icon-annotate {
background-image: url(/assets/images/icon-annotate.svg);
};
.icon-invite-colleagues {
background-image: url(/assets/images/icon-invite-colleagues.svg);
};

i {
background-repeat: no-repeat;
background-size: 100px;
background-position: center;
height: 100%;
width: 64px;
}
}
}
}
Expand Down
4 changes: 0 additions & 4 deletions frontend/stylesheets/dark.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ body {
background-color: #000;
}

.welcome-header-wrapper {
background-image: linear-gradient(0deg, @body-background 0%, @blue-2 70%);
}

.info-tab-block .info-tab-icon {
filter: invert(1);
svg {
Expand Down
Loading

0 comments on commit 7b91d56

Please sign in to comment.