invenio-app-rdm
invenio-app-rdm copied to clipboard
Creating access token via ui does not lead back to the application overview
Package version (if known): v7 (but also older versions had this issue)
Describe the bug
When creating an access token the last step does not lead back to the Application overview but shows me a 'save'-button that does nothing? or it does something and the user does not get informed that is does something - you will stay on the same page and can click the button several times with no change.
Steps to Reproduce
- Sign up https://inveniordm.web.cern.ch/signup/
- Go to 'Applications' (drop down on the signed up account)
- Create an access token:
- Click here on 'New token':

- Add a name and click 'Create':

- Click on 'Save'

- Leads to:

Expected behavior
I'm not sure whether the 'save' button on the last step leads to something - if it is needed, then after clicking it you might should get back to the 'Applications' overview.

Currently you have to click on any of the other menu to be able to 'reload' or select again the 'Applications' view.
This issue was automatically marked as stale.
The save button allows you to change the scopes (currently only one today) and the name of the token so I think it's correct that it stays on the page.
I disagree. After the creation of a token you are not able to come back to this page in a reasonable way:

You stay on the page with the token:

The only way to come back to the 'Applications'-Overview is by reloading your whole page, or by clicking on some of the other menu (profile, change password, ...) and then click again on 'applications'.
The current behaviour of save button in other places in Invenio is that it stays on the detail page that you're editing so I don't want to change this part of the behaviour.
We can either make "Applications" linked or add a third button saying staying e.g. "Cance"l that will lead back.
Interesting view --- since the 'save' and 'delete' is on the bottom of the page - my mind decided/expected that after a 'save' the page is gone. Just as with popup windows (e.g. adding a creator - where with the save the window is gone). It would never had come to my mind to see this page as the 'records-draft' page, where the 'publish' leads to the published landing page.
'Cancel' feels wrong for me... Because I just created a token, saved it and I wouldn't know what to expect what 'cancel' then means.
A button 'back to the overview' or making 'Applications' to be clicked again to get on the overview would make sense for me.
This issue was automatically marked as stale.