Skip to content

Commit 56864b8

Browse files
leiyrefrascuchondamianpumar
authored
[FEATURE] UI - update dataset list (#5684)
This PR includes a new layout for the list of datasets on the homepage --------- Co-authored-by: Paco Aranda <[email protected]> Co-authored-by: Damián Pumar <[email protected]>
1 parent 524ce35 commit 56864b8

File tree

73 files changed

+1794
-1648
lines changed

Some content is hidden

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

73 files changed

+1794
-1648
lines changed

argilla-frontend/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@ These are the section headers that we use:
1818

1919
### Added
2020

21+
- Add new dataset list page ([#5684](https://github.com/argilla-io/argilla/pull/5684))
2122
- Add a high-contrast theme & improvements for the forced-colors mode. ([#5661](https://github.com/argilla-io/argilla/pull/5661))
2223
- Add English as the default language and add language selector in the user settings page. ([#5690](https://github.com/argilla-io/argilla/pull/5690))
2324

2425
### Fixed
2526

27+
- Fixed visible_options when updating question setting. ([#5716](https://github.com/argilla-io/argilla/pull/5716))
2628
- Fixed highlighting on same record ([#5693](https://github.com/argilla-io/argilla/pull/5693))
2729

2830
## [2.4.1](https://github.com/argilla-io/argilla/compare/v2.4.0...v2.4.1)
Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,27 @@
11
/*
2-
* Taken from https://icons.getbootstrap.com/icons/universal-access/
3-
* The MIT License (MIT)
2+
* coding=utf-8
3+
* Copyright 2021-present, the Recognai S.L. team.
44
*
5-
* Copyright (c) 2019-2024 The Bootstrap Authors
6-
7-
* Permission is hereby granted, free of charge, to any person obtaining a copy
8-
* of this software and associated documentation files (the "Software"), to deal
9-
* in the Software without restriction, including without limitation the rights
10-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11-
* copies of the Software, and to permit persons to whom the Software is
12-
* furnished to do so, subject to the following conditions:
13-
14-
* The above copyright notice and this permission notice shall be included in
15-
* all copies or substantial portions of the Software.
16-
17-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23-
* THE SOFTWARE.
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
2416
*/
2517

2618
/* eslint-disable */
2719
var icon = require('vue-svgicon')
2820
icon.register({
29-
//
3021
'high-contrast-theme': {
3122
width: 16,
3223
height: 16,
3324
viewBox: '0 0 16 16',
34-
data: '<path pid="0" fill-rule="evenodd" clip-rule="evenodd" d="M9.5 1.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M6 5.5l-4.535-.442A.531.531 0 0 1 1.531 4H14.47a.531.531 0 0 1 .066 1.058L10 5.5V9l.452 6.42a.535.535 0 0 1-1.053.174L8.243 9.97c-.064-.252-.422-.252-.486 0l-1.156 5.624a.535.535 0 0 1-1.053-.174L6 9z" />'
25+
data: '<path pid="0" clip-rule="evenodd" d="M9.5 1.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0M6 5.5l-4.535-.442A.531.531 0 011.531 4H14.47a.531.531 0 01.066 1.058L10 5.5V9l.452 6.42a.535.535 0 01-1.053.174L8.243 9.97c-.064-.252-.422-.252-.486 0l-1.156 5.624a.535.535 0 01-1.053-.174L6 9z"/>'
3526
}
3627
})

argilla-frontend/assets/icons/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ require('./pen')
4040
require('./plus')
4141
require('./progress')
4242
require('./question-answering')
43+
require('./records')
4344
require('./refresh')
4445
require('./reset')
4546
require('./row-last')
@@ -59,5 +60,6 @@ require('./text-to-image')
5960
require('./time')
6061
require('./trash-empty')
6162
require('./unavailable')
63+
require('./update')
6264
require('./validate')
6365
require('./weak-labeling')
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*
2+
* coding=utf-8
3+
* Copyright 2021-present, the Recognai S.L. team.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
18+
/* eslint-disable */
19+
var icon = require('vue-svgicon')
20+
icon.register({
21+
'records': {
22+
width: 10,
23+
height: 9,
24+
viewBox: '0 0 10 9',
25+
data: '<path pid="0" fill-rule="evenodd" clip-rule="evenodd" d="M9 .715H1.32a.3.3 0 00-.3.3v1.421H9.3v-1.42a.3.3 0 00-.3-.3zm-7.98 4.18v-1.76H9.3v1.76H1.02zm0 .7v1.42a.3.3 0 00.3.3H9a.3.3 0 00.3-.3v-1.42H1.02zm.3-5.58a1 1 0 00-1 1v6a1 1 0 001 1H9a1 1 0 001-1v-6a1 1 0 00-1-1H1.32z" _fill="#000"/>'
26+
}
27+
})
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*
2+
* coding=utf-8
3+
* Copyright 2021-present, the Recognai S.L. team.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
18+
/* eslint-disable */
19+
var icon = require('vue-svgicon')
20+
icon.register({
21+
'update': {
22+
width: 12,
23+
height: 13,
24+
viewBox: '0 0 12 13',
25+
data: '<path pid="0" d="M6.692 5.456l-.105-1.203 1.434-.126a3.02 3.02 0 10.495 3.728l1.21.303a4.228 4.228 0 11-.795-4.83l-.148-1.692 1.204-.106.315 3.61-3.61.316z"/>'
26+
}
27+
})

argilla-frontend/assets/scss/abstract/variables/_themes.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
--bg-solid-grey-1: hsl(0, 0%, 98%);
1717
--bg-solid-grey-2: hsl(0, 0%, 96%);
1818
--bg-solid-grey-3: hsl(0, 0%, 90%);
19+
--bg-solid-grey-4: hsl(0, 0%, 90%);
1920
--bg-accent-grey-1: hsl(0, 0%, 100%);
2021
--bg-accent-grey-2: hsl(0, 0%, 100%);
2122
--bg-accent-grey-3: hsl(0, 0%, 98%);
@@ -95,6 +96,7 @@
9596
--bg-solid-grey-1: hsl(214, 12%, 10%);
9697
--bg-solid-grey-2: hsl(214, 12%, 14%);
9798
--bg-solid-grey-3: hsl(214, 12%, 16%);
99+
--bg-solid-grey-4: hsl(214, 12%, 20%);
98100
--bg-accent-grey-1: hsl(214, 12%, 12%);
99101
--bg-accent-grey-2: hsl(214, 12%, 16%);
100102
--bg-accent-grey-3: hsl(214, 12%, 14%);
@@ -185,6 +187,7 @@
185187
--bg-solid-grey-1: hsl(0, 0%, 98%);
186188
--bg-solid-grey-2: hsl(0, 0%, 96%);
187189
--bg-solid-grey-3: hsl(0, 0%, 90%);
190+
--bg-solid-grey-4: hsl(0, 0%, 90%);
188191
--bg-accent-grey-1: hsl(0, 0%, 100%);
189192
--bg-accent-grey-2: hsl(0, 0%, 100%);
190193
--bg-accent-grey-3: hsl(0, 0%, 98%);

argilla-frontend/assets/scss/abstract/variables/_variables.scss

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,15 @@ $base-space-between-records: $base-space;
3939
$border-radius-s: 5px;
4040
$border-radius: 5px;
4141
$border-radius-m: 10px;
42-
$border-radius-l: 25px;
42+
$border-radius-l: 16px;
43+
$border-radius-xl: 25px;
4344
$border-radius-rounded: 50em;
4445

4546
// Shadows
4647
//-----------
4748
$shadow: 0 8px 20px 0 rgba(0, 0, 0, 0.2);
4849
$shadow-100: 1px 1px 3px 0px rgba(0, 0, 0, 0.15);
4950
$shadow-200: 1px 2px 5px 2px rgba(0, 0, 0, 0.15);
50-
$shadow-300: 0 1px 3px 0 rgba(185, 185, 185, 0.4);
51-
$shadow-400: 0px 4px 10px rgba(0, 0, 0, 0.1);
52-
$shadow-500: 0 6px 10px 0 rgba(0, 0, 0, 0.1);
5351

5452
// Input size
5553
//-----------

argilla-frontend/components/base/base-action-tooltip/BaseActionTooltip.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ export default {
6565
&.--right {
6666
left: 100%;
6767
}
68+
&.--top {
69+
bottom: 100%;
70+
}
71+
&.--bottom {
72+
top: 100%;
73+
}
6874
&__container {
6975
position: relative;
7076
}

argilla-frontend/components/base/base-badge/BaseBadge.vue

Lines changed: 33 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<template>
2-
<p v-if="!clickable" class="badge" v-html="text" />
3-
<BaseButton @click="onClick" v-else class="badge --clickable">{{
4-
text
5-
}}</BaseButton>
2+
<div class="badge">
3+
<p v-if="!clickable" v-html="text" />
4+
<BaseButton @click="onClick" v-else class="--clickable">{{
5+
text
6+
}}</BaseButton>
7+
</div>
68
</template>
79

810
<script>
@@ -12,6 +14,14 @@ export default {
1214
type: String,
1315
required: true,
1416
},
17+
fontSize: {
18+
type: String,
19+
default: "12px",
20+
},
21+
color: {
22+
type: String,
23+
default: "var(--fg-secondary)",
24+
},
1525
},
1626
data() {
1727
return {
@@ -32,25 +42,26 @@ export default {
3242
</script>
3343

3444
<style lang="scss" scoped>
35-
.badge.button,
3645
.badge {
37-
display: flex;
38-
align-items: center;
39-
height: $base-space * 3;
40-
width: fit-content;
41-
padding: 0.8em;
42-
border: 1px solid var(--fg-tertiary);
43-
border-radius: $border-radius-rounded;
44-
margin: 0;
45-
color: var(--fg-secondary);
46-
@include font-size(12px);
47-
@include line-height(12px);
48-
&.--clickable {
49-
cursor: pointer;
50-
background-color: var(--bg-opacity-4);
51-
border: unset;
52-
&:hover {
53-
background-color: var(--bg-opacity-10);
46+
p,
47+
.button {
48+
display: flex;
49+
align-items: center;
50+
max-height: calc(v-bind(fontSize) * 2);
51+
width: fit-content;
52+
padding: 0.8em;
53+
border: 1px solid v-bind(color);
54+
border-radius: $border-radius-rounded;
55+
margin: 0;
56+
color: v-bind(color);
57+
font-size: v-bind(fontSize);
58+
&.--clickable {
59+
cursor: pointer;
60+
background-color: var(--bg-opacity-4);
61+
border: unset;
62+
&:hover {
63+
background-color: var(--bg-opacity-10);
64+
}
5465
}
5566
}
5667
}

argilla-frontend/components/base/base-badge/BaseBadgeSkeleton.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ export default {
1111
type: Number,
1212
default: 1,
1313
},
14+
fontSize: {
15+
type: String,
16+
default: "14px",
17+
},
1418
},
1519
computed: {
1620
range() {
@@ -31,7 +35,8 @@ $progressBackgroundColorSecondary: var(--bg-opacity-10);
3135
}
3236
3337
.badge {
34-
height: $base-space * 3;
38+
height: calc(v-bind(fontSize) * 2);
39+
font-size: v-bind(fontSize);
3540
width: 5em;
3641
border-radius: $border-radius-rounded;
3742
margin: 0;

0 commit comments

Comments
 (0)