phpugl / Dime

Dime Timetracker [Symfony2, Backbone.js, Bootstrap]
http://dime-timetracker.de/
MIT License
32 stars 15 forks source link

autocompletion for customers, projects, services, and tags #61

Open quafzi opened 11 years ago

quafzi commented 11 years ago

In order to provide a faster and better usable interface, we need autocompletion for relations. I'll provide my ideas in Gherkin Language:

Feature: autocompletion for customers, projects, services, and tags
  In order to provide a faster and better usable interface,
  We need autocompletion for relations.

  Scenario: basic autocompletion for customers, projects, services, and tags
    Given I use the magic input box to start an activity,
    When I enter one of the trigger characters (@ for customers, / for projects, : for services, # for tags),
    Then I want to get a drop down with all matching items.

In addition, it would be great to get only projects of a given customer, if I already entered one. If a project is chosen before the customer, the drop down could provide the customer, too.

Example:

  Background:
    Given there is a customer "A" with projects "A1" and "A2"
    And there is a customer "B" with project "B1"

  Scenario: list projects of given customer
    Given the text field contains a customer alias "A"
    When I enter a "/"
    Then the appearing list contains projects "A1" and "A2"
    And the appearing list does not contain project "B1"

  Scenario: add customer to project
    Given the text field does not contain any customer
    When I enter a "/"
    Then the appearing list contains projects "A1 @A", "A2 @A", and "B1 @B"
quafzi commented 11 years ago

Some first steps are made in branch "autocompletion".

Remaining steps:

quafzi commented 11 years ago

Done:

quafzi commented 11 years ago

@nogo Please have a look into my branch. I already merged your branch 19-improve-activity-view into mine.

nogo commented 11 years ago

Good start but only the projects are working at my test. Customer and Service doesn't show up.

nogo commented 11 years ago

Btw, you dont have to show project and customer together because customer will be set automatically on project selection.

quafzi commented 11 years ago

Oh, great to know, never noticed that :)