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

feat(core): global copy paste #6856

Merged
merged 96 commits into from
Jul 11, 2024
Merged

feat(core): global copy paste #6856

merged 96 commits into from
Jul 11, 2024

Commits on Jul 11, 2024

  1. feat(form): copy paste of document and fields prototype

    edx-1263
    
    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    ce6c5c3 View commit details
    Browse the repository at this point in the history
  2. feat(core): add global copy paste provider

    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    b72a750 View commit details
    Browse the repository at this point in the history
  3. refactor(dev): use new copy paste api in actions

    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    da90918 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    735a814 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4877f76 View commit details
    Browse the repository at this point in the history
  6. refactor: prepare for using clipboard insted of LS

    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    407568f View commit details
    Browse the repository at this point in the history
  7. refactor(core): use clipboard when handling onCopy/onPaste

    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    5b053dc View commit details
    Browse the repository at this point in the history
  8. feat(core): add resolveSchemaTypeForPath utility

    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    a37468f View commit details
    Browse the repository at this point in the history
  9. fix(core): pass onChange as props instead of importing from structure

    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    3120849 View commit details
    Browse the repository at this point in the history
  10. test(core): add missing _type to test

    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    b0df84d View commit details
    Browse the repository at this point in the history
  11. feat(core): add support for copy/paste via ctrl-c/v

    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    bd646f6 View commit details
    Browse the repository at this point in the history
  12. refactor(test-studio): use new copy paste signature in doc actions

    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    09f0dc2 View commit details
    Browse the repository at this point in the history
  13. feat(structure): add copy/paste actions into structure

    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    5fd4174 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    162a349 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    e68ac55 View commit details
    Browse the repository at this point in the history
  16. fix(core): change copy on copy/paste messaging

    This will use the correct field name in the copy confirmation message
    skogsmaskin authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    29e5c9c View commit details
    Browse the repository at this point in the history
  17. fix(core): set new keys on object for copy/paste

    Create new _key (if exists) for transferred object value
    skogsmaskin authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    2cf7333 View commit details
    Browse the repository at this point in the history
  18. feat(core): add focus handling to reference previews

    fixes edx-1450
    
    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    5d69c2f View commit details
    Browse the repository at this point in the history
  19. feat(core): allow focus on objects

    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    1fe4b02 View commit details
    Browse the repository at this point in the history
  20. fix(core): skip handling copy event on selections

    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    d09bd77 View commit details
    Browse the repository at this point in the history
  21. feat(core): highlight border on focused objects

    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    a6e909a View commit details
    Browse the repository at this point in the history
  22. fix(form): remove focus terminator from cdr focuspath

    fixes edx-1510
    
    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    ed48e33 View commit details
    Browse the repository at this point in the history
  23. feat(core): move copy paste field actions to core

    fixes edx-1512
    fixes edx-1513
    
    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    c451dc6 View commit details
    Browse the repository at this point in the history
  24. fix(core): fix imports in actions

    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    b90cdb6 View commit details
    Browse the repository at this point in the history
  25. feat(core): add telemetry to copy paste hook

    fixes EDX-1508
    
    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    eff2398 View commit details
    Browse the repository at this point in the history
  26. fix(core): limit object focus to children incld in array modals

    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    5f22ddc View commit details
    Browse the repository at this point in the history
  27. test(form): add tests for copy pasting fields

    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    d90c526 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    9d5b214 View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    93f68b8 View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    22cd8cd View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    e5036a5 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    9ed3247 View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    48c5f39 View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    803d76f View commit details
    Browse the repository at this point in the history
  35. fix(core): add check for non-browser env in helper

    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    469f561 View commit details
    Browse the repository at this point in the history
  36. test(form): add e2e tests for copy paste

    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    8e2c189 View commit details
    Browse the repository at this point in the history
  37. feat(form): add test ids to field actions

    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    3c843ae View commit details
    Browse the repository at this point in the history
  38. fix(form): remove blur handling from object

    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    c31be24 View commit details
    Browse the repository at this point in the history
  39. fix(form): trigger keypress on object wrapper

    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    19fe3ae View commit details
    Browse the repository at this point in the history
  40. test(form): attempt to stabilise e2e tests for copy paste

    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    4ebdc71 View commit details
    Browse the repository at this point in the history
  41. chore: upgrade playwright deps

    Signed-off-by: Fred Carlsen <[email protected]>
    
    Signed-off-by: Fred Carlsen <[email protected]>
    
    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    4a88043 View commit details
    Browse the repository at this point in the history
  42. test(form): add component tests for copy paste

    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    5dcbef3 View commit details
    Browse the repository at this point in the history
  43. fix(test): make sure fixure awaits setup

    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    756aceb View commit details
    Browse the repository at this point in the history
  44. fix(test): allow. copy pasting permissions in playwright-ct config

    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    33679b9 View commit details
    Browse the repository at this point in the history
  45. test(form): stabilise copy paste e2e tests

    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    b7b2bc8 View commit details
    Browse the repository at this point in the history
  46. fix(test): fix clipboard.writeText mock

    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    47dc2db View commit details
    Browse the repository at this point in the history
  47. refactor(test): remove e2e copypaste test in favour of component test

    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    2371805 View commit details
    Browse the repository at this point in the history
  48. fix(test): fix assertion texts

    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    b6020f5 View commit details
    Browse the repository at this point in the history
  49. refactor(form): align updated toast msg with the copy toast

    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    f8a0f16 View commit details
    Browse the repository at this point in the history
  50. fix(test): await filling out string inputs

    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    ce0c8c3 View commit details
    Browse the repository at this point in the history
  51. chore(test): enable trace/video on retries in CI

    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    0a4f0b7 View commit details
    Browse the repository at this point in the history
  52. feat(playwright-ct): add debug fixture

    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    f04e529 View commit details
    Browse the repository at this point in the history
  53. fix(test): more work to stabilise object tests

    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    3605c8d View commit details
    Browse the repository at this point in the history
  54. fix(form): filter out epmty ref objects

    fixes edx-1532
    
    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    ba42054 View commit details
    Browse the repository at this point in the history
  55. fix(form): ignore copy event on text selection

    fixes edx-1534
    
    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    a7cdbd8 View commit details
    Browse the repository at this point in the history
  56. refactor(form): move copy/paste into document field action

    fixes edx-1451
    
    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    b2a1237 View commit details
    Browse the repository at this point in the history
  57. fix(form): prevent pasting image/file into the opposite type

    fixes edx-1531
    
    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    c2f4f14 View commit details
    Browse the repository at this point in the history
  58. fix(form): validate option.accept on paste

    fixes edx-1518
    
    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    75022e3 View commit details
    Browse the repository at this point in the history
  59. fix(form): fix styled import

    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    f70ff1e View commit details
    Browse the repository at this point in the history
  60. fix(core): added suite of tests + fixes for coercions

    fixes edx-1517
    fixes edx-1525
    
    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    a2decdb View commit details
    Browse the repository at this point in the history
  61. feat(core): translate copy-paste

    hermanwikner authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    d3d44e1 View commit details
    Browse the repository at this point in the history
  62. Configuration menu
    Copy the full SHA
    f4efe6a View commit details
    Browse the repository at this point in the history
  63. Configuration menu
    Copy the full SHA
    4b13ca8 View commit details
    Browse the repository at this point in the history
  64. Configuration menu
    Copy the full SHA
    f3f1da5 View commit details
    Browse the repository at this point in the history
  65. fix(form): transform error path to string with path utils

    fixes edx-1543
    
    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    fd69a81 View commit details
    Browse the repository at this point in the history
  66. fix(form): handle deeply nested paths in arrays

    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    fb8e83a View commit details
    Browse the repository at this point in the history
  67. test(form): add failing test for deeply nested arrays

    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    8d7afbf View commit details
    Browse the repository at this point in the history
  68. refactor(core): split out test schema

    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    9a6d6c6 View commit details
    Browse the repository at this point in the history
  69. test(core): add test for copying documents with booleans

    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    4dfc12e View commit details
    Browse the repository at this point in the history
  70. refactor(form): only copy and paste defined focus path

    fixes edx-1548
    
    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    eefe504 View commit details
    Browse the repository at this point in the history
  71. chore(form): rename valueTransfer -> transferValue

    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    1f9aefa View commit details
    Browse the repository at this point in the history
  72. fix(core): pass client options to remove notice

    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    b6900ed View commit details
    Browse the repository at this point in the history
  73. Configuration menu
    Copy the full SHA
    d2d202b View commit details
    Browse the repository at this point in the history
  74. test(core): update tests for copy/paste

    Client must be mocked for ref. type checks
    skogsmaskin authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    cd7e385 View commit details
    Browse the repository at this point in the history
  75. test(core): validate schema before test runs

    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    8534c24 View commit details
    Browse the repository at this point in the history
  76. fix(core): skip pasting on empty focus path

    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    a9b06c4 View commit details
    Browse the repository at this point in the history
  77. refactor(core): only check read-only on root level schema

    also allow empty
    
    fixes edx-1556
    fixes edx-1555
    
    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    b8a3afb View commit details
    Browse the repository at this point in the history
  78. fix(core): fix type validation for primitive array target

    fixes edx-1554
    
    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    4618797 View commit details
    Browse the repository at this point in the history
  79. fix(form): fix asset schema compatibility check on root

    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    33652e2 View commit details
    Browse the repository at this point in the history
  80. fix(core): fix potential race condition when setting document meta

    touches edx-1553
    
    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    ff503b6 View commit details
    Browse the repository at this point in the history
  81. fix(core): make a reference weak if _strengthenOnPublish is set

    fixes edx-1558
    
    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    de0d441 View commit details
    Browse the repository at this point in the history
  82. fix(core): retain relationship between marks and markDefs

    fixes edx-1555
    
    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    2d5da09 View commit details
    Browse the repository at this point in the history
  83. feat(core): validate pasted reference against filter

    fixes edx-1560
    
    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    dafbba3 View commit details
    Browse the repository at this point in the history
  84. refactor(core): clean up document pane event handler

    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    13f4713 View commit details
    Browse the repository at this point in the history
  85. refactor(form): add subtle transition on object focus

    Signed-off-by: Fred Carlsen <[email protected]>
    sjelfull authored and ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    ae8cdca View commit details
    Browse the repository at this point in the history
  86. Configuration menu
    Copy the full SHA
    e2fdcd1 View commit details
    Browse the repository at this point in the history
  87. Configuration menu
    Copy the full SHA
    8a08c4d View commit details
    Browse the repository at this point in the history
  88. Configuration menu
    Copy the full SHA
    d9ebef5 View commit details
    Browse the repository at this point in the history
  89. Configuration menu
    Copy the full SHA
    1f007ff View commit details
    Browse the repository at this point in the history
  90. Configuration menu
    Copy the full SHA
    db38dfc View commit details
    Browse the repository at this point in the history
  91. fix(core): update tests

    ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    ae560ad View commit details
    Browse the repository at this point in the history
  92. fix: add missing return

    ricokahler committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    e656e19 View commit details
    Browse the repository at this point in the history
  93. Configuration menu
    Copy the full SHA
    083ee25 View commit details
    Browse the repository at this point in the history
  94. Configuration menu
    Copy the full SHA
    ebbbe69 View commit details
    Browse the repository at this point in the history
  95. Configuration menu
    Copy the full SHA
    f3f37bb View commit details
    Browse the repository at this point in the history
  96. Configuration menu
    Copy the full SHA
    768a5bd View commit details
    Browse the repository at this point in the history