Skip to content

Commit

Permalink
Binder 156 (#160)
Browse files Browse the repository at this point in the history
* remove p and v

* remove work alias

* fetch work title and display

* short main page
  • Loading branch information
dongliu authored Jul 15, 2023
1 parent 71e94fc commit 47d87fd
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 52 deletions.
1 change: 0 additions & 1 deletion model/binder.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ const logger = require('../lib/loggers').getLogger();
*/

const work = new Schema({
alias: String,
refType: {
type: String,
required: true,
Expand Down
4 changes: 1 addition & 3 deletions public/javascripts/binder-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,9 @@ $(function() {
var workAoColumns = [
removeColumn,
sequenceColumn,
priorityColumn,
valueColumn,
colorColumn,
workLinkColumn,
aliasColumn,
titleColumn,
addedByColumn,
addedOnColumn,
ownerColumn,
Expand Down
4 changes: 1 addition & 3 deletions public/javascripts/binder-viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@ $(function() {
selectColumn,
workLinkColumn,
sColumn,
pColumn,
vColumn,
cColumn,
aliasColumn,
titleColumn,
ownerColumn,
deviceColumn,
tagsColumn,
Expand Down
10 changes: 5 additions & 5 deletions routes/binder.js
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ module.exports = function(app) {
$in: tids,
},
},
'mapping devices tags locations manPower status createdBy owner sharedWith finishedInput totalInput'
'title mapping devices tags locations manPower status createdBy owner sharedWith finishedInput totalInput'
)
.lean()
.exec();
Expand All @@ -649,7 +649,7 @@ module.exports = function(app) {
$in: pids,
},
},
'tags status createdBy owner finishedValue inProgressValue totalValue finishedInput totalInput'
'title tags status createdBy owner finishedValue inProgressValue totalValue finishedInput totalInput'
)
.lean()
.exec();
Expand All @@ -664,9 +664,9 @@ module.exports = function(app) {

return res.status(200).json({
works: merged,
inputProgress: inputProgressHtml({ binder: binder }),
travelerProgress: travelerProgressHtml({ binder: binder }),
valueProgress: valueProgressHtml({ binder: binder }),
inputProgress: inputProgressHtml({ binder }),
travelerProgress: travelerProgressHtml({ binder }),
valueProgress: valueProgressHtml({ binder }),
});
}
);
Expand Down
1 change: 0 additions & 1 deletion utilities/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@ const binderUtil = {
if (!works.id(item._id)) {
newWork = {
_id: item._id,
alias: item.title,
refType: type,
addedOn: Date.now(),
addedBy: userId,
Expand Down
39 changes: 0 additions & 39 deletions views/main.jade
Original file line number Diff line number Diff line change
Expand Up @@ -35,45 +35,6 @@ block content
h2 Organize
//var shareUsers = !{viewConfig.shareUsers};
var shareGroups = !{viewConfig.shareGroups};
if (! (!viewConfig.shareUsers && !viewConfig.shareGroups && !viewConfig.transferOwnership))
hr.soften
h2 Ownership
.row-fluid
if (viewConfig.transferOwnership)
.span4
h2.text-info
i.fa.fa-user.fa-4x
h3 Take Responsibility
p.main-byline The owner is responsible to take part in and oversee the process from plan to delivery. The ownership is transferable.
if (viewConfig.shareGroups || viewConfig.shareUsers)
.span4
h2.text-info
i.fa.fa-user-plus.fa-4x
h3 Share for Collaboration
p.main-byline The owner shares items with colleagues and groups of colleagues in the organization. Sharing brings connection, transparency, and attention.
.span4
h2.text-info
i.fa.fa-users.fa-4x
h3 Powered by Co-workers
p.main-byline Accomplished works are recorded and traceable. Co-workers are acknowledged.
hr.soften
h2 Performance
.row-fluid
.span4
h2.text-info
i.fa.fa-sort-numeric-asc.fa-4x
h3 Prioritize Works
p.main-byline Works are organized by sequence and priorities.
.span4
h2.text-info
i.fa.fa-flag.fa-4x
h3 Attention
p.main-byline Works can be assigned to different levels of attentions. This helps identify the bottlenecks.
.span4
h2.text-info
i.fa.fa-diamond.fa-4x
h3 Earn Values
p.main-byline Every piece of work has a value. The earned and in-progress values are tracked.
hr.soften

block js
Expand Down

0 comments on commit 47d87fd

Please sign in to comment.