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

Hold my Beer (Fix of hi intellligent data lookup in TGUI Who/Staff Who #6786

Conversation

blackcrystall
Copy link
Contributor

🆑 BlackCrystalic
fix: No more admin data sended to normal players in who/staff who
/:cl:

@github-actions github-actions bot added the Fix Fix one bug, make ten more label Jul 24, 2024
Copy link
Contributor

@Drulikar Drulikar left a comment

Choose a reason for hiding this comment

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

		if(CLIENT_IS_STEALTHED(C) && !CLIENT_HAS_RIGHTS(src, R_STEALTH))
			continue
		if(C.admin_holder?.fakekey && !CLIENT_IS_STAFF(src))
			continue
  • usr should never be used in a ui_act. Use ui.user instead.
  • mobs_ckey should not be holding hard refs to mobs; and should instead hold weakrefs
  • Consider a color key for Staff Who-TGUI #6778

@Drulikar Drulikar marked this pull request as draft July 27, 2024 13:07
@blackcrystall
Copy link
Contributor Author

Done

@blackcrystall blackcrystall marked this pull request as ready for review July 27, 2024 22:41
Deleted user added 2 commits July 28, 2024 03:43
Copy link
Contributor

@Drulikar Drulikar left a comment

Choose a reason for hiding this comment

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

invismin & stealthed (these are two different things, thus the two different checks I previously mentioned) staff still appear in who for non-admins, and are still counted in the category in staff who. The only effect is invismin removes the entry under the dropdown (stealthed does nothing):
image

@Drulikar Drulikar marked this pull request as draft July 28, 2024 07:59
Deleted user added 2 commits July 28, 2024 17:05
@blackcrystall
Copy link
Contributor Author

Ok, done, I think thiss is what you mean by that

Deleted user added 3 commits July 28, 2024 17:07
@blackcrystall blackcrystall marked this pull request as ready for review July 28, 2024 12:09
code/controllers/subsystem/who.dm Outdated Show resolved Hide resolved
Copy link
Contributor

@Drulikar Drulikar left a comment

Choose a reason for hiding this comment

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

  • Currently a moderator cannot view the playing status of players or staff like a host can:
    image
    Only non-staff should have the limited views.
  • Because of above, that staff member then can't even see themself when they go invisim.
    invis
    Staff should still always have a staff view. The only escalated permission is that only management can see stealthed and utuilize stealth. Inivismin should only restrict non-staff from seeing them.

@Drulikar Drulikar marked this pull request as draft August 5, 2024 07:09
@blackcrystall
Copy link
Contributor Author

Oh my bad, used wrong check for perms

@blackcrystall blackcrystall marked this pull request as ready for review August 5, 2024 07:49
Copy link
Contributor

@Drulikar Drulikar left a comment

Choose a reason for hiding this comment

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

All above issues appear to be resolved.

Some of the tgui changes mentioned below are as a result of #6244
image

tgui/packages/tgui/interfaces/Who.jsx Show resolved Hide resolved
tgui/packages/tgui/interfaces/Who.jsx Outdated Show resolved Hide resolved
tgui/packages/tgui/interfaces/Who.jsx Outdated Show resolved Hide resolved
tgui/packages/tgui/interfaces/StaffWho.jsx Outdated Show resolved Hide resolved
Copy link
Contributor

Choose a reason for hiding this comment

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

It would be ideal for this file to be converted to a tsx file, but it is not required.

Copy link
Contributor

Choose a reason for hiding this comment

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

It would be ideal for this file to be converted to a tsx file, but it is not required.

tgui/packages/tgui/interfaces/Who.jsx Outdated Show resolved Hide resolved
@Drulikar Drulikar marked this pull request as draft August 5, 2024 11:53
@blackcrystall blackcrystall marked this pull request as ready for review August 6, 2024 05:43
tgui/packages/tgui/interfaces/Who.jsx Outdated Show resolved Hide resolved
Copy link
Contributor

@Drulikar Drulikar left a comment

Choose a reason for hiding this comment

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

Resolve above since you disallow maintainer modification.

@Drulikar Drulikar marked this pull request as draft August 6, 2024 16:16
@blackcrystall blackcrystall marked this pull request as ready for review August 7, 2024 06:43
@Drulikar Drulikar added this pull request to the merge queue Aug 7, 2024
@Drulikar Drulikar mentioned this pull request Aug 7, 2024
Merged via the queue into cmss13-devs:master with commit e931d41 Aug 7, 2024
28 checks passed
cm13-github added a commit that referenced this pull request Aug 7, 2024
@blackcrystall blackcrystall deleted the lol_no_one_care_about_what_we_sending_to_client_however_we_will_send_them_mine_NOW! branch August 11, 2024 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fix Fix one bug, make ten more UI deletes nanoui/html
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants