Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
31446fb
Add Type Ahead experiment
Jameswlepage Dec 18, 2025
4f7fa7a
Fix PHPCS issues in type-ahead files
Jameswlepage Dec 19, 2025
e30564d
Fix type-ahead: use get_preferred_models() helper function
Jameswlepage Dec 19, 2025
320d158
Improve type-ahead: use faster models and lower overlay z-index
Jameswlepage Dec 19, 2025
850d097
Merge branch 'develop' into feature/type-ahead
jeffpaul Dec 19, 2025
b8e74ae
Merge branch 'develop' into feature/type-ahead
dkotter Apr 14, 2026
595fba6
Convert to the new experimental Feature approach
dkotter Apr 14, 2026
45a6f5f
Migrate settings over to the new approach
dkotter Apr 14, 2026
6580f5d
Clean up the Ability and system instructions a bit, ensuring we enfor…
dkotter Apr 14, 2026
5f8f89b
Clean up the existing typescript file and break it down into multiple…
dkotter Apr 14, 2026
fb7bc06
Remove unneeded post ID argument. Remove gpt-5-nano model as it's rea…
dkotter Apr 14, 2026
6fe1cac
Allow requests to be cancelled
dkotter Apr 14, 2026
648a2cf
Fix some issues with the manual requested typeahead. Ensure we grab p…
dkotter Apr 14, 2026
c4d78c8
Fix eslint errors
dkotter Apr 14, 2026
c1f97bb
Merge branch 'develop' into feature/type-ahead
dkotter Apr 14, 2026
8d6ff0b
Fix code review items Codex flagged
dkotter Apr 14, 2026
79cef22
Merge branch 'develop' into feature/type-ahead
dkotter Apr 21, 2026
7a116ad
Adjust system instructions to better handle capitalization and punctu…
dkotter Apr 21, 2026
a87753f
Allow suggestions on empty paragraphs. Ensure the suggested text does…
dkotter Apr 21, 2026
fc2415c
Update docs
dkotter Apr 21, 2026
849665c
Add unit tests
dkotter Apr 21, 2026
b37c926
Add E2E tests
dkotter Apr 21, 2026
2c3ad53
Fix lint
dkotter Apr 21, 2026
27b188c
Add a description to the Trigger delay field to make it clear that if…
dkotter Apr 21, 2026
b469734
Fix existing E2E test
dkotter Apr 21, 2026
ec9e6a7
Merge branch 'develop' into feature/type-ahead
dkotter Apr 23, 2026
0e5db3c
Run format
dkotter Apr 23, 2026
ee03723
Fix new lint errors
dkotter Apr 23, 2026
fdad87e
Ensure our stylesheet has the same basename as our JS file so our ass…
dkotter Apr 23, 2026
21a1d1d
Merge branch 'develop' into feature/type-ahead
dkotter Apr 24, 2026
ed25bb5
Merge branch 'develop' into feature/type-ahead
dkotter Jun 25, 2026
8952235
Remove settings and instead just set defaults, ensuring those are pas…
dkotter Jun 25, 2026
0b27406
Fix lint error
dkotter Jun 25, 2026
f525dcf
Add Type Ahead feature to README
jeffpaul Jun 25, 2026
2d3add9
Add Type Ahead feature to readme
jeffpaul Jun 25, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix new lint errors
  • Loading branch information
dkotter committed Apr 23, 2026
commit ee03723fef6e694b0976d6e9de2b07ae4d04c79c
4 changes: 2 additions & 2 deletions src/experiments/type-ahead/components/TypeAheadBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ type TypeAheadBlockProps = {
* @param {any} props.blockProps Block wrapper props.
* @param {TypeAheadSettings} props.settings Type-ahead settings.
* @param {Set< string >} props.allowedBlocks Allowed blocks.
* @return {JSX.Element} Wrapped block edit UI plus ghost text overlay.
* @return {React.JSX.Element} Wrapped block edit UI plus ghost text overlay.
*/
const TypeAheadBlock = ( {
BlockEdit,
blockProps,
settings,
allowedBlocks,
}: TypeAheadBlockProps ): JSX.Element => {
}: TypeAheadBlockProps ): React.JSX.Element => {
const { clientId, attributes, name } = blockProps;
const { block, editable } = useBlockDom( clientId );
const caret = useCaretData( editable );
Expand Down
4 changes: 2 additions & 2 deletions src/experiments/type-ahead/components/TypeAheadOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ type TypeAheadOverlayProps = {
* @param {DOMRect} props.rect Rect.
* @param {HTMLElement} props.container Container.
* @param {string} props.text Text.
* @return {JSX.Element | null} Overlay element when suggestion and caret are available.
* @return {React.JSX.Element | null} Overlay element when suggestion and caret are available.
*/
const TypeAheadOverlay = ( {
ownerDocument,
rect,
container,
text,
}: TypeAheadOverlayProps ): JSX.Element | null => {
}: TypeAheadOverlayProps ): React.JSX.Element | null => {
const [ style, setStyle ] = useState< CSSProperties | null >( null );
const body = ownerDocument?.body ?? document.body;
const win = ownerDocument?.defaultView ?? window;
Expand Down
Loading