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

feat: Improve recommendation sheet cell formats #268

Merged
merged 23 commits into from
Aug 15, 2024
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
9646de9
Improve recommendation sheet cell formats
tksh164 Jul 10, 2024
098bb64
Merge branch 'main' into improve-excel-recommendation-sheet
tksh164 Jul 12, 2024
7fa0873
Merge branch 'main' into improve-excel-recommendation-sheet
tksh164 Jul 12, 2024
1ca3ce9
Merge branch 'main' into improve-excel-recommendation-sheet
tksh164 Jul 12, 2024
7cef7f4
Merge branch 'main' into improve-excel-recommendation-sheet
tksh164 Jul 16, 2024
8409be7
Merge branch 'main' into improve-excel-recommendation-sheet
tksh164 Jul 16, 2024
7ccebff
Merge branch 'main' into improve-excel-recommendation-sheet
tksh164 Jul 19, 2024
0e4afff
Merge branch 'main' into improve-excel-recommendation-sheet
tksh164 Jul 24, 2024
737d075
Merge branch 'main' into improve-excel-recommendation-sheet
tksh164 Jul 24, 2024
a0c6ef3
Merge branch 'main' into improve-excel-recommendation-sheet
tksh164 Jul 25, 2024
344ec49
Merge branch 'main' into improve-excel-recommendation-sheet
tksh164 Jul 26, 2024
2fc85ec
Merge branch 'main' into improve-excel-recommendation-sheet
tksh164 Jul 30, 2024
d77bf2f
Merge branch 'main' into improve-excel-recommendation-sheet
tksh164 Aug 1, 2024
fb78648
Merge branch 'main' into improve-excel-recommendation-sheet
tksh164 Aug 1, 2024
72503d1
Merge branch 'main' into improve-excel-recommendation-sheet
tksh164 Aug 2, 2024
eed33eb
Merge branch 'main' into improve-excel-recommendation-sheet
tksh164 Aug 2, 2024
e38646d
Merge branch 'main' into improve-excel-recommendation-sheet
tksh164 Aug 3, 2024
4f0eb4d
Merge branch 'main' into improve-excel-recommendation-sheet
tksh164 Aug 6, 2024
f0cc6f2
Merge branch 'main' into improve-excel-recommendation-sheet
tksh164 Aug 6, 2024
6be72c9
Merge branch 'main' into improve-excel-recommendation-sheet
tksh164 Aug 13, 2024
a0101f4
Merge branch 'main' into improve-excel-recommendation-sheet
tksh164 Aug 13, 2024
3d33b2e
Merge branch 'main' into improve-excel-recommendation-sheet
tksh164 Aug 14, 2024
7657365
Merge branch 'main' into improve-excel-recommendation-sheet
tksh164 Aug 15, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 38 additions & 12 deletions tools/2_wara_data_analyzer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -729,19 +729,45 @@ $Script:Runtime = Measure-Command -Expression {
$Script:Recommendations += $tmp
}

$columnCommonStyle = @{
FontName = 'Calibri'
FontSize = 11
WrapText = $true
}

$headerCommonStyle = @{
FontName = 'Calibri'
FontSize = 11
FontColor = 'White'
Bold = $true
BackgroundColor = 'DarkSlateGray'
HorizontalAlignment = 'Center'
VerticalAlignment = 'Center'
WrapText = $true
}

