socialappslab / appcivist-pb-client

Web Client of AppCivist, for the instance of Participatory Budgeting
Other
4 stars 2 forks source link

Add links to regular notifications #1048

Open cdparra opened 6 years ago

cdparra commented 6 years ago

Use signal.data to provide links in REGULAR notifications

Here is an example of the data object:

"data": {
          "origin": "3de5a9f3-232d-4527-83b6-c850aeaf7388",
          "signaled": false,
          "eventName": "NEW_CONTRIBUTION_PROPOSAL",
          "originName": "Vallejo Participatory Budget 2017 Cycle 5",
          "originType": "CAMPAIGN",
          "resourceText": "<p>The objective of this project is to create an outdoor landscape area surrounding different locations within the City of Vallejo.&nbsp;&nbsp; Our targeted area will transform a location within North Vallejo, South Vallejo and Central Vallejo – Florence Douglas Senior Center.&nbsp; These landscape centers will consist of drought resistant gardens, with sustainable native plants, which the community could enjoy at their leisure.&nbsp; In addition, the areas would have kiosks with information regarding the plants, efficient irrigation systems and layout of designs.</p> \n<p>The north and south locations would serve to enhance open areas that currently are used for public and community activities.&nbsp; Our citizens have voiced a need to create areas to uplift the visual impacts of our community and at the same time, we are looking to enhance our property values and city image.</p> \n<p>The Douglas Senior Center would serve as a source of education regarding drought resistant plants, efficient irrigation systems and designs.&nbsp; Encouraging our community to create and build these smart, greener landscape designs in their own property.&nbsp; This specific location would serve as a “teaching classroom” for the community with information regarding plants, irrigation systems and designs and the center currently offers classes educating our citizens free of charge.</p> \n<p>All three locations will have approximately 3,000 square feet, for a total of approximately 12,000 square feet of beautification and garden designs.&nbsp; In addition to creating smarter, greener landscape, designs we are helping reduce our turf footprint.</p>",
          "resourceType": "PROPOSAL",
          "resourceUUID": "8c0cdc6f-eb18-4fde-8501-d4195bbcc436",
          "resourceTitle": "Greener, Smarter Landscape Centers",
          "associatedUser": "Alyssa undefined",
          "notificationDate": 1517801612176
        }
      }
    },
    {
      "creation": "2018-02-21 21:39 PM GMT",
      "lastUpdate": "2018-02-21 21:39 PM GMT",
      "lang": "en-US",
      "removed": false,
      "id": 26,
      "read": false,
      "signal": {
        "creation": "2018-02-05 00:47 AM GMT",
        "lastUpdate": "2018-02-05 00:47 AM GMT",
        "lang": "en-US",
        "removed": false,
        "id": 1849,
        "spaceType": "CAMPAIGN",
        "signalType": "REGULAR",
        "eventId": "NEW_CONTRIBUTION_PROPOSAL",
        "title": "[AppCivist] New PROPOSAL in Vallejo Participatory Budget 2017 Cycle 5",
        "data": {
          "origin": "3de5a9f3-232d-4527-83b6-c850aeaf7388",
          "signaled": false,
          "eventName": "NEW_CONTRIBUTION_PROPOSAL",
          "originName": "Vallejo Participatory Budget 2017 Cycle 5",
          "originType": "CAMPAIGN",
          "resourceText": "<p>To establish a network of after-school and summer programs offering a menu of various science, technology, engineering, art and math (STEAM) based programs for Vallejo youth.&nbsp; These programs will provide skills to prepare students for careers or further higher learning opportunities as well as help them build competencies in teamwork, conflict resolution and entrepreneurial skills.&nbsp; `</p> \n<p>The after-school STEAM programs will utilize existing facilities within the Vallejo City</p> \n<p>Unified School District STEAM or Engineering/Robotics/Media/Computer classroom/lab spaces at each school campus. The summer program will be carried out by the local non-profit Immersive Learning Center.&nbsp; Additional locations for field trips and work-based learning experiences include community art and makerspace labs or specialized skill/trade industries.&nbsp;</p> \n<p>Participants encompass the diverse community of Vallejo, with priority for low-income families.&nbsp; Age groups served include students at all VCUSD sites and within the community.&nbsp;</p> \n<p>&nbsp;</p> \n<p>The after-school STEAM program activities will provide three elements offered by the Makerspace model:&nbsp; 1) Community of peers; 2) opportunity to design; and 3) the environment to create.&nbsp;</p> \n<p>&nbsp;</p> \n<p>Programs will benefit participants in the following areas:</p> \n<p>&nbsp;</p> \n<p>·&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Learning based on the Next Generation Science Standards (NGSS) and the Common Core State Standards (CCSS) for math, English language arts, and social studies</p> \n<p>·&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Experience in curriculum and competition standards, (e.g. Project Lead the Way (PLTW), VEX Robotics, First Robotics Competition (FRC), National Academy Foundation (NAF), etc.) as well as “high tech” or specialized industry skills&nbsp;&nbsp;&nbsp;&nbsp;</p> \n<p>·&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Art programs offering media, music, dance, theater, photography, meditation, yoga, boxing, nutrition or other arts/physical/wellness activities.&nbsp;</p> \n<p>·&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Mathematics concepts and vocabulary integrated throughout each activity or with specific programs, such as financial literacy.</p> \n<p>·&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Practice career technical education skills across multiple specialties</p> \n<p>·&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Build teamwork, communication and service skills</p> \n<p>·&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Prepare learners for collaborative, engaging work environments</p> \n<p>·&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Provide safe spaces for youth and adults to mentor, coach and intern</p> \n<p>·&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Leverage community and parent resources to support education efforts</p>",
          "resourceType": "PROPOSAL",
          "resourceUUID": "8abe10b3-942b-4035-84ad-d8e6e9b7a23b",
          "resourceTitle": "After School STEAM Makerspaces: Science and Art",
          "associatedUser": "Alyssa undefined",
          "notificationDate": 1517791629902
        }

From this object, you should use: "resourceType": "PROPOSAL", "resourceUUID": "8c0cdc6f-eb18-4fde-8501-d4195bbcc436", "resourceTitle": "Greener, Smarter Landscape Centers",

If resourceType is PROPOSAL => link should be to the proposal page /assembly/:uuid/campaign/:cuuid/group/:guuid/contribution/:resourceUUID

yolile commented 3 years ago

This has not been implemented