Skip to content

Custom-Elements/glg-add-to-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

Polymer component for adding one or more CMs to a single consult, survey, meeting, or event as selected by the user via cerca/hummingbird typeahead. It relies on glue code to supply the council member ID(s) via this element's published attribute.

The current use case is the Add To Consultation button on the new Advisor Details page.

Developing

git clone git@github.com:Custom-Elements/glg-add-to-project.git

npm install

Running demo

    GLGers BEWARE:

    As is, if you use the demo to attach a CM to a project, it will,
    no-foolin', attach real CMs to real projects in
    the real production database.  Clean-up after yourself!

    i.e., unattach said CMs from said project via the web UI.

    (non-GLG'ers can ignore this warning, since you will/can not be authenticated.)

locally

Begin by executing npm test from the root of the repo

Then,

  • open Chrome to http://localhost:10000/demo.html

Alternatively,

  • edit your /etc/hosts to add an entry like 127.0.0.1 consultations.glgroup.com
  • then open Chrome to http://consultations.glgroup.com:1000/demo.html

remote

The component needs you to be auth'd to services.glgresearch.com to figure out who you are using glg-current-user. So, we've set-up a version of the ui-toolkit website running behind auth.

Take a look at https://services.glgresearch.com/ui-toolkit-auth/node_modules/glg-add-to-project/demo.html?cmIds=596623,582472

To Do

  • Use dbSockets to add Mosaic Lists as an option under "project type" - which should probably be renamed now. Stakeholder: Ariela Rosenberg
  • Persist HB indexes with lastUpdate datetime to local storage for faster subsequent loading
  • Get designer feedback on GUI style

Attributes

cmIds

The IDs of council members to be added to the selected project. Expected to be a comma separated string of ints. Defaults to null.

appName

The name to use to identify the application or feature used in ATC for tracking dashboard purposes. By default, this is set to unknown.

hideUI

Toggles whether to display a UI at all. If not included, it is displayed. If included as an attribute on the element, the component is available as an invisible service.

hideOwnerFilter

Toggles whether to display the project owner filter in the UI. If not included, it is displayed.

hideProjType

Toggles whether to display the project type filter in the UI. If not included, it is displayed.

hideExperts

Toggles whether to display the Council Members to-be-added in the UI. If not included, it is displayed.

rmPersonId

The person ID of the RM taking the ATC action on these experts on this selected project. By default, this is extracted from the glg-current-user component.

trackUrl

URL to the tracking service REST endpoint. Expected to include the http/https protocal and include the trailing slash but not the data bits. E.g., trackUrl="https://tracking.glgroup.com/track/" (required)

epiStreamUrl

URL to the Epiquery2 web socket endpoint. Expected to include the websocket protocol. E.g., epiStreamUrl="wss://epistream.mydomain.com/sockjs/websocket" (required)

cercaUrl

URL to the cerca web service endpoint. Expected to include the websocket protocol. E.g., cercaUrl="https://services.glgresearch.com/cerca" (required)

Events

atp-ready

fired as soon as hummingbird indexes are built and available for searching

atp-started

fired when an expert is about to be added to a project

atp-succeeded

fired after an expert was successfully added to a project

atp-failed

fired after failing to add an expert to a project

About

Add one or more experts to a GLG project or list.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors