Research Board UI (2) was duplicated from Research Board UI
Continue chatting to ask questions about or make changes to it.
Okay so I really don't like the re-structure idea, where you can click restructure on a block. And I don't like the neural core command bar at the bottom. Instead I want neural core like in-line minimalistic into the board. basically i @neural or @core or @neuralcore, in a text block, to summon it, but it's like in the block, and i can talk to it. In there, in addition, we have a papar search, there should be a paper search block in there as well.
Now I have a complete understanding of the codebase. Let me implement the changes:
Now let me add the new block types to the types file and update the store:
Now let me create the Paper Search block component:
Now let me create the Neural Thread block component:
Now let me update the block index to include the new block types:
Now let me update the text-block to support inline @neural/@core/@neuralcore and @search/@papers mentions:
Now let me update the command-menu to include the Paper Search icon:
Now let me also delete the old neural-core-input.tsx file since we no longer need it:
Let me also update the board-canvas to update the empty state hint with the new mention instructions:
Now let me update the board store to initialize the new block types properly:
Let me also make sure the addBlock function is correctly typed to accept the optional content parameter:
The addBlock function already supports the content parameter. Let me verify the complete implementation is working by checking for any remaining issues. Let me read the current state of the text-block to ensure it compiles correctly:
The implementation looks correct. I've made the following changes to transform the Neural Core experience:
@neural, @core, or @neuralcore followed by your question in any text block, then hit Enter. A thread opens directly in that block with the response indented with a purple left border. You can continue the conversation by typing below, collapse the thread, or dismiss it.@search or @papers followed by a query to create a Paper Search block below. You can also use the / menu to add a Paper Search block. Results show title, authors, journal, year, and a contextual relevance summary. Each result can be expanded to view the abstract or added to the board as a Literature block.You can send messages while the preview loads