Skip to content

[LOCKLITE-80] Implement modal and button to create a vault#59

Merged
vbetsch merged 5 commits intodevelopfrom
ui/feat/80-ui-add-vault
Jul 31, 2025
Merged

[LOCKLITE-80] Implement modal and button to create a vault#59
vbetsch merged 5 commits intodevelopfrom
ui/feat/80-ui-add-vault

Conversation

@vbetsch
Copy link
Owner

@vbetsch vbetsch commented Jul 31, 2025

No description provided.

@vbetsch vbetsch requested a review from Copilot July 31, 2025 22:31
@vbetsch vbetsch self-assigned this Jul 31, 2025
@vbetsch vbetsch added the ui About templating and styling label Jul 31, 2025
@notion-workspace
Copy link

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements a modal dialog and button functionality to create a new vault, completing the LOCKLITE-80 ticket. The changes introduce a complete create vault workflow with proper error handling and user interface integration.

  • Added API gateway method for creating vaults with proper typing
  • Created a reusable modal component with form validation and loading states
  • Integrated the modal into the workspace page with proper state management and data refresh

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
src/modules/ui/gateways/vaults.gateway.ts Added createVault method to handle vault creation API calls
src/modules/ui/components/modals/AddVaultModal.tsx New modal component with form fields, error handling, and loading states
src/app/ui/workspace/page.tsx Integrated add vault button and modal with automatic data refresh

<ErrorMessage error={error} />
<DialogActions>
<Button onClick={props.onClose}>Cancel</Button>
<Button onClick={handleConfirm} variant="contained" loading={loading}>
Copy link

Copilot AI Jul 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Material-UI Button component does not have a loading prop. You should use disabled={loading} instead or implement a custom loading state with a spinner.

Copilot uses AI. Check for mistakes.
@vbetsch vbetsch merged commit 9e95079 into develop Jul 31, 2025
4 checks passed
@vbetsch vbetsch deleted the ui/feat/80-ui-add-vault branch July 31, 2025 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ui About templating and styling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants