Skip to content

Find organizations in Search under the developers, as the web does - #236

Open
sulimanbenhalim wants to merge 1 commit into
NativePHP:mainfrom
sulimanbenhalim:feat/search-organizations
Open

sulimanbenhalim wants to merge 1 commit into
NativePHP:mainfrom
sulimanbenhalim:feat/search-organizations

Conversation

@sulimanbenhalim

Copy link
Copy Markdown
Contributor

the web's search lists the organizations that have a page on devnull under the developers (OrganizationResult in search-dialog.tsx) but the app's Search only ever finds people

it asks GET /api/v1/search/users which devnull keeps for apps that still call it with a Deprecation header in favour of GET /api/v1/search/profiles and that one answers with users and organizations

  • Search asks search/profiles now and the developers are the same as before
  • an Organizations section sits under Developers with the square avatar and the name and handle and bio the web shows and a tap opens the organization's screen on the same stack
  • the row is laid out like the developer rows above it (name over handle and up to 2 lines of bio) where the web puts the name and handle on one line
  • no Follow on them since the web's search has none
  • fatal: nothing matches only shows when neither developers nor organizations come back
  • SearchTest and PartialFramesTest fake the new endpoint and two new tests cover the section and that line
  • part of Organization support #147

Screenshots

searching ac on an Android emulator against a local devnull with an organization called Acme Labs that has a page

search

iOS light iOS dark Android light Android dark
Before
After

tapping Acme Labs opens its organization screen with Back to Search
iOS isn't here since this Xcode has no Simulator app to type into Search with

  • No visible change

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant