Skip to content

List batches page#209

Open
MirSzabo wants to merge 14 commits into
developfrom
list_batches_page
Open

List batches page#209
MirSzabo wants to merge 14 commits into
developfrom
list_batches_page

Conversation

@MirSzabo
Copy link
Copy Markdown
Collaborator

@MirSzabo MirSzabo commented Apr 24, 2020

solves #189
in progress:

@zkwsk
Copy link
Copy Markdown
Collaborator

zkwsk commented Apr 26, 2020

I get redirected directly to the list-batches page, no matter what I do.

Copy link
Copy Markdown
Collaborator

@zkwsk zkwsk left a comment

Choose a reason for hiding this comment

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

I get redirected to the list-batches page no matter what I do. Even if I'm not logged in.

Comment thread src/client/containers/login-page/login-page.component.js

useEffect(() => {
if (user) history.replace('/dashboard');
if (user) history.replace('/list-batches');
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

What is this about?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Sorry, didn't realize that the list batches page comes up before so you can select which dashboard.

Currently you are redirected to this page even if you're not logged in though. That needs to be resolved.

Also the menu is completely blank. I think there should be options to log out and add batches (add batches, only provided you have authorization to see that).

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Probably involves changing the sidebar component a bit to allow for easier turning on/off options.

@zkwsk zkwsk changed the base branch from develop to master April 26, 2020 15:35
@zkwsk zkwsk changed the base branch from master to develop April 26, 2020 15:35
@zkwsk
Copy link
Copy Markdown
Collaborator

zkwsk commented Apr 26, 2020

Decided together with @dpfernandes that we will not merge this before wednesday.

Would like to set it up with a url structure so you can deeplink to the individual dashboards. This will also be necessary for the batch details component to know which batch to show details for.

In theory we could handle it with internal state in context, but this is the kind of content you typically want to be able to deeplink to.

Also, I'm not quite convinced that you should always land on this page when you sign in. If you have previously chosen a batch I think you should end on the dashboard for that batch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants