Skip to content

[MDS-5552]replacing now manage doc and admin with zip download #2774

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 3, 2023

Conversation

asinn134
Copy link
Collaborator

@asinn134 asinn134 commented Nov 2, 2023

Objective

MDS-5552

  • Replaces the existing download of NoW documents and Permit Package documents in NoW Manage Documents tab with download zip, similar to Major projects.

  • Replaces the existing download of Permit Package documents in NoW Administrative tab with download zip, similar to Major projects.

image

image

@@ -366,6 +366,7 @@ export const DocumentTable: FC<DocumentTableProps> = ({
setCompressionModalVisible={setCompressionModal}
isCompressionModalVisible={isCompressionModal}
compressionInProgress={setCompressionInProgress}
showArchiveDownloadWarning={true}
Copy link
Collaborator

Choose a reason for hiding this comment

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

would true be a reasonable default for this prop?

Copy link
Collaborator Author

@asinn134 asinn134 Nov 2, 2023

Choose a reason for hiding this comment

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

@taraepp that is a good point. I initially thought to set this prop as a way to temporarily disable the archive warning modal that pops up because NoW section hasn't had archive and versioning setup yet. At the same time, it is possible for other sections not just Major Projects or NoW to use document compression within the DocumentTable since DocumentTable is used in alot of different areas that also don't have archive or versioning files.

Would it make more sense to use DocumentTable's props showVersionHistory and canArchiveDocuments. So something like showDownloadWarning={showVersionHistory || canArchiveDocuments}

Copy link
Collaborator Author

@asinn134 asinn134 Nov 2, 2023

Choose a reason for hiding this comment

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

I adjusted the DocumentTable's showDownloadWarning default value to be based on showVersionHistory || canArchiveDocuments in the latest commit.

matbusby-fw
matbusby-fw previously approved these changes Nov 2, 2023
Copy link
Collaborator

@matbusby-fw matbusby-fw left a comment

Choose a reason for hiding this comment

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

Nice. Love the tweaks for reusability!

henryoforeh-dev
henryoforeh-dev previously approved these changes Nov 2, 2023
Copy link
Collaborator

@matbusby-fw matbusby-fw left a comment

Choose a reason for hiding this comment

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

👍🏻

@asinn134 asinn134 merged commit 4b2e4b2 into develop Nov 3, 2023
@asinn134 asinn134 deleted the mds-5552-now-download-all-zip branch November 3, 2023 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants