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

Add basic jspreadsheet POC [SCI-11099] #7944

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

aignatov-bio
Copy link
Contributor

@aignatov-bio aignatov-bio commented Oct 8, 2024

Jira ticket: SCI-11099

What was done

This pull request introduces several changes to integrate the jspreadsheet library for spreadsheet functionalities and the material-icons-font for icon management in the project. The most important changes include adding new dependencies, updating stylesheets, and modifying Vue components to incorporate the new spreadsheet functionality.

Integration of jspreadsheet:

Integration of material-icons-font:

@aignatov-bio aignatov-bio added do-not-merge ⚠️ do-not-review ⚠️ E.g. waiting for dependent PR to be merged first labels Oct 8, 2024
@@ -12,6 +12,8 @@ import 'bootstrap';
require('bootstrap-select/js/bootstrap-select');
import '@vuepic/vue-datepicker/dist/main.css';
import 'vue3-draggable-resizable/dist/Vue3DraggableResizable.css'
import "jsuites/dist/jsuites.css";
import "jspreadsheet/dist/jspreadsheet.css";
Copy link

Choose a reason for hiding this comment

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

Import in body of module; reorder to top import/first
Strings must use singlequote quotes

@@ -12,6 +12,8 @@ import 'bootstrap';
require('bootstrap-select/js/bootstrap-select');
import '@vuepic/vue-datepicker/dist/main.css';
import 'vue3-draggable-resizable/dist/Vue3DraggableResizable.css'
import "jsuites/dist/jsuites.css";
Copy link

Choose a reason for hiding this comment

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

Import in body of module; reorder to top import/first
Strings must use singlequote quotes

@import '~material-icons-font/sass/mixins'; // mandatory and after variables
$MaterialIcons_FontPath: "~material-icons-font/fonts"; // for CLI project we change font path to point into package fonts folder
@import '~material-icons-font/sass/main'; // mandatory main material font definition
@import '~material-icons-font/sass/Regular'; // mandatory @font-face definition
Copy link

Choose a reason for hiding this comment

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

Prefer double-quoted strings

@import '~material-icons-font/sass/variables'; // mandatory and at first place
@import '~material-icons-font/sass/mixins'; // mandatory and after variables
$MaterialIcons_FontPath: "~material-icons-font/fonts"; // for CLI project we change font path to point into package fonts folder
@import '~material-icons-font/sass/main'; // mandatory main material font definition
Copy link

Choose a reason for hiding this comment

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

Prefer double-quoted strings

/// Must be relplaced with our icons
@import '~material-icons-font/sass/variables'; // mandatory and at first place
@import '~material-icons-font/sass/mixins'; // mandatory and after variables
$MaterialIcons_FontPath: "~material-icons-font/fonts"; // for CLI project we change font path to point into package fonts folder
Copy link

Choose a reason for hiding this comment

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

Name of variable MaterialIcons_FontPath should be written in all lowercase letters with hyphens instead of underscores



/// Must be relplaced with our icons
@import '~material-icons-font/sass/variables'; // mandatory and at first place
Copy link

Choose a reason for hiding this comment

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

Prefer double-quoted strings

@@ -278,6 +310,7 @@ export default {
});
},
loadTableData() {
return
Copy link

Choose a reason for hiding this comment

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

Missing semicolon semi

@@ -265,7 +296,8 @@ export default {
});
}

this.$emit('update', this.element, false, callback);

Copy link

Choose a reason for hiding this comment

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

More than 1 blank line not allowed no-multiple-empty-lines

@@ -152,7 +175,7 @@ export default {
if (!this.updatingTableData) this.loadTableData();
},
beforeUpdate() {
if (!this.updatingTableData) this.tableObject.destroy();
//if (!this.updatingTableData) this.tableObject.destroy();
Copy link

Choose a reason for hiding this comment

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

Expected space or tab after '//' in comment spaced-comment

@@ -63,11 +76,18 @@ import InlineEdit from '../inline_edit.vue';
import TableNameModal from './modal/table_name.vue';
import moveElementModal from './modal/move.vue';
import MenuDropdown from '../menu_dropdown.vue';
import { Spreadsheet, Worksheet } from "@jspreadsheet/vue";
Copy link

Choose a reason for hiding this comment

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

Strings must use singlequote quotes

@aignatov-bio aignatov-bio force-pushed the ai-sci-11099-jspreadsheet-poc branch from f2c0c8b to 7e30318 Compare October 10, 2024 08:56
editingName: false,
editingTable: false,
editingCell: false,
tableObject: null,
nameModalOpen: false,
reloadHeader: 0,
updatingTableData: false
updatingTableData: false,
Copy link

Choose a reason for hiding this comment

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

Unexpected trailing comma comma-dangle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge ⚠️ do-not-review ⚠️ E.g. waiting for dependent PR to be merged first
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant