Skip to content

[HOLD for payment 2022-03-17] Add informative text for visibility settings in the creation flow #7669

Closed

Description

@MitchExpensify

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Click "+"
  2. Click "New Room"
  3. See the "Visibility" field in the "New Room" right hand pane

Expected Result:

See some descriptive text explaining how each Visibility setting works to inform my decision.

Let's copy the pattern we have for the Notification drop down field here in the room "Settings" pane:
image

Please add the following text to the Visibility field in the same manner as reference above:

  • "Restricted": "Members of your workspace can find this room"
  • "Private": "Only members explicitly invited can find this room"

Actual Result:

No descriptive text explaining how each Visibility setting works to inform my decision

Workaround:

Proceed without knowing what the settings you are choosing do

Platform:

All

Reproducible in staging?: Yes
Reproducible in production?: Yes
Notes/Photos/Videos:
image
Issue reported by: Mitch
Slack conversation: Internal Slack Thread

View all open jobs on GitHub

Activity

  1. added
    External
    Daily
    on Feb 10, 2022
  2. MelvinBot commented on Feb 10, 2022

    @MelvinBot
    Contributor

    Triggered auto assignment to @jliexpensify (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

  3. mateusbra commented on Feb 10, 2022

    @mateusbra
    Contributor

    PROPOSAL

    We will have to change en.js and es.js to match the new texts:

    App/src/languages/en.js

    Lines 905 to 908 in 0b58649

    visibilityOptions: {
    restricted: 'Restricted',
    private: 'Private',
    },

    to:

    newRoomPage:{
     visibilityOptions: {
                restricted: 'Members of your workspace can find this room',
                private: 'Only members explicitly invited can find this room',
            },
    }

    Screenshot:
    image

  4. thesahindia commented on Feb 10, 2022

    @thesahindia
    Member

    Proposal

    We can add description in en.js, es.js

    newRoomPage:{
     visibilityOptions: {
                restricted: 'Restricted',
    +          restrictedOptionDescription: 'Members of your workspace can find this room'
                private: 'Private',
    +.         privateOptionDescription: 'Only members explicitly invited can find this room'
            },
    }

    and we can add a text component below or above the picker to show the description for the option that is selected like we do in preferences.

    <Text style={[styles.textLabel, styles.colorMuted, styles.mb6]}>
    {priorityModes[props.priorityMode].description}
    </Text>

    Here's a vid of preferences page:-

    Screen.Recording.2022-02-10.at.11.51.30.AM.mov

    Edit:- Found we already have description available which we use in room settings page.

    App/src/languages/en.js

    Lines 894 to 895 in bdf3a74

    restrictedDescription: 'People in your workspace are able to find this room using Search',
    privateDescription: 'Only people invited to this room are able to find it',

    Can't we reuse it, instead of adding new description?

  5. sobitneupane commented on Feb 10, 2022

    @sobitneupane
    Contributor

    Proposal
    I can't find any distinct difference between the Notification drop down in the room Settings pane and Visibility drop down. If we want something similar to preference page. Here is my proposal.

    const visibilityOptions = _.map(_.values(CONST.REPORT.VISIBILITY), visibilityOption => ({
    label: this.props.translate(`newRoomPage.visibilityOptions.${visibilityOption}`),
    value: visibilityOption,

    const visibilityOptions = _.map(_.values(CONST.REPORT.VISIBILITY), visibilityOption => ({
                label: this.props.translate(`newRoomPage.visibilityOptions.${visibilityOption}`),
                value: visibilityOption,
    +           description: this.props.translate(`newRoomPage.visibilityOptionDescriptions.${visibilityOption}`),
    }));

    <Picker
    value={this.state.visibility}
    label={this.props.translate('newRoomPage.visibility')}
    items={visibilityOptions}
    onChange={visibility => this.setState({visibility})}
    />

    <View style={[styles.mb2, styles.w100]}>
        <Picker
            value={this.state.visibility}
            label={this.props.translate('newRoomPage.visibility')}
            items={visibilityOptions}
            onChange={visibility => this.setState({visibility})}
        />
    </View>
    +<Text style={[styles.textLabel, styles.colorMuted, styles.mb6]}>
    +    {_.find(visibilityOptions, option => option.value === this.state.visibility).description}
    +</Text>

    Preference Page Reference:
    Screen Shot 2022-02-10 at 12 15 26

    Expected Output:
    Screen Shot 2022-02-10 at 12 14 20

  6. MelvinBot commented on Feb 11, 2022

    @MelvinBot
    Contributor

    Triggered auto assignment to @cead22 (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

  7. jliexpensify commented on Feb 11, 2022

    @jliexpensify
    Contributor

    Should this go through Engineering triage first @MitchExpensify ? Have added the label - happy to spin up a job in Upworks once we get the go-ahead from Engineering.

  8. MitchExpensify commented on Feb 11, 2022

    @MitchExpensify
    ContributorAuthor

    When you label exported that initiates engineering triage right? @jliexpensify

  9. puneetlath commented on Feb 11, 2022

    @puneetlath
    Contributor

    @jliexpensify I'm taking over for carlos here. Let's go ahead and export this to upwork.

    @MitchExpensify The flow is:

    1. triage - should whatever is proposed in this issue be done or not (apply engineering label if so)
    2. engineering triage - can this be handled by external contributors (apply external label if so)
    3. CM - manage the job (apply extported label once job created)
  10. 26 remaining items

  11. removed their assignment
    on Mar 4, 2022
  12. added
    Weekly
    and removed
    Weekly
    on Mar 10, 2022
  13. botify commented on Mar 10, 2022

    @botify

    The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.41-6 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

    If no regressions arise, payment will be issued on 2022-03-17. 🎊

  14. added
    Awaiting Payment
    on Mar 10, 2022
  15. changed the title [-]Add informative text for visibility settings in the creation flow[/-] [+][HOLD for payment 2022-03-17] Add informative text for visibility settings in the creation flow[/+] on Mar 10, 2022
  16. jliexpensify commented on Mar 11, 2022

    @jliexpensify
    Contributor

    Adding @kadiealexander to help keep an eye on my GH's as I'll be OOO next week.

  17. kadiealexander commented on Mar 17, 2022

    @kadiealexander
    Contributor

    Issued payment to @thesahindia, thanks for your awesome work here!

    @rushatgabhane I've sent you an offer so we can pay you for your C+ duties, please let me know once you've accepted this and I'll issue payment here too. 😊

  18. rushatgabhane commented on Mar 17, 2022

    @rushatgabhane
    Member

    @kadiealexander accepted, thanks!

  19. kadiealexander commented on Mar 18, 2022

    @kadiealexander
    Contributor

    Paid you too @rushatgabhane, thanks for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentDailyEngineeringExternal

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions