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

remote magazines - remove ability to apply for moderator or owner #308

Merged
merged 7 commits into from
Nov 27, 2023

Conversation

e-five256
Copy link
Member

  • remove ability to apply for moderator and apply for ownership of remote magazines
  • do not return remote magazines in the find abanadoned call
  • sync apply for moderator button filters to the moderator sidebar
  • add missing reject text on moderator requests page

followup to #235

remove ability to apply for moderator and apply for ownership of remote magazines
do not return remote magazines in the find abanadoned call
sync apply for moderator button filters to the moderator sidebar
add missing reject text on moderator requests page
@e-five256 e-five256 added the frontend Visual issues, improvements, bugs or other aspects relating mostly to the front end label Nov 27, 2023
@@ -555,6 +555,7 @@ public function findAbandoned(int $page = 1): PagerfantaInterface
->where('mod.magazine IS NOT NULL')
->andWhere('mod.isOwner = true')
->andWhere('u.lastActive < :date')
->andWhere('m.apId IS NULL')
Copy link
Member Author

Choose a reason for hiding this comment

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

@nobodyatroot mentioned once that remote mags were showing up in the list of abandoned magazines allowing users to apply for ownership. Rather than add magazine.apId is same as null to all buttons, I chose instead to just make it so remote magazines do not get returned from this call

Copy link
Member Author

@e-five256 e-five256 Nov 27, 2023

Choose a reason for hiding this comment

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

I also need to change isAbandoned() it looks like, otherwise the button still appears on the moderator page
edit: done

the display is different when there are open requests to become a mod, it displays a count, so it seems useful for current mods to see this apply for mod button even though they already are one
@e-five256 e-five256 marked this pull request as ready for review November 27, 2023 13:52
fix moderators list component being included when no moderators
{{ pagerfanta(moderators, null, {'pageParameter':'[p]'}) }}
{% endif %}
{% if not moderators|length %}
{% if moderators|length %}
Copy link
Member Author

@e-five256 e-five256 Nov 27, 2023

Choose a reason for hiding this comment

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

found this while testing, list was being included even when no moderators, which is how we display kbin mags now similar to lemmy

images

before
image
after
image

@@ -54,7 +54,7 @@
<button type="submit"
class="btn btn__secondary"
title="{{ 'reject'|trans }}">
<i class="fa-solid fa-ban"></i>
<i class="fa-solid fa-ban"></i> {{ 'reject'|trans }}
Copy link
Member

Choose a reason for hiding this comment

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

Is the {{ 'reject'|trans }} doing something on this line?

Copy link
Member Author

@e-five256 e-five256 Nov 27, 2023

Choose a reason for hiding this comment

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

it adds the label after the icon to make it clearer what it's for.

oh, whoops, it should also be in a <span>; my bad, one second (added)

before
image
after
image

Copy link
Member

@nobodyatroot nobodyatroot left a comment

Choose a reason for hiding this comment

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

Looks good to me after a quick functional test on kbin.run.

@e-five256 e-five256 merged commit 3a392b8 into main Nov 27, 2023
7 checks passed
@e-five256 e-five256 deleted the e5/apply-remote-mod-owner branch November 27, 2023 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend Visual issues, improvements, bugs or other aspects relating mostly to the front end
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants