Class: AssignedStoryTreeProvider

AssignedStoryTreeProvider()

Tree data provider for displaying assigned Shortcut stories organized by workflow state. Implements the VS Code TreeDataProvider interface to create a hierarchical view of: Workspace -> Workflow -> State -> Stories

The tree shows stories assigned to the current user, grouped by their workflow state. Each level displays the number of stories contained within it in parentheses. Empty workspaces, workflows and states can be optionally hidden via configuration.

Constructor

new AssignedStoryTreeProvider()

Source:

Classes

AssignedStoryTreeProvider

Members

_onDidChangeTreeData

Event emitter for notifying VS Code when the tree data changes

Source:

(private) _onDidChangeTreeData :vscode.EventEmitter.<(TreeItem|undefined|null|void)>

Event emitter for notifying VS Code when the tree data changes

Type:
  • vscode.EventEmitter.<(TreeItem|undefined|null|void)>
Source:

config

Configuration settings for the tree view

Source:

(private) config :Config

Configuration settings for the tree view

Type:
Source:

onDidChangeTreeData

Event that VS Code listens to for tree data changes

Source:

onDidChangeTreeData :vscode.Event.<(TreeItem|undefined|null|void)>

Event that VS Code listens to for tree data changes

Type:
  • vscode.Event.<(TreeItem|undefined|null|void)>
Source:

workspaces

Array of workspaces containing workflows, states and stories

Source:

(private) workspaces :Array

Array of workspaces containing workflows, states and stories

Type:
  • Array
Source:

Methods

getChildren(elementopt) → {Thenable.<Array.<TreeItem>>}

Gets the children of a tree item. Handles the hierarchical structure of the tree:

  • Root level shows workspaces
  • Workspaces contain workflows
  • Workflows contain states
  • States contain stories

Each level can filter out empty items based on configuration. Story counts are calculated and displayed at each level.

Parameters:
Name Type Attributes Description
element TreeItem <optional>

The parent element to get children for

Source:
Returns:

Promise resolving to array of child tree items

Type
Thenable.<Array.<TreeItem>>

getChildren(elementopt) → {Thenable.<Array.<TreeItem>>}

Gets the children of a tree item. Handles the hierarchical structure of the tree:

  • Root level shows workspaces
  • Workspaces contain workflows
  • Workflows contain states
  • States contain stories

Each level can filter out empty items based on configuration. Story counts are calculated and displayed at each level.

Parameters:
Name Type Attributes Description
element TreeItem <optional>

The parent element to get children for

Source:
Returns:

Promise resolving to array of child tree items

Type
Thenable.<Array.<TreeItem>>

getTreeItem(element) → {vscode.TreeItem}

Gets the tree item for an element. Required by VS Code's TreeDataProvider interface.

Parameters:
Name Type Description
element TreeItem

The element to get the tree item for

Source:
Returns:

The tree item for the element

Type
vscode.TreeItem

getTreeItem(element) → {vscode.TreeItem}

Gets the tree item for an element. Required by VS Code's TreeDataProvider interface.

Parameters:
Name Type Description
element TreeItem

The element to get the tree item for

Source:
Returns:

The tree item for the element

Type
vscode.TreeItem

refresh(workspaces, config)

Refreshes the tree view with updated workspace data and configuration. Triggers a re-render of the entire tree.

Parameters:
Name Type Description
workspaces Array.<Workspace>

Array of workspaces to display

config Config

Updated configuration settings

Source:

refresh(workspaces, config) → {void}

Refreshes the tree view with updated workspace data and configuration. Triggers a re-render of the entire tree.

Parameters:
Name Type Description
workspaces Array.<Workspace>

Array of workspaces to display

config Config

Updated configuration settings

Source:
Returns:
Type
void