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

Multi select feature #493

Open
wants to merge 34 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
6b0d57c
Shift select and multiple node move at the same time
Jun 25, 2024
24aa433
Add settings button to open sidebar
Jun 26, 2024
04a05f8
Shift select children
Jun 27, 2024
dca9c68
Add delete multiple and cancel button
Jun 27, 2024
2aea358
Merge pull request #5 from anishapant21/feature/settings-delete-button
anishapant21 Jun 27, 2024
0af4635
Merge branch
Jun 27, 2024
27aef62
click on cross to unselect all nodes
Jun 27, 2024
9199554
Add Delete confirmation modal
Jun 27, 2024
b3c654f
Delete selected nodes
Jun 28, 2024
92f66f3
Add new component using plus button
Jun 28, 2024
d699bf0
Update node background color
Jul 1, 2024
6b89427
Merge pull request #7 from anishapant21/feature/UI-enhancements
anishapant21 Jul 1, 2024
28c6343
Rearrange imports in AnchorMenu
Jul 1, 2024
2f219e9
Merge pull request #6 from anishapant21/feature/add-new-component
anishapant21 Jul 1, 2024
fd5dfb6
Merge pull request #8 from anishapant21/feature/multi-select-widgets
anishapant21 Jul 1, 2024
373b6a6
Resolve the app crash when selected items are deleted
Jul 1, 2024
30d92c8
Fix path issue while nodes are collapsed
Jul 2, 2024
681e94e
Fix issue while nodes under different parents are moved
Jul 2, 2024
aa54145
Merge pull request #9 from anishapant21/fixes/remove-deleted-nodes-fr…
anishapant21 Jul 3, 2024
a6520e3
Parent-child select behavior
Jul 11, 2024
61325db
Update check and add parent node function
Jul 11, 2024
783b529
Update the index in move item action
Jul 12, 2024
b828a95
Update path for shift selected nodes
Jul 17, 2024
b003448
Refactor code
Jul 17, 2024
5bddd29
Add condition for multi nodes deletion
Jul 18, 2024
80a3dfc
Merge pull request #12 from anishapant21/fixes/delete-selected-nodes
anishapant21 Jul 18, 2024
156cbff
Merge pull request #11 from anishapant21/refactor-code
anishapant21 Jul 19, 2024
a999c0c
Merge pull request #10 from anishapant21/fixes/move-nodes
anishapant21 Jul 19, 2024
5a8f99f
Update package json
anishapant21 Jul 28, 2024
172a521
Update package-lock
anishapant21 Jul 28, 2024
48a3ea1
Code cleanup
anishapant21 Aug 6, 2024
c150ac3
Fix Prettier warnings
anishapant21 Aug 8, 2024
e92c678
Merge pull request #3 from anishapant21/feature/select-move-multiple-…
anishapant21 Aug 12, 2024
a5598e3
Remove vscode settings
anishapant21 Aug 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"typescript.tsdk": "node_modules\\typescript\\lib",
"eslint.enable": true,
"eslint.alwaysShowStatus": true,
"eslint.lintTask.enable": true,
"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact"],
"editor.formatOnSave": true,
"prettier.requireConfig": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
"typescript.tsdk": "node_modules\\typescript\\lib",
"eslint.enable": true,
"eslint.alwaysShowStatus": true,
"eslint.lintTask.enable": true,
"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact"],
"editor.formatOnSave": true,
"prettier.requireConfig": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
39,691 changes: 23,168 additions & 16,523 deletions package-lock.json

Large diffs are not rendered by default.

77 changes: 74 additions & 3 deletions src/components/AnchorMenu/AnchorMenu.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.questionnaire-overview {
text-align: center;
margin-top: 70px;
margin-top: 120px;
margin-left: auto;
margin-right: auto;
position: relative;
Expand Down Expand Up @@ -39,10 +39,18 @@
.anchor-menu__item--selected {
box-shadow: 0 0 0 4px var(--primary-2);
}

.anchor-menu__item:hover .item-button {
visibility: visible;
}

.selectedHighlight {
.rst__rowContents {
background-color: #e4f7f9 !important;

}
}

/* override styling */
.anchor-menu__item .rst__rowLabel {
flex: 1;
Expand All @@ -54,12 +62,14 @@
padding: 0.5rem;
cursor: pointer;
}

.anchor-menu__inneritem:hover {
background-color: #e4e4e4;
}

.anchor-menu__topitem .rst__rowContents {
/* override styling */
background-color: #e4f7f9;
/* background-color: #e4f7f9; */
}

.anchor-menu__title {
Expand All @@ -68,14 +78,17 @@
}

.anchor-menu__dragcomponent {
padding: 8px 16px;
padding: 13px 16px;
background: #e4f7f9;
margin: 5px;
margin-bottom: 13px;
text-align: left;
color: black;
border: 1px solid #cae7ed;
cursor: grab;
position: relative;
}

.anchor-menu__dragcomponent:active {
cursor: grabbing;
}
Expand All @@ -100,3 +113,61 @@
margin-right: 0.5rem;
background: url('../../images/icons/help-circle-outline.svg') no-repeat center;
}

.multi-select-widget {
margin-top: 60px;
}


.header-wrapper {
width: 66em;
margin-left: 14em;
margin-bottom: 2em;
margin-top: 5em;
display: flex;
justify-content: space-between;
align-items: center;
position: absolute;

.title {
margin-left: 10em;
display: flex;
padding: 0;
align-items: center;
background-color: transparent;
}

.items-selected {
font-weight: 600;
margin-left: 0.6em;
}

.delete-multiple {
width: 90px;
border: 1px solid rgb(239, 16, 16);
border-radius: 8px;
padding: 4px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
}

.bi-trash3 {
margin-right: 4px;

path {
color: rgb(239, 16, 16);
}
}

.cross-icon {
cursor: pointer;
}
}

.plus-icon {
position: absolute;
top: -0.6em;
left: 10.5em;
}
Loading