Skip to content

Commit

Permalink
added category mgmt code to TUI
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhitsolutions committed Oct 6, 2023
1 parent 945ead3 commit 2349b28
Show file tree
Hide file tree
Showing 26 changed files with 727 additions and 157 deletions.
2 changes: 1 addition & 1 deletion PSWorkItem.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

@{
RootModule = 'PSWorkItem.psm1'
ModuleVersion = '1.4.0'
ModuleVersion = '1.5.0'
CompatiblePSEditions = 'Core'
GUID = '4d3ff215-69ea-4fe6-8ad6-97ffc3a15bfb'
Author = 'Jeff Hicks'
Expand Down
4 changes: 2 additions & 2 deletions PSWorkItem.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
# write-host "Importing with culture $(Get-Culture)"

if ((Get-Culture).Name -match "\w+") {
Import-LocalizedData -BindingVariable strings -FileName strings.psd1
Import-LocalizedData -BindingVariable strings
}
else {
#force using En-US if no culture found, which might happen on non-Windows systems.
Import-LocalizedData -BindingVariable strings -FileName strings.psd1 -BaseDirectory .\en-us
Import-LocalizedData -BindingVariable strings -FileName PSWorkItem.psd1 -BaseDirectory .\en-us
}

if (-Not $ISWindows) {
Expand Down
13 changes: 13 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
# Changelog for PSWorkItem

## [Unreleased]
### Added
- Added a feature in `Open-PSWorkItemConsole` to allow the user to right-click on a table row and display PSWorkItem details in a pop-up window.
- Added menu choices in Open-PSWorkItemConsole` to manage categories.
- Added additional verbose output.

### Changed
- Modified private helper functions to support Verbose output.
- Renamed localized string data file to match module name.

### Fixed
- Fixed typo in strings file
- Fixed `Open-PSWorkItemConsole` to refresh report table when modifiying or removing PSWorkItems.
- Fixed bug in `Remove-PSWorkItemCategory` that wasn't detecting the category value from the dynamic parameter.

## [1.4.0] - 2023-09-29

Expand Down
5 changes: 3 additions & 2 deletions docs/Add-PSWorkItemCategory.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ Add-PSWorkItemCategory [-Category] <String[]> [[-Description] <String>]

## DESCRIPTION

When you setup a new PSWorkItem database, it will define the default categories of Personal, Work, Project, and Other. You may want to add categories. The category must be defined before you can use it. The category will not be added if it already exists unless you use -Force. Or if you need to update a category description you can re-add it with -Force. If the category name needs to be edited, remove the category and re-add it.
When you setup a new PSWorkItem database, it will define the default categories of Personal, Work, Project, and Other. You may want to add categories. The category must be defined before you can use it. The category will not be added if it already exists unless you use -Force.

It is recommended that you use proper casing for your category names and that they be single words.

## EXAMPLES

Expand Down Expand Up @@ -160,7 +162,6 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## OUTPUTS
### None
### PSWorkItemCategory
Expand Down
8 changes: 7 additions & 1 deletion docs/Open-PSWorkItemConsole.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## NOTES
You cannot specify a completion date using this tool. You must manage categories using the module commands.
You cannot specify a PSWorkItem completion date using this tool.
If you have difficulty seeing the cursor in text fields, and you are running in Windows Terminal, you might try changing the cursor in your Windows Terminal profile setting.
Expand All @@ -88,3 +88,9 @@ IMPORTANT: This command relies on a specific version of Terminal.Gui assembly. Y
[Remove-PSWorkItem](Remove-PSWorkItem.md)
[Complete-PSWorkItem](Complete-PSWorkItem.md)
[Add-PSWorkItemCategory](Add-PSWorkItemCategory.md)
[Set-PSWorkItemCategory](Set-PSWorkItemCategory.md)
[Remove-PSWorkItemCategory](Remove-PSWorkItemCategory.md)
3 changes: 2 additions & 1 deletion en-us/strings.psd1 → en-us/PSWorkItem.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ InvalidHost = This must be run in a console host. Detected PowerShell host: {0}
MoveItem = Moving PSWorkItem to Archive.
NoPreferenceFile = No PSWorkItem preference file found at {0}. Run Update-PSWorkItemPreferences to create it."
OpenDBConnection = Opening a SQLite database connection
ProcessCategory = Processing {PSWorkItem category {0}
ProcessCategory = Processing PSWorkItem category {0}
PSVersion = Running under PowerShell version {0}
Refiltering = Re-Filtering found {0} PSWorkItems
RefilteringTasks = Re-filtering for PSWorkItems due in the next {0} day(s)
Expand All @@ -69,6 +69,7 @@ UpdateArchiveTable = Updating archive table value
UpdatePreference = Updating PSWorkItem user preferences
UpdateTaskTable = Updating tasks table values
UsingDB = Using SQLite database {0}
UsingModule = Using module PSWorkItem version {0}
ValidateCategory = Validating PSWorkItem category {0}
ValidateMove = Validating the move
WarnNoTasksFound = Failed to find any matching open PSWorkItems
Expand Down
Loading

0 comments on commit 2349b28

Please sign in to comment.