Skip to content

#4 Wiki Editing in tree structure - toggle button - #5

Merged
marius-meissner merged 4 commits into
masterfrom
wiki-editing-toggle-button
Jan 17, 2025
Merged

#4 Wiki Editing in tree structure - toggle button#5
marius-meissner merged 4 commits into
masterfrom
wiki-editing-toggle-button

Conversation

@vidhyasagargm

@vidhyasagargm vidhyasagargm commented Dec 21, 2024

Copy link
Copy Markdown

Hello @marius-meissner,
TO solve the issue #4, A toggle button has been implemented in order to toggle between enabling and disabling editing the wiki tree structure. The code is ready for review.

@marius-meissner marius-meissner left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thanks for the PR.
Nice test coverage btw. 👍

Changes have been deployed to the staging system successfully.
@TobiNeo Please have a look from your side as well.

Comment thread messages/de/base.php Outdated
Comment thread views/overview/list-categories.php Outdated
Comment on lines +53 to +57
<?php if ($contentContainer->can(AdministerPages::class)): ?>
<a href="<?= Url::current(['toggle-wiki-tree-editing']) ?>" class="btn btn-info btn-sm toggle-editing">
<?= $editingEnabled ? Yii::t('WikiModule.base', 'Disable wiki tree editing') : Yii::t('WikiModule.base', 'Enable wiki tree editing') ?>
</a>
<?php endif; ?>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The toggle buttons already take up a lot of space. Therefore, please nest them in a dropdown. You can call them options, for example.

@vidhyasagargm

Copy link
Copy Markdown
Author

Hello @marius-meissner ,
a dropdown menu has been added. The code is ready for review.

@marius-meissner marius-meissner left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Changes have been successfully deployed to staging.
@TobiNeo Please have a look from your side as well.

Looks good from my side, one tiny suggestion.

Comment thread views/overview/list-categories.php
@vidhyasagargm

Copy link
Copy Markdown
Author

Hello @marius-meissner ,
A gear wheel icon has been added into the options button. The code is ready for review.

@TobiNeo

TobiNeo commented Jan 13, 2025

Copy link
Copy Markdown

Thanks Vidhya. As discussed, I will prepare your next task ASAP- probably today or tomorrow.

Changes have been successfully deployed to staging.
@TobiNeo Please have a look from your side as well.

@marius-meissner:
grafik
Tried to check it in the system. This is how staging looks for me right now. Am I checking the wrong position?..^^

@vidhyasagargm

vidhyasagargm commented Jan 13, 2025

Copy link
Copy Markdown
Author

@marius-meissner: grafik Tried to check it in the system. This is how staging looks for me right now. Am I checking the wrong position?..^^

@TobiNeo
I believe you have to be a moderator or admin to get the toggle edit option.

@TobiNeo

TobiNeo commented Jan 13, 2025

Copy link
Copy Markdown

@marius-meissner: grafik Tried to check it in the system. This is how staging looks for me right now. Am I checking the wrong position?..^^

@TobiNeo I believe you have to be a moderator or admin to get the toggle edit option.

Hi Vidhya,
Right, that was indeed the issue. Global Admin rights are not enough, you need to be space admin/mod again - then it shows up:
grafik

Looks good from my perspective :)

@marius-meissner marius-meissner left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM.
Changes will be deployed soon to prod. system.

@vidhyasagargm Please create a upstream PR. Maybe some coordination is required, as the PR is based on your other PR humhub#357.

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

Successfully merging this pull request may close these issues.

3 participants