Skip to content

Conversation

@Sobyt483
Copy link
Collaborator

@Sobyt483 Sobyt483 commented Oct 24, 2025

Summary by CodeRabbit

New Features

  • Introduced a new field configuration property enabling field values to render as plain text without built-in formatting or transformation logic, now available across detail views and list views.

Documentation

  • Added documentation for the new field configuration property.

@Sobyt483 Sobyt483 requested a review from gkrajniak October 24, 2025 11:46
@Sobyt483 Sobyt483 self-assigned this Oct 24, 2025
@Sobyt483 Sobyt483 added the enhancement New feature or request label Oct 24, 2025
@Sobyt483 Sobyt483 linked an issue Oct 24, 2025 that may be closed by this pull request
@coderabbitai
Copy link

coderabbitai bot commented Oct 24, 2025

Walkthrough

The changes introduce a new displayAsPlainText boolean flag to field definitions, allowing values to render without transformation. This property is added to the model interface, propagated through component templates via data bindings, and conditionally applied in the value-cell component's rendering logic.

Changes

Cohort / File(s) Summary
Model Definition
projects/lib/models/models/resource.ts
Added optional displayAsPlainText?: boolean property to FieldDefinition interface for rendering configuration
Documentation
docs/readme-generic-ui.md
Documented new "displayAsPlainText" field property as a Boolean flag enabling values to render as-is without built-in transformation
Value Cell Component
projects/wc/src/app/components/generic-ui/value-cell/value-cell.component.ts, value-cell.component.html
Added displayAsPlainText input property to ValueCellComponent and restructured template conditionals to handle plain text rendering path
Template Bindings
projects/wc/src/app/components/generic-ui/detail-view/detail-view.component.html, list-view/list-view.component.html
Extended value-cell bindings in both grouped and non-grouped field paths to pass displayAsPlainText flag from field/column definitions

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes


📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Free

📥 Commits

Reviewing files that changed from the base of the PR and between 66a8f60 and 22c12a5.

📒 Files selected for processing (6)
  • docs/readme-generic-ui.md (1 hunks)
  • projects/lib/models/models/resource.ts (1 hunks)
  • projects/wc/src/app/components/generic-ui/detail-view/detail-view.component.html (2 hunks)
  • projects/wc/src/app/components/generic-ui/list-view/list-view.component.html (2 hunks)
  • projects/wc/src/app/components/generic-ui/value-cell/value-cell.component.html (1 hunks)
  • projects/wc/src/app/components/generic-ui/value-cell/value-cell.component.ts (1 hunks)

Note

🎁 Summarized by CodeRabbit Free

The PR author is not assigned a seat. To perform a comprehensive line-by-line review, please assign a seat to the pull request author through the subscription management page by visiting https://app.coderabbit.ai/login.

Comment @coderabbitai help to get the list of available commands and usage tips.

@gkrajniak gkrajniak merged commit 60ba1d7 into main Oct 24, 2025
7 checks passed
@gkrajniak gkrajniak deleted the display-as-plain-text branch October 24, 2025 11:57
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.

Extend FieldDefinition to contain flag displayAsPlainText

3 participants