Skip to content

Conversation

@birosrichard
Copy link
Collaborator

@birosrichard birosrichard added this to the 128th sprint - Web team milestone Nov 25, 2025
@birosrichard birosrichard added the t-web Issues with this label are in the ownership of the web team. label Nov 25, 2025
Copy link
Collaborator

@katzino katzino left a comment

Choose a reason for hiding this comment

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

Pre-approving, smaller nits but nothing major 💪


const handleKeyDown = useCallback(
(event) => {
if (event.key === 'Enter' || event.key === ' ') {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would prefer this just for better understanding
Edit: I see we use this across the codebase, nevermind 😅

Suggested change
if (event.key === 'Enter' || event.key === ' ') {
if (event.key === 'Enter' || event.code === "Space") {

aria-controls={'llm-menu'}
/>
{isOpen && (
<div className={styles.menuDropdown} role="menu" id={'llm-menu'}>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
<div className={styles.menuDropdown} role="menu" id={'llm-menu'}>
<div className={styles.menuDropdown} role="menu" id="llm-menu">

onKeyDown={handleKeyDown}
aria-haspopup="menu"
aria-expanded={isOpen}
aria-controls={'llm-menu'}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
aria-controls={'llm-menu'}
aria-controls="llm-menu"

Comment on lines 278 to 280
{copyingStatus === 'loading' && <LoaderIcon size={16} />}
{copyingStatus === 'copied' && <CheckIcon size={16} />}
{copyingStatus === 'idle' && <CopyIcon size={16} />}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Might be nicer to have a map for each state and render a single node based on the value

Copy link
Member

@barjin barjin left a comment

Choose a reason for hiding this comment

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

(Older) versioned pages do not have the markdown alternatives, so clicking the markdown button e.g. on this page will result in 404 (https://crawlee.dev/js/docs/3.11/examples/accept-user-input.md doesn't exist).

Aside from that, I found some visual bugs:

image image

const markdownUrl = getMarkdownUrl(window.location.href);

try {
window.open(markdownUrl, '_blank');
Copy link
Member

Choose a reason for hiding this comment

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

Future update idea: can we render actual links (anchor elements) here?

Copy link
Member

@barjin barjin left a comment

Choose a reason for hiding this comment

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

lgtm, thank you!

@barjin barjin changed the title feat(docs): Add new LLM dropdown docs: add new LLM dropdown Nov 28, 2025
@barjin
Copy link
Member

barjin commented Nov 28, 2025

nit: anything with the feat prefix will make it to the Crawlee changelogs. We likely don't want this change there (it only concerns the documentation portal). Please use docs: for the docs-related commits.

birosrichard added a commit to apify/crawlee-python that referenced this pull request Nov 28, 2025
@birosrichard birosrichard merged commit d7cb5a0 into master Nov 28, 2025
12 checks passed
@birosrichard birosrichard deleted the feat/add-llm-dropdown branch November 28, 2025 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-web Issues with this label are in the ownership of the web team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants