Skip to content

Conversation

@daniel-aha
Copy link
Collaborator

A few core fixes and some cleanup:

  1. Searching by reference wasn't working correctly, as it was searching for IDs including the prefix.
  2. When linking tests and searching by reference we were searching for tests with the given test case ID - updated the code to fix that and updated frontend to reduce confusion around test case vs test
  3. Removed 'useReference' param. ApiSearch always used references and SearchByName never did, so it was an easy cleanup.
  4. Renamed referencePrefix to searchPrefix param - as part of fixing 2 the prefix handling was moved into buildTree so this cleanup made sense.
  5. Renamed 'placeholder' to 'nonePlaceholder', for clarity

<div className='search-text'>
{showReference && (
<div className='text-light text-gray'>{`${referencePrefix}${node.value}`}</div>
{node.prefix && (
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Note prefix will always be present here, it's only missing on the top level rows, always present on children.

useRef,
} from 'react';
import { IDENTIFIER, Project, TestRun } from '../../extension';
import { IDENTIFIER, Project, Test, TestRun } from '../../extension';
Copy link

Choose a reason for hiding this comment

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

Is Test actually used in this file?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No, good spot

@daniel-aha daniel-aha merged commit 17b6bd2 into main Jan 20, 2026
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.

3 participants