Commit Graph

16 Commits

Author SHA1 Message Date
David Nguyen
e81023f8d4 fix: refactor dates (#1321)
## Description

Refactor the current date formatting system to utilize Lingui.

## Changes Made

- Remove redundant `LocaleData` component with Lingui dates

## Important notes

For the internal pages for certificates, default to en-US to format any
dates.

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


- **New Features**
- Enhanced internationalization support across various components by
utilizing the `i18n` object for date formatting.
- Streamlined locale management by removing cookie-based language
handling and adopting a more centralized approach.

- **Bug Fixes**
- Improved date formatting consistency by replacing the `LocaleDate`
component with direct calls to `i18n.date()` in multiple components.

- **Documentation**
- Updated localization strings in the `web.po` files to reflect recent
changes in the source code structure.

- **Chores**
- Minor formatting adjustments and code organization improvements across
various files to enhance readability and maintainability.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: github-actions <github-actions@documenso.com>
2024-09-10 12:38:08 +10:00
David Nguyen
38a4b0f299 fix: dialog close on refresh (#1135)
Previously dialogs would be closed upon refocusing the browser tab due to router refetches occuring which would cause data-table columns to re-render. This is now resolved by extracting the column definitions outside of the returning render and into a memo hook.
2024-08-27 23:13:52 +10:00
David Nguyen
75c8772a02 feat: web i18n (#1286) 2024-08-27 20:34:39 +09:00
Mythie
4c0b772fc9 fix: rewrite form flattening handler
Previously we used the form flattening method from PDF-Lib
but unfortunately when it encountered orphaned form items
or other PDF oddities it would throw an error.

Because of this certain documents would fail to seal and
be stuck in a pending state with no recourse available.
This change rewrites the form flattening handler to be
more lenient when coming across the unknown opting to skip
items it can't handle rather than abort.
2024-05-22 21:58:30 +10:00
Lucas Smith
a56bf6a192 fix: update email template and tidy code 2024-03-28 06:55:01 +00:00
Rohit Saluja
6603aa6f2e fix: removed the condition for deletedAt flag inside the document 2024-03-26 18:57:19 +05:30
Rohit Saluja
a6ddc114d9 fix: a condition is added for the reason in the handler 2024-03-26 18:53:03 +05:30
Rohit Saluja
abb49c349c fix: delete document file is changed to super delete document file 2024-03-26 18:48:35 +05:30
Rohit Saluja
bba1ea81d6 feat: updated the condition of the delete dialog in the detail page 2024-03-13 11:40:12 +05:30
Rohit Saluja
af6ec5df42 feat: reason is added to the email 2024-03-13 11:30:20 +05:30
Rohit Saluja
35c1b0bcee feat: corrected the document redirection after delete 2024-03-13 11:15:06 +05:30
Rohit Saluja
a8413fa031 feat: disabled reason condition is updated on the dialog form 2024-03-12 20:42:13 +05:30
Rohit Saluja
3b65447b0f feat: updating the dialog and page of document 2024-03-12 20:38:11 +05:30
Rohit Saluja
d8911ee97b feat: added the dialog delete file 2024-03-12 20:16:48 +05:30
Rohit Saluja
d0b9cee500 feat: created the dialog file for delete of document 2024-03-12 18:55:59 +05:30
Mythie
73aae6f1e3 feat: improve admin panel 2024-03-03 01:55:33 +11:00