Skip to content

feat(presets): add FieldBuilder.GetLabel and webp to static file regex#1073

Open
eideroliveira wants to merge 1 commit into
qor5:mainfrom
eideroliveira:pr/presets-improvements
Open

feat(presets): add FieldBuilder.GetLabel and webp to static file regex#1073
eideroliveira wants to merge 1 commit into
qor5:mainfrom
eideroliveira:pr/presets-improvements

Conversation

@eideroliveira
Copy link
Copy Markdown
Contributor

Summary

Two small improvements to the presets package:

  • FieldBuilder.GetLabel() — returns the configured label string. Useful for code that introspects field metadata to generate reports, dynamic forms, or documentation based on model configuration.

  • webp in staticFileRe.webp assets are now recognized as static files, ensuring they get proper caching headers like other image formats.

Test plan

  • GetLabel() returns the label set via Label()
  • .webp URLs are matched by staticFileRe

…ile regex

- FieldBuilder.GetLabel() returns the configured label, useful for
  code that inspects field metadata (e.g. generating reports or
  dynamic forms based on model configuration).

- Add webp to staticFileRe so .webp assets are recognized as static
  files and served with proper caching headers.
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.

1 participant