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

feat(admin): makes it easier to navigate plugin dependencies #10312

Merged
merged 2 commits into from
Oct 7, 2016
Merged

feat(admin): makes it easier to navigate plugin dependencies #10312

merged 2 commits into from
Oct 7, 2016

Conversation

hypeJunction
Copy link
Contributor

Improves admin plugin management interface by listing plugin dependents
and conflicts with shortcut URLs. Modifies some styles and views to
make colors less aggressive, texts more readable and anchors recognizable.
Adds ElggPlugin::canDeactivate()

admin-plugin

@@ -71,3 +71,4 @@ startup.sh
!.gitignore
!.scripts
!.tx
/bower_components/
Copy link
Member

Choose a reason for hiding this comment

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

needed for this PR? or something from your own installation

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looks like some artifact left when switching branches. I will remove.

));
?>
<div class="elgg-state-draggable elgg-plugin elgg-state-inactive elgg-state-cannot-activate" id="<?php echo $css_id; ?>">
<div class="elgg-image-block">
Copy link
Member

Choose a reason for hiding this comment

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

can't we use elgg_view_image_block?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I suppose we can.

]);
}, $dependents);
$name = $this->getManifest()->getName();
$list = implode($list);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Meh


if (!empty($dependents)) {
$list = array_map(function(\ElggPlugin $plugin) {
$css_id = preg_replace('/[^a-z0-9-]/i', '-', $plugin->getManifest()->getID());
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We use this often. Let's add API

'text' => $plugin->getManifest()->getName(),
'href' => "#$css_id",
]);
$this->errorMsg = "Conflicts with plugin: $link";
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Add translation

@mrclay
Copy link
Member

mrclay commented Oct 3, 2016

I agree with your reviewing :)

@mrclay
Copy link
Member

mrclay commented Oct 3, 2016

Cannot deactivate plugins should have a white background, as they're active. And similarly cannot activate plugins should have the light grey background.

@mrclay
Copy link
Member

mrclay commented Oct 3, 2016

Idea: Instead of "Cannot activate" on the button, use "Activate [ban icon]" http://fontawesome.io/icon/ban/ and just take the regular button color and give the whole button opacity:.75. Similarly for Cannot deactivate. I can do this in a follow-up PR.

@hypeJunction
Copy link
Contributor Author

Not fan of ban icon. Prefer button with disabled atate

hypeJunction and others added 2 commits October 7, 2016 08:05
Improves admin plugin management interface by listing plugin dependents
and conflicts with shortcut URLs. Modifies some styles and views to
make colors less aggressive, texts more readable and anchors recognizable.
Adds ElggPlugin::canDeactivate()
Plugins are now activated and deactivated via ajax calls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants