Skip to content

[CICS] Introduce “Default Region” status bar widget and quick pick framework #283

@davenice

Description

@davenice

Describe your enhancement idea

Reducing the amount of scrolling and finding in the CICS tree will improve a user's experience. During a development session a user is generally focussed on a particular region that they are preparing to test in, or develop against, before rolling out to a wider set of regions at a later point.

Introduce a status bar widget that references a default region the user is focussed on. This would allow VS Code-native command palette interactions with low friction - for instance a command for "Show logs for region" where the user is offered the option to use quick picks to choose the region they're interested in, but the default region is pre-selected.

The status bar icon might look something like this:
Image

When the user clicks the status bar, they are prompted via quick picks to choose a profile, plex, and region to use as their default.

This flow can then be used for any command that needs a region. The simplest example is show logs for region.

The flow here would be:

  • User chooses show logs from region from the command palette
  • Quick pick offers the user the default region or the option to pick a different region
  • If the user chooses the default region, the logs for the default region are shown
  • If the user chooses the option to pick a different region, the quick pick for profile/plex/region is run through

We need to consider what will happen if the default region's profile is not connected and how we trigger that to happen - how do we indicate that it wasn't possible?
Or if the user changes their set of profiles and the profile the default region comes from is no longer available.

Indicating the default region in the tree is something @Rajat-Sahrawat has been considering.

Storing the default region information in the preferences would sow the seeds for it to be portable/shareable between users working on an application, if they chose.

Delivery details
The delivery of this could be staged something like this:

  • A "show region logs" command that shows a set of quick picks allowing the user to choose profile/plex/region
  • Refactoring the quick picks out to a separate "set default region" command
  • Adding in a status bar that shows the default region
    ... and probably more steps!

Sub-issues

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

Epics

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions