Giter Site home page Giter Site logo

Subtitle with display formatting in card view and searching with more than 3 characters about directus-extension-field-actions HOT 12 CLOSED

utomic-media avatar utomic-media commented on August 15, 2024
Subtitle with display formatting in card view and searching with more than 3 characters

from directus-extension-field-actions.

Comments (12)

terafirmanz avatar terafirmanz commented on August 15, 2024 1

Will do. We are on 1 behind the latest 10.7 but will test more as other collections don’t do it to me.

from directus-extension-field-actions.

terafirmanz avatar terafirmanz commented on August 15, 2024

Further to this I found if the click action is the display formatting is set to copy value rather than default action then the data is always not visible in the card view regardless of if a search is being performed or not.

from directus-extension-field-actions.

Dominic-Marcelino avatar Dominic-Marcelino commented on August 15, 2024

Hi, thanks for pointing out!
I haven't used the extension with the card layout yet. I'll make sure to test this next week and let you know if there's anything more I need for reproduction.

from directus-extension-field-actions.

Dominic-Marcelino avatar Dominic-Marcelino commented on August 15, 2024

Unfortunately I'm not able to replicate the issue.
Are you using the latest version?

Search with display in "classic mode" with action-buttons next to the value:
Bildschirmfoto 2023-11-29 um 16 52 55

Search with display in "button mode" with a custom action button:
Bildschirmfoto 2023-11-29 um 17 07 07

Can you specify in which situations the issue happens (field-type, layout configuration, display config)?


Apart from this, I notices that the button mode isn't fully compatible with the card-layout. The buttons are too high for the wrapper. Therefore I switched to a smaller button in a new version

from directus-extension-field-actions.

terafirmanz avatar terafirmanz commented on August 15, 2024

Ok wrote a whole reply and just as I was about to post I tested a hunch and found the problem. its in the display layout subtitle having a space after a hyphen. Also the problem only happens when the search returns only a sigle row of results (depending on the browser width)

this has the issue:
image

thsi does not:
image

from directus-extension-field-actions.

Dominic-Marcelino avatar Dominic-Marcelino commented on August 15, 2024

Unfortunately I'm still not able to replicate the issue.

Next to my previous tests I tried to replicate your setup as much as possible from the given information:

  • using a status field that's displayed as dots
  • Adding a text-field with the display
  • Tested all three default click options
  • Tested different button modes

Bildschirmfoto 2023-11-30 um 09 32 50

Which versions of directus and this extension are you using? Have you installed the extension via npm or by copying the files into the extensions-folder?

from directus-extension-field-actions.

terafirmanz avatar terafirmanz commented on August 15, 2024

If you make the subtitle in the layout options:
Status - URL
you should get the problem.
I have noticed that updating to the latest version of your plugin has meant some records always show correctly even when others filter as well just to confuse me more.

from directus-extension-field-actions.

Dominic-Marcelino avatar Dominic-Marcelino commented on August 15, 2024

If you make the subtitle in the layout options:
Status - URL
you should get the problem

Unfortunately this doesn't makes a difference. The spaces shouldn't have any impact at all, as they're not rendered. Which directus version are you using?

I have noticed that updating to the latest version of your plugin has meant some records always show correctly even when others filter as well just to confuse me more.

This means there's something with overflowing data. Can you create an isolated reproduction with both the latest directus and extension version and send me a database dump?

from directus-extension-field-actions.

terafirmanz avatar terafirmanz commented on August 15, 2024

Okay, I've updated everything to the latest Directus 10.8.2 and this extension to 1.6.6 and still have the issue. I then tested on other collections and could re-create the problem. So I tested on a new test collection and could not re-create the problem with random data but as soon as I started entering IP addresses in the field that was set to the subtitle display the problem happened.

It has to be exactly this setup in the card subtitle display for the problem to happen:
{status}"space"-"space"{field with IP data}
if you add more spaces its the same and if you add more hyphens the problem gets worse.
if the data is not IPv4 data (numbers with dots) the problem does not happen. So I don't know if this is a directus css issue or this extension but it only happens when this extension is active in the display of the affected field.

from directus-extension-field-actions.

Dominic-Marcelino avatar Dominic-Marcelino commented on August 15, 2024

I'm still unable to replicate the issue. I've created a status field (display as dot) and a text field (field-action display), entered an IP V4 into the value and started a search. Everything works as expected:
Bildschirmfoto 2023-12-06 um 12 25 17

Please create an isolated reproduction (fresh directus instance + this extension only) where you create one collection with some data for reproduction and send me the database dump. Otherwise I'm unfortunately unable to help, as I'm unable to reproduce the problem.

from directus-extension-field-actions.

terafirmanz avatar terafirmanz commented on August 15, 2024

So far I have been unable to reproduce in a fresh env. Not sure what on my prod env causes it as it is a docker setup.
In my prod env it appears to now only happen to specific records but not all so something somewhere needs a cleanup but thats my problem to sort.

from directus-extension-field-actions.

Dominic-Marcelino avatar Dominic-Marcelino commented on August 15, 2024

Thanks for getting back!
I'll close the issue for now, as we're both unable to reproduce it. Feel free to reopen in case you find a related issue with the extension.

from directus-extension-field-actions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.