Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
133 commits
Select commit Hold shift + click to select a range
4265eb9
WIP Cleaning up resource view, list, etc.: Removing deprecated code (…
Apr 12, 2018
7e52f09
WIP Cleaning up resource view, list, etc.
Apr 13, 2018
110d60d
WIP Cleaning up resource view, list, etc.
Apr 13, 2018
d708c39
WIP Cleaning up resource view, list, etc.: Removed two ways of select…
Apr 16, 2018
fda1a79
WIP Cleaning up resource view, list, etc.: Re-enabled double click on…
Apr 16, 2018
87e94de
WIP Cleaning up resource view, list, etc.: Commented out unused group…
Apr 16, 2018
816f006
WIP Get navigation to work: Entering lot works (one level with dummy …
Apr 16, 2018
e7cd211
WIP Right panel: Right panel displays info of (1st) selected device
Apr 16, 2018
d9cf6bf
WIP Testing right panel: Display number of selected devices in Certif…
Apr 20, 2018
c03517b
WIP Remove dashboard, packages, pallets and places: Removed from init…
Apr 20, 2018
8c43e58
Merge branch 'v1-easy-changes' into merge
Apr 23, 2018
457406f
Revert CONSTANTS to use local server
Apr 23, 2018
bd6b356
Merge branch 'merge' into prepare-for-redesign
Apr 23, 2018
7047669
Merge branch 'v1-easy-changes' into prepare-for-redesign
Apr 23, 2018
6ced5c6
Merge branch 'v1-easy-changes' into prepare-for-redesign
Apr 23, 2018
0c7abfa
Readded select all button to item list
Apr 23, 2018
8c3957c
Simplified organize button to only show buttons to add or remove from…
Apr 23, 2018
0f976f0
Info shown in right panel depends on selected items and type of items
Apr 23, 2018
c064656
Stubs for summary of lot/selected items in right panel
Apr 23, 2018
c64d0c7
Remove number of selected items in certificate button
Apr 23, 2018
7d3547d
Inline buttons manipulating selected items directly in resource list …
Apr 23, 2018
5a31f7a
Merge branch 'devel' into prepare-for-redesign
Apr 25, 2018
bbc6784
WIP Display selected devices aggregated by lot in right panel: Refact…
Apr 26, 2018
1008ed3
WIP Separate lots from devices in both view and directive. Added dese…
Apr 26, 2018
7cb6a43
WIP Display deselect button when all devices of current lot are selec…
Apr 27, 2018
848f70f
WIP Show aggregated information for multiple selected devices
Apr 27, 2018
36ab7d6
WIP Added title and status columns and remove @type, type and model c…
Apr 27, 2018
fb5f837
WIP Display devices and lots coming from server (limit to 5 items for…
May 1, 2018
6931bca
WIP Display items of parent resource by default
May 1, 2018
d7b4475
WIP filter items of parent resource id if present
May 1, 2018
afe6e05
WIP fixed navigating between lots
May 1, 2018
76e0618
WIP Removed resource-list-selector-big.factory. Refactored resource-l…
May 1, 2018
7125101
WIP Re-enabled 'label' button (always set settings.rootAncestor to cu…
May 2, 2018
65ee41e
WIP Re-enabled 'certificate' button: 'label' modal does not work sinc…
May 2, 2018
c9b4454
WIP Re-enabled 'Organize' button to add/remove selected devices to/fr…
May 2, 2018
06e9fa3
WIP Re-enabled 'Export' button
May 2, 2018
8687635
WIP Fixed 'label' button by enabling scopes for label and certificate…
May 2, 2018
09e6067
WIP Removed obsolete 'place' module
May 2, 2018
1c0ae68
WIP Re-enabled Manual events button
May 3, 2018
c3138b6
stub for device content panel
May 3, 2018
c6b0810
WIP (doesn't work yet) To avoid showing many lots in selection panel,…
May 3, 2018
fe8ffc5
WIP (works now) To avoid showing many lots in selection panel, show o…
May 4, 2018
b294c30
WIP Refactor: Made resource list selector 'remove' and 'add' methods …
May 4, 2018
2fc064d
added TODO
May 9, 2018
eddc8be
WIP Formatting: Pills for selected lots
May 9, 2018
0b0c29e
WIP Display selection info
May 9, 2018
f5ceafd
WIP Format selection summary
May 9, 2018
8f19400
WIP Format selected folders
May 9, 2018
ec3084b
WIP Workaround to set labels of selected lots correctly. Necessary be…
May 10, 2018
244f036
WIP Previous workaround: Added comments to explain workaround
May 10, 2018
3b15949
added workaround to shown only direct children devices of current lot
May 10, 2018
833e692
Fixed deselectAll
May 10, 2018
7c6e237
WIP Show all (not only direct children) devices of current lot in table
May 10, 2018
0426323
WIP Added comment with sample code to get lot labels
May 10, 2018
75513c6
WIP Renamed device.lots => device.parentLots
May 11, 2018
cb8e4b0
WIP Show all lots of selected devices
May 11, 2018
a334ad6
WIP Workaround to fix selection in root
May 11, 2018
0ccb67d
WIP Cleanup
May 11, 2018
1c9395e
WIP Fixed select/deselect all button
May 11, 2018
2ea3fbe
WIP Added stub for selected device summary detailed views
May 11, 2018
be2f2f6
WIP Selection details: Until now, component is implemented
May 14, 2018
ffaf262
WIP Selection details: Type
May 17, 2018
19faf55
WIP Improved back button in selection summary detail view panel
May 17, 2018
0ea7d58
WIP Added show more selected lots button
May 17, 2018
3a9d385
WIP Selection details slide from right
May 17, 2018
767f6a9
WIP Fixed price summary of selected device: allow nested properties
May 17, 2018
d6aee3a
WIP Added lot icons
May 17, 2018
24cb7cc
WIP Set labels of device.lots to show them in selection panel
May 17, 2018
fde8a93
WIP Added show more button to lots
May 17, 2018
a9b1ec1
WIP Selection panel occupies full height and 50% width
May 17, 2018
b74aa6d
WIP Enabled control and shift click for device selection
May 21, 2018
a9cc858
WIP Fixed infinite scroll for devices
May 21, 2018
665986d
WIP Fixed selection of devices without lots/ancestors
May 21, 2018
55c8e22
WIP Fixed simple (= without ctrl/shift key) selection
May 22, 2018
72c882b
WIP Visual improvements
May 23, 2018
24fddae
WIP More visual improvements
May 23, 2018
8c86a8d
WIP Improved visuals of breadcrumb
May 23, 2018
009b55b
WIP Fixed Show-more-lots button and display of total devices and lots
May 23, 2018
812a0a0
WIP CSS+HTML for selection summary
May 23, 2018
bb13b97
WIP Improved Selection summary status panel
May 29, 2018
cd9a5cd
WIP Added condition-score and price, changed status to static informa…
May 29, 2018
a2e72fe
WIP Stubs for selection summary events
May 30, 2018
50e2519
WIP Implemented button to show devices of events by adding new search…
May 30, 2018
43c633f
WIP Fixed nested selection details
May 30, 2018
e8e10cd
WIP View selected devices' events in table
May 30, 2018
db00455
WIP Added lots selection summary
May 30, 2018
8e017e3
WIP Fixed viewport height
May 30, 2018
52b84b2
WIP Pressing show more selected lots button display lots selection su…
May 30, 2018
6422d9b
Removed creating any group except for lot: Removed all groups except …
May 31, 2018
023f08b
Merge remote-tracking branch 'origin/devel' into devel
May 31, 2018
73153f6
Merge branch 'devel' into v2b-simple-selection-and-selection-info-for…
May 31, 2018
9dc39ae
Reenabled renaming of lot
May 31, 2018
4f3146b
Reduced calls to selector.getAllSelectedDevices by saving selected de…
May 31, 2018
327f18a
Fixed calls to selector.get...PropertyOfSelected
May 31, 2018
471c708
Add group-resource-button to breadcrumb to add/remove lot from other …
May 31, 2018
36784bf
Sort children lots ascending
May 31, 2018
174eecf
Fixed showing placeholders. Store all aggregated properties of select…
Jun 4, 2018
973d592
Fixed pricing info for selection
Jun 4, 2018
869df7b
Clean up + refactor of resource-list.directive (html + js)
Jun 4, 2018
0026f04
Clean up resource-list-selector
Jun 4, 2018
6dae442
Fixed selection (error from cleanup/refactor)
Jun 4, 2018
dcb5ced
Removed console.log's
Jun 4, 2018
20171b0
Fixed selection of already selected devices (still bug from cleanup/r…
Jun 4, 2018
a36c10e
Hover background color for devices and events tables
Jun 5, 2018
06fba18
When display an event's device go to inventory root
Jun 5, 2018
a20d553
Improved display of selected lots and devices
Jun 5, 2018
5d3adaf
Fixed unit tests
Jun 6, 2018
c876413
Merge pull request #21 from eReuse/v2b-simple-selection-and-selection…
Jun 6, 2018
9f7ccd2
Merge branch 'v2b-simple-selection-and-selection-info-for-devices' in…
Jun 6, 2018
28c13a6
Fixed display of components
Jun 6, 2018
f8a85e6
Fixed constants.js URL
Jun 6, 2018
a5b56ae
WIP Responsive version. TODO Selection summary panel
Jun 7, 2018
d75d51b
Responsive version of selection summary panel
Jun 8, 2018
791b837
Merge pull request #22 from eReuse/responsive-devicehub
Jun 8, 2018
0edb345
Added deselect all selected devices button to selection panel
Jun 14, 2018
aefe960
Resolución Issue Bug #188: al borrar los filtros, no puedo hacer scro…
Jun 18, 2018
9d2a0a6
Fixed issue bug #189: Aparece el "Show more" cuando no había ningún l…
Jun 18, 2018
32e5452
WIP Filters: Removed obsolete filters
Jun 18, 2018
88d74fb
WIP Filters: Moved filters to devices
Jun 18, 2018
8fd37cb
Filters do not affect lots
Jun 18, 2018
45ef754
Fix background and border of children lots buttons
Jun 21, 2018
cbcde81
Fixed show more children lots button
Jun 21, 2018
89ab69a
Fixed: #197 Mejorar formato de los eventos https://tree.taiga.io/proj…
Jun 22, 2018
2814d89
#194: Añadir € al precio (https://tree.taiga.io/project/ereuseorg-dev…
Jun 22, 2018
2c4a83e
Fix #190 número de serie sobresale (https://tree.taiga.io/project/ere…
Jun 22, 2018
754d856
Fixed #178: Shared with me https://tree.taiga.io/project/ereuseorg-de…
Jun 22, 2018
6369635
#184: Organize => Edit lots (https://tree.taiga.io/project/ereuseorg-…
Jun 22, 2018
308e2ec
Merge branch 'master' of https://github.com/eReuse/DeviceHubClient
Jun 22, 2018
dc05aec
Merge branch 'master' into devel
Jun 22, 2018
b7b36fd
Fixed server URL in CONSTANTS.js
Jun 22, 2018
ac52ccf
Merge remote-tracking branch 'origin/v2b-simple-selection-and-selecti…
Jun 22, 2018
bd7799f
#182: 'View device list' => 'Back to device list' (https://tree.taiga…
Jun 22, 2018
82b600d
Removed white footer on sm-sized viewpoint (mobile): Removed footer h…
Sep 1, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<li uib-dropdown data-e2e="shared-with-me">
<a uib-dropdown-toggle>
<i class="fa fa-users fa-fw fa-lg"></i>Shared to me<span class="caret"></span>
<i class="fa fa-users fa-fw fa-lg"></i>Shared with me<span class="caret"></span>
</a>
<ul class="dropdown-menu dropdown-menu-right">
<li class="disabled" ng-show="session.account.shared.length == 0">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,27 +1,30 @@
function certificateButton (dhModal) {
function certificateButton (dhModal, ResourceListSelector) {
return {
template: require('./certificate-button.directive.html'),
restrict: 'E',
scope: {
resources: '='
},
scope: {},
link: $scope => {
$scope.dropDownIsOpen = false
$scope.$watchCollection('resources', resources => {
$scope.allComputers = _.every(resources, {'@type': 'Computer'})
})

function setView () {
$scope.resources = ResourceListSelector.getAllSelectedDevices()
$scope.allComputers = _.every($scope.resources, {'@type': 'Computer'})
}
setView()
ResourceListSelector.callbackOnSelection(setView)

$scope.certificates = [
{
title: 'Erasure',
icon: 'fa-eraser',
description: 'Shows a brief and the details of the hard-drives erased.'
}
]
/*{
/* {
title: 'Receipt',
icon: ResourceSettings('resources:Receive').settings.fa,
description: 'Generates a legal receipt for a receiver to sign.'
}*/
} */
$scope.openDropdown = function ($event) {
if ($scope.allComputers && $scope.resources.length > 0) $scope.dropDownIsOpen = true
$event.stopPropagation() // https://github.com/angular-ui/bootstrap/issues/6038
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ header-nav
user-select: none
.navbar-brand
float: left
padding: 2px $navbar-padding-horizontal
padding: $navbar-padding-vertical $navbar-padding-horizontal
font-size: $font-size-h2
line-height: $headings-line-height
height: $navbar-height
Expand All @@ -22,6 +22,6 @@ header-nav
.navbar-toggle
padding: 5px 10px

@media (min-width: $grid-float-breakpoint)
.navbar > .container, .navbar > .container-fluid
margin-left: -$navbar-padding-horizontal
//@media (min-width: $grid-float-breakpoint)
// .navbar > .container, .navbar > .container-fluid
// margin-left: -$navbar-padding-horizontal
Original file line number Diff line number Diff line change
Expand Up @@ -36,29 +36,9 @@
Placeholders
</a></li>
<li role="menuitem" class="dropdown-header">New group</li>
<li role="menuitem"><a ng-click="open.group('Place')">
<resource-icon resource-type="Place"></resource-icon>
Place
</a></li>
<li role="menuitem"><a ng-click="open.group('Lot')">
<resource-icon resource-type="Lot"></resource-icon>
lot
</a></li>
<li role="menuitem"><a ng-click="open.group('IncomingLot')">
<resource-icon resource-type="Lot"></resource-icon>
Incoming lot
</a></li>
<li role="menuitem"><a ng-click="open.group('OutgoingLot')">
<resource-icon resource-type="Lot"></resource-icon>
Outgoing lot
</a></li>
<li role="menuitem"><a ng-click="open.group('Package')">
<resource-icon resource-type="Package"></resource-icon>
Package
</a></li>
<li role="menuitem"><a ng-click="open.group('Pallet')">
<resource-icon resource-type="Pallet"></resource-icon>
Pallet
Lot
</a></li>
</ul>
</li>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<button id="event-button"
type="button"
class="btn"
ng-class="{'btn-primary': resources.length > 0}"
ng-class="{'btn-primary': selector.getAllSelectedDevices().length > 0}"
uib-dropdown-toggle
>
<i class="fa fa-plus fa-fw"></i>New event<span class="caret"></span>
Expand All @@ -14,7 +14,7 @@
tooltip-placement="right"
tooltip-append-to-body="true"
>
<a ng-click="openModal(eventSettings.type, resources)">
<a ng-click="openModal(eventSettings.type)">
<resource-icon resource-type="{{::eventSettings.type}}" fill-to="true"></resource-icon>
{{::eventSettings.humanName}}
</a>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
function manualEventsButton (ResourceSettings, dhModal) {
function manualEventsButton (ResourceSettings, dhModal, ResourceListSelector) {
return {
template: require('./manual-events-button.directive.html'),
restrict: 'E',
scope: {
resources: '='
},
scope: {},
link: $scope => {
$scope.selector = ResourceListSelector
$scope.events = ResourceSettings('devices:DeviceEvent').getSubResources()
// If the passed-in resources are groups, we won't use the 'devices' field of the event, and otherwise

$scope.openModal = require('./../open-event-modal')(ResourceSettings, dhModal)
$scope.openModal = (eventType) => {
let resources = ResourceListSelector.getAllSelectedDevices()
require('./../open-event-modal')(ResourceSettings, dhModal)(eventType, resources)
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('Test resourceRemove', () => {
success="_success()"
></group-resource-remove>`)

it('enables to remove only groups with presence in at least one device', () => {
it('displays only groups of given resources', () => {
const params = {
resources: [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<div class="btn-group" uib-dropdown is-open="status.isopen">
<button type="button"
class="btn"
ng-class="{'btn-primary': resources.length > 0}"
class="btn btn-primary"
uib-dropdown-toggle

uib-popover-template="popover.templateUrl"
Expand All @@ -14,7 +13,7 @@
ng-click="closePopover()"
>
<span class="">
<i class="fa fa-folder fa-fw"></i>Organize <span class="caret"></span>
<i class="fa fa-folder fa-fw"></i>Edit lots<span class="caret"></span>
</span>
</button>
<ul uib-dropdown-menu role="menu" class="dropdown-menu-right">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,30 @@ function groupResourceButton () {
* @ngdoc directive
* @name groupResourceButton
* @description Button with drop-down to add, move and remove resources within groups.
* @param {'resource'[]} resources - The resources.
* @param {string} resourceType - The type of the resources.
* @param {expression} success - Callback executed when an action has been executed successfully.
*/
return {
templateUrl: require('./__init__').PATH + '/group-resource-button.directive.html',
template: require('./group-resource-button.directive.html'),
restrict: 'E',
scope: {
resources: '=',
resourceType: '@',
success: '&'
success: '&',
getResources: '&',
registerToResourcesUpdate: '&',
resource: '='
},
link: $scope => {
let menu = [
function setView () {
$scope.resources = $scope.getResources()
}
if ($scope.resource) {
$scope.resources = [ $scope.resource ]
} else {
setView()
$scope.registerToResourcesUpdate({ callback: setView })
}
$scope.menu = [
// {title: 'Lot', group: 'Lot', resourceTypes: ['Package', 'Device', 'Lot', 'Pallet']},
{
label: 'Add to lot',
Expand All @@ -37,59 +47,7 @@ function groupResourceButton () {
tooltip: `Removes the items from a lot.`,
fa: 'fa-minus'
}
// {title: 'Package', group: 'Package', resourceTypes: ['Device', 'Package']},
// {
// label: 'Move to package',
// action: 'move',
// group: 'Package',
// resourceTypes: ['Device'],
// tooltip: 'Replaces the package of the items.',
// fa: 'fa-long-arrow-right'
// },
// {
// label: 'Remove from packages',
// action: 'remove',
// group: 'Package',
// resourceTypes: ['Device'],
// tooltip: 'Removes the items from their packages.',
// fa: 'fa-minus'
// },
// {title: 'Place', group: 'Place', resourceTypes: ['Package', 'Device', 'Lot', 'Place', 'Pallet']},
// {
// label: 'Move to place',
// action: 'move',
// group: 'Place',
// resourceTypes: ['Package', 'Device', 'Lot', 'Place', 'Pallet'],
// tooltip: 'Replaces the place of the items.',
// fa: 'fa-long-arrow-right'
// },
// {
// label: 'Remove from places',
// action: 'remove',
// group: 'Place',
// resourceTypes: ['Package', 'Device', 'Lot', 'Place', 'Pallet'],
// tooltip: 'Removes the items from their places.',
// fa: 'fa-minus'
// },
// {title: 'Pallet', group: 'Pallet', resourceTypes: ['Device', 'Package']},
// {
// label: 'Move to pallet',
// action: 'move',
// group: 'Pallet',
// resourceTypes: ['Device', 'Package'],
// tooltip: 'Replaces the pallet of the items.',
// fa: 'fa-long-arrow-right'
// },
// {
// label: 'Remove from pallets',
// action: 'remove',
// group: 'Pallet',
// resourceTypes: ['Device', 'Package'],
// tooltip: 'Removes the items from their pallet.',
// fa: 'fa-minus'
// }
]
$scope.menu = _(menu).remove(menuItem => _.includes(menuItem.resourceTypes, $scope.resourceType)).value()

$scope.popover = {
templateUrl: require('./__init__').PATH + '/group-resource-button.popover.template.html',
Expand Down

This file was deleted.

28 changes: 0 additions & 28 deletions app/common/components/place/create-place/create-place.directive.js

This file was deleted.

This file was deleted.

41 changes: 0 additions & 41 deletions app/common/components/place/edit-place/edit-place.directive.js

This file was deleted.

24 changes: 0 additions & 24 deletions app/common/components/place/index.js

This file was deleted.

8 changes: 0 additions & 8 deletions app/common/components/place/place-icon.directive.js

This file was deleted.

20 changes: 0 additions & 20 deletions app/common/components/place/place-nav.directive.html

This file was deleted.

Loading