Add "Create Portal" button to portals tab#2221
Conversation
- Update VirtualizedTableWrapper to support custom actions in header and empty state. - Implement usePortalQuestFormData hook to fetch "SOCKS5 Relay" tome and host beacons. - Add CreatePortalQuestButton component to trigger quest creation modal. - Integrate CreatePortalQuestButton into PortalTab header and empty state. Co-authored-by: KCarretto <16250309+KCarretto@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
This PR adds a "Create Portal" button to the top of the portals tab in the host details page. Clicking this button opens the "Create Quest" modal with the "SOCKS5 Relay" tome pre-selected and the beacons already filtered to the current host. This provides a streamlined workflow for creating portals, similar to the existing "Report File" functionality.
Key changes:
VirtualizedTableWrapper: AddedactionsandemptyStateActionprops to allow inserting custom buttons into the table header and empty state.CreatePortalQuestButton: A new component that handles the logic for opening the quest modal with pre-filled data.usePortalQuestFormData: A custom hook that fetches necessary data (Tome ID, online Beacons) to populate the quest modal.PortalTab: Updated to include the new button in both the header (for when portals exist) and the empty state.PR created automatically by Jules for task 9166352739207682382 started by @KCarretto