Repository navigation
Enhanced search confluence plugin by allowing dynamic searching - #930
Conversation
Co-authored-by: Per Nielsen Tikær <[email protected]>
…d empty list to do that
Co-authored-by: Per Nielsen Tikær <[email protected]>
Co-authored-by: Per Nielsen Tikær <[email protected]>
pernielsentikaer
left a comment
There was a problem hiding this comment.
Hi @daviddkkim 👋
Thanks for the update, it seems to do as expected, lets send it to the next stage 😄
🚀
Thanks for the review @pernielsentikaer :) |
|
|
||
| useEffect(() => { | ||
| searchConfluence().then((response) => { | ||
| searchConfluence(searchText).then((response) => { |
There was a problem hiding this comment.
I'm pretty sure this will lead to race conditions where the previous query will maybe resolve after the next one and so you will get outdated results.
You should probably use an AbortController to cancel the existing query before doing a new one (see https://github.com/raycast/extensions/blob/main/examples/api-examples/src/typeahead-search.tsx#L43-L90 for an example)
There was a problem hiding this comment.
Thanks for the shout @mathieudutour !
I'll check it out
|
@mathieudutour made the changes following the patterns you suggested! Thanks! Not sure why it's failing at validating package.json though since it builds fine locally. Any idea? |
|
@pernielsentikaer How can I repro your error state? |
|
@mathieudutour implemented your pattern suggestion around using await rather then .then |
|
That error was shown before the change with the await because it wouldn't go in the catch cause :) |
|
Published to the Raycast Store: |
|
I cannot search anything.. looks like basic authentication with passwords is deprecated. https://developer.atlassian.com/cloud/confluence/deprecation-notice-search-api/ |
|
Hi @beebird 👋 Could you please open a bug report on this? |
|
sure, #1166 @pernielsentikaer |
* Update teak-raycast extension - Merge Raycast store contributions (compressed screenshots, changelog date) - Pull contributions - chore(release): 1.0.92 (#958) - fix(web): run a menu item\'s listed shortcut while its menu is open (#957) - feat(web): move the card dialog\'s header into its sidebar (#956) - perf(web): ship 28–45% less initial JavaScript on signed-in routes (#955) - chore(agents,scripts,docs): make the docs the single source for agents and split scripts (#954) - perf(web): render the first screen from server-fetched queries (#953) - perf(web): one WorkOS refresh per token, and sign-in in one redirect (#952) - docs(agents): self-driving log for 2026-11-01 (#951) - perf(sdk,cli,extension,raycast,core-worker): skip OAuth discovery while the token is valid (#950) - perf(convex): read Connect consents without a mutation on edge-attested requests (#949) - chore(apple,android): drop the dead profile_pending sign-in retry (#948) - chore(convex): drop the WorkOS migration\'s leftover tables and fields (#947) - chore(convex): stop reading the WorkOS migration\'s leftovers (#946) - fix(web,tests): EXIF tests on any ICU, folder search while loading, local E2E timeouts (#945) - chore(deps): bump auth dependencies (#943) - fix(web): unblock three web specs and a composer crash after Settings (#942) - refactor(convex): call WorkOS with fetch instead of the Node SDK (#941) - feat(convex): remove Better Auth (#940) - refactor(convex): drop the WorkOS webhook\'s two tables (#939) - fix(convex): drop the workflow test component #937 left behind (#938) - feat(convex): remove the WorkOS webhook and the AuthKit component (#937) - chore(convex): remove the link screenshot backfill after its production run (#936) - feat(convex): backfill to re-take link screenshots from saved copies (#935) - fix(core-worker): retry a refused preview image last, so it holds up nothing (#934) - fix(core-worker): take a link\'s screenshot from its saved copy, styles included (#933) - fix(core-worker): retry a link preview image its host rate-limited (#930) - docs(convex): say get_card_changes deletedIds includes cards in Trash (#929) - fix(convex): show the WorkOS full name, which imported accounts carry alone (#931) - feat(convex): keep the WorkOS profile on the users row, from the session\'s claims (#928) - chore(plugins): mirror the Claude plugin to praveenjuge/teak-plugin (#926) - docs: say reconnecting a Connect app can take about 15 minutes (#927) - fix(convex): accept the 15-minute Connect tokens WorkOS now issues (#925) - perf(convex): check a stored owner on the row it names (#924) - perf(convex): resolve a signed-in owner from one users row (#923) - fix(convex): give every MCP enum and const parameter a type (#922) - feat(web): sign in as a WorkOS public client and update authkit-nextjs to 4.6.2 (#921) - fix(convex): let Claude see MCP tool results next to the card view (#920) - chore(convex): drop the sign-up Action and the ensureUserNow alias (#919) - chore(convex): remove the orphaned-files cleanup after its production run (#918) - chore(convex): clean up export jobs and storage records of deleted accounts (#917) - chore(convex): remove the stranded-deletion cleanup after its production run (#916) - chore(convex): clean up account deletions the old E2E cleanup stranded (#915) - feat(web): sign out to /sign-in and retire the /login and /register aliases (#914) - docs(agents): self-driving log for 2026-10-31 (#913) - feat(mcp): Teak cards in Claude, a Claude plugin, and a directory listing kit (#909) - chore: retire the last WorkOS migration leftovers (#911) - refactor(web): leave sign-in state to AuthKit and drop Better Auth routes (#910) - refactor(convex): delete accounts without WorkOS receipts or targets (#908) - refactor(convex): check only what Teak uses in WorkOS events (#907) - refactor(web): bootstrap the Teak account once, from the app (#906) - feat(convex): create the Teak account from the signed session on first sign-in (#905) - refactor(convex): resolve WorkOS identity by user ID alone, without externalId (#904) - docs(plans): plan a leaner WorkOS integration after the migration (#903) - fix(workers): give in-process email uploads a Content-Length (#902) - feat(workers): run Save by email in the Core Worker (#901) - chore(workers): rename files-worker to core-worker (#900) - fix(apple): fix stale favorites, Revisit undo, selection and Mac sidebar bugs (#898) - feat(apple): redesign the share sheet (#899) - fix(web): keep a highlight\'s note open when its save lands (#887) - test(e2e): wait for the settings usage meter before the axe scan (#888) - test(e2e): drop the disabled-composer assertions the composer no longer meets (#879) - fix(web): stop the table menu crashing the app when the home page is hidden (#878) - fix(raycast): keep Undo order, save quick favorites, and fix sign-out and Quick Save (#897) - feat(android): keep working offline (#896) - feat(cards): add and remove palette colors on every client (#895) - fix(apple): fix search crash, stale card edits and other app bugs (#894) - docs(agents): log 2026-10-30 self-driving run (#893) - chore(convex): regenerate api.d.ts for publicApi/http/allowedMethods (#891) - feat(web): make the sidebar New button a menu item like the views (#890) - docs(agents): log 2026-10-29 self-driving run (#889) - fix(files-worker): readable reason for archive files that fail to import, and map the case (#886) - fix(convex,files-worker): squash security, reliability and performance bugs (#885) - chore(deps): update vadivam and vadivam-react to 0.0.69 - docs(agents): log 2026-10-28 self-driving run (#884) - fix(api,mcp,cli): harden the public API, MCP server, CLI and SDK (#882) - chore(env): drop six unused or duplicate env vars (#883) - fix(web): close redirect and share holes, and fix recording, tag and error bugs (#880) - feat(docs): add a blog at /blog with ten launch posts (#881) - fix(apple,android): fix capture, sign-out and library bugs and tidy card and settings (#877) - feat(web): simplify the sidebar and page headers (#876) - fix(android): keep tab state and fix sign-in, upload and library bugs (#875) - fix(e2e): check each internal link once in the docs crawl (#865) - build(raycast): keep the done-verbs generator out of the published extension (#874) - fix(agents): cut cloud setup from about 4.5 minutes to under 2 (#873) - docs(raycast): match the changelog to the store\'s published history (#872) * fix(raycast): keep trashed cards out after a late save, and cover palette requests * fix(raycast): keep removed cards out across reloads and after Archive * fix(raycast): let a removed card that comes back on a later page take updates * Update CHANGELOG.md --------- Co-authored-by: raycastbot <[email protected]>


Description
PR to address #782
Previously, I didn't set up the search query to be dynamic. I was querying all pages at load time and then letting the list component filter. What i didn't realize was that the API was only returning the first 25 pages so it was limiting people from truly searching for their documents.
This fix addresses that. now the query is dynamically generated based on the search text in the list component.
Please see issue 782 for any more context
Screencast
Kapture.2022-02-16.at.23.21.45.mp4
Checklist
npm run buildand tested this distribution build in Raycast