Skip to content

Commit 658e953

Browse files
yuvalbldanielsh28SejoB9Syncopationadele-angel
authored
v0.2.1 (#584)
* Update deploy-master.yml * Update deploy-euro.yml * alter arrow color to black (#496) * Update and rename deploy-euro.yml to deploy-demo.yml * Update deploy-dev.yml * Update deploy-master.yml * change euro env to demo update readme * add demo env file (#500) update readme * Update deploy-demo.yml * Update README.md * Update deploy-dev.yml * Update deploy-demo.yml * Update deploy-master.yml * fix rtl layout (#507) * refactor card change title source (#486) * change title * added IWidgetDataBase interface * add optional to title key * add optional to title key * fix- change ReactLeafletGoogleLayer map Type (#509) * Refactor 492 add text in the bottom of each widget (#508) * added footer component and date comment from meta response on footer, also changed positon of action buttons * fix review comments and added prettierrc file and deleted prettier config from packege.json * vars removes, also removed REACT_APP_ANYWAY_APP_BASE_URL- an unused var (#537) * Refactor 484 card dialog box remove landscape functionality (#506) * refactor-change layout functionality to size * refactor-chnaged sizeOption to number type * refactor cardEditorDialog remove empty box * Feat 498 most severe accidents table modify (#536) * Column added, color removed, title changed * Order accidents by date (ascending) * format date Co-authored-by: sejoB <[email protected]> * fix i18 warnings (#542) * [Fix-497]-head collisions comparison (#512) * rm pie chart angle * changed text * update sb, added HeadOnCollisionsComparisonWidget story * added WidgetsTemplate story * moved small pie that hides big pie * rm unused code * start pie from 12 oclock instead of 15 * changed js files to ts, rm unused code Co-authored-by: Almog Langleben <[email protected]> * Feat-503 create operational cards list (#538) * feat add operationCards list with process.env * refactor widget data service as per PR comment * change REACT_APP_SHOW_ONLY_OPER_CARDS to false * refactor process.env- showOnlyOperCards * refactor processWidgetsFetchResponse * refactor getOperWidgetData * Bump axios from 0.19.2 to 0.21.1 (#549) Bumps [axios](https://github.com/axios/axios) from 0.19.2 to 0.21.1. - [Release notes](https://github.com/axios/axios/releases) - [Changelog](https://github.com/axios/axios/blob/v0.21.1/CHANGELOG.md) - [Commits](axios/axios@v0.19.2...v0.21.1) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * [Feat-530] Add info icon to card (#545) * add info icon to card (#530) * add tooltip to info icon (#530) * hide info icon on card (#530) * resolve tooltip warning (#530) * refactor #504 textView (#547) * hotfix REACT_APP_SHOW_ONLY_OPER_CARDS (#556) * location map - tooltip location is misplaced (#555) * Refactor 490 remove text at road (#566) * extract severity image to seperate component, add functionality to find single type and display severity image for that type, closes #447 * refactor #504 textView * added regexp to cut road prefix * added regexp * removed redundant textview file Co-authored-by: Yael Luria <[email protected]> * Refactor 491 textview add road on top left (#565) * extract severity image to seperate component, add functionality to find single type and display severity image for that type, closes #447 * refactor #504 textView * fix redundant components and interfaces * added additional fixes * change widget header variant * fix merge issues Co-authored-by: Yael Luria <[email protected]> * [Feat-526] add social share buttons (#550) * install react-share and create SocialShare Atom * Add SocialShare below Cards * convert styling to use Box * [Feat-489] Show description on show more (#546) * show description on show more (#489) * show description on show more only on title and description mismatch (#489) * show only description on show more (#489) * add border to table closes #557 (#570) * hotfix injured_count_per_age_group * hotfix InjuredCountPerAgeGroupPieWidget * Refactor 490 remove text at road (#569) * extract severity image to seperate component, add functionality to find single type and display severity image for that type, closes #447 * refactor #504 textView * added regexp to cut road prefix * added regexp * removed redundant textview file * get segment text from different field and removed regexp implementation * fixes following review Co-authored-by: Yael Luria <[email protected]> * implement widget injured accidents with pedestrian (#563) * implement widget injured accidents with pedestrian * add legend & refactor per comments * [Refactor-411] update packages (#578) * npm update and fix ts errors * change ts fixing implementation * Refactor 495 pixel perfect design (#571) * extract severity image to seperate component, add functionality to find single type and display severity image for that type, closes #447 * refactor #504 textView * added regexp to cut road prefix * added regexp * removed redundant textview file * get segment text from different field and removed regexp implementation * pixel perfect * pixel perfect additional work * added compatibility with single type case * adjust positions and additional colors * changes following review Co-authored-by: Yael Luria <[email protected]> * [Fix-553] Head on collision design review (#567) * background image margin (#553) * pie chart shadow (#553) * card content alignment (#553) * adjust shadow (#553) * CR * CR (#553) * center label for single slice (#553) * lint (#553) * use theme spacing Co-authored-by: yuvalbl <[email protected]> * update operational widgets list (#581) * v0.2.0 * hotfix getOperWidgetData Co-authored-by: danielsh28 <[email protected]> Co-authored-by: SejoB <[email protected]> Co-authored-by: Eyal Levi <[email protected]> Co-authored-by: Adele Angel <[email protected]> Co-authored-by: sejoB <[email protected]> Co-authored-by: Almog Langleben <[email protected]> Co-authored-by: Almog Langleben <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Yoav Porat <[email protected]> Co-authored-by: Yael Luria <[email protected]> Co-authored-by: Yael Luria <[email protected]>
1 parent 2fa025e commit 658e953

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

src/const/cards.const.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
import { WidgetName } from '../models/WidgetName';
2+
13
// cards is this least will be avaiaable for operation environments (all non-staging environments)
2-
export const operationalCards = [
3-
'accident_count_by_severity',
4-
'most_severe_accidents_table',
5-
'most_severe_accidents',
6-
'head_on_collisions_comparison_percentage',
4+
export const operationalCards: WidgetName[] = [
5+
WidgetName.accident_count_by_severity,
6+
WidgetName.most_severe_accidents_table,
7+
WidgetName.most_severe_accidents,
8+
WidgetName.head_on_collisions_comparison_percentage,
79
];

src/services/widgets.data.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ export const fetchWidgets = async (id: number, yearAgo?: number): Promise<ILocat
3434
function processWidgetsFetchResponse(response: any) {
3535
const meta = response.data.meta;
3636
let widgets = response.data.widgets;
37+
widgets = getVerifiedWidgetsData(widgets);
38+
widgets = addWidgetsVariants(widgets);
3739

3840
if (showOnlyOperCards) {
3941
widgets = getOperWidgetData(widgets);
4042
}
41-
widgets = getVerifiedWidgetsData(widgets);
42-
widgets = addWidgetsVariants(widgets);
4343
return { meta, widgets };
4444
}
4545

0 commit comments

Comments
 (0)