-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [SDAN-639] Notifications dropdown was not fully visible (#941) * [SDAN-628] Improve email subject when watching ad-hoc planning item (#942) * [SDAN-628] Improve email subject when watching ad-hoc planning item * added to default slugline * [SDAN-586] Make the 'Superdesk Subscriber Id' column visibility configurable in the Company list (#944) * [SDAN-631] The 'PRINT REPORT' action produces a page without any report data (#945) * [SDAN-624] Display Take Key when Downloading, Copying, Printing and Sharing wire items (#943) * [SDAN-624] Display Take Key when Downloading, Copying, Printing and Sharing wire items * added helper comments * removed unwanted test code * [SDAN-630] Use base class for Web and NewsAPI apps (#950) * [SDAN-630] Use base class for Web and NewsAPI apps * * Fix bootstrapping unit and behave test apps * * Raise exception on NewsroomNewsAPI.run if NEWS_API_ENABLED=False * [SDAN-606] (fix): API token expiry stored as string instead of datetime (#946) * fix(push): Exception raised when receiving new completed coverages (#948) * [SDAN-544][SDAN-561] IP whitelisting feature for News API (#947) * [SDAN-544][SDAN-561] IP whitelisting feature for News API * UI component changes * restore original news_api_enabled setting * UX changes * restore News API default setting * fix(coverage-href): Catch all exceptions when generating coverage href (#949) * [SDAN-630] (fix): incorrect app import for manage.py (#953) * [SDAN-630] (fix): incorrect app import for manage.py * * Fix installing google-chrome-stable * [SDAN-560] Rate Limiting for News API (#951) * [SDAN-560] Rate Limiting for News API * corrected test cases * behave test cases * [SDAN-563] News API Audit (#952) * [SDAN-632] ContentActivity report (#954) * [SDAN-632] ContentActivity report * * Fix flake8 errors * [SDAN-562] Company API Usage report (#955) * [SDAN-562] COmpany API Usage report * changes to elastic query * fixed test case * changed schema * [SDAN-633] Formatting monitoring outputs for alerts, exports, share and print (#957) * [SDAN-633] Formatting monitoring outputs for alerts, exports, share and print * added package installation * added test case assertions * fix(build): Add PyRTF and xhtml2pdf to setup.py (#959) * build fix while using _expand_contact_info in json_event formatter (#963) * build fix while using _expand_contact_info in json_event formatter * modified planning branch * [SDAN-635] Break words meaningfully on location display in Agenda (#962) * [SDAN-638] Show 'View Content' to Graphic coverges (#961) * Customizing RTF and PDF files to monitoring. (#960) * [SDAN-633] Allow customisation of monitoring logo (#964) * [SDAN-643][SDAN-644]'Reason for' not being displayed for Cancelled Coverages in Agenda, Coverage ednote not seen (#966) * fix(pytest): Cyclic import error when running single test file (#967) * [SDAN-636] Advertise Scheduled Updates in Newsroom Agenda (#968) * [SDAN-634] Changes to Agenda tiles displayed on Newsroom wire stories (#965) * [SDAN-634] Changes to Agenda tiles displayed on Newsroom wire stories * minor changes to UI * UI style change * [SDAN-647] Add a 'Layout' dropdown option when downloading items from monitoring (#969) * [SDAN-655] Previewing an agenda item with a coverage crashes react (#970) * [SDAN-655] Previewing an agenda item with a coverage crashes react * refactor * fix(tests): Use same werkzeug version as eve 0.7.8 (#973) * [SDAN-648] Bug fixes around Monitoring (#971) * [SDAN-634] Show only other coverages in Agenda tile on wire items (#972) * [SDAN-648] Minor style changes to PDF reports in Monitoring (#975) * [SDAN-649] Share/delete icons not showing in my topic pages (#976) * [SDAN-654] ContentActivity should report on all versions (#977) * Add 'Take Key' column to the output * [SDAN-651] Reduce size of heading in Agenda Watch email (#978) * [SDAN-650][SDAN-656] Story updates are not triggering emails for watched coverages, 'Forbidden' error raised when unwatching certain coverages (#979) * [SDAN-648] Line spacings for monitoring PDF report (#980) * [SDAN-656] Coverage update repeated in watched coverage email (#981) * [SDAN-658] fix duplicate take key in slugline view elements (#982) * [SDAN-654] Add 'anpa_take_key' to elastic query response for ContentActivity (#984) * [SDAN-663] Agenda information not shown on Wire Preview/Detail (#985) * [SDAN-663] Agenda information not shown on Wire Preview/Detail * changed to elastic query * [SDAN-662] Change the way attachments are send to Celery tasks for Monitoring (#986) * [SDAN-663] Agenda Tile not opening Agenda item on click (#987) * [SDAN-665] Wire previews text width becomes too narrow if related coverage slugline is too long (#988) * [SDAN-665] Wire previews text width becomes too narrow if related coverage slugline is too long * removed text ellipsis around slugline * [SDAN-653] Improve product query generation for endpoint services (#974) * [SDAN-558] News API NewsFeed endpoint (#990) * fix generating renditions for png images (#994) it's not possible to save rgba picture as jpg via PIL * [SDAN-659] Hourly monitoring alerts should send emails on the hour (#991) * [SDAN-659] Hourly monitoring alerts should send emails on the hour * fixed test case * [SDAN-652] View and manage Watched Coverages (#993) * [SDAN-660] Cannot set News API expiry to 'Never' (#995) * [SDAN-661] Use Newsroom.Resource|Service for resource classes (#997) * [SDAN-661] Use Newsroom.Resource|Service for resource classes * Fixed monitoring server unit tests * [SDAN-667] Cannot unwatch coverages/Agenda for historic data (#1000) * [SDAN-666] Use 'must' instead of 'should' for Agenda date queries (#999) * [SDAN-666] Sort field for agenda should be dates.start (#1002) * [SD-149] - image downloads for stories (#1011) [SD-149] - image downloads for stories * [SDCP-201] - Removing image if the update doesn't have it (#1025) * [SDCP-201] - Removing image if the update doesn't have it * TBC Planning Items were shown in wrong order when Feature/Top story filter was ON (#1022) * [SDAN-668] (fix): Attribute error when accessing app.settings (#1026) Co-authored-by: vikas <[email protected]> Co-authored-by: MarkLark86 <[email protected]> Co-authored-by: Petr Jašek <[email protected]>
- Loading branch information
1 parent
f59bf8e
commit 34c173d
Showing
169 changed files
with
7,114 additions
and
2,221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import classNames from 'classnames'; | ||
import { get, isEmpty } from 'lodash'; | ||
|
||
import {gettext} from 'utils'; | ||
import AgendaName from './AgendaName'; | ||
import AgendaMetaTime from './AgendaMetaTime'; | ||
import AgendaLocation from'./AgendaLocation'; | ||
|
||
const AgendaEventInfo = ({item, onClick}) => { | ||
const event = get(item, 'event'); | ||
if (isEmpty(event)) { | ||
return null; | ||
} | ||
|
||
return ( | ||
<div className={classNames('coverage-item mt-3', {'coverage-item--clickable': onClick})} onClick={onClick} | ||
title={onClick ? gettext('Open Agenda in new tab') : onClick}> | ||
<div className='coverage-item__row'> | ||
<AgendaName item={item} noMargin small/> | ||
</div> | ||
<div className='coverage-item__row wire-articles__item__meta-info m-0'> | ||
<AgendaMetaTime item={item} onlyDates /> | ||
</div> | ||
<div className='coverage-item__row coverage-item__row--gray'> | ||
<AgendaLocation item={item} /> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
AgendaEventInfo.propTypes = { | ||
item: PropTypes.object, | ||
onClick: PropTypes.func, | ||
}; | ||
|
||
export default AgendaEventInfo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import React, {Fragment} from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import classNames from 'classnames'; | ||
|
||
import {hasLocation, getLocationString} from '../utils'; | ||
|
||
export default function AgendaLocation({item, isMobilePhone, border}) { | ||
if (!hasLocation(item)) { | ||
return null; | ||
} | ||
|
||
return ( | ||
<Fragment> | ||
<span className='mr-2'> | ||
<i className='icon-small--location icon--gray' /> | ||
</span> | ||
|
||
{isMobilePhone ? ( | ||
<span>{getLocationString(item)}</span> | ||
) : ( | ||
<span className={classNames('mr-2', | ||
{'wire-articles__item__icons--dashed-border': border})}> | ||
{getLocationString(item)} | ||
</span> | ||
)} | ||
</Fragment> | ||
); | ||
} | ||
|
||
AgendaLocation.propTypes = { | ||
item: PropTypes.object.isRequired, | ||
isMobilePhone: PropTypes.bool, | ||
border: PropTypes.bool, | ||
}; |
Oops, something went wrong.