Skip to content

Remove relate by UI dependency#1689

Merged
eijawerner merged 10 commits into
neo4j:masterfrom
eijawerner:remove-relate-by-ui-dependency
Feb 28, 2022
Merged

Remove relate by UI dependency#1689
eijawerner merged 10 commits into
neo4j:masterfrom
eijawerner:remove-relate-by-ui-dependency

Conversation

@eijawerner
Copy link
Copy Markdown
Contributor

@eijawerner eijawerner commented Feb 22, 2022

Removed the dependency to relate-by-ui.

  1. Copied the code for the relatable for now.
  2. Removed most of the dependencies to semantic-ui as well (icons switched to font awesome counterparts), but all the dependencies will be cleanup in other PRs when restyling the UI overall.
  3. Removed the dependency "@trivago/prettier-plugin-sort-imports" since it reorders also imports with side effects, like the order of the import of the style files. When this is released (with an option to not reorder imports with side effects) Do not reorder side effect nodes #110 trivago/prettier-plugin-sort-imports#111 we can add the plugin again.
  4. Reordered the style imports back to as it was in release 4.3.2.

to check how the Browser looks like in this PR you can visit: http://browser-remove-deps.surge.sh

Known changes:

  • The arrows were removed in the links page, and approved by UX that it is ok.

Screenshot 2022-02-25 at 13 25 20

Screenshot 2022-02-25 at 13 25 11

  • some spacing (padding/margins) and sizes (icons) are slightly different but are also OK from UX since no major issues, we will go through the whole UI when restyling the UI overall.

@eijawerner eijawerner force-pushed the remove-relate-by-ui-dependency branch 2 times, most recently from d0c8352 to a1aa281 Compare February 23, 2022 14:11
removed dependency to semantic-ui button and fixed styling so looked the same as before.
Also, removed deps "@trivago/prettier-plugin-sort-imports" since it reorders also imports with side effects, like the order of the import of the style files. Reordered the style imports back to as it was in release 4.3.2.
When this is released (with an option to not reorder imports with side effects) trivago/prettier-plugin-sort-imports#111 we can add the plugin again.
@eijawerner eijawerner force-pushed the remove-relate-by-ui-dependency branch from 691ca70 to 6fef18a Compare February 25, 2022 14:03
@eijawerner eijawerner marked this pull request as ready for review February 25, 2022 14:03
Copy link
Copy Markdown
Contributor

@OskarDamkjaer OskarDamkjaer left a comment

Choose a reason for hiding this comment

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

Nice work! The getting rid of this dependency had a long time coming, good to get all the unused code into the open... Let's hope we can get rid of that as well soon!

I left a few comments for you to have a look at! 💯

Comment thread build_scripts/webpack-rules.js Outdated
Comment thread package.json
Comment thread src/browser/components/icons/IconContainer.tsx
Comment thread src/browser/init.ts
Comment thread src/browser/modules/Stream/CypherFrame/RelatableView/relatable/global.d.ts Outdated
Comment thread src/browser/modules/Stream/CypherFrame/RelatableView/relatable-view.tsx Outdated
Copy link
Copy Markdown
Contributor

@OskarDamkjaer OskarDamkjaer left a comment

Choose a reason for hiding this comment

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

Changes look good! Let's merge on green ✨

@eijawerner eijawerner merged commit 7d92412 into neo4j:master Feb 28, 2022
@eijawerner eijawerner deleted the remove-relate-by-ui-dependency branch February 28, 2022 15:43
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.

2 participants