Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[frontend] Adapt overview of objects lowering ID importance (#1781) #2489

Merged
merged 4 commits into from
Nov 9, 2022

Conversation

SamuelHassine
Copy link
Member

@codecov
Copy link

codecov bot commented Oct 26, 2022

Codecov Report

Base: 72.25% // Head: 72.25% // No change to project coverage 👍

Coverage data is based on head (d98277c) compared to base (c7c35e8).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2489   +/-   ##
=======================================
  Coverage   72.25%   72.25%           
=======================================
  Files         250      250           
  Lines       16050    16050           
  Branches     2580     2580           
=======================================
  Hits        11597    11597           
  Misses       3867     3867           
  Partials      586      586           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -131,9 +131,14 @@ const ThemeDark = (
borderTopRightRadius: 'inherit',
},
pre: {
fontFamily: 'Consolas, monaco, monospace',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Est-ce que l'on a un système de variable pour centraliser les fonts ? (et est-ce que ce serait utile ?)
Afin d'utiliser la variable $font-consolas et $font-IBM pour '"IBM Plex Sans", sans-serif'

},
popover: {
float: 'left',
marginTop: '-13px',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On a pas mal de marginTop: '-13px' dans le code, je sais pas si du coup en passant à 12 ce sera bien alignés avec tous les autres composants ? (j'ai aucune idée de là où ils s'affichent ->
image

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

En effet c'est le cas, Je remet a 13 :)

@@ -2,3 +2,5 @@ import * as R from 'ramda';

export const isNotEmptyField = <T>(field: T | null | undefined): field is T => !R.isEmpty(field) && !R.isNil(field);
export const isEmptyField = <T>(field: T | null | undefined): field is null | undefined => !isNotEmptyField(field);

export const copyToClipboard = (text: string) => navigator.clipboard.writeText(text);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je n'ai pas l'impression que cette fonction soit utilisée

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

En effet :) Je vais modifier pour l'utiliser

@@ -2,3 +2,5 @@ import * as R from 'ramda';

export const isNotEmptyField = <T>(field: T | null | undefined): field is T => !R.isEmpty(field) && !R.isNil(field);
export const isEmptyField = <T>(field: T | null | undefined): field is null | undefined => !isNotEmptyField(field);

export const copyToClipboard = (text: string) => navigator.clipboard.writeText(text);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't seems to be used

color: '#ffffff !important',
background: `${accent || '#01478d'} !important`,
},
'pre.light': {
fontFamily: 'Consolas, monaco, monospace',
background: `${nav || '#071a2e'} !important`,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note for the future: we should prevent '!important'

@richard-julien richard-julien merged commit 52469d4 into master Nov 9, 2022
@richard-julien richard-julien deleted the issue/1781 branch November 9, 2022 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

STIX ID standard is useless to analysts but have the most visible spot in item pages
4 participants