Skip to content

Use OfficeIMO 3.1 enums across Word, PowerPoint, and Excel - #162

Open
PrzemyslawKlys wants to merge 11 commits into
mainfrom
codex/fix-word-examples-section-break
Open

Use OfficeIMO 3.1 enums across Word, PowerPoint, and Excel#162
PrzemyslawKlys wants to merge 11 commits into
mainfrom
codex/fix-word-examples-section-break

Conversation

@PrzemyslawKlys

@PrzemyslawKlys PrzemyslawKlys commented Aug 4, 2026

Copy link
Copy Markdown
Member

Summary

  • migrates Word, PowerPoint, and Excel cmdlet parameters to the OfficeIMO 3.1 CLR enums
  • fixes the issue Having trouble running examples and my own quick test #161 Word example with a consistent Word* alias style and current command parameters
  • adds WordTableOfContents while retaining Add-OfficeWordTableOfContents
  • preserves headerless delimited-text imports and their -PassThru row counts on the new OfficeIMO CSV path
  • reports the delimiter actually selected by detection in delimited-text -PassThru results
  • reports the sanitized, unique table name actually created so -PassThru output works with later table-targeting commands
  • retains schema inference for Import-OfficeExcel -AsDataTable
  • keeps Find-OfficeExcel and Update-OfficeExcelText sparse on worksheets with far-apart populated cells
  • updates services, examples, generated command help, and regression coverage
  • recursively verifies every public PSWriteOffice API leaf type so Open XML SDK value structs cannot leak back into parameters, properties, methods, collections, or nullable wrappers

User impact

PowerShell users can pass normal enum names such as Continuous instead of Open XML lexical tokens. The same fix applies across section and paragraph breaks, headers and footers, alignment, underline, table layout, protection, text boxes, PowerPoint layouts, and the affected Excel formatting/validation/chart surfaces.

For the currently published PSWriteOffice 3.0.0, issue #161 can still use the documented lexical-token workaround. This branch is the clean 3.1 consumer and intentionally requires the coordinated OfficeIMO 3.1 packages.

Release coordination

Merge and publish OfficeIMO 3.1 first, then rerun this PR after the packages are public. Restore/package CI is expected to remain red until that publication; no consumer-side shim, downgrade, or parameter-existence probe is included.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 12 lines in your changes missing coverage. Please review.
✅ Project coverage is 1.51%. Comparing base (044e7c6) to head (1a3bfb2).

Files with missing lines Patch % Lines
...Office/Cmdlets/Word/AddOfficeWordSectionCommand.cs 0.00% 12 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##            main    #162      +/-   ##
========================================
- Coverage   1.51%   1.51%   -0.01%     
========================================
  Files        564     564              
  Lines      32479   32489      +10     
  Branches    5161    5162       +1     
========================================
  Hits         491     491              
- Misses     31940   31950      +10     
  Partials      48      48              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@PrzemyslawKlys PrzemyslawKlys changed the title Fix Word DSL examples and section break binding Fix Word DSL examples and use OfficeIMO 3.1 section breaks Aug 4, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8b9b5ff2b4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

<Nullable>enable</Nullable>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<OfficeIMOVersion>3.0.1</OfficeIMOVersion>
<OfficeIMOVersion>3.1.0</OfficeIMOVersion>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Do not pin to unpublished OfficeIMO packages

For clean CI/dev restores that use the default UseOfficeIMOProjectReferences=false, this property feeds every OfficeIMO PackageReference; I checked .github/workflows/test-dotnet.yml and .github/workflows/test-powershell.yml, and they run dotnet restore Sources/PSWriteOffice.sln without overriding that setting. The public NuGet version list for OfficeIMO.Word currently tops out at 3.0.3, not 3.1.0 (see the NuGet versions table), so these jobs will fail during restore until 3.1.0 is published or the workflows use local project references.

Useful? React with 👍 / 👎.

@PrzemyslawKlys
PrzemyslawKlys force-pushed the codex/fix-word-examples-section-break branch from 8b9b5ff to 2e09325 Compare August 4, 2026 22:31
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@PrzemyslawKlys PrzemyslawKlys changed the title Fix Word DSL examples and use OfficeIMO 3.1 section breaks Fix Word examples and migrate PSWriteOffice to OfficeIMO 3.1 Aug 4, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@PrzemyslawKlys PrzemyslawKlys changed the title Fix Word examples and migrate PSWriteOffice to OfficeIMO 3.1 Fix Office document examples and PowerShell value binding Aug 5, 2026
@PrzemyslawKlys PrzemyslawKlys changed the title Fix Office document examples and PowerShell value binding Use OfficeIMO 3.1 enums across Word, PowerPoint, and Excel Aug 5, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c85862041a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9c102d03f8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Sources/PSWriteOffice/Services/Excel/ExcelReadOutputService.cs
Comment thread Sources/PSWriteOffice/Cmdlets/Excel/ImportOfficeExcelDelimitedTextCommand.cs Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3aecc0c546

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Sources/PSWriteOffice/Cmdlets/Excel/ImportOfficeExcelDelimitedTextCommand.cs Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 783858a1a8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Sources/PSWriteOffice/Cmdlets/Excel/UpdateOfficeExcelTextCommand.cs Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants