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

Enhancements to sitetree js (LeftAndMain.Tree.js) #1606

Open
13 tasks
sabina-talipova opened this issue Oct 17, 2023 · 0 comments
Open
13 tasks

Enhancements to sitetree js (LeftAndMain.Tree.js) #1606

sabina-talipova opened this issue Oct 17, 2023 · 0 comments

Comments

@sabina-talipova
Copy link
Contributor

sabina-talipova commented Oct 17, 2023

Description

I'm not sure that we plan to update JS Legacy code, but just in case I'll add this list of improvements that were planned

  • updateNodesFromServer() - apply initially_opened config (See
    // TODO 'initially_opened' config doesn't apply here
    )
  • onaftersubmitform() - Trigger by implementing and inspecting "changed records" metadata sent by form submission response (as HTTP response headers) (See
    // TODO Trigger by implementing and inspecting "changed records" metadata
    )
  • Icon and page type hover support
  • Sorting of sub nodes (originally placed in context menu)
  • Automatic load of full subtree via ajax on node checkbox selection (minNodeCount = 0) to avoid doing partial selection with "hidden nodes" (unloaded markup)
  • Disallow drag'n'drop when node has "noChildren" set (see siteTreeHints)
  • Disallow moving of pages marked as deleted most likely by server response codes rather than clientside
  • "defaultChild" when creating a page (sitetreeHints)
  • Duplicate page (originally located in context menu)
  • Update tree node title information and modified state after reordering (response is a JSON array)

Tasks most likely not required after moving to a standalone tree:

  • Context menu - to be replaced by a bezel UI
  • Refresh form for selected tree node if affected by reordering (new parent relationship)
  • Cancel current form load via ajax when new load is requested (synchronous loading)

See

/**
* @todo Icon and page type hover support
* @todo Sorting of sub nodes (originally placed in context menu)
* @todo Automatic load of full subtree via ajax on node checkbox selection (minNodeCount = 0)
* to avoid doing partial selection with "hidden nodes" (unloaded markup)
* @todo Disallow drag'n'drop when node has "noChildren" set (see siteTreeHints)
* @todo Disallow moving of pages marked as deleted
* most likely by server response codes rather than clientside
* @todo "defaultChild" when creating a page (sitetreeHints)
* @todo Duplicate page (originally located in context menu)
* @todo Update tree node title information and modified state after reordering (response is a JSON array)
*
* Tasks most likely not required after moving to a standalone tree:
*
* @todo Context menu - to be replaced by a bezel UI
* @todo Refresh form for selected tree node if affected by reordering (new parent relationship)
* @todo Cancel current form load via ajax when new load is requested (synchronous loading)
*/

@GuySartorelli GuySartorelli changed the title TODO: LeftAndMain.Tree.js enhancement LeftAndMain.Tree.js enhancements Oct 25, 2023
@GuySartorelli GuySartorelli changed the title LeftAndMain.Tree.js enhancements Enhancements to sitetree js (LeftAndMain.Tree.js) Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant