Commit e476caf
authored
Adds publish templates and copy from upload (#3428)
* Adds publish templates and copy from upload
Introduces upload templates for channels, allowing users to save and apply pre-defined settings to new uploads.
Adds a "Copy from Previous Upload" modal, enabling users to populate the publish form with metadata from their previously published content.
Enhances upload search and template flows
Improves publish template functionality
Enhances the publish template feature by disabling the "Save Current as Template" option when no changes are detected in the publish form.
Additionally, increases the number of recent uploads displayed in the copy from upload modal and updates the hint text to reflect this change.
Also provides default values for template comparison.
* address coderabbit reviews
Fixes an issue where optimistic templates were not cleared when channel settings became available or changed.
This ensures that the UI reflects the correct template status after settings are loaded or modified.
Also corrects a typo in the scss, and improves the hint in the copy from upload modal, clarifying the behavior of short search terms.
* Improves template preview and snackbar styling
Enhances the template preview to accurately display price details based on the paywall configuration.
It introduces a check to ensure price information is shown only when relevant to the selected paywall type.
Additionally, updates the snackbar styling to improve button appearance and provide a more consistent user experience.
Refactors: Uses shared deep clone utility
Removes duplicate deep clone functions and uses the newly created shared utility.
This ensures consistency and reduces code duplication.
* Improves upload template and metadata handling
- Sorts languages for comparison in the copy from upload modal to prevent false positives.
- Replaces custom deep clone function with `cloneDeep` from `util/clone` for template duplication in the upload template modal, fixing potential issues with the previous implementation.
- Improves snackbar button styles.1 parent eec53f3 commit e476caf
File tree
23 files changed
+3954
-25
lines changed- flow-typed
- ui
- component/publish
- upload/uploadForm
- constants
- modal
- modalCopyFromUpload
- modalRouter
- modalUploadTemplates
- page/claim/internal/claimPageComponent/internal/channelPage/tabs/homeTab
- redux
- actions
- selectors
- scss/component
- util
- web
23 files changed
+3954
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
4 | 36 | | |
5 | 37 | | |
6 | 38 | | |
| |||
81 | 113 | | |
82 | 114 | | |
83 | 115 | | |
| 116 | + | |
84 | 117 | | |
85 | 118 | | |
86 | 119 | | |
| |||
355 | 388 | | |
356 | 389 | | |
357 | 390 | | |
| 391 | + | |
| 392 | + | |
358 | 393 | | |
359 | 394 | | |
360 | 395 | | |
| |||
371 | 406 | | |
372 | 407 | | |
373 | 408 | | |
| 409 | + | |
| 410 | + | |
374 | 411 | | |
375 | 412 | | |
376 | 413 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| |||
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
| 65 | + | |
63 | 66 | | |
64 | 67 | | |
65 | 68 | | |
| |||
Lines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
0 commit comments