• ResolvedPlugin Contributor Alex Ciobica

    (@ciobi)


    I know you’re working on improvements on the UI and I’m not sure what you’re planning but I’d like to throw some ideas at you:

    • Support for asterisk in the search box to show all, or the addition of a show all button. This could either just generate a list with all results or add a drop down with all items to select from to avoid issues when there are too many posts.
    • The ability to customize all interface elements elements at connection registering. Also, the addition of support for different messages for each post type when reciprocal relations are involved.
      E.g.:

      $args = array(
      		'from' => 'book',
      		'to' => 'author',
      		'reciprocal' => true,
      		'title' => array( 'Authors', 'Books written by this Author' ),
      		'label' => array( 'Search authors', 'Search books' ),
      		'description' => array ( 'Use * to see all authors. Click to add', 'Use * to see all books. Click to add.' )
      	);
      p2p_register_connection_type( $args );

      would result in:
      https://i.imgur.com/lblI8.png for the “Add book” perspective.

    Tell me if I can help.

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author scribu

    (@scribu)

    Here’s what the new UI looks like:

    https://www.ads-software.com/support/topic/plugin-posts-2-posts-how-to-add-info-to-connection/page/2?replies=62#post-2002746

    The “Show all” button has been on my mind for some time. Care to make a mock-up with it?

    As for the labels, they’re translatable, so they’re already customizable in a way. Will revisit after the UI is more stable.

    Plugin Author scribu

    (@scribu)

    I was thinking of adding some tabs, like on the menu page: “Recent”, “View All” and “Search”.

    By the way, if you really want to control every character in the box, you can set the ‘box’ argument to your own class and overwrite the box() method.

    Plugin Contributor Alex Ciobica

    (@ciobi)

    The “Show all” button has been on my mind for some time. Care to make a mock-up with it?

    Maybe something like this (when the show button is pressed)?
    And like this , when searching for something. The buttons at the bottom could be replaced by tabs.

    The info button could show the description in a speech bubble.

    Plugin Author scribu

    (@scribu)

    I like the + icon. It allows the title link to always send you to that post’s editing screen, regardless if the connection was created yet or not. Are those icons available somewhere?

    With those in place and the “Type to search for books” text, is the info button even necessary?

    Plugin Author scribu

    (@scribu)

    Also keep in mind that it can get pretty wide:

    View post on imgur.com

    Plugin Contributor Alex Ciobica

    (@ciobi)

    First, lemme say, this is fun!

    I like the + icon. It allows the title link to always send you to that post’s editing screen, regardless if the connection was created yet or not.

    Actually I imagined it as a visual reminder that when clicked, that item is added.
    This could be a better solution.

    The Fields icon could launch a speech bubble modal with the list of fields, as for many fields the interface becomes unusable in the narrow column.

    With those in place and the “Type to search for books” text, is the info button even necessary?

    Probably not. Can be dropped.

    Also keep in mind that it can get pretty wide…

    Maybe something like this for the wide version?
    The only weird thing is the space after the search input.

    Here are the icons

    Plugin Author scribu

    (@scribu)

    Are those icons made by you? If so, awesome! and would you be willing to release them under the GPL?

    If not, I need to know the original source, for licensing info.

    The Fields icon could launch a speech bubble modal with the list of fields, as for many fields the interface becomes unusable in the narrow column.

    No no no; modal windows are evil. I’m thinking of automatically making it wide if the number of fields is larger than 1.

    check these icons

    Plugin Contributor Alex Ciobica

    (@ciobi)

    No no no; modal windows are evil.

    ??

    I’m thinking of automatically making it wide if the number of fields is larger than 1.

    That’ll work.

    If not, I need to know the original source, for licensing info.

    Not mine. They’re Alexey Egorov‘s who’s in dire need of a proper site.

    Lemme know if want help with the coding.

    Plugin Author scribu

    (@scribu)

    Latest incarnation: https://i.imgur.com/xln2Y.png (no “show recent” button yet).

    Feel free to make a fork on github to add it, if you’re itching to code. ??

    @modesty: Yeah, the silk icon set is very popular, but kind of distracting.

    Plugin Author scribu

    (@scribu)

    Lookin’ good ??

    Great interface. An auto-fill for relationship fields would be very helpful (sorry to be redundant here… this was mentioned in another post).

    There’s no point in repeating the same request over and over, especially since you created a separate thread for it.

    Plugin Author scribu

    (@scribu)

    What WPMUDEV said (which was actually me :P).

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘[Plugin: Posts 2 Posts] UI api suggestions’ is closed to new replies.