diff --git a/.github/workflows/argilla.docs.yml b/.github/workflows/argilla.docs.yml index 71ac121fd0..c4adb9770c 100644 --- a/.github/workflows/argilla.docs.yml +++ b/.github/workflows/argilla.docs.yml @@ -53,12 +53,21 @@ jobs: git config --global user.name "${{ github.actor }}" git config --global user.email "${{ github.actor }}@users.noreply.github.com" + - name: Print GitHub ref info + run: + echo "${{ github.ref }}" + echo "${{ github.head_ref }}" + - run: pdm run mike deploy dev --push if: github.ref == 'refs/heads/feat/v2.0.0' # if: github.ref == 'refs/heads/develop' + env: + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} - run: pdm run mike deploy ${{ github.ref_name }} latest --update-aliases --push if: startsWith(github.ref, 'refs/tags/') + env: + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} - name: Extract branch name shell: bash @@ -66,4 +75,6 @@ jobs: id: extract_branch_name - run: pdm run mike deploy ${{ steps.extract_branch_name.outputs.branch_name }} --push - if: startsWith(github.head_ref, 'docs/') + 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 diff --git a/argilla-frontend/assets/scss/abstract/placeholders/_placeholders.scss b/argilla-frontend/assets/scss/abstract/placeholders/_placeholders.scss index b4b87879d7..c34163ab42 100644 --- a/argilla-frontend/assets/scss/abstract/placeholders/_placeholders.scss +++ b/argilla-frontend/assets/scss/abstract/placeholders/_placeholders.scss @@ -108,16 +108,6 @@ margin: 0 auto; padding: 4em; } -%collapsable-if-metrics { - padding-right: calc($sidebarMenuWidth + 56px); - transition: padding 0.25s linear 0.2s; - .--metrics & { - @include media(">desktop") { - padding-right: calc($sidebarWidth + 25px); - transition: padding 0.25s linear; - } - } -} %clear { @include font-size(13px); diff --git a/argilla-frontend/assets/scss/abstract/variables/_variables.scss b/argilla-frontend/assets/scss/abstract/variables/_variables.scss index 09ca4b1c31..1a37bc2a16 100644 --- a/argilla-frontend/assets/scss/abstract/variables/_variables.scss +++ b/argilla-frontend/assets/scss/abstract/variables/_variables.scss @@ -202,12 +202,7 @@ $swift-linear-timing-function: linear !default; $swift-linear: all $swift-linear-duration $swift-linear-timing-function !default; // topbar -$topbarHeight: 56px; - -// sidebar -$sidebarPanelWidth: 280px; -$sidebarMenuWidth: 70px; -$sidebarWidth: $sidebarPanelWidth + $sidebarMenuWidth; +$topbarHeight: $base-space * 7; // record $record-reference-border-color: palette(apricot, dark); diff --git a/argilla-frontend/components/base/base-pagination/BasePagination.spec.js b/argilla-frontend/components/base/base-pagination/BasePagination.spec.js deleted file mode 100644 index 725a29240d..0000000000 --- a/argilla-frontend/components/base/base-pagination/BasePagination.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -import { shallowMount } from "@vue/test-utils"; -import BasePagination from "./BasePagination"; -import "@/plugins/plugins/filters"; - -let wrapper = null; -const options = { - propsData: { - totalItems: 500, - paginationSettings: { - disabledShortCutPagination: false, - maxRecordsLimit: 10000, - page: 2, - pageSizeOptions: [1, 10, 20, 50, 100], - size: 10, - }, - onePage: false, - visiblePagesRange: 5, - }, -}; -beforeEach(() => { - wrapper = shallowMount(BasePagination, options); -}); - -afterEach(() => { - wrapper.destroy(); -}); - -describe("BasePagination", () => { - it("render the component", () => { - expect(wrapper.is(BasePagination)).toBe(true); - }); - it("emit event when previous is clicked", async () => { - return prevNextButtonEmition(".pagination__arrow--prev", -1); - }); - it("emit event when next is clicked", async () => { - return prevNextButtonEmition(".pagination__arrow--next", 1); - }); - it("emit event when page is clicked", async () => { - const page = wrapper.find(".pagination__number"); - page.trigger("click"); - wrapper.vm.$nextTick(); - expect(wrapper.emitted("changePage")).toStrictEqual([ - [Number(page.text()), wrapper.vm.paginationSettings.size], - ]); - }); - it("should remove pagination buttons when records are 0", async () => { - await wrapper.setProps({ - totalItems: 0, - }); - expect(wrapper.find(".pagination").exists()).toBe(false); - }); - it("should only render records number if one page is active", async () => { - await wrapper.setProps({ - onePage: true, - }); - expect(wrapper.find(".pagination").exists()).toBe(false); - expect(wrapper.find(".pagination__selector").exists()).toBe(false); - }); -}); - -const prevNextButtonEmition = async (className, value) => { - const button = wrapper.find(className); - button.trigger("click"); - wrapper.vm.$nextTick(); - expect(wrapper.emitted("changePage")).toStrictEqual([ - [ - wrapper.vm.paginationSettings.page + value, - wrapper.vm.paginationSettings.size, - ], - ]); -}; diff --git a/argilla-frontend/components/base/base-pagination/BasePagination.vue b/argilla-frontend/components/base/base-pagination/BasePagination.vue deleted file mode 100644 index beb161428b..0000000000 --- a/argilla-frontend/components/base/base-pagination/BasePagination.vue +++ /dev/null @@ -1,444 +0,0 @@ - - - - - - diff --git a/argilla-frontend/components/features/annotation/container/questions/form/rating/RatingMonoSelection.component.vue b/argilla-frontend/components/features/annotation/container/questions/form/rating/RatingMonoSelection.component.vue index a723ad36fb..2c091dfc1e 100644 --- a/argilla-frontend/components/features/annotation/container/questions/form/rating/RatingMonoSelection.component.vue +++ b/argilla-frontend/components/features/annotation/container/questions/form/rating/RatingMonoSelection.component.vue @@ -116,11 +116,6 @@ export default { display: inline-flex; gap: $base-space; border-radius: $border-radius-rounded; - border: 1px solid #cdcdff; - background: #e0e0ff; - &:hover { - border-color: darken(palette(purple, 800), 12%); - } } } .label-text { @@ -133,7 +128,7 @@ export default { min-width: $base-space * 4; padding-inline: $base-space; outline: none; - background: palette(purple, 800); + background: palette(grey, 700); color: palette(purple, 200); font-weight: 500; overflow: hidden; @@ -157,7 +152,7 @@ export default { } &:not(.label-active):hover { - background: darken(palette(purple, 800), 5%); + background: darken(palette(grey, 700), 5%); transition: all 0.2s ease-in-out; } } diff --git a/argilla-frontend/components/features/annotation/container/questions/form/shared-components/label-selection/LabelSelection.component.vue b/argilla-frontend/components/features/annotation/container/questions/form/shared-components/label-selection/LabelSelection.component.vue index 0311487d5f..1ccd1d0702 100644 --- a/argilla-frontend/components/features/annotation/container/questions/form/shared-components/label-selection/LabelSelection.component.vue +++ b/argilla-frontend/components/features/annotation/container/questions/form/shared-components/label-selection/LabelSelection.component.vue @@ -351,7 +351,7 @@ export default { diff --git a/argilla-frontend/components/features/annotation/header/header-bar/HeaderFeedbackTask.vue b/argilla-frontend/components/features/annotation/header/header-bar/HeaderFeedbackTask.vue index 51440fc27d..09c8968ebc 100644 --- a/argilla-frontend/components/features/annotation/header/header-bar/HeaderFeedbackTask.vue +++ b/argilla-frontend/components/features/annotation/header/header-bar/HeaderFeedbackTask.vue @@ -7,14 +7,6 @@ @breadcrumb-action="$emit('breadcrumb-action', $event)" />