Skip to content

People Picker - #939

Open
SharonStrats wants to merge 5 commits into
stagingfrom
feat/people-picker
Open

SharonStrats wants to merge 5 commits into
stagingfrom
feat/people-picker

Conversation

@SharonStrats

@SharonStrats SharonStrats commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

Some decisions to make:

  1. Should we just remove the catalog altogether since it doesn't seem like it's supported now and also there is lots of webIds/people that are no longer valid?
  2. I made it configurable so that a user could say to open-profile as the action instead of handling the event themselves... thoughts?

Note: I also changed access control to direct friends only.

… picker webcomponent"

Prompt: Create a storybook for people picker, follow existing storybooks in components directory, add details about using it e.g. the user needs to handle the person-selected event.

Co-authored-by: GPT-5.6 Luna <gpt-5.6-luna@openai.com>
@SharonStrats
SharonStrats requested a balanced review from Copilot November 28, 2026 20:45
@SharonStrats SharonStrats self-assigned this Nov 28, 2026
@SharonStrats SharonStrats changed the title Move the people search input from the access modal to create a people… People Picker Nov 28, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The combobox lowercases pasted URLs before selection, altering the value used for ACL resolution or profile navigation.

4 open issues
What changed in this PR

Extracts people search from the access-control modal into a reusable solid-ui-people-picker component, then integrates it back into the sharing interface.

Changes:

  • Adds configurable directory sources, selection metadata, pasted-URL options, and optional profile navigation.
  • Replaces the modal’s search input with the picker and allows URLs as fallback access-target labels.
  • Adds component exports, element typings, Storybook examples, and tests.
File Description
test/​components/​people-picker.test.ts Tests directory options, URL handling, selection events, and navigation.
test/​components/​access-control-modal/​accessTargetResolver.test.ts Tests URL fallback labels.
src/​types/​custom-elements.d.ts Adds the picker’s custom-element type.
src/​components/​people-picker/​PeoplePicker.ts Implements reusable directory search and selection behavior.
src/​components/​people-picker/​PeoplePicker.styles.css Defines picker sizing and input styles.
src/​components/​people-picker/​PeoplePicker.stories.ts Documents usage and provides configurable examples.
src/​components/​people-picker/​index.ts Exports the component and public types.
src/​components/​access-control-modal/​accessTargetResolver.ts Exports directory sources, accepts URL labels, and removes icon coupling.
src/​components/​access-control-modal/​AccessControlModal.ts Configures the embedded picker’s directory sources.
src/​components/​access-control-modal/​AccessControlAddAccess.ts Embeds the picker and forwards input and selection events.
src/​components/​access-control-modal/​AccessControlAddAccess.styles.css Updates styles for the embedded picker.

Review effort: Balanced

.srOnlyLabel=${true}
.value=${this.value}
placeholder=${this.placeholder}
.asyncOptionsProvider=${(query: string) => this.getOptions(query)}

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

this would require changing combox so i'm going to leave it.

Prompt: help with PR feedback, a few different prompts

Co-authored-by: GPT-5.6 Luna <gpt-5.6-luna@openai.com>

This branch has not been deployed

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

Projects

Status: In review

Development

Successfully merging this pull request may close these issues.

Create a search feature to find people

2 participants