Skip to content
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

Subscribers loading inside template view #4357

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
908 commits
Select commit Hold shift + click to select a range
c5c213a
Merge branch 'content-profiles-for-non-text-content-types' into autho…
tomaskikutis Nov 14, 2022
deb50be
Merge branch 'authoring-react' into broadcasting
tomaskikutis Nov 14, 2022
6ad3538
Merge branch 'broadcasting' into authoring-react-post-broadcasting
tomaskikutis Nov 14, 2022
92c8b07
fix not being able to save a rundown that is a part of a template
tomaskikutis Nov 15, 2022
608f955
resolve TODOs
tomaskikutis Nov 15, 2022
8008718
don't show additional_notes in the rundown items list view
tomaskikutis Nov 15, 2022
cc9da64
display lock info when previewing rundown items
tomaskikutis Nov 15, 2022
1a5dcde
merge fix - restore @superdesk/common
tomaskikutis Nov 15, 2022
a7c2880
Merge branch 'broadcasting' into authoring-react-post-broadcasting
tomaskikutis Nov 15, 2022
a2cbffc
subitems v2
tomaskikutis Nov 17, 2022
113aedc
use colored labels for subitem types
tomaskikutis Nov 20, 2022
32b1718
fix changes not being saved for rundown item edited as a part of a te…
tomaskikutis Nov 22, 2022
7f5d186
fix display of subitems in rundowns list
tomaskikutis Nov 22, 2022
844ec7a
fix(broadcasting): Fixed issue with drag&drop inside the modal (#4144)
dzonidoo Nov 22, 2022
cc69e8a
adjust to IAuthoringAutoSave interface changes
tomaskikutis Nov 23, 2022
b09e128
move rundown items to extension root
tomaskikutis Nov 23, 2022
c52636c
move rundowns to extension root dir
tomaskikutis Nov 23, 2022
5955288
move rundown templates into a root dir
tomaskikutis Nov 23, 2022
47e72cc
[email protected]
tomaskikutis Nov 24, 2022
d472cc5
add an option to upload media
tomaskikutis Nov 24, 2022
d318cc0
Macros widget refactoring (#4134)
thecalcc Nov 30, 2022
596c616
Revert "Macros widget refactoring (#4134)"
tomaskikutis Dec 1, 2022
591a437
Merge branch 'broadcasting' into authoring-react-post-broadcasting
tomaskikutis Dec 1, 2022
408eb52
Revert "Revert "Macros widget refactoring (#4134)""
tomaskikutis Dec 1, 2022
bb07710
bugfix: if unspecified, duration should be populated with planned_dur…
tomaskikutis Dec 1, 2022
a14cddb
[email protected]
tomaskikutis Dec 2, 2022
17b56d5
rundown item comment notification
tomaskikutis Dec 2, 2022
eb3914d
Toolbar export action modal
thecalcc Dec 7, 2022
1f5eaf3
Revert "Toolbar export action modal"
thecalcc Dec 7, 2022
89b5b3e
fix new template item being stuck in read-only mode when being created
tomaskikutis Dec 13, 2022
6ebf5cd
fix prefilling of template name missing when show template is being a…
tomaskikutis Dec 13, 2022
6380a4a
Multi-edit view in React authoring (#4143)
thecalcc Dec 16, 2022
854505f
Merge branch 'develop' into content-profiles-for-non-text-content-types
tomaskikutis Dec 19, 2022
baee414
fix editing vocabulary items - items are wasn't scrollable
tomaskikutis Dec 20, 2022
112136b
it should work to edit rundown items despite rundown itself being in …
tomaskikutis Dec 20, 2022
2250495
lock indicator for rundown
tomaskikutis Dec 20, 2022
489d54e
Toolbar export action modal (#4157)
thecalcc Dec 20, 2022
b49c5e5
adjust data format for rundown item comment notifications
tomaskikutis Dec 20, 2022
d402b0a
allow customizing rundown item display name that would be shown in th…
tomaskikutis Dec 22, 2022
9772c5f
use a small button in rundown items list
tomaskikutis Jan 2, 2023
de8cd2f
remove sample code
tomaskikutis Jan 2, 2023
08b5781
move sideWidget state out of AuthoringReact component
tomaskikutis Jan 3, 2023
9bcb399
when notification regarding comment mention is clicked - open rundown…
tomaskikutis Jan 3, 2023
cf9b9ad
remove show_part
tomaskikutis Jan 3, 2023
2edbb8a
remove additional notes field
tomaskikutis Jan 3, 2023
105f1fc
remove formatting options for rundown item text fields
tomaskikutis Jan 3, 2023
3c0a597
move rundown labels
tomaskikutis Jan 3, 2023
e8fb423
use specific display style for single-line editor3 fields
tomaskikutis Jan 3, 2023
aadd680
Packages edit view implentation (authoring-react) (#4147)
thecalcc Jan 4, 2023
843ec08
Save as template authoring react (#4150)
thecalcc Jan 4, 2023
a8857ce
Toolbar translate action (#4158)
thecalcc Jan 4, 2023
5978f87
bugfix: when closing rundown, close rundown item too
tomaskikutis Jan 9, 2023
770ed4f
avoid the same sidewidget being shown after switching to another rund…
tomaskikutis Jan 9, 2023
1a418f9
Translations refactoring (#4127)
thecalcc Jan 9, 2023
9131de3
fit subitem labels on one line when possible
tomaskikutis Jan 10, 2023
0b27d3b
Send to filtering destinations
thecalcc Jan 11, 2023
679f7fe
Toolbar compare article versions (#4164)
thecalcc Jan 12, 2023
0c7f978
Fix query page zero case
thecalcc Jan 18, 2023
1667cb1
port send to desk changes from angular based authoring (#4177)
thecalcc Jan 18, 2023
f38c3d6
Fix query page field (#4186)
thecalcc Jan 18, 2023
b29260b
Highlights toolbar react (#4183)
thecalcc Jan 23, 2023
36736f1
Restore mark for desks, code cleanup (#4184)
thecalcc Jan 23, 2023
40c37e8
content field should be multi line
tomaskikutis Jan 27, 2023
af644e4
Authoring-react keybindings (#4196)
dzonidoo Feb 7, 2023
98cf62e
Show modal if no highlights are configured & small improvements (#4198)
thecalcc Feb 8, 2023
c52c93f
Merge branch 'develop' into content-profiles-for-non-text-content-types
tomaskikutis Feb 12, 2023
c621663
Merge branch 'content-profiles-for-non-text-content-types' into autho…
tomaskikutis Feb 12, 2023
5c367a5
fix merge issues
tomaskikutis Feb 13, 2023
309c973
Merge branch 'authoring-react' into broadcasting
tomaskikutis Feb 13, 2023
5309bb3
fixes after merge
tomaskikutis Feb 13, 2023
0832f67
Merge branch 'broadcasting' into authoring-react-post-broadcasting
tomaskikutis Feb 14, 2023
2254f42
merge fixes
tomaskikutis Feb 14, 2023
b3cc7e9
Merge branch 'develop' into content-profiles-for-non-text-content-types
tomaskikutis Feb 16, 2023
343b727
Merge branch 'content-profiles-for-non-text-content-types' into autho…
tomaskikutis Feb 16, 2023
cb4942c
Merge branch 'authoring-react' into broadcasting
tomaskikutis Feb 16, 2023
12a1f1e
Merge branch 'broadcasting' into authoring-react-post-broadcasting
tomaskikutis Feb 16, 2023
044bbb7
Merge branch 'develop' into content-profiles-for-non-text-content-types
tomaskikutis Feb 16, 2023
e121705
Merge branch 'content-profiles-for-non-text-content-types' into autho…
tomaskikutis Feb 16, 2023
71b344f
Merge branch 'authoring-react' into broadcasting
tomaskikutis Feb 16, 2023
46e6c60
Merge branch 'broadcasting' into authoring-react-post-broadcasting
tomaskikutis Feb 16, 2023
f429ded
enable entering full width mode from superdesk sidebar menu
tomaskikutis Feb 16, 2023
4024eed
description_text field react (#4194)
thecalcc Feb 17, 2023
0ecd544
Rundown items authoring header improvements (#4206)
thecalcc Feb 20, 2023
6ccb316
Rundown item duration improvements (#4205)
thecalcc Feb 20, 2023
c7bf515
Right panel size set to xx-large (#4209)
thecalcc Feb 22, 2023
48d602b
Planned duration non mandatory (#4210)
thecalcc Feb 24, 2023
c84be09
Dateline field implemented in React (#4190)
thecalcc Feb 24, 2023
c3f00c7
keep existing full width value when rundown action changes
tomaskikutis Feb 24, 2023
7424716
Keywords custom field (#4216)
thecalcc Mar 2, 2023
b53121a
Fix lint, fix errors
thecalcc Mar 2, 2023
f4ec0b2
Merge branch 'develop' into content-profiles-for-non-text-content-types
tomaskikutis Mar 2, 2023
1a9567c
Merge branch 'content-profiles-for-non-text-content-types' into autho…
tomaskikutis Mar 3, 2023
e07f537
Merge branch 'authoring-react' into broadcasting
tomaskikutis Mar 3, 2023
7afcc2d
Merge branch 'broadcasting' into authoring-react-post-broadcasting
tomaskikutis Mar 3, 2023
f50ad54
fix incompatibilities between broadcasting and authoring-react
tomaskikutis Mar 3, 2023
64dfb37
update usage of SideBarTabs
tomaskikutis Mar 3, 2023
bfc8880
[email protected]
tomaskikutis Mar 3, 2023
7f4d535
add package-lock.json
tomaskikutis Mar 7, 2023
3a033b3
add package-lock.json
tomaskikutis Mar 7, 2023
4727d6c
fix unit test (bad merge)
tomaskikutis Mar 7, 2023
23a32e5
Merge branch 'broadcasting' into authoring-react-post-broadcasting
tomaskikutis Mar 7, 2023
67e2698
[email protected]; update usage of components
tomaskikutis Mar 7, 2023
29f9c4d
disable broken unit tests; add a TODO to reimplement as e2e tests
tomaskikutis Mar 7, 2023
e807886
add immutable js patch to draft-js types
tomaskikutis Mar 7, 2023
5dde46c
remove unused var
tomaskikutis Mar 7, 2023
9277a07
[email protected]
dzonidoo Mar 8, 2023
4dc532d
update usage of SideBarTabs
tomaskikutis Mar 10, 2023
d2927a3
add package-lock.json
tomaskikutis Mar 7, 2023
35549a6
add immutable js patch to draft-js types
tomaskikutis Mar 7, 2023
b65200d
remove unused var
tomaskikutis Mar 7, 2023
797a596
update usage of SideBarTabs
tomaskikutis Mar 10, 2023
fa5c878
update interface of SideBarTabs
tomaskikutis Mar 10, 2023
1552409
Merge branch 'broadcasting' into authoring-react-post-broadcasting
tomaskikutis Mar 10, 2023
0605ae0
fix date time extension (latest interfaces)
tomaskikutis Mar 10, 2023
dacde26
improve naming
tomaskikutis Mar 10, 2023
cc4a96f
finish moving components to dedicated files
tomaskikutis Mar 10, 2023
fa684f8
update predefinedTextField extension to work with new API interfaces
tomaskikutis Mar 14, 2023
f1a2618
disable authoring-react by default
tomaskikutis Mar 15, 2023
cc2e269
Translation issue fixed (#4218)
dzonidoo Mar 15, 2023
bb801d4
don't include disabled fields
tomaskikutis Mar 16, 2023
8eca80a
Template editing authoring react (#4222)
thecalcc Mar 17, 2023
7746561
fix interfaces for sidetabs v2
tomaskikutis Mar 17, 2023
e6e089f
prompt users before deleting items from database
tomaskikutis Mar 17, 2023
1f6736e
Fix side bar view in authoring react (#4225)
thecalcc Mar 20, 2023
ef53be7
Merge branch 'authoring-react' into broadcasting
tomaskikutis Mar 20, 2023
35a6437
fix merge
tomaskikutis Mar 21, 2023
9413204
Merge branch 'broadcasting' into authoring-react-post-broadcasting
tomaskikutis Mar 21, 2023
953b22b
get extensions up to date with new interfaces
tomaskikutis Mar 21, 2023
125d599
Merge branch 'broadcasting' into authoring-react-post-broadcasting
tomaskikutis Mar 21, 2023
3546dd7
get extensions up to date with new interfaces (specific to post broad…
tomaskikutis Mar 21, 2023
d75efdb
fix for e6e089f90
tomaskikutis Mar 22, 2023
c78367f
use the same typescript version accross extensions
tomaskikutis Mar 22, 2023
9f96841
add cursor text for rundown item display name
tomaskikutis Mar 23, 2023
ab068f8
Merge branch 'develop' into authoring-react
tomaskikutis Mar 23, 2023
e43a2ae
Merge branch 'broadcasting' into authoring-react-post-broadcasting
tomaskikutis Mar 23, 2023
3b09ac1
[email protected]
tomaskikutis Apr 4, 2023
90d29e8
Publish and continue
thecalcc Apr 5, 2023
c849f92
Revert "Publish and continue"
thecalcc Apr 5, 2023
b18b550
Body footer (#4224)
thecalcc Apr 5, 2023
4e9b998
Metadata widget (#4212)
thecalcc Apr 5, 2023
0a571f5
Multi edit option in toolbar authoring react (#4185)
thecalcc Apr 5, 2023
295a90a
Close & continue
thecalcc Apr 7, 2023
5941ea3
Revert "Close & continue"
thecalcc Apr 7, 2023
f5df79b
Minor fix (#4232)
thecalcc Apr 7, 2023
4701af1
Publish and continue (#4231)
thecalcc Apr 20, 2023
3065268
update peer dependencies
tomaskikutis Apr 20, 2023
971448a
[email protected]
tomaskikutis Apr 20, 2023
655832b
[email protected] - update client usages
tomaskikutis Apr 20, 2023
9d37a6a
fullWidthEnabled should be updated unconditionally inside else
tomaskikutis Apr 21, 2023
2c952c0
don't show text selection cursor when dragging is enabled
tomaskikutis Apr 21, 2023
9a65c5d
Export highlights button w/o preview in React
thecalcc Apr 26, 2023
9a88a31
Revert "Export highlights button w/o preview in React"
thecalcc Apr 26, 2023
27c0974
Changes after reivew
thecalcc May 5, 2023
a190972
Revert "Changes after reivew"
thecalcc May 5, 2023
aa13724
More templates fix (#4237)
thecalcc May 9, 2023
ce0357f
Close & continue (#4233)
thecalcc May 9, 2023
28081de
fixed pin aligment (#4242)
dzonidoo May 9, 2023
00b985b
Proofreading themes (#4203)
dzonidoo May 9, 2023
91eb286
fixed usage of userHasPrivileges
tomaskikutis May 12, 2023
14d2b81
fix null reference exception
tomaskikutis May 12, 2023
0c2d36b
Fix : Publish button not activating [SDESK-6902] (#4245)
devketanpro May 17, 2023
7b66dfb
Publish panel fixes (#4247)
thecalcc May 18, 2023
11fabab
fix non wrapping category config in user preferences (#4250)
petrjasek May 23, 2023
418fc6d
Merge branch 'develop' into content-profiles-for-non-text-content-types
tomaskikutis May 24, 2023
a87f7f1
Merge branch 'content-profiles-for-non-text-content-types' into autho…
tomaskikutis May 24, 2023
c2a3572
adjust to new ui-framework swtich interface
tomaskikutis May 24, 2023
f3b439c
Merge branch 'authoring-react' into broadcasting
tomaskikutis May 24, 2023
77736cc
Merge branch 'broadcasting' into authoring-react-post-broadcasting
tomaskikutis May 24, 2023
0c51dd4
Merge branch 'post-broadcasting-good-merge' into authoring-react-post…
tomaskikutis May 25, 2023
6a60799
fix media blocking operations inside editor3 (#4254)
tomaskikutis May 26, 2023
05b499d
fix publishing validation (#4248)
thecalcc May 26, 2023
e37fcfd
fixed panel footer UI (#4260)
dzonidoo Jun 2, 2023
e70ba81
fix required check for CVs in upload modal (#4249)
petrjasek Jun 5, 2023
e0a3a25
Publish tab UI improvements (#4257)
thecalcc Jun 6, 2023
46dfb87
fixed filtering inside of more templates (#4258)
dzonidoo Jun 7, 2023
36a49ac
fixed transaltion-params-name and use it properly (#4255)
dzonidoo Jun 7, 2023
1454951
change fix height (#4256)
dzonidoo Jun 7, 2023
31a6433
fixed spike list (#4261)
dzonidoo Jun 7, 2023
27aaedb
Fix places not loading (#4263)
thecalcc Jun 12, 2023
411b254
Improve formatting options multi select (#4262)
thecalcc Jun 13, 2023
226d891
Fix toggle (#4264)
thecalcc Jun 13, 2023
c1fcaf8
Fix blue indicator on drop (#4266)
thecalcc Jun 15, 2023
a1a6787
update scope
dzonidoo Jun 20, 2023
1226022
Fix article preview in master desk (#4271)
thecalcc Jun 27, 2023
b773972
Improve publish tab so you have the ability to save values to the art…
thecalcc Jun 27, 2023
cd1e1b2
Sign off field implementation in react (#4272)
thecalcc Jun 28, 2023
0b927d2
Update uif version (#4277)
thecalcc Jun 28, 2023
4bd373e
Formatting options port (#4293)
thecalcc Jul 10, 2023
58115d6
Merge branch 'develop' into content-profiles-for-non-text-content-types
tomaskikutis Jul 10, 2023
e6335c0
Merge branch 'content-profiles-for-non-text-content-types' into autho…
tomaskikutis Jul 10, 2023
0da708a
merge fix
tomaskikutis Jul 10, 2023
0e91283
fixed after merge
tomaskikutis Jul 10, 2023
0eebc47
Merge branch 'content-profiles-for-non-text-content-types' into autho…
tomaskikutis Jul 10, 2023
b021388
Fix template saving (#4292)
thecalcc Jul 10, 2023
d5a5fda
update usages according to ui-framework changes
tomaskikutis Jul 11, 2023
f7e139b
Merge branch 'authoring-react' into broadcasting
tomaskikutis Jul 11, 2023
99c6d56
fix unit test
tomaskikutis Jul 12, 2023
bb632b1
adjust usages of ui-framework after interface changes
tomaskikutis Jul 12, 2023
7f35fb2
Merge branch 'broadcasting' into authoring-react-post-broadcasting
tomaskikutis Jul 12, 2023
280697f
fix test
tomaskikutis Jul 13, 2023
864a25d
fix lint
tomaskikutis Jul 13, 2023
338608c
Merge branch 'develop' into content-profiles-for-non-text-content-types
tomaskikutis Jul 13, 2023
1e101db
Merge branch 'content-profiles-for-non-text-content-types' into autho…
tomaskikutis Jul 13, 2023
72ec55e
Merge branch 'authoring-react' into broadcasting
tomaskikutis Jul 13, 2023
5baa00c
Merge branch 'broadcasting' into authoring-react-post-broadcasting
tomaskikutis Jul 13, 2023
5b6f58a
fix content profiles filters by type not appearing (#4291)
tomaskikutis Jul 17, 2023
219c664
fix content type filters wrapping on non HD laptop displays
tomaskikutis Jul 19, 2023
c7585ad
Merge branch 'develop' into content-profiles-for-non-text-content-types
tomaskikutis Jul 21, 2023
5125b3a
Merge branch 'content-profiles-for-non-text-content-types' into autho…
tomaskikutis Jul 21, 2023
5814ee1
Merge branch 'authoring-react' into broadcasting
tomaskikutis Jul 21, 2023
9394329
Merge branch 'broadcasting' into authoring-react-post-broadcasting
tomaskikutis Jul 21, 2023
841dadd
update ui-framework
tomaskikutis Jul 27, 2023
aeca5c0
Fix styles of a custom vocabulary field - dateTime (#4295)
thecalcc Jul 31, 2023
ba4784d
Fix datetime required stars (#4302)
thecalcc Aug 3, 2023
ebb8bd9
set e2e server to release/2.7
tomaskikutis Aug 18, 2023
7604ef1
Switch to authoring react in broadcasting (#4313)
thecalcc Aug 24, 2023
af8cd7f
Introuduce private custom field option (#4314)
thecalcc Aug 24, 2023
2acbf68
Link authoring theme with superdesk selected theme (#4316)
dzonidoo Aug 31, 2023
3dbf10b
created default edithor theme (#4318)
dzonidoo Aug 31, 2023
dbaa318
fix condition (#4319)
dzonidoo Sep 1, 2023
4a24341
Remove duplicate slugline (#4321)
thecalcc Sep 7, 2023
f2d5cf1
Implement authoring switch (#4320)
thecalcc Sep 7, 2023
4d0ac53
Merge branch 'develop' into content-profiles-for-non-text-content-types
tomaskikutis Sep 11, 2023
e3b8e96
Merge branch 'content-profiles-for-non-text-content-types' into autho…
tomaskikutis Sep 11, 2023
b3f054b
Merge branch 'authoring-react' into broadcasting
tomaskikutis Sep 11, 2023
34863b1
Merge branch 'broadcasting' into authoring-react-post-broadcasting
tomaskikutis Sep 11, 2023
b03c69c
fix e2e tests on post-broadcasting (#4315)
tomaskikutis Sep 20, 2023
911806b
Desk label duplication fix (#4331)
thecalcc Sep 25, 2023
1dfd2c9
add missing types for privileges (#4332)
petrjasek Sep 27, 2023
29279d4
Merge branch 'develop' into content-profiles-for-non-text-content-types
tomaskikutis Sep 28, 2023
3ba1154
Merge branch 'content-profiles-for-non-text-content-types' into autho…
tomaskikutis Sep 28, 2023
da35e70
Merge branch 'authoring-react' into broadcasting
tomaskikutis Sep 28, 2023
5076408
Fix text wrap for stage filters (#4333)
thecalcc Sep 28, 2023
e54124f
Merge branch 'broadcasting' into authoring-react-post-broadcasting
tomaskikutis Sep 28, 2023
1e5b20b
avoid create content button getting hidden
tomaskikutis Oct 2, 2023
2e4296c
Merge remote-tracking branch 'origin/develop' into authoring-react-po…
petrjasek Oct 6, 2023
d5d7abd
add missing privileges.getOwnPrivileges implementation
petrjasek Oct 6, 2023
340d1c0
fix gettext error when planning is enabled
petrjasek Oct 6, 2023
ced9115
Fix dragging UI for media gallery [REACT] (#4335)
thecalcc Oct 9, 2023
daf9cd8
Fix text wrap (#4337)
thecalcc Oct 9, 2023
a0d2708
fix lint
tomaskikutis Oct 10, 2023
2eee4e5
add zIndex for tree select in content profiles
tomaskikutis Oct 17, 2023
344732b
drop editor2 remains
tomaskikutis Oct 17, 2023
5c83e10
legacy extension compatibility layer (#4343)
tomaskikutis Oct 19, 2023
bc85cfd
Improve toolbar styles for small screens (#4342)
tomaskikutis Oct 25, 2023
db520e7
Add styles for multi column publish tab (#4345)
tomaskikutis Oct 26, 2023
0065de7
styling inside of publishing panel (#4349)
dzonidoo Oct 30, 2023
b19b89b
Fix superdesk-api so it's compatible with planning develop (#4350)
thecalcc Oct 31, 2023
087f8c2
Merge remote-tracking branch 'origin/develop' into authoring-react-po…
petrjasek Oct 31, 2023
b00a696
Fix target subscribers loading in templates
thecalcc Nov 2, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ scripts/extensions/*/node_modules
scripts/extensions/**/dist
end-to-end-testing-helpers/dist
end-to-end-testing-helpers/node_modules
superdesk-common/node_modules
superdesk-common/dist
e2e/client/node_modules
e2e/client/dist
e2e/client/**/*.js
Expand Down
36 changes: 36 additions & 0 deletions docs/item-states.dot
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
digraph {
node [
shape=circle,
fixedsize=true,
width=1.6,
]

workflow [label="\nIN_PROGRESS \n / SUBMITTED \n / FETCHED \n / ROUTED"]
published [label="PUBLISHED \n / CORRECTED"]

"INGESTED" -> workflow [label="fetch"]
"INGESTED" -> workflow [label="route"]

workflow -> workflow [label=" send to -> SUBMITTED\n edit -> IN_PROGRESS"]

"DRAFT" -> workflow

workflow -> "SPIKED"
"SPIKED" -> workflow

workflow -> published

workflow -> "SCHEDULED"
"SCHEDULED" -> workflow


"SCHEDULED" -> published

published -> "UNPUBLISHED"
"UNPUBLISHED" -> workflow

published -> "KILLED"
published -> "RECALLED"

published -> published [label=" correct -> CORRECTED"]
}
3 changes: 2 additions & 1 deletion e2e/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@
},
"scripts": {
"build": "npx @superdesk/build-tools build-root-repo ./",
"server": "grunt server",
"start-client-server": "http-server dist -p 9000 -s &",
"stop-client-server": "fuser -k 9000/tcp",
"protractor": "node run-end-to-end-tests.js",
"protractor": "protractor protractor.conf.js",
"specs--compile": "find ./specs/ -name '*.js' -type f -delete && tsc -p ./specs",
"specs--watch": "find ./specs/ -name '*.js' -type f -delete && tsc -p ./specs -w",
"start-test-server": "cd ../server && docker-compose build && docker-compose up -d",
Expand Down
2 changes: 1 addition & 1 deletion e2e/client/protractor.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ var config = {
framework: 'jasmine2',
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 200000,
defaultTimeoutInterval: 300000,
},

capabilities: {
Expand Down
46 changes: 0 additions & 46 deletions e2e/client/run-end-to-end-tests.js

This file was deleted.

1 change: 1 addition & 0 deletions e2e/client/specs/_unstable-tests.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ monitoring can display the item in Desk Output when it's published in a producti
authoring related item widget can open published item
send warns that there are spelling mistakes
master_desk show content view - edit item
can save and use language preferences
3 changes: 2 additions & 1 deletion e2e/client/specs/archived_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {globalSearch} from './helpers/search';
import {authoring} from './helpers/authoring';
import {content} from './helpers/content';
import {monitoring} from './helpers/monitoring';
import {element, by} from 'protractor';

describe('archived', () => {
beforeEach(() => {
Expand Down Expand Up @@ -31,7 +32,7 @@ describe('archived', () => {
expect(authoring.edit_correct_button.isDisplayed()).toBe(false);
expect(authoring.edit_kill_button.isDisplayed()).toBe(false);
expect(authoring.edit_takedown_button.isDisplayed()).toBe(false);
expect(authoring.navbarMenuBtn.isPresent()).toBe(false);
expect(element(by.css('[data-test-id="content-create"]')).isPresent()).toBe(false);
expect(authoring.sendToButton.isDisplayed()).toBe(false);
authoring.showInfo();
expect(authoring.isPublishedState()).toBe(true);
Expand Down
189 changes: 53 additions & 136 deletions e2e/client/specs/authoring_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,61 +50,7 @@ describe('authoring', () => {
monitoring.openMonitoring();
});

it('add an embed and respect the order', () => {
// try with same block content
monitoring.actionOnItem('Edit', 2, 0);
authoring.cleanBodyHtmlElement();
authoring.writeText('line\n');
authoring.addEmbed('embed');
var thirdBlockContext = element(by.model('item.body_html')).all(by.repeater('block in vm.blocks')).get(2);

thirdBlockContext.all(by.css('.editor-type-html')).first().sendKeys('line\n');
authoring.addEmbed('embed', thirdBlockContext);
authoring.blockContains(0, 'line');
authoring.blockContains(1, 'embed');
authoring.blockContains(2, 'line');
authoring.blockContains(3, 'embed');
authoring.close();
authoring.ignore();
// with different block content
monitoring.actionOnItem('Edit', 2, 0);
authoring.cleanBodyHtmlElement();
function generateLines(from, to) {
var lines = '';

for (var j = from; j < to; j++) {
lines += 'line ' + j + '\n';
}
return lines;
}
var body1 = generateLines(0, 8);
var body2 = generateLines(8, 15);
var body3 = generateLines(15, 20);

authoring.writeText(body1 + body2 + body3.trim());
authoring.writeText(
protractor.Key.HOME +
protractor.Key.UP.repeat(4) +
protractor.Key.ENTER +
protractor.Key.UP,
);

authoring.addEmbed('Embed at position 15');
authoring.blockContains(0, (body1 + body2).replace(/\n$/, ''));
authoring.blockContains(2, body3.replace(/\n$/, ''));
authoring.writeText(
protractor.Key.UP.repeat(7) +
protractor.Key.ENTER,
);
authoring.addEmbed('Embed at position 8');
authoring.blockContains(0, body1.replace(/\n$/, ''));
authoring.blockContains(2, body2.replace(/\n$/, ''));
authoring.blockContains(4, body3.replace(/\n$/, ''));
});

it('authoring operations', () => {
// undo and redo operations by using CTRL+Z and CTRL+y ...
// ... from a new item
it('can undo and redo', () => {
authoring.createTextItem();
browser.sleep(1000);
authoring.writeText('to be undone');
Expand All @@ -114,40 +60,13 @@ describe('authoring', () => {
expect(authoring.getBodyText()).toBe('');
ctrlKey('y');
expect(authoring.getBodyText()).toBe('to be undone');
authoring.writeText(protractor.Key.HOME + protractor.Key.ENTER + protractor.Key.UP);
authoring.addEmbed('Embed');
authoring.blockContains(1, 'Embed');
authoring.blockContains(2, 'to be undone');
commandKey('z');
authoring.blockContains(0, 'to be undone');
commandKey('y');
authoring.blockContains(1, 'Embed');
authoring.blockContains(2, 'to be undone');

authoring.cutBlock(1);
authoring.blockContains(0, 'to be undone');
ctrlKey('z');
authoring.blockContains(1, 'Embed');
authoring.blockContains(2, 'to be undone');
authoring.close();
authoring.ignore();
// ... from an existing item
expect(monitoring.getTextItem(2, 0)).toBe('item5');
monitoring.actionOnItem('Edit', 2, 0);
expect(authoring.getBodyText()).toBe('item5 text');
authoring.writeText(' Two');
expect(authoring.getBodyText()).toBe('item5 text Two');
authoring.writeText(' Words');
expect(authoring.getBodyText()).toBe('item5 text Two Words');
ctrlKey('z');
expect(authoring.getBodyText()).toBe('item5 text Two');
ctrlKey('y');
expect(authoring.getBodyText()).toBe('item5 text Two Words');
authoring.save();
authoring.close();
});

it('authoring operations', () => {
// allows to create a new empty package
monitoring.createItemAction('create_package');
el(['content-create']).click();
el(['content-create-dropdown', 'create-package']).click();

expect(element(by.className('packaging-screen')).isDisplayed()).toBe(true);
authoring.close();

Expand Down Expand Up @@ -330,12 +249,22 @@ describe('authoring', () => {
authoring.close();
});

it('keyboard shortcuts', () => {
/**
* disabled because it fails due to a timeout and doesn't show a stack trace
* it works well locally
*/
xit('keyboard shortcuts', () => {
monitoring.actionOnItem('Edit', 2, 0);
authoring.writeText('z');
element(by.cssContainingText('label', 'Dateline')).click();
ctrlShiftKey('s');
browser.wait(() => element(by.buttonText('Save')).getAttribute('disabled'), 500);

browser.wait(ECE.attributeEquals(
element(by.buttonText('Save')),
'disabled',
'true',
));

authoring.close();
monitoring.actionOnItem('Edit', 2, 0);
browser.sleep(300);
Expand Down Expand Up @@ -405,39 +334,31 @@ describe('authoring', () => {

it('toggle auto spellcheck and hold changes', () => {
monitoring.actionOnItem('Edit', 2, 1);
expect(element(by.model('spellcheckMenu.isAuto')).getAttribute('checked')).toBeTruthy();

browser.wait(ECE.attributeEquals(
element(by.model('spellcheckMenu.isAuto')),
'checked',
'true',
));

authoring.toggleAutoSpellCheck();
expect(element(by.model('spellcheckMenu.isAuto')).getAttribute('checked')).toBeFalsy();
authoring.close();
monitoring.actionOnItem('Edit', 2, 2);
expect(element(by.model('spellcheckMenu.isAuto')).getAttribute('checked')).toBeFalsy();
});

it('spellcheck hilite sentence word for capitalization and ignore the word after abbreviations', () => {
nav('/settings/dictionaries');
dictionaries.edit('Test 1');
expect(dictionaries.getWordsCount()).toBe(0);
dictionaries.search('abbrev.');
dictionaries.saveWord();
dictionaries.search('abbrev');
dictionaries.saveWord();
expect(dictionaries.getWordsCount()).toBe(2);
dictionaries.save();
browser.sleep(200);
browser.wait(ECE.attributeEquals(
element(by.model('spellcheckMenu.isAuto')),
'checked',
null,
));

monitoring.openMonitoring();
authoring.close();

authoring.createTextItem();
authoring.writeText('some is a sentence word, but words come after an abbrev. few are not');
browser.sleep(200);
expect(authoring.getBodyInnerHtml()).toContain('<span class="sderror sdhilite sdCapitalize" data-word="some" ' +
'data-index="0" data-sentence-word="true">some</span>');
expect(authoring.getBodyInnerHtml()).not.toContain('<span class="sderror sdhilite sdCapitalize" ' +
'data-word="few" data-index="57">few</span>');
expect(authoring.getBodyInnerHtml()).toContain('<span class="sderror sdhilite" data-word="few" ' +
'data-index="57">few</span>');
});
monitoring.actionOnItem('Edit', 2, 2);

browser.wait(ECE.attributeEquals(
element(by.model('spellcheckMenu.isAuto')),
'checked',
null,
));
});
it('related item widget', () => {
monitoring.actionOnItem('Edit', 2, 1);
authoring.writeText('something');
Expand Down Expand Up @@ -585,8 +506,15 @@ describe('authoring', () => {
expect(authoring.getInnerDropdownItemVersions(1).count()).toBe(2);
authoring.openItemVersionInBoard(1, 0);
expect(authoring.getInnerDropdownItemVersions(0).count()).toBe(1);
expect(authoring.getHtmlArticleHeadlineOfBoard(0)).toContain(
'<span>item5 updated</span><ins style="background:#e6ffe6;"> newly</ins>',
expect(
authoring.getHtmlArticleHeadlineOfBoard(0).then((text) => {
return text
.replace(/ data-text="true"/g, '')
.replace(/ data-offset-key=".+?"/g, '');
}),
).toContain(
'<span>item5 updated</span></span>'
+ '<span style="background-color: rgb(230, 255, 230);"><span> newly</span></span>',
);
expect(authoring.getArticleHeadlineOfBoard(1)).toEqual('item5 updated');
});
Expand Down Expand Up @@ -670,22 +598,6 @@ describe('authoring', () => {
expect(authoring.send_kill_button.isDisplayed()).toBeTruthy();
});

it('after undo/redo save last version', () => {
monitoring.actionOnItem('Edit', 2, 0);
authoring.cleanBodyHtmlElement();
browser.sleep(2000);
authoring.writeText('one\ntwo\nthree');
browser.sleep(2000); // wait for autosave
authoring.backspaceBodyHtml(5);
browser.sleep(2000);
ctrlKey('z');
browser.sleep(1000);
authoring.save();
authoring.close();
monitoring.actionOnItem('Edit', 2, 0);
expect(authoring.getBodyText()).toBe('one\ntwo\nthree');
});

it('can minimize story while a correction and kill is being written', () => {
workspace.selectDesk('Politic Desk');
expect(monitoring.getTextItem(3, 2)).toBe('item6');
Expand Down Expand Up @@ -755,7 +667,12 @@ describe('authoring', () => {
workspace.selectDesk('XEditor3 Desk'); // has media gallery in content profile

el(['content-create']).click();
el(['content-create-dropdown']).element(by.buttonText('editor3 template')).click();

const templateBtn = el(['content-create-dropdown']).element(by.buttonText('editor3 template'));

browser.wait(ECE.elementToBeClickable(templateBtn));

templateBtn.click();

browser.wait(ECE.visibilityOf(el(['authoring-field--media-gallery', 'media-gallery--upload-placeholder'])));
expect(ECE.hasElementCount(els(['authoring-field--media-gallery', 'media-gallery-image']), 0)()).toBe(true);
Expand Down
Loading
Loading