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

[4.0] Blog Sample Data doesn't show completed. #24459

Closed
N6REJ opened this issue Apr 2, 2019 · 13 comments
Closed

[4.0] Blog Sample Data doesn't show completed. #24459

N6REJ opened this issue Apr 2, 2019 · 13 comments

Comments

@N6REJ
Copy link
Contributor

N6REJ commented Apr 2, 2019

Steps to reproduce the issue

install clean dev_4.0
after installation run blog sample data installer

Expected result

sample data is installed and informs me its completed.
install button changes to "installed" or "completed"
progress bar goes away or CLEARLY indicates completed ( change color? )

Actual result

image

System information (as much as possible)

systeminfo-2019-04-02T20_55_44+00_00.txt

Additional comments

@Bakual
Copy link
Contributor

Bakual commented Apr 2, 2019

The last message states it has been installed and the progress bar is at 100%. Imho it's quite clear.

Of course the bar could be changing colors (should be simple with CSS) - but I wouldn't make that specific for the sample data. Progress bars ideally look the same in the whole CMS.
I also wouldn't hide it. That would be strange and unexpected.

I wouldn't touch the "install" buttons. After a page refresh they would be back at initial state anyway.

Maybe the last message could be a different color or another text to indicate better it's the last one.

@N6REJ N6REJ changed the title Blog Sample Data doesn't show completed. J4 Blog Sample Data doesn't show completed. Apr 2, 2019
@ghost
Copy link

ghost commented Apr 3, 2019

Maybe the last message could be a different color (...) to indicate better it's the last one.

+1 for this.

@joomla-cms-bot joomla-cms-bot changed the title J4 Blog Sample Data doesn't show completed. [4.0] Blog Sample Data doesn't show completed. Apr 3, 2019
@hardik-codes
Copy link
Contributor

Maybe the last message could be a different color or another text to indicate better it's the last one.

@Bakual should I do these changes

@Bakual
Copy link
Contributor

Bakual commented Apr 3, 2019

@hardik-codes You don't have to ask for permission. Just do if you're interested 😄

@hardik-codes
Copy link
Contributor

hardik-codes commented Apr 3, 2019

@Bakual What should be the exact change so that it is consistent with the joomla design?

@Bakual
Copy link
Contributor

Bakual commented Apr 3, 2019

I have no clue - I'm not a designer 😄
Maybe @coolcat-creations has an idea.

@coolcat-creations
Copy link
Contributor

If all the steps are bound to each other its enough to have 1 Progressbar, telling the current progress and in the end the result (installation of sample data completed) no need so much messages IMHO.

@infograf768
Copy link
Member

it is not really. Some steps can succeed while others will not.

@brianteeman
Copy link
Contributor

Is it ever possible for a scenario like this?
Step 1 - pass
Step 2 - fail
Step 3 - pass
Step 4 - pass

@infograf768
Copy link
Member

Yes, I remarked that when the plugin was modified in 3.9 for security reasons.
It will be merged in 4.0 with this new code.

bbdf775#diff-8ca6ae5a8651d5eb87f3bad712894457

capture

In my test I had there refused core.create for menus to an admin.

For that case we could also add the the authorisation (core.create) for all components used in the first public function onSampledataGetOverview() therefore refusing to run the plugin when the user has no create rights for ALL the components involved.

Note : a failure for one iteration may also happen if the component concerned is NOT enabled.
Note 2 : It will be necessary anyway to make a patch for the multilingual sample data after the 3.9 commit is merged into 4.0

@Bakual
Copy link
Contributor

Bakual commented Apr 3, 2019

It can skip a step if some requirements are not met (eg if an extensions isn't installed), but that's still technically a success. If one step actually fails, the whole thing will stop and it will never go further.

@ghost ghost added the J4 Issue label Apr 4, 2019
@pe7er
Copy link
Contributor

pe7er commented Apr 24, 2019

I was also a bit confused about installing sample content:
the progress bar is animated, and keeps "moving" even after the installation has been completed.

<div class="progress">
	<div class="progress-bar progress-bar-striped progress-bar-animated bg-success" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="100" style="width: 100%;">4/4</div>
</div>

Can't we remove the "progress-bar-animated" part with JavaScript after the installation has been finished?

@brianteeman
Copy link
Contributor

better yet - remove the animated part completely as it fails a11y reduced-motion tests

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

No branches or pull requests

8 participants