Commit Graph

85 Commits

Author SHA1 Message Date
Ephraim Duncan
2c320e8b92 fix: use team avatar everywhere (#1220)
Expands team avatar support across various components and pages of
the application.
2024-07-05 13:05:22 +10:00
Mythie
22c02aac02 feat: avatar images 2024-06-27 21:50:42 +10:00
Lucas Smith
cfb52161d9 Merge branch 'main' into feat/public-profiles 2024-06-13 15:20:26 +10:00
Mythie
e62fa6cc92 fix: update plans on the billing page 2024-06-12 21:33:17 +10:00
David Nguyen
cd8c42914f fix: add tooltip 2024-06-10 20:07:32 +10:00
David Nguyen
5514dad4d8 feat: add public profiles 2024-06-06 15:28:02 +10:00
David Nguyen
cbe6270494 feat: add passkey and 2FA document action auth options (#1065)
## Description

Add the following document action auth options:
- 2FA
- Passkey

If the user does not have the required auth setup, we onboard them
directly.

## Changes made

Note: Added secondaryId to the VerificationToken schema

## Testing Performed

Tested locally, pending preview tests

## Checklist

- [X] I have tested these changes locally and they work as expected.
- [X] I have added/updated tests that prove the effectiveness of these
changes.
- [X] I have followed the project's coding style guidelines.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Introduced components for 2FA, account, and passkey authentication
during document signing.
- Added "Require passkey" option to document settings and signer
authentication settings.
- Enhanced form submission and loading states for improved user
experience.
- **Refactor**
- Optimized authentication components to efficiently support multiple
authentication methods.
- **Chores**
- Updated and renamed functions and components for clarity and
consistency across the authentication system.
- Refined sorting options and database schema to support new
authentication features.
- **Bug Fixes**
- Adjusted SignInForm to verify browser support for WebAuthn before
proceeding.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-03-31 15:49:12 +08:00
David Nguyen
5210fe2963 feat: add passkeys (#989)
## Description

Add support to login with passkeys.

Passkeys can be added via the user security settings page.

Note: Currently left out adding the type of authentication method for
the 'user security audit logs' because we're using the `signIn`
next-auth event which doesn't appear to provide the context. Will look
into it at another time.

## Changes Made

- Add passkeys to login
- Add passkeys feature flag
- Add page to manage passkeys
- Add audit logs relating to passkeys
- Updated prisma schema to support passkeys & anonymous verification
tokens

## Testing Performed

To be done.

MacOS:
- Safari  
- Chrome  
- Firefox 

Windows:
- Chrome [Untested] 
- Firefox [Untested]

Linux:
- Chrome [Untested]
- Firefox [Untested]

iOS:
- Safari 

## Checklist

<!--- Please check the boxes that apply to this pull request. -->
<!--- You can add or remove items as needed. -->

- [X] I have tested these changes locally and they work as expected.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Introduced Passkey authentication, including creation, sign-in, and
management of passkeys.
- Added a Passkeys section in Security Settings for managing user
passkeys.
- Implemented UI updates for Passkey authentication, including a new
dialog for creating passkeys and a data table for managing them.
- Enhanced security settings with server-side feature flags to
conditionally display new security features.
- **Bug Fixes**
	- Improved UI consistency in the Settings Security Activity Page.
- Updated button styling in the 2FA Recovery Codes component for better
visibility.
- **Refactor**
- Streamlined authentication options to include WebAuthn credentials
provider.
- **Chores**
- Updated database schema to support passkeys and related functionality.
	- Added new audit log types for passkey-related activities.
- Enhanced server-only authentication utilities for passkey registration
and management.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-03-26 21:11:59 +08:00
David Nguyen
43400c07de feat: remove 2FA password requirement (#1053) 2024-03-25 11:34:50 +08:00
Lucas Smith
d3f4e20f1c fix: update styling and e2e test 2024-03-12 02:57:22 +00:00
Gautam-Hegde
efb90ca5fb chore: use email confirmation 2024-03-11 23:17:11 +05:30
Gautam-Hegde
ad92b1ac23 feat: typeIn confirmation 2024-03-08 21:56:17 +05:30
Lucas Smith
3b3346e6af fix: remove data-testid attributes 2024-03-08 13:47:59 +11:00
Lucas Smith
ee35b4a24b fix: update test to use getByRole 2024-03-08 02:46:25 +00:00
Ephraim Atta-Duncan
e47ca1d6b6 chore: add e2e test for deleting a user 2024-03-08 00:04:27 +00:00
Adithya Krishna
452545dab1 chore: updated button text
Signed-off-by: Adithya Krishna <adithya@documenso.com>
2024-03-01 19:12:09 +05:30
Adithya Krishna
0f03ad4a6b chore: updated wordings for claimed ursers
Signed-off-by: Adithya Krishna <adithya@documenso.com>
2024-03-01 19:05:16 +05:30
Mythie
bd82ad7a0b fix: revert settings-header changes 2024-02-29 14:12:00 +11:00
Lucas Smith
5576cdc2b0 Merge branch 'main' into feat/public-profile-1 2024-02-29 14:08:19 +11:00
Mythie
ecc9dc63ea feat: the rest of the owl 2024-02-29 13:22:21 +11:00
Lucas Smith
077da72b68 feat: implement webhooks (#913) 2024-02-28 18:31:48 +11:00
Catalin Pit
c8869b3088 chore: fixed UI for webhooks team 2024-02-28 09:18:05 +02:00
Catalin Pit
8bd1647a2d chore: fixed UI 2024-02-28 09:14:10 +02:00
Lucas Smith
ae00290b6f fix: add reference to swagger docs 2024-02-28 04:34:33 +00:00
Mythie
e3e2cfbcfd fix: refactor and implement design 2024-02-28 14:43:09 +11:00
Adithya Krishna
b498f8edb7 feat: update ui
Signed-off-by: Adithya Krishna <adithya@documenso.com>
2024-02-27 20:40:42 +11:00
Adithya Krishna
65d762dd4b feat: update signin signup ui
Signed-off-by: Adithya Krishna <adithya@documenso.com>
2024-02-27 20:39:19 +11:00
Mythie
1ec549b869 chore: add webhook-call model 2024-02-27 13:37:24 +11:00
Mythie
c2daa964c0 chore: use cuids for webhooks 2024-02-27 12:13:56 +11:00
Mythie
70165c4469 chore: ui updates 2024-02-26 22:24:23 +11:00
Catalin Pit
15c22d3897 feat: updated the triggerWebhook function 2024-02-26 12:52:30 +02:00
Lucas Smith
5805d8a903 Merge branch 'main' into feat/webhook-implementation 2024-02-26 12:47:21 +11:00
Lucas Smith
2a74ce06ef Merge branch 'main' into feat/public-api 2024-02-26 00:21:25 +11:00
Lucas Smith
9cf72e1442 chore: tidy code and extract alert-dialog 2024-02-25 11:12:18 +00:00
Lucas Smith
22e3a79a72 Merge branch 'main' into feat/public-api 2024-02-21 11:29:36 +11:00
Catalin Pit
c6dbaaea21 Merge branch 'main' into feat/webhook-implementation 2024-02-19 10:02:06 +02:00
David Nguyen
2815b1a809 feat: add enterprise billing (#939)
## Description

Add support for enterprise billing plans.

Enterprise billing plans by default get access to everything early
adopters do:
- Unlimited teams
- Unlimited documents

They will also get additional features in the future.

## Notes

Pending webhook updates to support enterprise onboarding.
Rolled back env changes `NEXT_PUBLIC_PROJECT` since it doesn't seem to
work.
2024-02-17 12:42:00 +11:00
Catalin Pit
26d4bbf010 chore: ui updates 2024-02-16 13:58:03 +02:00
Catalin Pit
cd240ae8a4 chore: loading spinner 2024-02-16 13:55:47 +02:00
Catalin Pit
4d6e780abe chore: merge main 2024-02-16 12:12:54 +02:00
Catalin Pit
7f3f6f5312 feat: hide secret field 2024-02-16 11:44:03 +02:00
Catalin Pit
61958989b4 feat: more webhook functionality 2024-02-14 14:38:58 +02:00
Catalin Pit
0209127136 feat: delete webhook functionality 2024-02-09 16:28:18 +02:00
Catalin Pit
b3ba77dfed feat: allow user to choose expiry date 2024-02-09 11:35:09 +02:00
Lucas Smith
e91bb78f2d Merge branch 'main' into feat/public-api 2024-02-09 16:00:40 +11:00
Lucas Smith
d13cf743bf Merge branch 'main' into feat/add-runtime-env 2024-02-08 22:06:59 +11:00
Catalin Pit
b3514bd0c7 add new webhook dialog 2024-02-07 16:04:12 +02:00
Catalin Pit
edeeaa5651 feat: implement webhooks 2024-02-06 16:12:31 +02:00
David Nguyen
0c339b78b6 feat: add teams (#848)
## Description

Add support for teams which will allow users to collaborate on
documents.

Teams features allows users to:

- Create, manage and transfer teams
- Manage team members
- Manage team emails
- Manage a shared team inbox and documents

These changes do NOT include the following, which are planned for a
future release:

- Team templates
- Team API
- Search menu integration

## Testing Performed

- Added E2E tests for general team management
- Added E2E tests to validate document counts

## Checklist

- [X] I have tested these changes locally and they work as expected.
- [X] I have added/updated tests that prove the effectiveness of these
changes.
- [ ] I have updated the documentation to reflect these changes, if
applicable.
- [X] I have followed the project's coding style guidelines.
2024-02-06 16:16:10 +11:00
Mythie
08f82b23dc fix: update env entries to evaluate at runtime 2024-01-31 22:32:42 +11:00