Commit a702dad5 authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

[toestand] some reloadForest/Root refactorign

parent ebb67a01
dev 145-dev-editor-codetype-change-from-md-to-json 149-dev-ngrams-table-sorting-fix 155-dev-export-list-as-csv 164-dev-node-write-analysis 169-dev-uniqid-removal 174-dev-add-document-rc0.x 174-dev-add-document-rc1.x 174-dev-add-document-rc2.x 174-dev-add-document-rc3.x 174-dev-add-document-rc4.x 184-dev-nlp-languages 201-dev-user-api-key-for-pubmed 203-dev-corpus-json-upload 204-ngrams-refactor-fixes 206-dev-phylo-fixes 208-dev-phylo-search-improvements 21-dev-automated-tests 213-dev-node-user 213-dev-node-user-temp 217-dev-ngrams-sync-fix 219-memiescape-rc0.x 219-memiescape-rc1.x 224-dev-uniform-ngrams-creation 234-dev-ngrams-score 240-dev-graph-node-name-not-clickable-when-empty 242-dev-phylo-search-documents 243-dev-graph-explorer-link-filtering 262-dev-phylo-doc-search-ux-improvements 272-dev-docs-table-score 274-dev-login-page-advanced 278-dev-folder-view-home 279-dev-folder-view-action-capability 280-dev-back-from-other-views 286-dev-css-fix-for-graph-height 287-dev-doc-annotation-menu 288-dev-folders-for-all-sessions 289-dev-graph-view-refresh 290-dev-design-ergo-tree-closed-node 290-dev-folder-icons-fix 291-dev-dashboard-parent-id-fix 294-dev-test 296-dev-tree-refresh-from-folders 298-dev-show-tree-in-all-views 300-dev-purescript-simple-json 301-dev-visio-integration 302-dev-access-box-node-tree-rc1.x 303-dev-chart-doc-interaction-rc1.x 303-dev-chart-doc-interaction-rc2.x 304-dev-force-atlas-flickering-fix 305-dev-sidebar-fixes 305-optim-docs-view-doc 307-dev-improve-darkster 308-dev-node-visibility-rc3.x 308-dev-order2 308-dev-subtree-folded-rc0.1 308-dev-subtree-folded-rc0.x 308-dev-subtree-folded-rc1.x 308-dev-subtree-folded-rc2.x 309-dev-chromium-condition-rc1.x 309-dev-node-icon-rc1.x 309-dev-node-icon-rc2.x 309-dev-node-icon-rc3.x 309-dev-node-icon-rc4.x 309-dev-node-icon-rc5.x 309-tree-node-add-new-node-better-suggestion 310-dev-frontend-lang 311-tree-node-list-upload-file-as-json 312-dev-export-as-zip-file 312-dev-merge-docs-blank-page 312-dev-merge-docs-blank-page-rc2.x 313-dev-popup-scroll-rc1.x 313-dev-ui-enhancement-rc1.1 313-dev-ui-enhancement-rc1.2 313-dev-ui-enhancement-rc1.3 313-dev-ui-enhancement-rc1.4 313-dev-ui-enhancement-rc1.x 314-dev-ui-enhancement-rc3.x 318-dev-corpus-fields-editeable 319-dev-input-focus-lost-on-search 322-dev-list-ids-selection 323-dev-fix-node-update-serialization 323-dev-user-email-validation 324-dev-popup-close-ui-rc0.x 326-dev-invitation-error 327-dev-async-task-fix 328-dev-document-view-filter-fix-for-cache-on-off 330-dev-minify 331-dev-corpora-from-write-nodes 332-dev-bootstrap-downgrade-rc0.x 333-dev-graph-darkster-theme-rc0.x 333-dev-graph-darkster-theme-rc1.x 333-dev-graph-darkster-theme-rc2.x 334-dev-side-document-view-rc0.x 334-dev-side-document-view-rc1.x 338-dev-csv-maplist-from-gargv3 339-dev-corpus-download 339-dev-docs-download 340-dev-ngrams-tab-rc0.x 340-dev-ngrams-tab-rc1.x 340-search-in-ngrams-table 341-dev-fix-build-instructions 342-dev-corpus-upload-loader-rc0.x 343-dev-gargantext-navigation 344-dev-fix-ngrams-search-for-multi-terms 347-dev-search-enter-fix 349-dev-tag-cloud-in-graph-explorer 350-dev-graph-search-in-forms-not-labels 351-dev-remove-reset-force-atlas-button 352-dev-tag-cloud-duplicated-fix 354-dev-graph-screenshot-fix 358-dev-add-button-fix-when-table-not-empty 359-dev-input-with-autocomplete 360-dev-batch-tagging-fix 360-dev-css-cleaning-rc0.x 362-dev-visio-frame 364-dev-graph-search-rc0.x 365-dev-graphql-folders 366-dev-nodetype-creation 367-dev-cache-search-rc0.x 369-dev-forest-tooltip 371-dev-user-profile 375-dev-docs-focus-rc0.x 375-dev-docs-focus-rc1.x 375-dev-docs-focus-rc3.x 375-dev-docs-focus-rc6.x 375-dev-docs-focus-rc7.x 375-dev-phylo-docs-rc0.x 376-dev-annuaire-contacts-page 376-dev-annuaire-debug-rc0.x 376-dev-annuaire-debug-rc1.x 376-dev-annuaire-debug-rc2.x 376-dev-annuaire-fields-fix 377-dev-fonts-terms-rc0.x 378-dev-add-sync-ngram-rc0.x 379-dev-sidebar-ui-rc0.x 379-dev-sidebar-ui-rc1.x 379-dev-sidebar-ui-rc2.x 379-dev-sidebar-ui-rc3.x 379-dev-sidebar-ui-rc4.x 379-dev-sidebar-ui-rc5.x 381-dev-graph-legend-rc0.x 381-dev-graph-legend-rc1.x 382-dev-plane-navigation 383-dev-docs-chart-update 386-387-392-dev-ui-ux-rc0.x 386-387-dev-ui-ux-rc0.x 387-dev-notebook-ui-rc0.x 391-dev-table-state 393-dev-mouse-alignment-rc0.x 395-dev-ps-0.15-update 396-dev-list-persons-in-team 397-dev-lost-password 399-dev-multiple-trees-rc0.x 401-dev-css-frame-rc0.x 403-dev-config-cache-rc0.x 404-dev-popover-close-button-fix 405-dev-lost-password-design 406-dev-board-source-rc0.x 407-dev-doc-highlighting-rc0.x 408-dev-ngrams-phylo-rc0.x 408-dev-ngrams-phylo-rc1.x 409-dev-ngrams-table-edit-and-search 410-dev-document-null-id 412-dev-graph-explorer-self-referencing-node 414-dev-nested-ngrams-rc0.x 414-dev-nested-ngrams-rc1.x 415-dev-user-description-field 416-dev-ngrams-table-search 418-dev-louvain-clustering-on-filtered-graph 419-dev-ngrams-cache-on-rc0.x 419-dev-ngrams-cache-on-rc1.x 420-dev-document-css-rc0.x 422-dev-resize-handler-rc0.x 423-dev-no-term-mode-rc0.x 423-dev-no-term-mode-rc1.x 424-dev-selected-node-rc0.x 425-dev-terms-page-reset 427-dev-modal-improvement-rc0.x 427-dev-modal-improvement-rc1.x 427-dev-modal-improvement-rc2.x 427-dev-modal-improvement-rc3.x 428-dev-profile-img-upload 429-dev-login-advanced 430-dev-doc-histogram 431-dev-lost-password-email 432-dev-modal-deactivation-rc0.x 432-dev-modal-deactivation-rc1.x 434-modal-with-chrome-browser 438-dev-team-node-creator 440-dev-maplist-modal-rc0.x 441-dev-ngrams-table-sorting-fix 445-dev-doc-upload-language 446-dev-cache-cta-rc0.x 447-448-dev-merge-rc0.x 447-448-dev-merge-rc1.x 447-dev-block-edition-rc0.x 447-dev-block-edition-rc1.x 449-dev-docs-histo-selected 450-dev-filter-histo-multiple-dates 451-dev-disable-controls-when-forceatlas-is-running 452-dev-teams-security 454-dev-fix-graphology-edge-ids 456-dev-doc-annotation-rc0.x 458-dev-dont-allow-spaces-in-doc-annotation-selection 459-dev-graph-fixes 460-dev-graph-toolbar-rc0.x 461-dev-popup-darkmode-rc0.x 463-dev-doc-edit 464-dev-disconnection-issue-rc0.x 464-dev-disconnection-issue-rc1.x 465-dev-graph-explorer-recursion-error 468-dev-ngrams-order-by 471-dev-graph-node-hidden-rc0.x 471-dev-graph-node-hidden-rc1.x 475-dev-node-team-invite 476-dev-rest-error-when-adding-ngrams 480-dev-corpus-upload-list-selection 481-dev-node-calc-upload 489-dev-graph-explorer-fixes 489-dev-grapshot-fixes 496-graph-explorer-regressions 497-dev-node-write-selection 498-dev-invite-many 500-dev-limit-on-text-length-too-small-fix 501-dev-label-shape-in-graph-explorer 506-dev-search-in-tree 509-improve-global-theme 509-improve-global-theme-2 510-dev-textflow-node-progress-bar 511-tree-on-the-right 513-dev-pin-tree 517-sendButton 518-dark-mode-labels-of-the-graph-should-be-white 520-design-logo-of-public-folder-is-not-shown 521-dev-webdriver-tests 529-graph-toolbar-add-tooltips-legends-on-buttons 530-tree-change-the-hide-tree-button-by-a-more-intuitive-toggle-button-display-the-btn-in-the-lateral-bar 536-dev-chart-component-fixes 540-search-show-api-tab 541-dev-doc-table-stars 544-dev-term-table-suggestion-fix-for-children 546-dev-ngrams-scroll-position 547-dev-ngrams-context-sidebar 548-dev-node-url-share 551-dev-annotation-fix 554-design-improve-the-position-of-the-icons 555-abstract-almost-disapear-in-graph-s-doc-view-when-there-is-too-much-authors 555-abstract-almost-disapear-in-graph-s-doc-view-when-there-is-too-much-authors-2 556-forest-tree-node-focus-find-a-way-to-focus-on-the-current-node-in-the-forest-layout-layout 560-dev-graph-add-count-of-docs 561-dev-add-document-wrong-date 562-doc-annotation-menu-selectoin 562-doc-annotation-the-selected-term-menu-selection-has-disappeared 563-dev-doc-ngrams-sync 563-dev-highlight-fixes 563-dev-highlight-fixes-tmp 565-dev-ngrams-table-click-on-child 566-node-terms-restore-a-good-display-the-main-table-cols-display-since-adding-the-show-column 567-graph-rearrange-the-graph-toolbar 568-node-content-breadcrumb-display-the-full-path-of-a-node-as-a-breadcrumb-with-each-clickable-parent 569-top-header-navbar-reorganize-to-navbar 569-top-header-navbar-reorganize-to-navbar-2 571-dev-node-search-api-fixes 571-dev-search-field-fixes 573-node-terms-popin-side-panel-styles-harmonization 576-phylo-refresh-in-phylo-params-add-a-class-active-on-buttons 577-node-docs-popin-dimensions-and-scroll-improvement 578-node-docs-on-the-refresh-dialog-set-both-as-default-and-on-documents-page-remove-2-unused-icons 579-dev-login-button-fix 580-dev-phylo-params 580-phylo-params-display-improvements 581-node-phylo-form-render-improvements 582-dev-phylo-default-behavior 587-node-options-flower-standardise-upload-and-download-buttons-order 593-dev-pubmed-api-key 594-dev-ngrams-click 594-dev-ngrams-patch-fixes 597-tobar-update-link-documentation 598-dev-fixes-to-karp-rabin-ngrams-highlight 598-dev-ngrams-patches-fixes 600-dev-share-error 600-dev-team-invite-fixes 601-slider-level-of-observation-in-phylomemies 602-corpus-from-pads-put-en-as-default-value-in-the-import-form-language-field 603-dev-istex-zip-file-upload 604-user-page-fix-the-error-message-when-the-page-loads 608-fix-breadcrumb-security-hide-items-links 609-breadcrumb-limit-the-elements-that-the-user-is-allowed-to-see-and-add-links 615-dev-highlight-fixes 616-breadcrumb-remove-unnecessary-informations 618-trim-deblank-missing-in-invitations-modal-box 619-documents-from-istex-import-authors-have-always-a-comma-prefix-even-if-there-is-only-one 622-dev-lang-fix 624-corpus-hal-remove-comment-the-hal-all-lang-choice 626-dev-external-assets 628-dev-lang-fix 629-in-document-view-show-institute-field-of-the-document 629-in-document-view-show-institute-field-of-the-document-squashed 634-node-documents-in-the-settings-popin-remove-the-upload-button 634-node-documents-in-the-settings-popin-remove-the-upload-button-2 638-tree-search-enrich-search-results-with-the-path-of-the-node 640-dev-close-modals-with-esc-keypress 641-dev-node-naming-fixes 642-dev-phylo-explorer-regression 643-export-the-phylo-in-json-and-dot-format 643-export-the-phylo-in-json-and-dot-format-2 644-tree-node-graph-update-remove-it-the-resync-picto-no-longer-launch-a-reload-it-should-open-the-dialog-box-on-the-graph-reload-form-confirmation 646-nodes-layout-minor-improvements-icons-in-tabs-titles 647-node-type-api-gql-accomodate-an-additional-field-in-the-node-see-https-gitlab-iscpif-fr-gargantext-haskell-gargantext-issues-336-to-be-able-to-display-the-ty-name-of-a-node 648-dev-graphql-breadcrumbs 655-dev-graph-explorer-search-spaces 668-phylo-on-the-exported-svg-file-fix-the-background-color-behind-the-label 669-tree-focus-temporary-hotfix-comment-the-forced-focus-forest-open-nodes-for-performances-reason 670-dev-first-tree-lighter-calls 673-dev-phylo-term-selection 674-dev-search-reload 676-csv-tsv-in-all-codebase 679-corpus-import-docs-from-selected-list-is-broken 683-dev-graph-explorer-legend 687-dev-document-star 689-dev-dynamic-legend 689-dev-graph-legend-improvements 689-dev-graph-legend-improvements-pt-2 691-node-terms-in-settings-on-the-download-tab-put-json-as-default-selectbox-choice-instead-of-the-current-json-zipped 694-dev-mobile-version 695-node-document-display-the-db-source-of-a-document-with-authors-etc 696-add-separators-between-keywords-in-phylo 698-dev-ws-host-fix 699-node-graph-display-the-graph-toolbar-by-default-il-would-make-it-possible-to-control-more-quickly-play-pause 701-dev-fix-nix-build 704-dev-fix-ws-update-for-a-pinned-tree 705-dev-upgrade-sigma-js 706-dev-display-node-count-in-toolbar 706-dev-graph-params-display 708-dev-sigma-settings 709-node-corpus-import-file-dialog-improvements 710-topbar-update-the-navigation-bar-links-in-the-info-dropdown 717-dev-locate-in-tree 717-locate-in-tree 718-dev-subcorpus-frontend 719-dev-share-url-copy 77-dev-search-result-type-fix 80-dev-frontend-errors 90-dev-generic-zip-file 90-dev-wos-zip-parser adinapoli/garg-375 adinapoli/issue-364 adinapoli/predictable-purescript-rev-path adinapoli/rename-unpublish arturo-dev-230109-code-section-block-rc0.x arturo-dev-230109-sidebar-closing-rc0.x arturo-dev-230109-tree-select-indicator-rc0.x arturo-dev-node-term-rerendering-rc0.x arturo-dev-node-term-rerendering-rc1.x arturo-dev-node-terms-ux-rc0.x arturo-dev-node-terms-ux-rc1.x arturo-dev-react-tooltip-warning-rc0.x arturo/220414-CSS-move-nodes-rc0.x async-workers auto-reload block-based-editor cm-detect-file-type dev-269-DoorWelcome dev-301-visio-fix-suggestion dev-303-refactoring dev-503-progressBarWaitingText dev-508-clean-warnings-and-deprecated-code dev-509-improve-global-theme dev-511-tree-on-the-right dev-519-weird-behavior-of-waiting-bars dev-523-node-sharing-completions-css dev-552-home-instances-blocks-adding-logout-btn dev-593-pubmed-api-key dev-add-edge-weight-control dev-arxiv dev-bdd dev-bipartite dev-david dev-doc dev-epo-integration dev-epo-patents dev-fix-for-nolist-serialization dev-fix-progress-bar dev-fix-update-node-params-list-serialization dev-folders-parent dev-frame-calc-corpus-csv-upload dev-gql-user-token dev-graph-multipartite dev-graphql dev-graphql-deriving dev-hackathon-fixes dev-hal-notebook dev-ihaskell dev-indexation dev-istex dev-legacy-csv-list-upload dev-localhost-ssl dev-merge dev-merge-bootstrap-downgrade dev-ngrams-table-search-page-flicker-fix dev-nix-bug dev-nix-upgrade dev-noHisto dev-node-calc-parser dev-openalex dev-padagraph-node dev-phylo dev-phylo-r5.x dev-phylo-rc1.x dev-phylo-rc2.x dev-phylo-rc3.x dev-phylo-rc4.x dev-ps-0.14.4 dev-purescript-0.14.3 dev-remove-all-lang dev-searx-parser dev-sidebar-visibility-rc1.x dev-sidebar-visibility-rc2.x dev-sidebar-visibility-rc3.x dev-sidebar-visibility-rc4.x dev-spago-next dev-spago-next-edge-weight dev-spago-next-with-flake dev-term-moving-fix dev-test dev-testing dev-upload-form-adjust-file-type-to-extension dev-upload-zip dev-websockets feature-flag-hook feature/toestand-global-state fix-361 fix-quote-with-space fix/386 flake-update haskell-190-dev-fixes-to-framecalc-post-request install-yarn-build junk/arturo/210726-react-memo master open-alex-filers purescript-format puresript-format-ci search-fixes stable testing testing-fix 0.0.7.4.2 0.0.7.4.1 0.0.7.4 0.0.7.3.8 0.0.7.3.7 0.0.7.3.6 0.0.7.3.5 0.0.7.3.4 0.0.7.3.3 0.0.7.3.2 0.0.7.3.1 0.0.7.3 0.0.7.2.8 0.0.7.2.7 0.0.7.2.6 0.0.7.2.5 0.0.7.2.4 0.0.7.2.3 0.0.7.2.2 0.0.7.2.1 0.0.7.2 0.0.7.1.16 0.0.7.1.15 0.0.7.1.14 0.0.7.1.13 0.0.7.1.12 0.0.7.1.11 0.0.7.1.10 0.0.7.1.9 0.0.7.1.8 0.0.7.1.7.4 0.0.7.1.7.3 0.0.7.1.7.2 0.0.7.1.7.1 0.0.7.1.7 0.0.7.1.6.5 0.0.7.1.6.4 0.0.7.1.6.3 0.0.7.1.6.2 0.0.7.1.6.1 0.0.7.1.6 0.0.7.1.5.5 0.0.7.1.5.4 0.0.7.1.5.3 0.0.7.1.5.2 0.0.7.1.5.1 0.0.7.1.5 0.0.7.1.4 0.0.7.1.3 0.0.7.1.2 0.0.7.1.1 0.0.7.1 0.0.7 0.0.6.9.9.9.9.1 0.0.6.9.9.9.9 0.0.6.9.9.9.8.1 0.0.6.9.9.9.8 0.0.6.9.9.9.7.3 0.0.6.9.9.9.7.2.1 0.0.6.9.9.9.7.2 0.0.6.9.9.9.7.1 0.0.6.9.9.9.7 0.0.6.9.9.9.6.7.1 0.0.6.9.9.9.6.7 0.0.6.9.9.9.6.6 0.0.6.9.9.9.6.5.1 0.0.6.9.9.9.6.5 0.0.6.9.9.9.6.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0.2.9
1 merge request!137Feature/toestand global state
...@@ -79,18 +79,20 @@ data Action = ...@@ -79,18 +79,20 @@ data Action =
action :: Record ReductorProps -> Action -> Effect (Record ReductorProps) action :: Record ReductorProps -> Action -> Effect (Record ReductorProps)
action p@{ reloadForest, storage } (Insert nodeId t) = do action p@{ reloadForest, storage } (Insert nodeId t) = do
_ <- T2.reload reloadForest -- _ <- T2.reload reloadForest
let newStorage = Map.alter (maybe (Just [t]) (\ts -> Just $ A.cons t ts)) nodeId storage let newStorage = Map.alter (maybe (Just [t]) (\ts -> Just $ A.cons t ts)) nodeId storage
pure $ p { storage = newStorage } pure $ p { storage = newStorage }
action p (Finish nodeId t) = do action p (Finish nodeId t) = do
action p (Remove nodeId t) action p (Remove nodeId t)
action p@{ reloadRoot, reloadForest, storage } (Remove nodeId t@(GT.AsyncTaskWithType { typ })) = do action p@{ reloadRoot, reloadForest, storage } (Remove nodeId t@(GT.AsyncTaskWithType { typ })) = do
_ <- if GT.asyncTaskTriggersAppReload typ then _ <- if GT.asyncTaskTriggersAppReload typ then
T2.reload reloadRoot pure unit
-- T2.reload reloadRoot
else else
pure unit pure unit
_ <- if GT.asyncTaskTriggersTreeReload typ then _ <- if GT.asyncTaskTriggersTreeReload typ then
T2.reload reloadForest pure unit
-- T2.reload reloadForest
else else
pure unit pure unit
let newStorage = Map.alter (maybe Nothing $ (\ts -> Just $ removeTaskFromList ts t)) nodeId storage let newStorage = Map.alter (maybe Nothing $ (\ts -> Just $ removeTaskFromList ts t)) nodeId storage
......
...@@ -76,7 +76,7 @@ forestCpt = here.component "forest" cpt where ...@@ -76,7 +76,7 @@ forestCpt = here.component "forest" cpt where
-- T.write_ (Just tasks') tasks -- T.write_ (Just tasks') tasks
handed' <- T.useLive T.unequal handed handed' <- T.useLive T.unequal handed
reloadForest' <- T.useLive T.unequal reloadForest reloadForest' <- T.useLive T.unequal reloadForest
reloadRoot' <- T.useLive T.unequal reloadRoot -- reloadRoot' <- T.useLive T.unequal reloadRoot
route' <- T.useLive T.unequal route route' <- T.useLive T.unequal route
forestOpen' <- T.useLive T.unequal forestOpen forestOpen' <- T.useLive T.unequal forestOpen
sessions' <- T.useLive T.unequal sessions sessions' <- T.useLive T.unequal sessions
...@@ -87,7 +87,7 @@ forestCpt = here.component "forest" cpt where ...@@ -87,7 +87,7 @@ forestCpt = here.component "forest" cpt where
-- R.setRef tasks $ Just tasks' -- R.setRef tasks $ Just tasks'
R2.useCache R2.useCache
( frontends /\ route' /\ sessions' /\ handed' /\ forestOpen' ( frontends /\ route' /\ sessions' /\ handed' /\ forestOpen'
/\ reloadForest' /\ reloadRoot' /\ (fst tasks).storage ) /\ reloadForest' /\ (fst tasks).storage )
(cp handed' sessions') (cp handed' sessions')
where where
common = RX.pick props :: Record Common common = RX.pick props :: Record Common
......
...@@ -77,9 +77,9 @@ treeLoaderCpt = here.component "treeLoader" cpt where ...@@ -77,9 +77,9 @@ treeLoaderCpt = here.component "treeLoader" cpt where
-- treeLoaderCpt = R.memo (here.component "treeLoader" cpt) memoCmp where -- treeLoaderCpt = R.memo (here.component "treeLoader" cpt) memoCmp where
-- memoCmp ({ root: t1 }) ({ root: t2 }) = t1 == t2 -- memoCmp ({ root: t1 }) ({ root: t2 }) = t1 == t2
cpt p@{ root, session } _ = do cpt p@{ root, session } _ = do
app <- T.useLive T.unequal p.reloadRoot -- app <- T.useLive T.unequal p.reloadRoot
let fetch { root: r } = getNodeTree session r let fetch { root: r } = getNodeTree session r
useLoader { app, root } fetch loaded where useLoader { root } fetch loaded where
loaded tree' = tree props where loaded tree' = tree props where
props = Record.merge common extra where props = Record.merge common extra where
common = RecordE.pick p :: Record Common common = RecordE.pick p :: Record Common
......
...@@ -147,7 +147,7 @@ nodeMainSpanCpt = here.component "nodeMainSpan" cpt ...@@ -147,7 +147,7 @@ nodeMainSpanCpt = here.component "nodeMainSpan" cpt
-- case mT of -- case mT of
-- Just t' -> snd t' $ GAT.Finish id' t -- Just t' -> snd t' $ GAT.Finish id' t
-- Nothing -> pure unit -- Nothing -> pure unit
T2.reload reloadRoot -- T2.reload reloadRoot
SettingsBox {show: showBox} = settingsBox nodeType SettingsBox {show: showBox} = settingsBox nodeType
onPopoverClose popoverRef _ = Popover.setOpen popoverRef false onPopoverClose popoverRef _ = Popover.setOpen popoverRef false
......
...@@ -361,7 +361,7 @@ loadedNgramsTableCpt = here.component "loadedNgramsTable" cpt where ...@@ -361,7 +361,7 @@ loadedNgramsTableCpt = here.component "loadedNgramsTable" cpt where
totalRecords = fromMaybe (Seq.length rows) mTotalRows totalRecords = fromMaybe (Seq.length rows) mTotalRows
afterSync' _ = do afterSync' _ = do
chartsAfterSync path' tasks reloadForest unit chartsAfterSync path' tasks unit
afterSync unit afterSync unit
syncResetButton = syncResetButtons { afterSync: afterSync' syncResetButton = syncResetButtons { afterSync: afterSync'
......
...@@ -1141,7 +1141,8 @@ syncResetButtonsCpt :: R.Component SyncResetButtonsProps ...@@ -1141,7 +1141,8 @@ syncResetButtonsCpt :: R.Component SyncResetButtonsProps
syncResetButtonsCpt = here.component "syncResetButtons" cpt syncResetButtonsCpt = here.component "syncResetButtons" cpt
where where
cpt { afterSync, ngramsLocalPatch, performAction } _ = do cpt { afterSync, ngramsLocalPatch, performAction } _ = do
synchronizing@(s /\ setSynchronizing) <- R.useState' false -- synchronizing <- T.useBox false
-- synchronizing' <- T.useLive T.unequal synchronizing
let let
hasChanges = ngramsLocalPatch /= mempty hasChanges = ngramsLocalPatch /= mempty
...@@ -1151,12 +1152,12 @@ syncResetButtonsCpt = here.component "syncResetButtons" cpt ...@@ -1151,12 +1152,12 @@ syncResetButtonsCpt = here.component "syncResetButtons" cpt
performAction ResetPatches performAction ResetPatches
synchronizeClick _ = delay unit $ \_ -> do synchronizeClick _ = delay unit $ \_ -> do
setSynchronizing $ const true -- T.write_ true synchronizing
performAction $ Synchronize { afterSync: newAfterSync } performAction $ Synchronize { afterSync: newAfterSync }
newAfterSync x = do newAfterSync x = do
afterSync x afterSync x
liftEffect $ setSynchronizing $ const false -- liftEffect $ T.write_ false synchronizing
pure $ H.div { className: "btn-toolbar" } pure $ H.div { className: "btn-toolbar" }
[ H.div { className: "btn-group mr-2" } [ H.div { className: "btn-group mr-2" }
...@@ -1166,8 +1167,8 @@ syncResetButtonsCpt = here.component "syncResetButtons" cpt ...@@ -1166,8 +1167,8 @@ syncResetButtonsCpt = here.component "syncResetButtons" cpt
] ]
, H.div { className: "btn-group mr-2" } , H.div { className: "btn-group mr-2" }
[ H.button { className: "btn btn-primary " <> hasChangesClass [ H.button { className: "btn btn-primary " <> hasChangesClass
, on: { click: synchronizeClick } , on: { click: synchronizeClick }
} [ H.text "Sync" ] } [ H.text "Sync" ]
] ]
] ]
...@@ -1185,15 +1186,13 @@ chartsAfterSync :: forall props discard. ...@@ -1185,15 +1186,13 @@ chartsAfterSync :: forall props discard.
| props | props
} }
-> GAT.Reductor -> GAT.Reductor
-> T.Box T2.Reload
-> discard -> discard
-> Aff Unit -> Aff Unit
chartsAfterSync path'@{ nodeId } tasks reloadForest _ = do chartsAfterSync path'@{ nodeId } tasks _ = do
task <- postNgramsChartsAsync path' task <- postNgramsChartsAsync path'
liftEffect $ do liftEffect $ do
log2 "[chartsAfterSync] Synchronize task" task log2 "[chartsAfterSync] Synchronize task" task
snd tasks $ GAT.Insert nodeId task snd tasks $ GAT.Insert nodeId task
T2.reload reloadForest
postNgramsChartsAsync :: forall s. CoreParams s -> Aff AsyncTaskWithType postNgramsChartsAsync :: forall s. CoreParams s -> Aff AsyncTaskWithType
postNgramsChartsAsync { listIds, nodeId, session, tabType } = do postNgramsChartsAsync { listIds, nodeId, session, tabType } = do
......
module Gargantext.Components.Nodes.Lists where module Gargantext.Components.Nodes.Lists where
import Gargantext.Prelude (Unit, bind, const, discard, pure, show, unit, ($), (<>)) import DOM.Simple.Console (log, log2)
import Data.Maybe (Maybe(..)) import Data.Maybe (Maybe(..))
import Data.Tuple (fst, snd) import Data.Tuple (fst, snd)
import Data.Tuple.Nested ((/\)) import Data.Tuple.Nested ((/\))
import Effect (Effect) import Effect (Effect)
import Effect.Aff (launchAff_) import Effect.Aff (launchAff_)
import Reactix as R
import Reactix.DOM.HTML as H
import Record as Record
import Record.Extra as REX
import Toestand as T
import Gargantext.AsyncTasks as GAT import Gargantext.AsyncTasks as GAT
import Gargantext.Components.Forest as Forest import Gargantext.Components.Forest as Forest
import Gargantext.Components.NgramsTable.Loader (clearCache) import Gargantext.Components.NgramsTable.Loader (clearCache)
import Gargantext.Components.Node (NodePoly(..)) import Gargantext.Components.Node (NodePoly(..))
import Gargantext.Components.Nodes.Corpus (loadCorpusWithChild) import Gargantext.Components.Nodes.Corpus (loadCorpusWithChild)
import Gargantext.Components.Nodes.Corpus.Types import Gargantext.Components.Nodes.Corpus.Types (getCorpusInfo, CorpusInfo(..), Hyperdata(..))
( getCorpusInfo, CorpusInfo(..), Hyperdata(..) )
import Gargantext.Components.Nodes.Lists.Tabs as Tabs import Gargantext.Components.Nodes.Lists.Tabs as Tabs
import Gargantext.Components.Nodes.Lists.Types import Gargantext.Components.Nodes.Lists.Types (CacheState(..), ListsLayoutControls, SidePanelState(..), initialControls, toggleSidePanelState)
( CacheState(..), ListsLayoutControls, SidePanelState(..)
, initialControls, toggleSidePanelState )
import Gargantext.Components.Table as Table import Gargantext.Components.Table as Table
import Gargantext.Hooks.Loader (useLoader) import Gargantext.Hooks.Loader (useLoader)
import Gargantext.Prelude (Unit, bind, const, discard, pure, show, unit, ($), (<>))
import Gargantext.Sessions (WithSession, WithSessionContext, Session, sessionId, getCacheState, setCacheState) import Gargantext.Sessions (WithSession, WithSessionContext, Session, sessionId, getCacheState, setCacheState)
import Gargantext.Types as GT import Gargantext.Types as GT
import Gargantext.Utils.Reactix as R2 import Gargantext.Utils.Reactix as R2
import Gargantext.Utils.Toestand as T2 import Gargantext.Utils.Toestand as T2
import Reactix as R
import Reactix.DOM.HTML as H
import Record as Record
import Record.Extra as REX
import Toestand as T
here :: R2.Here here :: R2.Here
here = R2.here "Gargantext.Components.Nodes.Lists" here = R2.here "Gargantext.Components.Nodes.Lists"
......
...@@ -79,7 +79,7 @@ ngramsViewCpt = here.component "ngramsView" cpt where ...@@ -79,7 +79,7 @@ ngramsViewCpt = here.component "ngramsView" cpt where
, sidePanelTriggers , sidePanelTriggers
, tasks } _ = do , tasks } _ = do
chartsReload <- T.useBox T2.newReload chartsReload <- T.useBox T2.newReload
chartsReload' <- T.useLive T.unequal chartsReload
path <- T.useBox $ NTC.initialPageParams props.session initialPath.corpusId [initialPath.listId] initialPath.tabType path <- T.useBox $ NTC.initialPageParams props.session initialPath.corpusId [initialPath.listId] initialPath.tabType
{ listIds, nodeId, params, tabType } <- T.useLive T.unequal path { listIds, nodeId, params, tabType } <- T.useLive T.unequal path
let path' = { let path' = {
......
...@@ -226,8 +226,8 @@ listsCpt = here.component "lists" cpt where ...@@ -226,8 +226,8 @@ listsCpt = here.component "lists" cpt where
, showLogin , showLogin
, tasks } , tasks }
, listsProps: { nodeId , listsProps: { nodeId
, reloadRoot
, reloadForest , reloadForest
, reloadRoot
, session , session
, sessionUpdate: \_ -> pure unit , sessionUpdate: \_ -> pure unit
, tasks } , tasks }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment