Skip to content
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

[docs] useAutocomplete Base UI page not found #36884

Closed
1 task done
nathandemasieosapiens opened this issue Apr 14, 2023 · 3 comments · Fixed by #37029
Closed
1 task done

[docs] useAutocomplete Base UI page not found #36884

nathandemasieosapiens opened this issue Apr 14, 2023 · 3 comments · Fixed by #37029
Assignees
Labels
bug 🐛 Something doesn't work component: autocomplete This is the name of the generic UI component, not the React module! package: base-ui Specific to @mui/base regression A bug, but worse scope: docs-infra Specific to the docs-infra product

Comments

@nathandemasieosapiens
Copy link

nathandemasieosapiens commented Apr 14, 2023

Duplicates

  • I have searched the existing issues

Related page

https://mui.com/base/api/use-autocomplete/

Kind of issue

Other

Issue description

Searching useAutocomplete hook via algolia search returns results for Base UI links which do not exist.

Directs to url https://mui.com/base/api/use-autocomplete/ which 404s

demo.mp4

Context 🔦

It used to work, e.g. https://6419ed88bacbaa00080bbda6--material-ui-docs.netlify.app/base/api/use-autocomplete/ on v5.0.0-alpha.122.

@nathandemasieosapiens nathandemasieosapiens added status: waiting for maintainer These issues haven't been looked at yet by a maintainer support: docs-feedback Feedback from documentation page labels Apr 14, 2023
@zannager zannager added component: autocomplete This is the name of the generic UI component, not the React module! package: base-ui Specific to @mui/base labels Apr 17, 2023
@mj12albert mj12albert removed the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Apr 18, 2023
@mj12albert
Copy link
Member

I can reproduce this - it seems related to changes in #35938

The "correct" path for the useAutocomplete api did not get written here: https://github.com/mui/material-ui/blob/master/docs/data/base/pagesApi.js#L93-L111

Base only has the useAutocomplete hook and does not have an Autocomplete component yet (and thus no demos) so it got skipped completely by the api generation script: https://github.com/mui/material-ui/blob/master/packages/api-docs-builder/buildApi.ts#L295-L309 CC @mnajdova

@mj12albert mj12albert added scope: docs-infra Specific to the docs-infra product bug 🐛 Something doesn't work and removed support: docs-feedback Feedback from documentation page labels Apr 18, 2023
@mj12albert
Copy link
Member

mj12albert commented Apr 19, 2023

We reset the algolia index (for another issue) and the Base useAutocomplete api page doesn't not appear in the search results anymore

https://mui-org.slack.com/archives/C042VP80PT5/p1681899052107929

@michaldudak
Copy link
Member

We talked about it briefly with @mnajdova. We should add a page with demos showing how to use useAutocomplete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: autocomplete This is the name of the generic UI component, not the React module! package: base-ui Specific to @mui/base regression A bug, but worse scope: docs-infra Specific to the docs-infra product
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants