diff --git a/.github/workflows/argilla-frontend.yml b/.github/workflows/argilla-frontend.yml
index 2392268cac..7b5e642e2c 100644
--- a/.github/workflows/argilla-frontend.yml
+++ b/.github/workflows/argilla-frontend.yml
@@ -10,12 +10,6 @@ on:
pull_request:
paths:
- "argilla-frontend/**"
- types:
- - opened
- - edited
- - reopened
- - synchronize
- - ready_for_review
jobs:
build:
diff --git a/.github/workflows/argilla-server.yml b/.github/workflows/argilla-server.yml
index 3528ec7b7c..e0af03f1fa 100644
--- a/.github/workflows/argilla-server.yml
+++ b/.github/workflows/argilla-server.yml
@@ -14,8 +14,6 @@ on:
push:
paths:
- argilla-server/**
- tags:
- - "*"
branches:
- main
- develop
@@ -26,10 +24,6 @@ on:
paths:
- argilla-server/**
- release:
- types:
- - published
-
jobs:
build:
name: Build `argilla-server` package
diff --git a/.github/workflows/argilla-v1.yml b/.github/workflows/argilla-v1.yml
index 2870c3d149..c6db82e697 100644
--- a/.github/workflows/argilla-v1.yml
+++ b/.github/workflows/argilla-v1.yml
@@ -11,8 +11,6 @@ on:
push:
paths:
- argilla-v1/**
- tags:
- - "*"
branches:
- main
- develop
@@ -23,11 +21,6 @@ on:
paths:
- argilla-v1/**
- release:
- types:
- - "published"
- - "released"
-
jobs:
build:
runs-on: ubuntu-latest
diff --git a/.github/workflows/argilla.docs.yml b/.github/workflows/argilla.docs.yml
index 22f3f09fb6..c171ab253f 100644
--- a/.github/workflows/argilla.docs.yml
+++ b/.github/workflows/argilla.docs.yml
@@ -14,8 +14,6 @@ on:
# - "develop"
- "feat/v2.0.0" # Fixing this branch until we merge everything into develop
- "docs/**" # When we create a new branch only for docs
- tags:
- - "*"
defaults:
run:
@@ -54,8 +52,7 @@ jobs:
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
- name: Print GitHub ref info
- run:
- echo "${{ github.ref }}"
+ run: echo "${{ github.ref }}"
echo "${{ github.head_ref }}"
- run: pdm run mike deploy dev --push
@@ -77,4 +74,4 @@ jobs:
- run: pdm run mike deploy ${{ steps.extract_branch_name.outputs.branch_name }} --push
if: startsWith(github.ref, 'refs/heads/docs') || startsWith(github.head_ref, 'docs/')
env:
- GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
\ No newline at end of file
+ GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
diff --git a/.github/workflows/argilla.yml b/.github/workflows/argilla.yml
index 7dd20e276b..5b0bfe4845 100644
--- a/.github/workflows/argilla.yml
+++ b/.github/workflows/argilla.yml
@@ -28,10 +28,6 @@ on:
- argilla/**
- "!argilla/docs/**"
- release:
- types:
- - "published"
-
defaults:
run:
working-directory: argilla
diff --git a/argilla-frontend/assets/scss/base/base.scss b/argilla-frontend/assets/scss/base/base.scss
index 9ac97f250f..dabc04e0f8 100644
--- a/argilla-frontend/assets/scss/base/base.scss
+++ b/argilla-frontend/assets/scss/base/base.scss
@@ -280,7 +280,7 @@ a {
}
.--body3 {
@include font-size(13px);
- @include line-height(16px);
+ @include line-height(18px);
}
.--body4 {
@include font-size(12px);
diff --git a/argilla-frontend/components/base/base-badge/BaseIconWithBadge.vue b/argilla-frontend/components/base/base-badge/BaseIconWithBadge.vue
index c799f34a7a..bdda84b146 100644
--- a/argilla-frontend/components/base/base-badge/BaseIconWithBadge.vue
+++ b/argilla-frontend/components/base/base-badge/BaseIconWithBadge.vue
@@ -15,7 +15,12 @@
borderColor: badgeBorderColor,
}"
>
-
+
@@ -49,6 +54,10 @@ export default {
badgeBorderColor: {
type: String,
},
+ badgeSize: {
+ type: String,
+ default: "22",
+ },
},
methods: {
onClickIcon() {
diff --git a/argilla-frontend/components/base/base-breadcrumbs/BaseBreadcrumbs.vue b/argilla-frontend/components/base/base-breadcrumbs/BaseBreadcrumbs.vue
index 33b14f3f9c..22568e99f7 100644
--- a/argilla-frontend/components/base/base-breadcrumbs/BaseBreadcrumbs.vue
+++ b/argilla-frontend/components/base/base-breadcrumbs/BaseBreadcrumbs.vue
@@ -33,19 +33,6 @@
>
-
-
-
-
-
@@ -76,7 +63,6 @@ export default {
diff --git a/argilla-frontend/components/base/base-progress/BaseCircleProgress.vue b/argilla-frontend/components/base/base-progress/BaseCircleProgress.vue
index 98542c28ed..c8c71f3547 100644
--- a/argilla-frontend/components/base/base-progress/BaseCircleProgress.vue
+++ b/argilla-frontend/components/base/base-progress/BaseCircleProgress.vue
@@ -1,78 +1,75 @@
-
+
-
diff --git a/argilla-frontend/components/base/base-progress/BaseLinearProgress.vue b/argilla-frontend/components/base/base-progress/BaseLinearProgress.vue
index 5e1ad6a6f2..0a23b48c8e 100644
--- a/argilla-frontend/components/base/base-progress/BaseLinearProgress.vue
+++ b/argilla-frontend/components/base/base-progress/BaseLinearProgress.vue
@@ -17,10 +17,7 @@
@mouseenter="hoveredRange = range"
@mouseleave="hoveredRange = null"
>
-
+
diff --git a/argilla-frontend/components/base/base-progress/BaseProgress.vue b/argilla-frontend/components/base/base-progress/BaseProgress.vue
deleted file mode 100644
index 5ddb71f105..0000000000
--- a/argilla-frontend/components/base/base-progress/BaseProgress.vue
+++ /dev/null
@@ -1,236 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
diff --git a/argilla-frontend/components/base/base-resizable/HorizontalResizable.vue b/argilla-frontend/components/base/base-resizable/HorizontalResizable.vue
new file mode 100644
index 0000000000..20de185e01
--- /dev/null
+++ b/argilla-frontend/components/base/base-resizable/HorizontalResizable.vue
@@ -0,0 +1,238 @@
+
+
+
+
+
+
+
diff --git a/argilla-frontend/components/base/base-resizable/VerticalResizable.vue b/argilla-frontend/components/base/base-resizable/VerticalResizable.vue
new file mode 100644
index 0000000000..203cdfca29
--- /dev/null
+++ b/argilla-frontend/components/base/base-resizable/VerticalResizable.vue
@@ -0,0 +1,173 @@
+
+
+
+
+
+
+
diff --git a/argilla-frontend/components/base/base-resizable/useResizable.ts b/argilla-frontend/components/base/base-resizable/useResizable.ts
new file mode 100644
index 0000000000..14d8bdf4f0
--- /dev/null
+++ b/argilla-frontend/components/base/base-resizable/useResizable.ts
@@ -0,0 +1,33 @@
+import { useDebounce, useLocalStorage } from "~/v1/infrastructure/services";
+
+export const useResizable = ({ id }: { id: string }) => {
+ const debounce = useDebounce(300);
+ const { get, set } = useLocalStorage();
+
+ const getPosition = () => {
+ const layout = get("layout");
+
+ if (!layout) return;
+
+ return layout[id];
+ };
+
+ const setPosition = async (position: unknown) => {
+ debounce.stop();
+
+ await debounce.wait();
+
+ const layout = get("layout");
+
+ set("layout", {
+ ...layout,
+ [id]: position,
+ });
+ };
+
+ return {
+ debounce,
+ getPosition,
+ setPosition,
+ };
+};
diff --git a/argilla-frontend/components/base/base-table/BaseTableInfo.vue b/argilla-frontend/components/base/base-table/BaseTableInfo.vue
index 8f15583912..7cbffc70c0 100644
--- a/argilla-frontend/components/base/base-table/BaseTableInfo.vue
+++ b/argilla-frontend/components/base/base-table/BaseTableInfo.vue
@@ -178,6 +178,11 @@ export default {
hydrate: {},
};
},
+ watch: {
+ filteredResults() {
+ this.changeVisibility();
+ },
+ },
computed: {
tableIsEmpty() {
return this.filteredResults && this.filteredResults.length === 0;
@@ -230,9 +235,6 @@ export default {
this.$set(this.filters, column, values);
});
},
- mounted() {
- this.changeVisibility();
- },
methods: {
itemValue(item, column) {
if (column.subfield) {
@@ -273,10 +275,16 @@ export default {
const observer = new IntersectionObserver(handleIntersection);
this.data.forEach((item) => {
- observer.observe(document.getElementById(item.id));
+ const element = document.getElementById(item.id);
+ if (!element) return;
+
+ observer.observe(element);
});
},
},
+ mounted() {
+ this.changeVisibility();
+ },
};
diff --git a/argilla-frontend/components/base/base-tooltip/BaseTooltip.vue b/argilla-frontend/components/base/base-tooltip/BaseTooltip.vue
index 265da789dd..7a7252b326 100644
--- a/argilla-frontend/components/base/base-tooltip/BaseTooltip.vue
+++ b/argilla-frontend/components/base/base-tooltip/BaseTooltip.vue
@@ -91,7 +91,7 @@ export default {
break;
case "bottom":
this.tooltipPosition = {
- top: tooltipRect.top - tooltipRect.height + tooltipTextRect.height,
+ top: tooltipRect.top + tooltipRect.height,
left:
tooltipRect.left +
tooltipRect.width / 2 -
diff --git a/argilla-frontend/components/features/annotation/container/RecordFeedbackTaskAndQuestionnaire.vue b/argilla-frontend/components/features/annotation/container/RecordFeedbackTaskAndQuestionnaire.vue
index 5e6305b040..cfb19812be 100644
--- a/argilla-frontend/components/features/annotation/container/RecordFeedbackTaskAndQuestionnaire.vue
+++ b/argilla-frontend/components/features/annotation/container/RecordFeedbackTaskAndQuestionnaire.vue
@@ -162,44 +162,3 @@ export default {
},
};
-
-
diff --git a/argilla-frontend/components/features/annotation/container/fields/Record.vue b/argilla-frontend/components/features/annotation/container/fields/Record.vue
index 04bb58e6f3..ec445bb619 100644
--- a/argilla-frontend/components/features/annotation/container/fields/Record.vue
+++ b/argilla-frontend/components/features/annotation/container/fields/Record.vue
@@ -40,16 +40,35 @@ export default {
type: Array,
},
},
- computed: {
- searchValue() {
- return this.$route.query?._search ?? "";
- },
- },
methods: {
onSelectedRecord(isSelected) {
this.$emit("on-select-record", isSelected, this.record);
},
},
+ computed: {
+ spanQuestionsAnswers() {
+ return this.record.questions
+ .filter((q) => q.isSpanType)
+ .map((q) => ({
+ id: q.id,
+ answer: q.answer.values,
+ }));
+ },
+ },
+ watch: {
+ spanQuestionsAnswers: {
+ deep: true,
+ handler() {
+ if (
+ this.record.questions
+ .filter((q) => q.isSpanType)
+ .some((q) => q.isModified)
+ ) {
+ this.onSelectedRecord(true);
+ }
+ },
+ },
+ },
};
diff --git a/argilla-frontend/components/features/annotation/container/mode/FocusAnnotation.vue b/argilla-frontend/components/features/annotation/container/mode/FocusAnnotation.vue
index 520fffc632..23f35a8954 100644
--- a/argilla-frontend/components/features/annotation/container/mode/FocusAnnotation.vue
+++ b/argilla-frontend/components/features/annotation/container/mode/FocusAnnotation.vue
@@ -1,51 +1,101 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/argilla-frontend/components/features/annotation/guidelines/useAnnotationGuidelinesViewModel.ts b/argilla-frontend/components/features/annotation/guidelines/useAnnotationGuidelinesViewModel.ts
new file mode 100644
index 0000000000..c56bb31351
--- /dev/null
+++ b/argilla-frontend/components/features/annotation/guidelines/useAnnotationGuidelinesViewModel.ts
@@ -0,0 +1,11 @@
+import { computed } from "vue-demi";
+import { useDataset } from "@/v1/infrastructure/storage/DatasetStorage";
+
+export const useAnnotationGuidelinesViewModel = () => {
+ const { state: dataset } = useDataset();
+ const guidelines = computed(() => dataset.guidelines);
+
+ return {
+ guidelines,
+ };
+};
diff --git a/argilla-frontend/components/features/annotation/header/header-bar/DatasetSettingsIconFeedbackTask.vue b/argilla-frontend/components/features/annotation/header/header-bar/DatasetSettingsIconFeedbackTask.vue
index cea83d52fb..737d909138 100644
--- a/argilla-frontend/components/features/annotation/header/header-bar/DatasetSettingsIconFeedbackTask.vue
+++ b/argilla-frontend/components/features/annotation/header/header-bar/DatasetSettingsIconFeedbackTask.vue
@@ -6,6 +6,7 @@
badge-vertical-position="top"
badge-horizontal-position="right"
badge-border-color="#212121"
+ badge-size="20"
icon="settings"
/>
@@ -24,15 +25,10 @@ export default {
diff --git a/argilla-frontend/components/features/annotation/progress/AnnotationProgress.vue b/argilla-frontend/components/features/annotation/progress/AnnotationProgress.vue
index 32fabd92b6..295e62a162 100644
--- a/argilla-frontend/components/features/annotation/progress/AnnotationProgress.vue
+++ b/argilla-frontend/components/features/annotation/progress/AnnotationProgress.vue
@@ -16,54 +16,16 @@
-->
-
-
Progress
-
-
Total
-
{{
- datasetMetrics.progress | percent
- }}
-
-
- /{{ datasetMetrics.total }}
-
-
-
-
-
+
-
-
diff --git a/argilla-frontend/components/features/annotation/progress/AnnotationProgressDetailed.vue b/argilla-frontend/components/features/annotation/progress/AnnotationProgressDetailed.vue
new file mode 100644
index 0000000000..59718ea15b
--- /dev/null
+++ b/argilla-frontend/components/features/annotation/progress/AnnotationProgressDetailed.vue
@@ -0,0 +1,133 @@
+
+
+
+
+
+
+
+
+
diff --git a/argilla-frontend/components/features/annotation/progress/BarProgress.vue b/argilla-frontend/components/features/annotation/progress/BarProgress.vue
new file mode 100644
index 0000000000..b063a1ffd5
--- /dev/null
+++ b/argilla-frontend/components/features/annotation/progress/BarProgress.vue
@@ -0,0 +1,67 @@
+
+
+
+ {{ progressCompleted }} of {{ total }}
+ {{
+ progressCompletedPercent
+ }}
+
+
+
+
+
+
diff --git a/argilla-frontend/components/features/annotation/progress/useFeedbackTaskProgressViewModel.ts b/argilla-frontend/components/features/annotation/progress/useFeedbackTaskProgressViewModel.ts
index b9f46c06c0..d7d4febf4c 100644
--- a/argilla-frontend/components/features/annotation/progress/useFeedbackTaskProgressViewModel.ts
+++ b/argilla-frontend/components/features/annotation/progress/useFeedbackTaskProgressViewModel.ts
@@ -9,6 +9,7 @@ import { useMetrics } from "~/v1/infrastructure/storage/MetricsStorage";
interface FeedbackTaskProgressProps {
datasetId: string;
+ enableFetch?: boolean;
}
export const useFeedbackTaskProgressViewModel = (
@@ -22,6 +23,8 @@ export const useFeedbackTaskProgressViewModel = (
};
onBeforeMount(() => {
+ if (!props.enableFetch) return;
+
useEvents(() => {
new UpdateMetricsEventHandler();
});
diff --git a/argilla-frontend/components/features/annotation/settings/SettingsInfoReadOnly.vue b/argilla-frontend/components/features/annotation/settings/SettingsInfoReadOnly.vue
index bc7bac272d..6e2f19ee7e 100644
--- a/argilla-frontend/components/features/annotation/settings/SettingsInfoReadOnly.vue
+++ b/argilla-frontend/components/features/annotation/settings/SettingsInfoReadOnly.vue
@@ -8,7 +8,6 @@
class="setting__dataset-name --body1"
v-html="settings.dataset.name"
/>
-
-
-
-
-
-
-
-
+