Skip to content

Chore(UI): Prettier fixes - #26358

Merged
chirag-madlani merged 4 commits into
mainfrom
prettier-fixes
Mar 11, 2026
Merged

chirag-madlani merged 4 commits into
mainfrom
prettier-fixes

Conversation

@aniketkatkar97

Copy link
Copy Markdown
Contributor

This pull request mainly focuses on code style consistency and formatting improvements across several files, along with a dependency update. The changes enhance readability, maintainability, and ensure uniform coding standards, but do not introduce new features or alter application logic.

Formatting and Code Style Consistency:

  • Reformatted object literals and function parameters in generate.js for improved readability and consistency, including the DOMAIN_MAPPING and VALID_DOMAIN_TAGS definitions, and function calls. [1] [2] [3] [4] [5] [6] [7] [8]
  • Updated array and function formatting in parseSchemas.js and markdown.js to use arrow functions and consistent parameter wrapping. [1] [2]

Configuration and Dependency Updates:

  • Changed the Prettier configuration in .prettierrc.yaml to use bracketSameLine instead of jsxBracketSameLine, aligning with newer Prettier options.
  • Updated the Prettier dependency version in package.json from ^2.1.2 to 2.8.8 for compatibility and improved formatting support.

HTML Formatting Improvements:

  • Reformatted meta and link tags in index.html to single-line style for better consistency and readability, and updated array formatting in script blocks. [1] [2] [3]

Minor Syntax Fix:

  • Fixed a template string assignment in dataContracts.ts to correct formatting.

@github-actions

github-actions Bot commented Mar 10, 2026 •

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 65%
65.95% (57393/87023) 45.48% (30256/66519) 48.46% (9086/18746)

@gitar-bot

gitar-bot Bot commented Mar 11, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 1 resolved / 1 findings

Applies Prettier formatting fixes across the UI codebase, resolving semantic type changes that were bundled in the formatting-only PR. No issues found.

✅ 1 resolved
✅ Quality: Semantic type changes bundled in formatting-only PR

📄 openmetadata-ui/src/main/resources/ui/src/enums/service.enum.ts 📄 openmetadata-ui/src/main/resources/ui/src/utils/ServiceUtilClassBase.ts 📄 openmetadata-ui/src/main/resources/ui/package.json:237 📄 openmetadata-ui/src/main/resources/ui/.prettierrc.yaml:15
The PR is titled "Prettier fixes" but includes a semantic TypeScript change: typeof X[K] → (typeof X)[K] across service.enum.ts and ServiceUtilClassBase.ts. While this is actually an auto-fix by Prettier 2.8+ (it adds parentheses for clarity in indexed access types on typeof expressions), and the types resolve identically in TypeScript, it would be worth calling this out in the PR description since it touches type expressions rather than just whitespace. Additionally, prettier was pinned from ^2.1.2 to exact 2.8.8 and jsxBracketSameLine was replaced with bracketSameLine — both are correct changes that drive the bulk reformatting but deserve a mention in the commit message.

Options

Auto-apply is off → Gitar will not commit updates to this branch.
Display: compact → Showing less information.

Comment with these commands to change:

Auto-apply Compact
gitar auto-apply:on         
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar

@chirag-madlani
chirag-madlani disabled auto-merge March 11, 2026 05:04
@chirag-madlani
chirag-madlani merged commit 50efdaa into main Mar 11, 2026
27 checks passed
@chirag-madlani
chirag-madlani deleted the prettier-fixes branch March 11, 2026 05:04
@sonarqubecloud

Copy link
Copy Markdown

This branch was previously deployed

1 inactive deployment
test — 6b531b3b Deployed Mar 11, 2026 by aniketkatkar97 via playwright-ci-postgresql (3, 6) #36826
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants