Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UX: Indicate the prefix value for fieldsets used in blueprints. #1292

Open
adampatterson opened this issue Jan 10, 2025 · 2 comments
Open

UX: Indicate the prefix value for fieldsets used in blueprints. #1292

adampatterson opened this issue Jan 10, 2025 · 2 comments

Comments

@adampatterson
Copy link

Bug description

When a field set is used multiple times, customize columns shows the field name as duplicates or as many times as the field set has been used.

How to reproduce

  • Create a fieldset called Base Contact, Add fields.
  • In Blueprints, Create a CRM and B2B section.
  • link the Base contact to CRM, and then to B2B this time adding a prefix of b2b_

A saved Entry will look something like this.

  • name - Name
  • phone - Phone
  • email - Email
  • b2b_name - Name
  • b2b_phone - Phone
  • b2b_email - Email

If you were to display this information in the table, you'd have Name | Phone | Email | Name | Phone | Email

image

image

image

Logs

No response

Environment

Environment
Application Name: Statamic
Laravel Version: 11.37.0
PHP Version: 8.2.24
Composer Version: 2.8.1
Environment: adam
Debug Mode: ENABLED
URL: tourism-calgary.adam.paperleaf.dev
Maintenance Mode: OFF
Timezone: America/Edmonton
Locale: en

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: file
Database: mysql
Logs: stack / single
Mail: log
Queue: sync
Session: file

Sentry
Enabled: MISSING DSN
Environment: adam
Laravel SDK Version: 4.10.2
PHP SDK Version: 4.10.0
Release: NOT SET
Sample Rate Errors: 100%
Sample Rate Performance Monitoring: NOT SET
Sample Rate Profiling: NOT SET
Send Default PII: DISABLED

Statamic
Addons: 2
Sites: 1
Stache Watcher: Disabled (auto)
Static Caching: Disabled
Version: 5.45.1 PRO

Statamic Addons
goldnead/statamic-collapse-fieldtype: 1.1
statamic/eloquent-driver: 4.19.1

Statamic Eloquent Driver
Asset Containers: eloquent
Assets: eloquent
Blueprints: eloquent
Collection Trees: eloquent
Collections: eloquent
Entries: eloquent
Forms: eloquent
Global Sets: eloquent
Global Variables: eloquent
Navigation Trees: eloquent
Navigations: eloquent
Revisions: eloquent
Sites: eloquent
Taxonomies: eloquent
Terms: eloquent
Tokens: eloquent

Installation

Fresh statamic/statamic site via CLI

Additional details

As a really crude example, showing a small indication of the prefix name would go a long way to clarify the labels.
image

@duncanmcclean
Copy link
Member

I wouldn't really consider this a bug, but rather a feature request. Technically, the fields have the same display name so it's not really broken, but it could definatly be made easier for your use case.

Moving to the ideas repo.

@duncanmcclean duncanmcclean transferred this issue from statamic/cms Jan 10, 2025
@adampatterson
Copy link
Author

It's not really a coding but, so much as It's a usability issue.

I can't reliably add custom columns using a field set without knowing what the data represents.

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

No branches or pull requests

2 participants