Skip to content

Moved frontend from FS extension and added Joblog command#3348

Open
buzzia2001 wants to merge 2 commits into
codefori:masterfrom
buzzia2001:feature/frontendJoblog
Open

Moved frontend from FS extension and added Joblog command#3348
buzzia2001 wants to merge 2 commits into
codefori:masterfrom
buzzia2001:feature/frontendJoblog

Conversation

@buzzia2001

Copy link
Copy Markdown
Member

Changes

This PR moves the table generation functions from the FS extension to the core. The FS extension now imports the methods exported by the core. Exporting the table generation also ensures a consistent UI even when other extensions are used.
In addition, the ‘IBM i: Display Job Log’ command has been added, which allows you to view the job log of an active job. The command is pre-populated by default with the name of the current job.
@NicolasSchindler this PR allows you to proceed with #3346.

How to test this PR

  1. CTRL + SHIFT + P (or COMMAND + SHIFT + P) and choose IBM i: Display Job Log
image
  1. You'll see Core joblog:
image

Checklist

  • have tested my change
  • have created one or more test cases
  • updated relevant documentation
  • Remove any/all console.logs I added
  • have added myself to the contributors' list in CONTRIBUTING.md

@buzzia2001 buzzia2001 requested a review from a team July 6, 2026 21:13
@buzzia2001 buzzia2001 self-assigned this Jul 6, 2026
@buzzia2001 buzzia2001 added the enhancement New feature or request label Jul 6, 2026

@SanjulaGanepola SanjulaGanepola left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Works great! Just left some minor comments

Comment thread src/ui/frontendTables.ts
const EMPTY_VALUE_PLACEHOLDER = '<span style="color: var(--vscode-descriptionForeground); font-style: italic;">—</span>';

/** Escape a value for safe interpolation into the generated HTML. */
function escapeHtml(text: string | number): string {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The map logic looks very similar to Tools.escapeHtml. Should we call that here?

Comment thread src/ui/frontendTables.ts Outdated

/**
* Generate an enhanced detail table (key-value pairs) using Fast components
* This is a modern replacement for generateTableHtml and generateTableHtmlCode

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

generateTableHtml and generateTableHtmlCode is mentioned here in this comment, but not sure what that is reffering too.

Comment thread src/ui/frontendTables.ts Outdated
@buzzia2001

Copy link
Copy Markdown
Member Author

Ciao @SanjulaGanepola,
thank you for suggestions, I've uploaded a new version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants