-
Notifications
You must be signed in to change notification settings - Fork 3k
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 for payment 2022-03-31] Update avatars for #announce and #admins default rooms #8147
Comments
Triggered auto assignment to @trjExpensify ( |
Well would ya look at that @trjExpensify 😀 ! |
Triggered auto assignment to @bondydaa ( |
My, my.. issue looks good! I'll keep myself assigned for the CM piece anyhow, once Bondy has given it the all clear and adds the |
Current assignee @trjExpensify is eligible for the External assigner, not assigning anyone new. |
👍 seems straight forward, throwing external on this one |
ProposalWe need to add two more functions in reportUtils.js /**
* Whether the provided report is a Announce room
* @param {Object} report
* @param {String} report.chatType
* @returns {Boolean}
*/
function isAnnounceRoom(report) {
return lodashGet(report, ['chatType'], '') === CONST.REPORT.CHAT_TYPE.POLICY_ANNOUNCE;
}
/**
* Whether the provided report is a Admins room
* @param {Object} report
* @param {String} report.chatType
* @returns {Boolean}
*/
function isAdminsRoom(report) {
return lodashGet(report, ['chatType'], '') === CONST.REPORT.CHAT_TYPE.POLICY_ADMINS;
} and we can add these in if (ReportUtils.isAdminsRoom(report)) {
return Expensicons.AdminsRoomAvatar;
}
if (ReportUtils.isAnnounceRoom(report)) {
return Expensicons.AnnounceRoomAvatar;
} App/src/libs/OptionsListUtils.js Lines 214 to 229 in 3696074
and need to add new icons in Expensicons.js Also if we don't wanna add these functions we can just directly check if it's an announce/admins room like below - if (reports.chatType === CONST.REPORT.CHAT_TYPE.POLICY_ANNOUNCE) {
return Expensicons.AdminsRoomAvatar;
}
if (reports.chatType === CONST.REPORT.CHAT_TYPE.POLICY_ADMINS {
return Expensicons.AnnounceRoomAvatar;
} but using functions will be better. |
Issue on Upwork here: https://www.upwork.com/jobs/~01a413a7606e22ee6b |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane ( |
Triggered auto assignment to @stitesExpensify ( |
Hmm, I spent too much time thinking if we can do this in a cleaner way. |
🎀 👀 🎀 C+ reviewed @stitesExpensify I like @thesahindia's proposal. |
I also like the proposal! @thesahindia I also agree that functions is the way to go here. Feel free to apply on upwork Sahil! |
Done ✅ Looks like we don't have these icons right now. @kevinksullivan, can you please share the SVGs here? |
cc @Expensify/design do these icons exist yet? |
I can grab this one. I think the room icons are provided as full square svgs? @stitesExpensify can you share here what the existing room icon looks like, then I will provide new ones? I think we had previously chatted about making them all use a dark background so perhaps we can make that change here too. |
@thesahindia you can take it from here with shawn :) |
#8147 (comment) - Hired on Upwork, assigning you the issue @thesahindia. 👍 |
@shawnborton the existing icons are circle svgs, and grey in color. |
Great, here are the updated icons: Expensify-RoomIcons.zip |
📣 @thesahindia You have been assigned to this job by @trjExpensify! |
Waiting on a prod deploy, Melv! |
This should be good to be paid out on Thursday. There was a bug with the deploy comments all was deployed to production one week ago! |
I think they are okay for now. |
Cool, cool. Settled up! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
defaultRooms
betaExpected Result:
Avatars should be more related to the purpose of the room itself:
Actual Result:
Both rooms use a couch icon
Notes/Photos/Videos:
Slack conversation: https://expensify.slack.com/archives/C02MW39LT9N/p1646421753395089?thread_ts=1646419035.253859&cid=C02MW39LT9N
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: