Skip to content

Feat/contact create ux improvements - #2176

Open
ddddami wants to merge 16 commits into
theopenlane:mainfrom
ddddami:feat/contact-create-ux-improvements
Open

Feat/contact create ux improvements#2176
ddddami wants to merge 16 commits into
theopenlane:mainfrom
ddddami:feat/contact-create-ux-improvements

Conversation

@ddddami

@ddddami ddddami commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

@ddddami
ddddami requested review from a team as code owners August 19, 2026 17:44
@vercel

vercel Bot commented Aug 19, 2026

Copy link
Copy Markdown

@ddddami is attempting to deploy a commit to the openlane Team on Vercel.

A member of the Team first needs to authorize it.

@ddddami

ddddami commented Aug 19, 2026

Copy link
Copy Markdown
Contributor Author

@golanglemonade could you review this
Is there a staging environment thingy with maps api I could test with? I couldnt get a key for myself to browser test

@ddddami

ddddami commented Aug 19, 2026

Copy link
Copy Markdown
Contributor Author

Also, I am proposing a sub-issue; I wanted to keep the PR as scoped as possible.

"Refactor async typeaheads to use a unified component"

Currently, we are hand-rolling async dropdowns (using absolute divs, z-indexes, and brittle mousedown hacks to prevent focus loss) in AddressField, VendorSelectField, and the Org Billing Settings. We should deprecate this logic and probably migrate all these fields to use a unified component by shadcn @repo/ui/command and @repo/ui/popover or smth similar

@golanglemonade

@github-actions github-actions Bot added the enhancement New feature or request label Aug 19, 2026
@golanglemonade

Copy link
Copy Markdown
Member

@ddddami To answer both questions, we don't have a staging environment for open source contributions but Google has demo keys you should be able to test with:

https://developers.google.com/maps/documentation/javascript/demo-key

Using a shared component sounds great, If you want to write up an issue for that, that would be great 🙏

@vercel

vercel Bot commented Aug 20, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openlane-ui Ready Ready Preview Aug 28, 2026 3:08pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
storybook Ignored Ignored Aug 28, 2026 3:08pm

Request Review

@ddddami
ddddami force-pushed the feat/contact-create-ux-improvements branch from 4f84ab5 to 641af55 Compare August 23, 2026 22:24

@ddddami ddddami left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

hey @golanglemonade could you review this again

Comment thread apps/console/src/components/pages/protected/contacts/hooks/use-form-schema.ts Outdated
Comment thread apps/console/src/components/shared/crud-base/form-fields/text-field.tsx Outdated
Comment thread apps/console/src/components/shared/searchable-item-select.tsx Outdated
ddddami and others added 14 commits August 27, 2026 17:13
Co-authored-by: Bruno Papista <78353799+papistacoding@users.noreply.github.com>
Signed-off-by: Damilola O. <82976159+ddddami@users.noreply.github.com>
Co-authored-by: Bruno Papista <78353799+papistacoding@users.noreply.github.com>
Signed-off-by: Damilola O. <82976159+ddddami@users.noreply.github.com>
Co-authored-by: Bruno Papista <78353799+papistacoding@users.noreply.github.com>
Signed-off-by: Damilola O. <82976159+ddddami@users.noreply.github.com>
@ddddami
ddddami force-pushed the feat/contact-create-ux-improvements branch from c2aa280 to 1c6daec Compare August 27, 2026 16:41
})

const [predictions, setPredictions] = useState<google.maps.places.AutocompletePrediction[]>([])
const [placeService, setPlaceService] = useState<google.maps.places.AutocompleteService | null>(null)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@ddddami A PR came in between when you started and yesterday that switched to the new Places API (and you can now use the demo token to test): #2198 - can you update this?

<FormItem>
<div className="flex items-center gap-2 shrink-0">
<FormLabel>
Address <span className="text-muted-foreground font-normal">(optional)</span>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
Address <span className="text-muted-foreground font-normal">(optional)</span>
Address

<div className="flex flex-col gap-1 w-full">
<div className="flex items-center mb-1">
<span className="font-medium text-sm">
Tags <span className="text-muted-foreground font-normal">(optional)</span>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
Tags <span className="text-muted-foreground font-normal">(optional)</span>
Tags

<CardContent>
<div className="mb-2 grid grid-cols-1 md:grid-cols-2 gap-2">
<SelectField name="status" label="Status" options={enumOptions.statusOptions} tooltipContent="The current status of this contact" {...sharedFieldProps} />
<SectionCard title="Vendor" description="Associate this contact with an existing vendor">

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The link Vendor button on here is causing weird alignment + whitespace on the form. It should be higher; I'd put it top right and ensure we don't have all this empty space below the "Linked vendor" header:

Image

<div className="mb-2 grid grid-cols-1 md:grid-cols-2 gap-2">
<TextField name="company" label="Company" tooltipContent="The company this contact is associated with" {...sharedFieldProps} />
<TextField name="title" label="Title" tooltipContent="The job title of this contact" {...sharedFieldProps} />
<div className="flex items-center gap-3">

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I know you put this where the description of the issue has, but it feels like it's weirdly floating on the right. Can you just left align it for now? We might want to switch this to colored chips like other status but I'll need to write up colors for that first so I think just moving it for now so its on the left is a better place

Image

multiline?: boolean
displaySuffix?: React.ReactNode
formatDisplayValue?: (value: string) => React.ReactNode
required?: boolean

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nice, good call putting this here 🙏

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants