Commit Graph
100 Commits
Author SHA1 Message Date
Lucas Smith 9cf72e1442 chore: tidy code and extract alert-dialog 2024-02-25 11:12:18 +00:00
Lucas Smith 7226d5ac53 Merge branch 'main' into feat/account-deletion 2024-02-24 23:18:14 +11:00
Lucas Smith dbd63498e0 feat: custom text field (#945)
https://github.com/documenso/documenso/assets/55143799/c0f296ce-1e91-4b49-9c19-1bdffbd3163f
2024-02-24 22:55:16 +11:00
Lucas Smith d34c862688 fix: switch custom text to input rather than textarea 2024-02-24 11:25:12 +00:00
Lucas Smith a5e51e63a1 Merge branch 'main' into custom-text-field 2024-02-24 22:23:17 +11:00
Lucas Smith 688e32dfc2 feat: add roles to templates recipients (#935) 2024-02-24 21:24:26 +11:00
Lucas Smith b1b3b84d82 Merge branch 'main' into feat/template-recipient-roles 2024-02-24 21:01:45 +11:00
Lucas Smith b09acaf94e feat: custom banner (#956) 2024-02-24 20:40:41 +11:00
Lucas Smith d103c68a73 fix: remove console logs 2024-02-24 08:08:14 +00:00
Lucas Smith 8165a090d1 feat: migrate to site-settings 2024-02-23 10:47:01 +00:00
Lucas Smith 15e191f62d fix: e2e tests (#955) 2024-02-22 23:58:51 +11:00
Lucas Smith f973dfd09c feat: add document page view (#926)
## Description

This feature allows us to have a dedicated page to view details for a
document.

The current `/documents/[id]` page has been moved to
`/documents/[id]/edit`.

The new `/documents/[id]` page will now display general information on
the document itself.

This will allow us to provide more details relating to a document in the
future, such as version history.

## Examples

These may be outdated as deployment failed

Login via example@documenso.com

Draft document no recipients:

https://stg-7hpkvyc5i-documenso.vercel.app/documents/446

Draft document with recipients:

https://stg-7hpkvyc5i-documenso.vercel.app/documents/440

Pending document:

https://stg-7hpkvyc5i-documenso.vercel.app/documents/447

Completed document:

https://stg-7hpkvyc5i-documenso.vercel.app/documents/448

Pending teams document:

https://stg-7hpkvyc5i-documenso.vercel.app/t/hello/documents/449/

## Checklist

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

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

## Additional Notes

When a user "sends" a document (DRAFT -> PENDING), should we redirect
them to the document/id page, or keep it how it currently is and have it
redirect to `/documents` page?
2024-02-22 23:25:22 +11:00
Lucas Smith 1232f54a23 Merge branch 'main' into feat/separate-document-page 2024-02-22 22:54:15 +11:00
Lucas Smith 306e5ff31f fix: add timeouts to longer transactions 2024-02-22 11:05:49 +00:00
Lucas Smith df132a51ab feat: ability to download all the 2FA recovery codes (#944)
fixes #938 



https://github.com/documenso/documenso/assets/81948346/8bf807ae-41b0-417b-9f55-d96584e71acb
2024-02-21 13:39:08 +11:00
Lucas Smith 8287722f59 fix: update view dialog to use new download api 2024-02-21 02:29:19 +00:00
Lucas Smith aba6b58c14 fix: simplify download api 2024-02-21 02:19:35 +00:00
Lucas Smith b6c9213b66 fix: disable static generation of marketing site pages
Disables the generation of the blog and content pages using
generateStaticPaths to deal with a regression with routing
introduced with next-runtime-env.
2024-02-21 00:58:57 +00:00
Lucas Smith 960914aeb5 fix: undo operation on signature pad (#868)
fixes: #864
2024-02-16 22:57:14 +11:00
Lucas Smith d83769b410 chore: use unsafe effect 2024-02-16 11:56:02 +00:00
Lucas Smith a0cf2a2c75 fix: improved document-dropzone ui for small vertical screens (#857)
improved document-dropzone ui for small vertical screens (screens less
than 800px vertically)
Although it can still become congested on really small vertical screens,
but possibility is really low.

fixes: #840
2024-02-16 22:03:24 +11:00
Lucas Smith a30b73ce86 fix: update css 2024-02-16 11:02:04 +00:00
Lucas Smith 46d163d9d6 fix: highlighting issue in recipient selection (#937)
fixes: #920 

<img width="391" alt="image"
src="https://github.com/documenso/documenso/assets/75713174/08b2f5ab-4a6f-423a-a2fa-8f7b04789bb8">
2024-02-16 21:50:53 +11:00
Lucas Smith 681a89cfe1 chore: minor lint fixes (#934) 2024-02-16 21:48:45 +11:00
Lucas Smith e5f4edc120 chore: create security.txt (#878)
Adding a security.txt file enables security researchers to quickly and
easily see where they can submit security issues and know that they are
being taken serious. From the proposal website:

> "When security risks in web services are discovered by independent
security researchers who understand the severity of the risk, they often
lack the channels to disclose them properly. As a result, security
issues may be left unreported. security.txt defines a standard to help
organizations define the process for security researchers to disclose
security vulnerabilities securely.”

See also https://securitytxt.org
2024-02-16 12:34:41 +11:00
Lucas Smith fe2093fe7c feat: add next-runtime-env (#869)
This PR adds the package
[next-runtime-env](https://github.com/expatfile/next-runtime-env/) to
populate the public environment variables at runtime.
2024-02-15 22:10:21 +11:00
Lucas Smith f72b669f67 feat: restrict app access for unverified users (#835) 2024-02-13 20:22:43 +11:00
Lucas Smith 536cafde31 Merge branch 'main' into feat/disable-access-unverified-users 2024-02-13 20:19:16 +11:00
Lucas Smith d052f02013 chore: refactor code 2024-02-13 06:01:25 +00:00
Lucas Smith 51608ed390 fix: lint issue 2024-02-12 02:02:43 +00:00
Lucas Smith 8ebef831ac Merge branch 'main' into feat/add-runtime-env 2024-02-12 12:30:35 +11:00
Lucas Smith 20e2976731 fix: build issues 2024-02-12 01:29:22 +00:00
Lucas Smith 748bf6de6b fix: add dropped constants from merge 2024-02-08 22:12:04 +11:00
Lucas Smith d13cf743bf Merge branch 'main' into feat/add-runtime-env 2024-02-08 22:06:59 +11:00
Lucas Smith 47b8cc598c fix: add validation and error message display 2024-02-08 04:28:16 +00:00
Lucas Smith 70c58470c1 fix: update field remove logic (#916)
## Description

Fixed issue where you are prevented from removing fields for a recipient
that has multiple fields.

Example:

Recipient has 3 fields, you remove 1 and proceed to next step. In the
next step the field reappears as it was not deleted.

## 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.
2024-02-07 16:39:54 +11:00
Lucas Smith 8ac2209493 Merge branch 'main' into chore-security-text 2024-02-02 16:16:25 +11:00
Lucas Smith 8f3a52e1fd fix: update e2e test 2024-02-02 04:49:42 +00:00
Lucas Smith 7210d48b64 fix: update dockerfile to support encryption keys 2024-02-02 04:37:29 +00:00
Lucas Smith 5cf2f0a30e fix: only throw crypto key errors on server 2024-02-02 04:24:49 +00:00
Lucas Smith 9c4ec34a3c fix: add precommit step for .well-known 2024-02-02 04:00:28 +00:00
Lucas Smith e42088a5bf feat: add user security audit logs (#884)
## Description

Adds the ability to see the events relating to the account.

Event data includes:
- Device
- IP Address
- Time
- Action

Actions are:

- Profile update
- Account linked to SSO (Example user signs in with Google after
creating a email/password account)
- Enable 2FA
- Disable 2FA
- Reset password
- Update password
- Sign out
- Sign in
- Sign in fail
- Sign in 2FA fail

## Changes

- Added audit logs
- Updated 2FA dialogs to have consistent footers
- Update `/settings/security/page` layout

## Testing Performed

Tested events:


![image](https://github.com/documenso/documenso/assets/20962767/8ab9e055-aa58-4621-86fe-24681cce6418)

More tested events:


![image](https://github.com/documenso/documenso/assets/20962767/b6b42e13-626e-4fed-8e1a-097e5324aa6d)

## Checklist

- [X] I have tested these changes locally and they work as expected.
- [X] I have followed the project's coding style guidelines.

## Additional Notes

- Not sure if we really want to record the sign out event or not
- Might want to design breadcrumbs for nested setting pages
2024-02-02 09:42:25 +11:00
Lucas Smith 39be53ace8 fix: show fields on every step while editing documents (#881)
![CleanShot 2024-01-29 at 00 51
31@2x](https://github.com/documenso/documenso/assets/55143799/d577e027-92d1-48fa-940b-1359386367c5)

![CleanShot 2024-01-29 at 00 51
39@2x](https://github.com/documenso/documenso/assets/55143799/ce2df10e-e254-4854-89a1-ba86d7b05a42)
2024-02-01 12:55:31 +11:00
Lucas Smith 7fbf124b89 fix: use div instead of rnd for preview fields 2024-02-01 01:10:50 +00:00
Mythie 08f82b23dc fix: update env entries to evaluate at runtime 2024-01-31 22:32:42 +11:00
Lucas Smith f3df0d9c13 fix: add env example crypto defaults back 2024-01-29 16:24:13 +11:00
Lucas Smith caec2895cc chore: first small step to tracking growth mechanics (#859) 2024-01-24 14:03:16 +11:00
Lucas Smith bc1d5cea0a fix: docker compose variable (#845)
Actually:

![Uz9ioXw](https://github.com/documenso/documenso/assets/26726263/553bb75a-a7fd-4707-9817-14a053ed75f4)
2024-01-23 19:50:49 +11:00
Mythie 4909eee401 feat: add viewing on completed page for pending documents 2024-01-22 21:36:46 +11:00
Mythie e8c2ca8890 fix: mask documents in search 2024-01-22 12:32:19 +11:00
Lucas Smith 1191e1d9c3 feat: linear-gh blogpost (#827) 2024-01-20 12:18:23 +11:00
Lucas Smith 9c1e1f50a8 fix: mask recipient tokens for non-owners 2024-01-20 01:14:34 +00:00
Lucas Smith 0d977e783e refactor: download function to be reusable (#740) 2024-01-18 15:24:36 +11:00
Lucas Smith 0d15b80c2d fix: simplify code 2024-01-18 04:23:22 +00:00
Lucas Smith 4e9cce0df0 chore: improve request template (#833)
Ref #622 
Consolidated the template(removed redundant fields), added appropriate
validation.
2024-01-18 12:13:20 +11:00
Mythie 9ff44f10a6 chore: add incident blog post 2024-01-17 21:41:00 +11:00
Lucas Smith 16d97783f2 feat: improve the UX for password protected documents (#780) 2024-01-17 19:32:42 +11:00
Mythie 91dd10ec9b fix: add symmetric encryption to document passwords 2024-01-17 17:28:28 +11:00
Mythie a94b829ee0 fix: tidy code 2024-01-17 17:17:08 +11:00
Lucas Smith 560352492d fix: keyboard shortcut ctrl+k fixed (#830) 2024-01-16 13:07:42 +11:00
Lucas Smith 84b0c2756b fix: fixed the deleting signature block issue on touchscreens (#809)
Fixed the deleting signature block issue on touchscreens, for some
reason the `onClick` event isn't working on the touchscreens that's why
I've added `onTouchEnd` event to delete the signature block when the
user clicks on it.
2024-01-15 19:33:40 +11:00
Lucas Smith b09071ebc7 feat: jump to next field (#805)
When the fields are not filled, the button will say "Next field". Clicking on the button takes you to
the unfilled field.
2024-01-10 15:27:18 +11:00
Lucas Smith 5d56b152d6 fix: fixed padding in footer (#794)
fixes: #793
2024-01-03 13:29:13 +11:00
Lucas Smith 5c16b10dc2 fix: update footer to be responsive 2024-01-03 13:16:27 +11:00
Lucas Smith 9bcd6e39e7 docs: change url for cloning (#784) 2024-01-03 12:59:33 +11:00
Lucas Smith 2202fa3d04 chore: update the stale to prevent automatic closure of issues (#799)
Issues that have an open pull request and are currently in the review
period have been closed due to inactivity before.
2024-01-03 12:55:27 +11:00
Lucas Smith c1a6a327af chore: update stale workflows 2024-01-03 12:54:32 +11:00
Lucas Smith 837c17f1f3 chore: hide empty accordion for documents without date field (#800) 2024-01-03 12:44:57 +11:00
Lucas Smith 8f5634268d feat: add templates to command menu (#786) 2023-12-29 15:16:26 +11:00
Mythie d8eff192fe fix: update date format and add missing default 2023-12-27 14:05:50 +11:00
Mythie eb84d7ff3c fix: remove invalid migration 2023-12-27 14:05:49 +11:00
Mythie de4a0b2560 chore: update lint-staged config 2023-12-27 14:05:49 +11:00
Lucas Smith e9312ada51 feat: show document title for delete dialog - [DOC-387] (#772) 2023-12-22 15:09:03 +11:00
Lucas Smith 1c52c7ebcd chore: update copy 2023-12-22 03:43:12 +00:00
Lucas Smith 495cd35f7c refactor: forms (#697)
Updates our older forms to use the appropriate components bringing them in-line with the rest of our codebase.
2023-12-22 14:36:00 +11:00
Lucas Smith 1aa0fc3101 fix: remove loadingText prop 2023-12-22 01:46:41 +00:00
Lucas Smith 48cdf43dcb feat: templates (#537)
Adds the basically ability to create and use templates for repetitive document types
2023-12-21 22:05:09 +11:00
Lucas Smith 1d9593dd0f fix: hotkeys was overlapping with the browser hotkeys (#774)
Issue - The `Ctrl+K` hotkey in our application is conflicting with the
browser's default search hotkey, leading to unintended browser actions.

https://github.com/documenso/documenso/assets/71957674/180b6028-58f7-4cf8-841c-1e13c9d4d355
2023-12-21 21:40:07 +11:00
Mythie 9ad94f9862 fix: updates from review 2023-12-21 21:37:33 +11:00
Mythie 972c20f906 chore: tidy migrations 2023-12-21 21:20:37 +11:00
Mythie 7babd82470 fix: updates from review 2023-12-21 20:42:45 +11:00
Mythie 298396c86c fix: awaiting in promise.all array 2023-12-21 17:36:35 +11:00
Mythie 268a5c6508 fix: swap server-actions for trpc mutations 2023-12-21 17:01:12 +11:00
Lucas Smith c40c9b20ec Merge branch 'main' into feat/document-templates 2023-12-21 14:25:22 +11:00
Mythie 075fdd1f88 fix: lint errors 2023-12-16 15:09:02 +11:00
Lucas Smith 006a559026 Merge branch 'main' into refactor-forms 2023-12-16 13:26:33 +11:00
Lucas Smith ff64671e49 fix: stacking issue with notification/toast and header (#764)
Fixes: #763
2023-12-16 12:40:25 +11:00
Lucas Smith e43e8f8c4a feat: environment variable to toggle signups (#747)
closes #732
2023-12-15 23:09:01 +11:00
Mythie 82da337a56 fix: remove templateToken 2023-12-15 22:07:27 +11:00
Lucas Smith 6e10947d00 Merge branch 'main' into feat/732-toggle-signup-form 2023-12-15 21:05:21 +11:00
Lucas Smith 682cb37786 fix: update auth-options 2023-12-15 20:41:54 +11:00
Lucas Smith 5809480f02 chore: fix workflows and update package.json file (#758) 2023-12-15 16:55:48 +11:00
Mythie 1eeb5fb103 fix: tidy code and base on main 2023-12-14 15:28:27 +11:00
Mythie 6d34ebd91b fix: no longer available client component 2023-12-13 22:49:58 +11:00
Lucas Smith e4b7747f66 chore: run eslint fix on lint staged (#743) 2023-12-09 12:37:13 +11:00
Lucas Smith 0697e7f817 Merge branch 'main' into eslint-lint-staged 2023-12-09 11:41:20 +11:00
Lucas Smith e1d3874e79 fix: do not lint js files 2023-12-09 11:40:23 +11:00
Lucas Smith 38e5b1d3ce chore: use minio as s3 storage for document during development (#588) 2023-12-08 21:08:30 +11:00
Mythie 09dcc2cac0 chore: update github actions 2023-12-08 20:44:28 +11:00
Mythie d8d36ae8e2 fix: sticky header z-positioning 2023-12-08 20:41:52 +11:00