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

Needed Improvements #1

Closed
ArchBlood opened this issue Apr 30, 2024 · 3 comments
Closed

Needed Improvements #1

ArchBlood opened this issue Apr 30, 2024 · 3 comments

Comments

@ArchBlood
Copy link

So after testing out the module I can see some improvements that could be made;

When I tried enabling the module from the marketplace it threw me an error that the resources could not be found, rather weird as I keep my demo updated to the latest changes in the develop branch, so that comes to my other thought which is you're making calls to module classes that aren't installed or enabled, namely the Calendar module, looking deeper I see you make no checks for Yii::$app->hasModule('calendar') which could be the issue;

I've also noticed in the view files there are a few issues;

use humhub\modules\menuManager\models\Configuration;use humhub\modules\menuManager\models\MenuEntryConfig;use humhub\modules\ui\form\widgets\ActiveForm;use humhub\modules\ui\form\widgets\IconPicker;use humhub\modules\ui\view\components\View;

use humhub\modules\menuManager\models\Configuration;use humhub\modules\menuManager\Module;use humhub\modules\ui\form\widgets\ActiveForm;use humhub\modules\ui\view\components\View;use humhub\widgets\Button;

Another suggestion would be making the field for "Home" optional or rely on an external module so that it doesn't create another menu item which automatically appends to the "Dashboard", see the screenshot below;
Screenshot_1

@marc-farre
Copy link
Member

@ArchBlood Thanks for your feedback.

1/ See humhub/humhub#6978

2/ Fixed in commit 7385301

3/ I agree, but your screenshot shows a specific configuration where you changed the default Dashboard icon with the "Home" icon. But even is "Dashboard" is the default home page, it's often changed to another page, e.g. a custom page. I prefer to leave it as it is, each one can configure the module the way they want for their usage.

@ArchBlood
Copy link
Author

ArchBlood commented Apr 30, 2024

3/ I agree, but your screenshot shows a specific configuration where you changed the default Dashboard icon with the "Home" icon. But even is "Dashboard" is the default home page, it's often changed to another page, e.g. a custom page. I prefer to leave it as it is, each one can configure the module the way they want for their usage.

I've also tested without any configurations with the same being the result;
"Home" is displayed as well as "Dashboard" but both menu items direct to the same place which is the dashboard.
Screenshot_1

Solution would be making this not visible by all by default.

@marc-farre
Copy link
Member

Solution would be making this not visible by all by default.

I thought about it, but it adds complexity in the code and I think it's not bad to show that this module can add a "Home" item. It's only one click to hide it.

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

No branches or pull requests

2 participants