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

Plugin support for reworked RDFa parsing/serializing and UI/UX #357

Merged
merged 109 commits into from
Apr 30, 2024

Conversation

piemonkey
Copy link
Collaborator

Overview

A meta-PR to gather any work from the RDFa handling overhaul. So far only includes the change to copy the 'editable nodes' route from ember-rdfa-editor, to allow for testing any changes to plugins.

connected issues and PRs:

Setup

Adds a new route 'editable node sample', into the dummy app which should make RDFa visible and editable.

How to test/reproduce

Challenges/uncertainties

Checks PR readiness

  • UI: works on smaller screen sizes
  • UI: feedback for any loading/error states
  • Check if dummy app is correctly updated
  • Check cancel/go-back flows
  • changelog
  • npm lint
  • no new deprecations

@piemonkey piemonkey changed the title Copy editable-node sample from editor dummy app Plugin support for reworked RDFa parsing/serializing and UI/UX Nov 28, 2023
piemonkey and others added 27 commits December 14, 2023 15:53
* Set up dummy app to use article-structure-plugin

* Convert chapter article structures to be rdfa aware

* Modify article structure commands to insert rdfa aware structures

* Convert section and title article structures to be rdfa aware

* Convert remaining article structures to be rdfa aware

* Correctly set up backlinks when wrapping article structures

* Clean up some article-structure rdfa handling

* Handle article structure headers and titles as literals

* Correctly encode article structure numbers as external properties

* Correctly recreate article structure body backlinks on reload

* Set selection correctly after inserting article structures

* Fix RDFa aware version of article paragraph structure

* Fix standard-template-plugin's use of StructureSpec after RDFa changes

* Fix updating of section numbers in article structure plugin

* Fix resource structures when wrapping article structures

* Correct article structure wrapping command to change the number content
Backwards compatability of article structure nodes
* fix: make editable node plugin work

* fix: use subject in structure specs

and add some utils

* feat: make text variable work

* feat: make number variable work

* feat: make date variable work

* feat: make codelists work

* fix: dates not inserting correctly

* feat: make location var work

* make text-variable completely backwards compatible

* remove custom attributes from text-variable

* make number-variable backwards compatible

* drop obsolete content-selector for number node

* fix(number-variables): remove content rdfa-attribute if it is empty

* make date-variable backwards compatible

* drop obsolete content-selector for date node

* make location variable work in backwards-compatible way

* make codelists work in backwards-compatible way

* make getParsedRdfaAttribute only return attribute-properties

* convert address-variable to new system

* fix return type of number getter

* revert changes to location variable

---------

Co-authored-by: Elena Poelman <[email protected]>
GN-4650: Snippet selection placeholder in template
elpoelma and others added 10 commits March 8, 2024 13:36
…rting-variables

GN-4732: ensure variables are selected/focused after insertion
* wip: update editor

* update editor to latest dev commit

* update nodes to use rdfa-attr-spec function

* update dummy pages to use rdfa-aware nodes

* enable rdfa-awareness on regulatory statement doc node-spec

* lint: remove unused imports

* lint: prettier

* make links in dummy pages rdfa-aware

* feat(citation-plugin): update citation plugin to work with rdfa-aware link nodes

* fix invisible_rdfa typo

* enable rdfa-awareness on besluit-editable-nodes doc node-spec

* use full uris when inserting/removing decision type properties

* fix issue with toDOM of besluit_articel_structure node-spec

* chore: bump editor to latest release

* fix: revert dummy app route back to js

---------

Co-authored-by: abeforgit <[email protected]>
Allow to insert structure even if insertion range does not have RDFA attributes.
@piemonkey piemonkey force-pushed the feat/rdfa-editing-ui branch from 10a641c to a2a8308 Compare April 17, 2024 14:58
@piemonkey piemonkey force-pushed the feat/rdfa-editing-ui branch from a2a8308 to f473cdf Compare April 17, 2024 15:01
elpoelma and others added 13 commits April 23, 2024 09:25
…ecs (#410)

* drop unnecessary backwards-compatible parse-rule for decision node

* drop unnecessary backwards-compatible parse-rule for decision-title node

* drop unnecessary backwards-compatible parse-rule for description node

* drop unnecessary backwards-compatible parse-rule for motivering node

* drop unnecessary backwards-compatible parse-rule for article-container node

* drop unnecessary backwards-compatible parse-rule for decision-article node

* drop unnecessary backwards-compatible parse-rule for decision-article-content node

* linting

---------

Co-authored-by: Arne Bertrand <[email protected]>
* drop unnecessary backwards-compatible parse-rule for decision node

* drop unnecessary backwards-compatible parse-rule for decision-title node

* drop unnecessary backwards-compatible parse-rule for description node

* drop unnecessary backwards-compatible parse-rule for motivering node

* drop unnecessary backwards-compatible parse-rule for article-container node

* drop unnecessary backwards-compatible parse-rule for decision-article node

* drop unnecessary backwards-compatible parse-rule for decision-article-content node

* linting

* fix(decision-article): ensure that article number is positioned inline

* make setStartNumber and getStartNumber properties optional

* make numberConfig.convertNumber optional

* rework rdfa-aware besluit_article node

* adapt insert-structure command to support decision articles

* GN-4810: get the `roadsign-regulation` plugin working with the `rdfa-aware` decision nodes (#418)

---------

Co-authored-by: abeforgit <[email protected]>
* drop unnecessary backwards-compatible parse-rule for decision node

* drop unnecessary backwards-compatible parse-rule for decision-title node

* drop unnecessary backwards-compatible parse-rule for description node

* drop unnecessary backwards-compatible parse-rule for motivering node

* drop unnecessary backwards-compatible parse-rule for article-container node

* drop unnecessary backwards-compatible parse-rule for decision-article node

* drop unnecessary backwards-compatible parse-rule for decision-article-content node

* linting

* fix(decision-article): ensure that article number is positioned inline

* make setStartNumber and getStartNumber properties optional

* make numberConfig.convertNumber optional

* rework rdfa-aware besluit_article node

* ensure decision nodes behave the same as before in terms of UX (isolating/defining/selectable)

* adapt insert-structure command to support decision articles

---------

Co-authored-by: abeforgit <[email protected]>
Co-authored-by: Arne Bertrand <[email protected]>
@abeforgit abeforgit marked this pull request as ready for review April 29, 2024 18:51
@dkozickis dkozickis force-pushed the feat/rdfa-editing-ui branch from 4dfeb71 to 8cfa3eb Compare April 30, 2024 06:10
@dkozickis dkozickis merged commit 5d39eca into master Apr 30, 2024
0 of 3 checks passed
@dkozickis dkozickis deleted the feat/rdfa-editing-ui branch April 30, 2024 06:11
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