Repository navigation
Bitwarden: Add password generation - #966
Conversation
feat: add view and list actions to copy and regenerate password chore: update @raycast/api package to the 1.28.0
feat: save and restore options using localstorage refactor: improve usePasswordGenerator state management with a reducer
feat: add options form action to go back
chore: reduce localstorage write frequency
feat: add development clear storage action refactor: extract option form field item component
|
Thank you for your first contribution! 🎉 🔔 @pomdtr @daniel-stoneuk you might want to have a look. |
|
Raycast forms also support keyboard navigation 😉 (you can use |
After some testing, I'm having issues implementing the form, as the only component available to display the password is the Here's a video to demonstrate, you can see that the password doesn't update when the component re-rendersScreen.Recording.2022-02-23.at.22.48.12.movAlternatives:Displaying the password on an animated toastDownsides:
Screen.Recording.2022-02-23.at.23.01.31.movDisplaying the password on the navigation titleDownsides:
Screen.Recording.2022-02-23.at.23.07.12.movDisplaying the password on an action labelDownsides:
Screen.Recording.2022-02-23.at.23.11.24.movDisplaying the password on an alertDownsides:
Screen.Recording.2022-02-23.at.23.17.56.movWhat do you think? Personally I find the original implementation (using a list) and the animated toast to be the best approaches, despite the downsides. |
|
I like the animated toast the best. However, I'm not a fan of the constant loading icon. What do you think of :
Thanks for exploring so many options ! |
No I'm pretty sure it's a bug in the API. I'll look at it |
Thanks! @jomifepe are you willing to wait for the issue to be corrected by the raycast team ? |
|
FYI, I found the bug, it'll be fixed in the next release |
That's great, thank you for looking into it!
Yeah sure, no rush 🙂 |
Hello, is there any update on this? I just updated the I'm asking this because this PR was labeled as |
|
It'll be fixed in 1.30.0 which should be released on Wednesday |
chore(packages): update raycast api package
414340d to
3e4ecf4
Compare
|
@pomdtr I just finished changing to a Form with the 1.30.0 fix, please take another look 🙂 Here's a demonstrationKapture.2022-03-12.at.23.59.36.mp4 |
|
Some small nitpicks on the UI side:
Awesome work ! |
Great suggestions! All done! I increased the delay to 1 second. I hope it's enough, as displaying validations is not that easy with a limited API, I tried to use the |
feat: remove unnecessary bitwarden unlock form fix(shortcuts): fix default shortcuts override feat(validations): increase input error toast debounce value refactor(actions): use built-in form actions
1e4bcfa to
4bfe146
Compare
|
Published to the Raycast Store: |
|
Thanks everyone 🙂 |
* Update teak-raycast extension - Merge branch \'contributions/merge-1795200700919\' into raycast-publish-1.0.95 - Pull contributions - chore(release): 1.0.95 (#1069) - chore(auth): point production at the teak.authkit.app issuer (#1068) - fix(core-worker): move off the Workers AI models retired on 2026-11-20 - chore(convex): remove the search read counter (#1067) - feat(analytics): add api_request, card limit, upgrade, signup and card events - fix(analytics): stop server GeoIP, report lockstep versions, price Whisper - feat(analytics): send catalog events from the iPhone, iPad, Mac and Android apps - ci(android): fail a release whose R8 mapping PostHog doesn\'t have - test(e2e): expect a link\'s run to complete when its page can\'t be fetched (#1066) - fix(web): end placeholders and loading lines with a real ellipsis (#1065) - chore(release): 1.0.94 (#1064) - fix(core-worker): archive more pages and say why a copy failed - fix(analytics): identify every surface with the canonical Teak user id - fix(search): show the closest cards by meaning when the words match nothing - fix(core-worker): finish a link\'s run when its page can\'t be fetched - fix(android): stop the channel-closed crash at sign-in and sign-out, and drop reports from Play\'s test device - ci(e2e): drop the iPhone and iPad flows from the E2E workflow - ci(e2e): run the iPhone and iPad flows against a stack without the web app - test(convex): keep the suite passing when other tests share the CPU - test(web): hold the clock still in the tag-overlay and context-menu tests - test(web): wait for the folder dialog\'s code in SidebarFolders tests - feat(web): mark the Pinned row with a soft panel and pin badge - fix(web): give every pinned card the same height - feat(web): fit text cards to their content and show link pictures whole - fix(extension): save from the right-click menu where the popup can\'t open (#1063) - fix(apple): fix link hosts, search capitals, iPad sidebar and Revisit sizing - fix(apple): render Markdown emphasis, code and long notes properly - feat: use Allo on every Teak surface (#1061) - test: prune tests that guard no behavior (#1060) - fix(mcp): count cards, tags and ids in proper English (#1059) - feat(core-worker): run the last two cleanup crons from the Worker (#1058) - feat(core-worker): trace every invocation (#1057) - feat(web): try Allo as the interface font (#1052) - fix(apple): keep Mark as done in the bar on iPhone link cards (#1056) - fix(apple,web): iPhone E2E flows pass again, and next 16.4.5 (#1055) - fix(extension): say why tags or a note didn\'t save, in the popup\'s language (#1054) - fix(web): offer Clear search when Find a tag matches nothing (#1051) - test(core-worker): hash a fake R2 object only when its etag is read (#1050) - fix(convex): name the accepted values for an unknown type, style or hue filter (#1049) - test(e2e): wait for the saved language in the Language spec (#1048) - chore(agents): drop references to files and skills the repo doesn\'t have - test(core-worker): start the rendering tests\' Chrome with a fresh profile (#1046) - fix(cli): name file cards in listings instead of leaving a blank cell (#1045) - test(e2e): match the visible Birds search box in the folder rules spec (#1044) - fix(extension): say why a save failed in the popup\'s language (#1042) - fix(web): count every card step press while a save check is pending (#1041) - fix(web): offer the whole library when a search in one view finds nothing (#1040) - refactor: untangle the backend, Core Worker and web app (#1038) - test(e2e): wait for the folder page before reading the filed card (#1039) - test(e2e): allow 90s for the filed-card click on the folder page (#1036) - test(e2e): wait for card dialog close before restore-me assertions (#1035) - test(e2e): wait for the cleared search before the keyboard handoff (#1031) - fix(convex): say what is wrong with an MCP tool argument in plain words (#1037) - fix(sdk): say you are not signed in when there is no credential at all (#1034) - test(e2e): reopen the palette until it opens in the Export palette spec (#1033) - perf(core-worker): batch card-processing calls to Convex (#1030) - perf(convex): check API keys once and read-only, and send the extension through the edge (#1029) - perf(convex): read one day of cards in the admin snapshot and slow dev crons (#1028) - test(e2e): click the filed card by its button name in the folder rules spec (#1027) - feat(cli): follow the CLI guidelines for safety, errors and help (#1025) - test(e2e): wait for the hydrated mobile drawer state before toggling the sidebar (#1004) - fix(web): app links in Settings are named by what they show (#1024) - docs(mcp): say what cardType: text does on create_card (#1023) - refactor: untangle the backend, clients, web, Core Worker and tooling (#1022) - refactor(repo): remove unused and redundant dependencies (#1021) - fix: name the client behind API saves, Spotify titles, and pins after Undo (#1019) - refactor(convex): Worker fetchers out of Convex, and one shape for dev seed packs (#1018) - refactor(repo): one source each for the stack state, CI setup, deployment facts and repeated lists (#1016) - refactor(card): untangle card-2 (#1017) - refactor(convex): one way to write a card, and errors that stay errors (#1014) - refactor(repo): make scripts/ a Turbo workspace so verify runs the cross-workspace checks (#1015) - refactor(convex): declare each public API operation once and derive REST, MCP, OpenAPI and client constants from it (#1013) - refactor(web): run card actions, edits and URL state from one place each (#1012) - refactor(core-worker): one shared Convex ↔ Core Worker boundary and card-processing contract (#1011) - refactor(native): one constants manifest and shared test rows for the Apple, Android and Raycast ports (#1010) - feat(android): submit every release to Google Play automatically (#1009) - test(e2e): fix four specs that drifted from the app so main\'s E2E goes green (#1008) - chore(release): 1.0.93 (#1007) - feat(cli): clearer errors, scriptable output and safer commands (#1006) - fix(web,convex): keep shared text and credentials out of PostHog telemetry (#1005) - feat(web): card tiles that line up in the grid (#1003) - fix(convex): refuse an invalid public API limit instead of clamping it (#1002) - test(e2e): repair Nov 4 journeys failures (MCP tool list, pinning OCC race) (#992) - test(e2e): repair spec-lag assertions for the reworked search chips, card dialogs and Settings UI (#989) - feat(convex,web): self-hosted Teak can run without billing (#1001) - docs: tidy the docs and rewrite the changelog for users (#1000) - feat(web): self-hosted web apps can opt in to their own analytics (#999) - feat(core-worker): self-hosted AI calls use the default AI Gateway (#998) - feat(core-worker): deploy a self-hosted Core Worker without editing its config (#997) - fix(web): Tags rows and error banners pass accessibility checks (#996) - fix(web): drop Undo from the undone folder rule run toast (#995) - docs(android): changelog, runbook and starter card for the Play launch (#994) - feat(docs,web): link Teak on Google Play and add an Android docs page (#993) - feat(web): folder rules in the Edit folder dialog (#990) - feat(convex,sdk,cli): folder rules in the API, MCP, SDK and CLI (#976) - feat(convex): folder rules that tag and file cards (#975) - feat(web): pin up to 12 cards to the top of the library (#983) - fix(docs): Mac App Store links open the Mac listing - fix(web): narrow-screen layouts, tags shown as typed, and tag errors beside the field (#988) - feat(web): save a search that found nothing as a note (#987) - refactor(web): code cleanup from the audit (C1–C5) (#986) - fix(core-worker): wiki articles open on their text, and table cells keep their spaces (#985) - feat(core-worker): send each link screenshot\'s size (#984) - feat: link tiles skip near-blank screenshots (#982) - fix(deps): bump vite to 8.2.4 and override minimatch to ^11.0.1 - fix(cli): say when a listing is empty instead of printing a blank line (#981) - perf(web): load less, paint the app\'s frame first, and settle media (#980) - fix(web): say what failed and keep what people made (#979) - fix(web): adding cards and card menus on phones, tablets and narrow windows (#978) - fix(web): keyboard and screen-reader access for cards, saves and Revisit (#977) - fix(web): clearer copy, tab titles and empty states (#974) - fix: Mac upgrades open Plan, translated extension limit tooltip, one source for Pro prices (#973) - feat(web): list-style Settings pages (#972) - fix(convex): keep a meaning match that holds only some of the words "related by meaning" (#971) - fix(web,convex,core-worker): bug-bash fixes across capture, cards, search, settings and imports (#968) - fix(web): stop the collapsed sidebar from widening on hover (#970) - fix(convex): page signed-in devices with WorkOS\'s bare ULID cursor (#969) - fix(convex): keep word matches out of "related by meaning" in hybrid search (#967) - test(core-worker): resume export archives with small parts instead of 33 MiB (#966) - feat(apple): capture notes and voice memos in their own Mac windows (#965) - fix(web,sdk): keep an early-opened app open, download trashed files, and refresh sign-in settings past the cache (#964) - chore: prune comments that restate the code, and plan the refactors for the rest (#963) - chore(release): wait for npm attestations, start the Mac sooner, and add a release skill (#962) - feat(extension): show what you save in a calmer popup (#961) - ci(release): publish the MCP Registry and build Android with its mapping on every version tag (#960) - fix(raycast): keep trashed cards out after a late save, and cover palette requests (#959) * Update teak-raycast extension - Merge remote-tracking branch \'origin/main\' into raycast-publish-1.0.95 - fix(raycast): correct the 1.0.95 changelog and take the store\'s description (#1070) * Update teak-raycast extension - Merge remote-tracking branch \'origin/main\' into raycast-publish-1.0.95 - fix(raycast): keep the store\'s current screenshots until new ones pass its check (#1071) * Update CHANGELOG.md --------- Co-authored-by: raycastbot <[email protected]>

Description
This Pull Request adds a command to generate passwords using the Bitwarden CLI, similarly to the browser extension.
Main features:
Demonstration
More screenshots
Videos
Recording.mov
Limitations/Issues
Navigation issue
When navigating between the generator and the options screen, the password "added" to the navigation history, and when you start going back, old passwords are restored. See video below.
Recording.mov
Future improvements
Password history
As of today, the Bitwarden CLI doesn't have a password history. This could be added in the future using LocalStorage or Node.js APIs, with probably some kind of encryption. Ideally, this feature would use the Bitwarden CLI (when it gets that feature implemented), as a custom solution would probably raise some security concerns. That said, I decided not to develop it for now, but warn the user with an alert when entering the command for the first time.
Checklist
npm run buildand tested this distribution build in Raycast