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

Add Pre-configured Avatars #753

Open
wants to merge 46 commits into
base: develop
Choose a base branch
from

Conversation

madison-boman
Copy link
Contributor

@madison-boman madison-boman commented Apr 29, 2021

  • Creates Pre-configured Avatars via bundles to improve Avatar accessibility.
  • Management is located in MissionControl > AvatarBundles > Pre-configured Avatars.
  • Avatars can be set using only a keyboard and, supports screen readers.
  • A user's avatar now has alternative text that describes the avatars outfit.
  • Other Avatar interface accessibility improvements

madison-boman added 27 commits April 29, 2021 11:56
Only body layers can be edited and premade bundles
When a bundle is selected, resets the clothing on avatar container
Adds avatar or, throws error with saved state
Preserves the aria-label on the avatar container
These somehow got deleted during rebase
Added extra if statement that was deleted
After you click save with a premade avatar
@madison-boman madison-boman requested a review from iafb April 29, 2021 19:11
@madison-boman madison-boman added the awaiting translation Awaiting translation(s) label Apr 29, 2021
@madison-boman madison-boman requested review from iafb and removed request for iafb June 17, 2021 22:06
@madison-boman madison-boman added this to the Spring 2022 milestone Nov 10, 2021
Copy link
Contributor

@iafb iafb left a comment

Choose a reason for hiding this comment

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

  • Mission Control avatars bundle page should highlight the Default tab if no search is selected
  • The default tab should only show default bundles and not pre-configured bundles
  • Unlockable bundles that are part of a pre-configured avatar shouldn't be able to be deleted
  • Items that are a part of any bundle shouldn't be able to be deleted
  • When a user is loading the avatar page for the first time pre-configured avatars are being given as a default option for the user instead of just default bundles.

{
var siteId = GetCurrentSiteId();
var layers = await GetLayersAsync();
var layerGroupings = layers
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like layer groupings aren't used, I think this can be flattened to just a List of AvatarLayers?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Resolved in commit 5f2b703

if (item != null)
{
var fileName = "item";
var element =
Copy link
Contributor

Choose a reason for hiding this comment

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

A check can be done on the layer if it has ShowColorSelector set to true to see if a color needs to be added.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Resolved in commit 91763bd

</div>
<div class="col-xs-12 col-sm-7">
<div class="row">
<div class="col-xs-12 text-center hide" id="layer-container">
Copy link
Contributor

Choose a reason for hiding this comment

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

This container is always hidden, is it needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is how the avatar layers are being updated with. Its the same approach as the public avatar page

@madison-boman
Copy link
Contributor Author

madison-boman commented Jan 4, 2022

  • Mission Control avatars bundle page should highlight the Default tab if no search is selected
  • The default tab should only show default bundles and not pre-configured bundles
  • Unlockable bundles that are part of a pre-configured avatar shouldn't be able to be deleted
  • Items that are a part of any bundle shouldn't be able to be deleted
  • When a user is loading the avatar page for the first time pre-configured avatars are being given as a default option for the user instead of just default bundles.

@iafb:
Here are my revisions!

  1. Highlights default tab with no selection. Resolved in commit 222bdb7
  2. Remove unlockables from default list (I believe you meant "unlockables" and not "pre-configured" on this). Resolved in commit c0e67c6
  3. Disable deleting bundles for parent bundles. Resolved in commit 283a82d
  4. Prevent item deletion if item is in bundle. Resolved in commit bb7326c
  5. Removes preconfigured avatars as default avatar on public side. Resolved in commit c2305f2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting translation Awaiting translation(s)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants