Skip to content

Commit b16fd66

Browse files
authored
Merge pull request #4246 from balancer/release/1.126.0
Release 1.126.0
2 parents 9ca4fbe + f119f15 commit b16fd66

File tree

69 files changed

+2442
-1493
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+2442
-1493
lines changed

package-lock.json

Lines changed: 173 additions & 124 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@balancer/frontend-v2",
3-
"version": "1.125.0",
3+
"version": "1.126.0",
44
"engines": {
55
"node": "=16",
66
"npm": ">=8"
@@ -76,7 +76,7 @@
7676
"@sentry/tracing": "^7.17.4",
7777
"@tanstack/vue-query": "^4.22.0",
7878
"@testing-library/jest-dom": "^5.16.1",
79-
"@testing-library/vue": "^6.4.2",
79+
"@testing-library/vue": "^7.0.0",
8080
"@tomfrench/ens-avatar-resolver": "^0.1.0",
8181
"@types/animejs": "^3.1.3",
8282
"@types/debounce-promise": "^3.1.6",
@@ -89,7 +89,7 @@
8989
"@typescript-eslint/parser": "^5.48.1",
9090
"@vitejs/plugin-vue": "^4.1.0",
9191
"@vitest/coverage-c8": "^0.30.1",
92-
"@vue/test-utils": "^2.3.2",
92+
"@vue/test-utils": "^2.4.1",
9393
"@vueuse/core": "^4.3.4",
9494
"@walletconnect/ethereum-provider": "^2.10.1",
9595
"@walletconnect/modal": "^2.6.2",

src/assets/data/contracts/avalanche.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
"ChildChainGaugeTokenAdder": "0xf302f9F50958c5593770FDf4d4812309fF77414f",
1515
"ChildChainLiquidityGaugeFactory": "0xb08E16cFc07C684dAA2f93C70323BAdb2A6CBFd2",
1616
"ChildChainStreamer": "0xD7FAD3bd59D6477cbe1BE7f646F7f1BA25b230f8",
17+
"ChildChainGaugeWorkingBalanceHelper": "0x687b8C9b41E01Be8B591725fac5d5f52D0564d79",
18+
"ChildChainGaugeCheckpointer": "0x36caC20dd805d128c1a6Dd16eeA845C574b5A17C",
1719
"CircuitBreakerLib": "0x9129E834e15eA19b6069e8f08a8EcFc13686B8dC",
1820
"ComposableStablePoolFactory": "0x3B1eb8EB7b43882b385aB30533D9A2BeF9052a98",
1921
"DistributionScheduler": "0xC128a9954e6c874eA3d62ce62B468bA073093F25",

src/assets/data/contracts/base.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@
1313
"ChildChainGauge": "0x59562f93c447656F6E4799fC1FC7c3d977C3324F",
1414
"ChildChainGaugeFactory": "0x2498A2B0d6462d2260EAC50aE1C3e03F4829BA95",
1515
"ChildChainGaugeRewardHelper": "",
16-
"ChildChainGaugeWorkingBalanceHelper": "",
1716
"ChildChainGaugeTokenAdder": "",
1817
"ChildChainLiquidityGaugeFactory": "",
1918
"ChildChainStreamer": "",
19+
"ChildChainGaugeWorkingBalanceHelper": "0xa7d524046ef89de9F8e4f2d7B029f66cCB738d48",
20+
"ChildChainGaugeCheckpointer": "0xaf779e58dafb4307b998C7b3C9D3f788DFc80632",
2021
"CircuitBreakerLib": "0xEF454a7B3f965D3f6723E462405246f8Cd865425",
2122
"ComposableStablePoolFactory": "0x8df317a729fcaA260306d7de28888932cb579b88",
2223
"DoubleEntrypointFixRelayer": "",

src/components/_global/BalActionSteps/BalActionSteps.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ const spacerWidth = computed((): number => {
166166
167167
const _loadingLabel = computed((): string => {
168168
if (currentAction.value?.pending) return currentAction.value.loadingLabel;
169-
return props.loadingLabel || t('Loading');
169+
return props.loadingLabel || t('loading');
170170
});
171171
172172
/**

src/components/_global/BalCheckbox/BalCheckbox.vue

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@
77
:name="name"
88
:checked="modelValue"
99
:class="[
10-
'bal-checkbox-input hover:border-blue-600 dark:hover:border-blue-400 cursor-pointer transition-colors',
10+
'bal-checkbox-input',
1111
alignCheckbox === 'items-start' && 'relative top-2',
1212
inputClasses,
1313
]"
14+
:disabled="disabled"
1415
@change="onChange"
1516
/>
1617
</div>
@@ -60,6 +61,7 @@ export default defineComponent({
6061
default: 'blue',
6162
validator: (val: string): boolean => ['blue'].includes(val),
6263
},
64+
disabled: { type: Boolean, default: false },
6365
},
6466
6567
emits: ['update:modelValue'],
@@ -148,8 +150,7 @@ export default defineComponent({
148150
}
149151
150152
.bal-checkbox-input {
151-
@apply text-blue-600 dark:text-blue-400 bg-white dark:bg-gray-700 border border-gray-500 dark:border-gray-500
152-
rounded leading-none;
153+
@apply rounded;
153154
154155
appearance: none;
155156
-webkit-print-color-adjust: exact;
@@ -159,15 +160,27 @@ export default defineComponent({
159160
user-select: none;
160161
}
161162
163+
.bal-checkbox-input:enabled {
164+
@apply text-blue-600 dark:text-blue-400 bg-white dark:bg-gray-700 border
165+
border-gray-500 dark:border-gray-500 leading-none hover:border-blue-600 dark:hover:border-blue-400 cursor-pointer transition-colors;
166+
}
167+
162168
.bal-checkbox-input:checked {
163169
background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5.707 7.293a1 1 0 0 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l4-4a1 1 0 0 0-1.414-1.414L7 8.586 5.707 7.293z'/%3e%3c/svg%3e");
164170
border-color: transparent;
165-
background-color: currentcolor;
166171
background-size: 100% 100%;
167172
background-position: center;
168173
background-repeat: no-repeat;
169174
}
170175
176+
.bal-checkbox-input:disabled {
177+
@apply bg-gray-200 dark:bg-gray-800 cursor-not-allowed;
178+
}
179+
180+
.bal-checkbox-input:enabled:checked {
181+
background-color: currentcolor;
182+
}
183+
171184
.bal-checkbox-error {
172185
@apply text-red-500 text-sm pt-1;
173186
}

src/components/_global/BalTable/BalTableRow.vue

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ function getHorizontalStickyClass(index: number) {
3737
}
3838
return '';
3939
}
40+
41+
function handleColumnClick(column: ColumnDefinition, event: Event) {
42+
// Disable default onClick when column is a checkbox
43+
if (column.isCheckbox && event.target?.['type'] !== 'checkbox') {
44+
event.preventDefault();
45+
event.stopPropagation();
46+
}
47+
}
4048
</script>
4149

4250
<template>
@@ -54,12 +62,14 @@ function getHorizontalStickyClass(index: number) {
5462
>
5563
<td
5664
v-for="(column, columnIndex) in columns"
57-
:key="column.id"
65+
:key="column.id + columnIndex"
5866
:class="[
5967
column.align === 'right' ? 'text-left' : 'text-right',
6068
getHorizontalStickyClass(columnIndex),
6169
isColumnStuck ? 'isSticky' : '',
70+
column.isCheckbox ? 'cursor-default' : '',
6271
]"
72+
@click="handleColumnClick(column, $event)"
6373
>
6474
<component
6575
:is="href?.getHref(data) ? 'a' : link ? 'router-link' : 'div'"

src/components/_global/BalTable/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,6 @@ export type ColumnDefinition<T = Data> = {
3030
totalsCell?: string;
3131

3232
cellClassName?: string;
33+
// Disables default row onclick behavior for special columns like checkbox ones
34+
isCheckbox?: boolean;
3335
};

0 commit comments

Comments
 (0)