Skip to content

Commit 2f3c61c

Browse files
Merge pull request #23 from maryia-matskevich-deriv/maryia/bot_builder_toolbar
[APP SEPARATION] [BOT] / maryia / feat: make work journal tab of run panel, adapt filters, text content
2 parents 6cad402 + 1095c63 commit 2f3c61c

File tree

10 files changed

+34
-21
lines changed

10 files changed

+34
-21
lines changed

public/assets/icons/IcFilter.svg

Lines changed: 1 addition & 0 deletions
Loading

src/components/download/download.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@
44
padding: 12px;
55
padding-left: 16px;
66
border: solid 1px var(--general-section-1);
7-
8-
.download__button,
97
&__view-detail-button {
108
height: 3.2rem;
119
}
1210
}
1311
}
12+
13+
.run-panel__info {
14+
.download__button {
15+
height: 3.2rem;
16+
}
17+
}

src/components/journal/journal-components/filters.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,11 @@ const Filters = ({
1616
return (
1717
<Checkbox
1818
key={item.id}
19-
classNameLabel={classNameLabel}
20-
value={hasFilter}
21-
defaultChecked={hasFilter}
19+
labelClassName={classNameLabel}
20+
checked={hasFilter}
2221
label={item.label}
2322
onChange={() => filterMessage(!hasFilter, item.id)}
24-
/>
23+
name={item.id} />
2524
);
2625
})}
2726
</div>

src/components/journal/journal-components/journal-tools.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const JournalTools = ({
2424
<div className='journal-tools__container'>
2525
<Download tab='journal' />
2626
<div ref={toggle_ref} className='journal-tools__container-filter' onClick={toggleFilterDialog}>
27-
<Text size='xs' className='journal-tools__container-filter--label'>
27+
<Text size='sm' weight='normal' className='journal-tools__container-filter--label'>
2828
<Localize i18n_default_text='Filters' />
2929
</Text>
3030
<Icon icon='IcFilter' size={16} />

src/components/journal/journal.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@
6565
&--label {
6666
margin-inline-end: 0.8rem;
6767
}
68+
69+
.deriv-text {
70+
font-weight: lighter;
71+
}
6872
}
6973
}
7074
}

src/components/journal/journal.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,41 +53,41 @@ const Journal = observer(() => {
5353
) : (
5454
<>
5555
{contract_stage >= contract_stages.STARTING &&
56-
!!Object.keys(checked_filters as TCheckedFilters).length &&
57-
!unfiltered_messages_length &&
58-
is_stop_button_visible ? (
56+
!!Object.keys(checked_filters as TCheckedFilters).length &&
57+
!unfiltered_messages_length &&
58+
is_stop_button_visible ? (
5959
<JournalLoader is_mobile={is_mobile} />
6060
) : (
6161
<div className='journal-empty'>
6262
<Icon icon='IcBox' className='journal-empty__icon' size={64} color='secondary' />
6363
<Text
6464
as='h4'
65-
size='xs'
65+
size='sm'
6666
weight='bold'
6767
align='center'
6868
color='less-prominent'
69-
lineHeight='xs'
69+
lineHeight='sm'
7070
className='journal-empty__header'
7171
>
7272
{localize('There are no messages to display')}
7373
</Text>
7474
<div className='journal-empty__message'>
75-
<Text size='xs' color='less-prominent'>
75+
<Text size='xs' lineHeight='3xl' color='less-prominent'>
7676
{localize('Here are the possible reasons:')}
7777
</Text>
7878
<ul className='journal-empty__list'>
7979
<li>
80-
<Text size='xs' color='less-prominent'>
80+
<Text size='xs' lineHeight='3xl' color='less-prominent'>
8181
{localize('The bot is not running')}
8282
</Text>
8383
</li>
8484
<li>
85-
<Text size='xs' color='less-prominent'>
85+
<Text size='xs' lineHeight='3xl' color='less-prominent'>
8686
{localize('The stats are cleared')}
8787
</Text>
8888
</li>
8989
<li>
90-
<Text size='xs' color='less-prominent'>
90+
<Text size='xs' lineHeight='3xl' color='less-prominent'>
9191
{localize('All messages are filtered out')}
9292
</Text>
9393
</li>

src/components/summary/summary-card.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
width: 100%;
99
}
1010

11+
.deriv-text {
12+
font-weight: lighter;
13+
text-align: center;
14+
}
15+
1116
&--inactive {
1217
color: var(--text-general);
1318
font-size: 14px;

src/components/summary/summary-card.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ const SummaryCard = observer(({ contract_info, is_contract_loading }: TSummaryCa
9797
</ContractCard>
9898
)}
9999
{!is_contract_loading && !contract_info && (
100-
<Text as='p' LineHeight='sm' size='xs'>
100+
<Text as='p' LineHeight='md' size='sm' weight='lighter'>
101101
{localize('When you’re ready to trade, hit ')}
102102
<strong>{localize('Run')}</strong>
103103
{localize('. You’ll be able to track your bot’s performance here.')}

src/components/transactions/transactions.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
list-style-type: disc;
5151
margin-left: 2rem;
5252
font-size: var(--text-size-xxs);
53-
line-height: var(--text-lh-xl);
53+
line-height: var(--text-lh-xxl);
5454
color: var(--text-less-prominent);
5555
}
5656
}

src/components/transactions/transactions.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,17 +200,17 @@ const Transactions = observer(({ is_drawer_open }: TTransactions) => {
200200
</div>
201201
<Text
202202
as='h4'
203-
size='xs'
203+
size='sm'
204204
weight='bold'
205205
align='center'
206206
color='less-prominent'
207-
lineHeight='xs'
207+
lineHeight='sm'
208208
className='transactions-empty__header'
209209
>
210210
{localize('There are no transactions to display')}
211211
</Text>
212212
<div className='transactions-empty__message'>
213-
<Text size='xs' color='less-prominent'>
213+
<Text size='xs' color='less-prominent' lineHeight='3xl'>
214214
{localize('Here are the possible reasons:')}
215215
</Text>
216216
<ul className='transactions-empty__list'>

0 commit comments

Comments
 (0)