$Styles2 = @(
New-ExcelStyle -HorizontalAlignment Center -FontName 'Calibri' -FontSize 11 -FontColor 'White' -VerticalAlignment Center -Bold -WrapText -BackgroundColor 'DarkSlateGray' -Width 14 -Range 'A1:B1'
New-ExcelStyle -HorizontalAlignment Center -FontName 'Calibri' -FontSize 11 -FontColor 'White' -VerticalAlignment Center -Bold -WrapText -BackgroundColor 'DarkSlateGray' -Width 18 -Range 'C1'
New-ExcelStyle -HorizontalAlignment Center -FontName 'Calibri' -FontSize 11 -FontColor 'White' -VerticalAlignment Center -Bold -WrapText -BackgroundColor 'DarkSlateGray' -Width 20 -Range 'D1'
New-ExcelStyle -HorizontalAlignment Center -FontName 'Calibri' -FontSize 11 -FontColor 'White' -VerticalAlignment Center -Bold -WrapText -BackgroundColor 'DarkSlateGray' -Width 35 -Range 'E1:F1'
New-ExcelStyle -HorizontalAlignment Center -FontName 'Calibri' -FontSize 11 -FontColor 'White' -VerticalAlignment Center -Bold -WrapText -BackgroundColor 'DarkSlateGray' -Width 20 -Range 'G1'
New-ExcelStyle -HorizontalAlignment Center -FontName 'Calibri' -FontSize 11 -FontColor 'White' -VerticalAlignment Center -Bold -WrapText -BackgroundColor 'DarkSlateGray' -Width 55 -Range 'H1'
New-ExcelStyle -HorizontalAlignment Center -FontName 'Calibri' -FontSize 11 -FontColor 'White' -VerticalAlignment Center -Bold -WrapText -BackgroundColor 'DarkSlateGray' -Width 10 -Range 'I1'
New-ExcelStyle -HorizontalAlignment Center -FontName 'Calibri' -FontSize 11 -FontColor 'White' -VerticalAlignment Center -Bold -WrapText -BackgroundColor 'DarkSlateGray' -Width 90 -Range 'J1'
New-ExcelStyle -HorizontalAlignment Center -FontName 'Calibri' -FontSize 11 -FontColor 'White' -VerticalAlignment Center -Bold -WrapText -BackgroundColor 'DarkSlateGray' -Width 45 -Range 'K1'
New-ExcelStyle -HorizontalAlignment Center -FontName 'Calibri' -FontSize 11 -FontColor 'White' -VerticalAlignment Center -Bold -WrapText -BackgroundColor 'DarkSlateGray' -Width 35 -Range 'L1:M1'
New-ExcelStyle -HorizontalAlignment Center -FontName 'Calibri' -FontSize 11 -FontColor 'White' -VerticalAlignment Center -Bold -WrapText -BackgroundColor 'DarkSlateGray' -Width 45 -Range 'N1'
New-ExcelStyle -HorizontalAlignment Center -FontName 'Calibri' -FontSize 11 -VerticalAlignment Center -WrapText -Range 'A:N'
# Apply the style to the columns.
New-ExcelStyle @columnCommonStyle -Range 'A:G' -HorizontalAlignment Center -VerticalAlignment Center
New-ExcelStyle @columnCommonStyle -Range 'H:H' -HorizontalAlignment Left -VerticalAlignment Center
New-ExcelStyle @columnCommonStyle -Range 'I:I' -HorizontalAlignment Center -VerticalAlignment Center
New-ExcelStyle @columnCommonStyle -Range 'J:K' -HorizontalAlignment Left -VerticalAlignment Top
New-ExcelStyle @columnCommonStyle -Range 'L:L' -HorizontalAlignment Center -VerticalAlignment Center
New-ExcelStyle @columnCommonStyle -Range 'M:M' -HorizontalAlignment Left -VerticalAlignment Top
New-ExcelStyle @columnCommonStyle -Range 'N:N' -HorizontalAlignment Center -VerticalAlignment Center

# Apply the style to the header row.
New-ExcelStyle @headerCommonStyle -Range 'A1:B1' -Width 14
New-ExcelStyle @headerCommonStyle -Range 'C1' -Width 18
New-ExcelStyle @headerCommonStyle -Range 'D1' -Width 20
New-ExcelStyle @headerCommonStyle -Range 'E1:F1' -Width 35
New-ExcelStyle @headerCommonStyle -Range 'G1' -Width 20
New-ExcelStyle @headerCommonStyle -Range 'H1' -Width 55
New-ExcelStyle @headerCommonStyle -Range 'I1' -Width 10
New-ExcelStyle @headerCommonStyle -Range 'J1' -Width 90
New-ExcelStyle @headerCommonStyle -Range 'K1' -Width 45
New-ExcelStyle @headerCommonStyle -Range 'L1:M1' -Width 35
New-ExcelStyle @headerCommonStyle -Range 'N1' -Width 45
)

# Configure the array of fields to be used in the Recommendations sheet
Expand Down