Skip to content

Commit 6a33bd7

Browse files
authored
Merge branch 'main' into test/fixtures
2 parents 6611b51 + 3114183 commit 6a33bd7

30 files changed

Lines changed: 919 additions & 913 deletions

.github/workflows/autofix.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ jobs:
3131
- name: 📦 Install dependencies
3232
run: pnpm install
3333

34-
- name: 🌐 Install browser
35-
run: pnpm playwright install chromium-headless-shell
36-
3734
- name: 🌐 Compare translations
3835
run: pnpm i18n:check
3936

@@ -43,14 +40,4 @@ jobs:
4340
- name: 🔠 Fix lint errors
4441
run: pnpm lint:fix
4542

46-
- name: 🧪 Update unit test snapshots
47-
run: pnpm test:unit -u
48-
49-
- name: 🏃 Update component test snapshots
50-
run: pnpm test:nuxt -u
51-
52-
# TODO: re-enable when we have snapshots in browser tests
53-
# - name: 🖥️ Update browser test snapshots
54-
# run: pnpm test:browser --update-snapshots
55-
5643
- uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27

.github/workflows/ci.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ jobs:
6161
- name: 💪 Type check
6262
run: pnpm test:types
6363

64-
- name: 🧪 Unit test
65-
run: pnpm test:unit
64+
- name: 🧪 Unit and component tests
65+
run: pnpm vite test run --coverage
6666

67-
- name: 🏃 Component tests
68-
run: pnpm test:nuxt
67+
- name: Upload coverage reports to Codecov
68+
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5
6969

7070
browser:
7171
runs-on: ubuntu-latest
@@ -87,8 +87,11 @@ jobs:
8787
- name: 📦 Install dependencies
8888
run: pnpm install
8989

90+
- name: 🏗️ Build project
91+
run: pnpm build:playwright
92+
9093
- name: 🖥️ Test project (browser)
91-
run: pnpm test:browser
94+
run: pnpm test:browser:prebuilt
9295

9396
a11y:
9497
runs-on: ubuntu-latest

app/assets/main.css

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -154,17 +154,9 @@ html {
154154
-webkit-font-smoothing: antialiased;
155155
-moz-osx-font-smoothing: grayscale;
156156
text-rendering: optimizeLegibility;
157-
scroll-behavior: smooth;
158157
scroll-padding-top: 5rem; /* Offset for fixed header - otherwise anchor headers are cutted */
159158
}
160159

161-
/* Disable smooth scrolling if user prefers reduced motion */
162-
@media (prefers-reduced-motion: reduce) {
163-
html {
164-
scroll-behavior: auto;
165-
}
166-
}
167-
168160
/*
169161
* Enable CSS scroll-state container queries for the document
170162
* This allows the footer to query the scroll state using pure CSS

app/components/Org/MembersPanel.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
22
import type { NewOperation } from '~/composables/useConnector'
3-
import { buildScopeTeam } from '~/utils/npm'
3+
import { buildScopeTeam } from '~/utils/npm/common'
44
55
const props = defineProps<{
66
orgName: string

app/components/Org/TeamsPanel.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
22
import type { NewOperation } from '~/composables/useConnector'
3-
import { buildScopeTeam } from '~/utils/npm'
3+
import { buildScopeTeam } from '~/utils/npm/common'
44
55
const props = defineProps<{
66
orgName: string

app/components/Package/AccessControls.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
22
import type { NewOperation } from '~/composables/useConnector'
3-
import { buildScopeTeam } from '~/utils/npm'
3+
import { buildScopeTeam } from '~/utils/npm/common'
44
55
const props = defineProps<{
66
packageName: string

app/components/Package/Dependencies.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
2-
import { useDependencyAnalysis } from '~/composables/useDependencyAnalysis'
32
import { SEVERITY_TEXT_COLORS, getHighestSeverity } from '#shared/utils/severity'
3+
import { getOutdatedTooltip, getVersionClass } from '~/utils/npm/outdated-dependencies'
44
55
const props = defineProps<{
66
packageName: string

app/components/Package/InstallScripts.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<script setup lang="ts">
2+
import { getOutdatedTooltip, getVersionClass } from '~/utils/npm/outdated-dependencies'
3+
24
const props = defineProps<{
35
packageName: string
46
installScripts: {

app/components/Package/Versions.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import type { PackageVersionInfo, SlimVersion } from '#shared/types'
33
import { compare } from 'semver'
44
import type { RouteLocationRaw } from 'vue-router'
5-
import { fetchAllPackageVersions } from '~/composables/useNpmRegistry'
5+
import { fetchAllPackageVersions } from '~/utils/npm/api'
66
import {
77
buildVersionToTagsMap,
88
filterExcludedTags,

app/components/VersionSelector.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
getVersionGroupLabel,
1010
isSameVersionGroup,
1111
} from '~/utils/versions'
12-
import { fetchAllPackageVersions } from '~/composables/useNpmRegistry'
12+
import { fetchAllPackageVersions } from '~/utils/npm/api'
1313
1414
const props = defineProps<{
1515
packageName: string

0 commit comments

Comments
 (0)