Skip to content

React upgrades#629

Closed
droberts-ctrlo wants to merge 13 commits into
ctrlo:dev-bootstrapfrom
droberts-ctrlo:react-upgrades
Closed

React upgrades#629
droberts-ctrlo wants to merge 13 commits into
ctrlo:dev-bootstrapfrom
droberts-ctrlo:react-upgrades

Conversation

@droberts-ctrlo

Copy link
Copy Markdown
Contributor

No description provided.

Also removed extra yarn commands that weren't needed, and automated download of browserslist updates on build.
…changed

Removed cjs from eslint - cjs are used for internal development files, and should never be included
… dev branch

Updated files where dev changes weren't included
Updated documentation

Fixed formatting and code where this was broken on merge with current dev branch

Added fix for error on documentComponent

Updated code files with changes as required where they were included in dev

Updated file where missing function wasn't included
Updated to use new switch component for fullscreen
Updated formatting as this didn't update on prev commit properly
Fixed cypress tests

@pwlodarski-ctrlo pwlodarski-ctrlo left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

PR reviewed - some comments added.

event.preventDefault();
const formEl = formRef.current.querySelector('form');
if (!formEl) {
console.error('No form element was found!');

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Is there a better way of logging errors? I'm open to being corrected.

@@ -1,4 +1,4 @@
import DataTable from 'datatables.net';
import DataTable from 'datatables.net-bs4';

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Assuming this will be updated when BS5 is ready?

let is_new_row;
if (!guid && !current_id) {
guid = crypto.randomUUID();
guid = crypto.randomUUID(); // I wonder if we should use UUID module? Crypto is (exceptionally rarely) not available

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Potentially add this comment to relevant ticket.

});

it('should set multiple key value pairs on the same instance', async () => {
it('should set multipe key value pairs on the same instance', async () => {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

*multiple

@droberts-ctrlo

Copy link
Copy Markdown
Contributor Author

This is all broken in the "very" sense of the word - dependencies for JS have split out over the files and different PR's (and I lost track), jest tests are failing (in part because of this), and, all in all, I think I'm going to start this whole PR again!

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