{ "id": "168995", "key": "TIMOB-24975", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "17609", "description": "", "name": "Release 7.0.0", "archived": false, "released": true, "releaseDate": "2017-12-07" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-11-16T01:46:26.000+0000", "created": "2017-07-18T09:46:09.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "19572", "description": "Important fixes for 6.1.0", "name": "Release 6.1.1", "archived": false, "released": true, "releaseDate": "2017-06-16" } ], "issuelinks": [ { "id": "55993", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "169863", "key": "TIMOB-25331", "fields": { "summary": "Windows: Use i18n resource for SearchBar \"No Results\"", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-11-16T01:46:41.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "According to the UWP Design and Pattern guidelines for AutoSuggestBox, when there are no results shown there should be a single result shown saying 'No Results' (or something similar), currently we do not display anything, while that behaviour is different to our Android implementation (not sure on iOS), we should adhere to the platforms guidelines\r\n\r\nhttps://docs.microsoft.com/en-us/windows/uwp/controls-and-patterns/auto-suggest-box (see Do's and Don'ts)\r\n\r\n{code}\r\nvar _window = Ti.UI.createWindow({ backgroundColor: 'green' });\r\nvar searchBar = Ti.UI.createSearchBar();\r\nvar data = [];\r\n\r\nfor (var i = 0; i < 25; i++) {\r\n data.push({ title: `Row ${i}` });\r\n}\r\nvar tableView = Ti.UI.createTableView({\r\n search: searchBar,\r\n data: data\r\n});\r\n_window.add(tableView);\r\n_window.open()\r\n{code}", "attachment": [], "flagged": false, "summary": "Windows: SearchBar should show No Results text if there are no results in a search ", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "Ti SDK: 6.1.1.GA,6.2.0.v20170717210803\r\nWindows 10 Pro 10.0.15063\r\nLumia 550 10.0", "closedSprints": [ { "id": 963, "state": "closed", "name": "2017 Sprint 22 SDK", "startDate": "2017-10-22T21:43:59.523Z", "endDate": "2017-11-05T22:43:00.000Z", "completeDate": "2017-11-06T16:33:42.425Z", "originBoardId": 114 }, { "id": 968, "state": "closed", "name": "2017 Sprint 23 SDK", "startDate": "2017-11-05T16:37:25.071Z", "endDate": "2017-11-19T16:37:00.000Z", "completeDate": "2017-11-20T18:57:56.565Z", "originBoardId": 114 }, { "id": 939, "state": "closed", "name": "2017 Sprint 17 SDK", "startDate": "2017-08-13T23:08:29.095Z", "endDate": "2017-08-27T23:08:00.000Z", "completeDate": "2017-08-27T21:10:54.125Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "424281", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "I think there are two different paths to this that we need to consider\r\n\r\n* Developer has the SearchBar tied to a TableView or ListView and user submits the query\r\n** We need to append a row that lists {{No Results for }} or {{No Results}} (see the app search on Windows 10 Mobile for this) - maybe this is tied to whether they use \r\n* User is searching in the SearchBar for something with no results\r\n** We need to display {{No Results for }} or {{No Results}} in the SearchBar results section (see the search in the Settings app on desktop or mobile)", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-07-18T13:52:40.000+0000", "updated": "2017-07-18T16:07:18.000+0000" }, { "id": "424298", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "It also just occurred to me that if we do this in source ourselves it would more than likely be completely lacking support i18n, maybe we could add a Windows only property (and i18n property) to allow a user specify the text to be shown to a user when there are no results from the search?", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-07-18T16:53:57.000+0000", "updated": "2017-07-18T16:53:57.000+0000" }, { "id": "427000", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/1081", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-08-22T03:33:12.000+0000", "updated": "2017-08-22T03:33:12.000+0000" }, { "id": "430770", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Passed FR! Using this environment:\r\nNode Version: 8.9.1\r\nNPM Version: 5.5.1\r\nWindows OS 10.0.14393\r\nAppc CLI: 7.0.0-master.13\r\nAppc CLI NPM: 4.2.11-2\r\nTitanium SDK version: 7.0.0.v20171115153702\r\nAppcelerator Studio vers 4.10.0\r\nWindows Phone 10.0.15063", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-16T01:46:27.000+0000", "updated": "2017-11-16T01:46:27.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }