realm / realm-studio

Realm Studio
https://realm.io/products/realm-studio/
Apache License 2.0
296 stars 38 forks source link

Object references need better mouseover/tooltip or customization for display #290

Open dhmspector opened 6 years ago

dhmspector commented 6 years ago

Right now object references in a table pointing to another object show up as the model name only. It would be helpful if the tooltip/mouseover for the reference showed the value of the object being pointed to.

For example in the screen capture below, there are 2 tables of interest: Instrument which is the basic data about a stock or other security, and EODData the End-of-Day data for every day of trading for these instruments. As you can see the Instrument column doesn't tell me which instrument this EODData record points to - clicking on it will, of course, take to the correct row in the Instruments table - (Sidebar issue -- there's no back button or way to get back to the previous table/model display where you were (i.e, this is a 23,000+ row table, for example) w/out re-opening the table... this should be fixed...)

Re: Customization: The best solution would be a way to customize what's shown in the field for an object reference -- here for example, I might want to have the column show the instrument's ID which in the case is the instruments name (e.g., "AAPL").

screen shot 2017-10-19 at 12 33 12 pm

astigsen commented 6 years ago

there's no back button or way to get back to the previous table/model display w/out re-opening the Realm...

There should be no need to re-open the Realm. You can always click on the class in the sidebar.

But that only brings you back to the full list, not necessarily the parent object itself, so a back button could definitely be useful.

kraenhansen commented 6 years ago

@dhmspector is the id column of the Instrument class the primary key of the class? Can I have you update this issue with your experience of this issue in the latest version of Studio?

kraenhansen commented 6 years ago

@dhmspector I would love an update on this :)