-
Notifications
You must be signed in to change notification settings - Fork 1
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
Convert the "Contact Leasing Agent" section to a "Management Company" section #389
Convert the "Contact Leasing Agent" section to a "Management Company" section #389
Conversation
Hey @willrlin I'd appreciate your feedback on whether this is the right way to keep ui-components as in-sync with Exygy as possible? There are some weirdnesses (e.g. |
@tomgebauer Would you mind taking a look particularly at the issue where the website address overflows the box? I wonder if there are better ways to handle that (I was thinking of we could just put the text "website" or "management company website" and having that link to the actual website, but it also feels nice to show the actual url of what the person is about to click on.) |
@anders-schneider I think having the text "Website" and linking it to the URL is the simplest solution here. The heading of the module already tells the user that it's the management company, and if they really want to they can copy the URL using right-click. Is there a way top have it open in a new tab when it's clicked? |
ui-components/src/page_components/listing/listing_sidebar/LeasingAgent.tsx
Outdated
Show resolved
Hide resolved
ui-components/src/page_components/listing/listing_sidebar/LeasingAgent.tsx
Outdated
Show resolved
Hide resolved
…m:CityOfDetroit/bloom into aeschneider-contact-leasing-agent-section
…m:CityOfDetroit/bloom into aeschneider-contact-leasing-agent-section
Sounds good! I've updated the screenshots above - let me know if those look like what you had in mind. And made the change to make it so that clicking "website" will open a new tab. |
ui-components/src/page_components/listing/listing_sidebar/LeasingAgent.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remember to open a PR to contribute the ui-components portion upstream.
ui-components/src/page_components/listing/listing_sidebar/LeasingAgent.tsx
Outdated
Show resolved
Hide resolved
Since that string is supplied by leasing agents, could you also open a task to validate it on input and maybe also validate it here? |
Done! #400 |
… section (#389) * Add management company and website to UI * Change to "website" text and globe icon * Revert changes to locales/xx.json (except "website") * Formatting fixes * Override leasingAgent.contact * Switch to overriding dueToHighCallVolume * Guard showing management company by a prop * Add a test * Fix code style issues with Prettier * Make management company website link open a new tab * Pass in management company details in the prop * Make managementCompany optional, fix a warning * Fix code style issues with Prettier * Clarify test * Rationalize checking for website * Only prepend http if it's not already present Co-authored-by: Lint Action <[email protected]>
… section (#389) * Add management company and website to UI * Change to "website" text and globe icon * Revert changes to locales/xx.json (except "website") * Formatting fixes * Override leasingAgent.contact * Switch to overriding dueToHighCallVolume * Guard showing management company by a prop * Add a test * Fix code style issues with Prettier * Make management company website link open a new tab * Pass in management company details in the prop * Make managementCompany optional, fix a warning * Fix code style issues with Prettier * Clarify test * Rationalize checking for website * Only prepend http if it's not already present Co-authored-by: Lint Action <[email protected]>
Issue
Addresses #329
Description
This change converts the "Contact Leasing Agent" section into a section with all the information we have about the "Management Company". (This follows #329 (comment) and the mocks; the "contact property to apply" will be a separate section.)
This change introduces two new pieces of information (when they are present): the management company name and the management website. These are displayed underneath the manager name, phone number, and email address (which were all there previously).
This change also removes the "high call volume" text since that's not in our mocks.
Screenshots:
showManagementCompany
tofalse
):Type of change
How Can This Be Tested/Reviewed?
I checked the following views for three different listings with different values for these new fields:
Checklist: