Skip to content

Commit 2e3e26f

Browse files
committed
Linting issues, limited multi provider support
1 parent 4bff4b3 commit 2e3e26f

68 files changed

Lines changed: 2130 additions & 417 deletions

Some content is hidden

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

frontend/biome.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.2.5/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.4.6/schema.json",
33
"vcs": {
44
"enabled": true,
55
"clientKind": "git",
@@ -111,6 +111,11 @@
111111
"quoteProperties": "asNeeded"
112112
}
113113
},
114+
"css": {
115+
"parser": {
116+
"tailwindDirectives": true
117+
}
118+
},
114119
"overrides": [
115120
{
116121
"includes": ["e2e/**"],

frontend/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
<title>Windshift - Work Management</title>
1010
<script>
1111
// Flash prevention: apply theme before CSS loads
12-
(function() {
13-
var stored = localStorage.getItem('windshift-color-mode');
14-
var prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
15-
var mode = stored === 'dark' || (stored === 'system' && prefersDark) || (!stored && prefersDark) ? 'dark' : 'light';
12+
(() => {
13+
const stored = localStorage.getItem('windshift-color-mode');
14+
const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
15+
const mode = stored === 'dark' || (stored === 'system' && prefersDark) || (!stored && prefersDark) ? 'dark' : 'light';
1616
document.documentElement.dataset.colorMode = mode;
1717
})();
1818
</script>

frontend/scripts/check-i18n.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*/
1111

1212
import { readdir } from 'node:fs/promises';
13-
import { join, dirname } from 'node:path';
13+
import { dirname, join } from 'node:path';
1414
import { fileURLToPath } from 'node:url';
1515

1616
const __dirname = dirname(fileURLToPath(import.meta.url));
@@ -39,9 +39,7 @@ function findSourceFile(key, fileMap) {
3939

4040
async function loadLocaleFiles(localeCode) {
4141
const localeDir = join(LOCALES_DIR, localeCode);
42-
const files = (await readdir(localeDir)).filter(
43-
(f) => f.endsWith('.js') && f !== 'index.js'
44-
);
42+
const files = (await readdir(localeDir)).filter((f) => f.endsWith('.js') && f !== 'index.js');
4543

4644
const merged = {};
4745
const fileKeyMap = {};

frontend/src/app.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
@import "tailwindcss";
2-
@custom-variant dark (&:where([data-color-mode="dark"], [data-color-mode="dark"] *));
32
@import "@fontsource/inter/latin.css";
43
@import "@xterm/xterm/css/xterm.css";
54
@import "./design-system/index.css";
5+
@custom-variant dark (&:where([data-color-mode="dark"], [data-color-mode="dark"] *));
66

77
@theme {
88
--font-size-sm: 0.8125rem; /* 13px — matches Linear */

frontend/src/lib/api/assetActions.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ export const assetActions = {
3333
body: JSON.stringify({ asset_id: assetId }),
3434
}),
3535

36-
getLogs: (setId, actionId) =>
37-
fetchAPI(`/asset-sets/${setId}/actions/${actionId}/logs`),
36+
getLogs: (setId, actionId) => fetchAPI(`/asset-sets/${setId}/actions/${actionId}/logs`),
3837

3938
getSetLogs: (setId) => fetchAPI(`/asset-sets/${setId}/action-logs`),
4039
};

frontend/src/lib/api/core.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ let driftWarningShown = false;
2020
function createApiError(response, responseText) {
2121
let fallbackMessage = `Request failed: ${response.statusText}`;
2222
if (!responseText && (response.status === 502 || response.status === 504)) {
23-
fallbackMessage =
24-
'The server took too long to respond. Please try again shortly.';
23+
fallbackMessage = 'The server took too long to respond. Please try again shortly.';
2524
}
2625
const error = new Error(responseText || fallbackMessage);
2726

frontend/src/lib/api/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ import { tests } from './tests/index.js';
7272
import { time, timer } from './time.js';
7373
import {
7474
activateUser,
75-
inviteUser,
7675
completeFIDORegistration,
7776
createApiToken,
7877
createAppToken,
@@ -87,6 +86,7 @@ import {
8786
getUserAppTokens,
8887
getUserCredentials,
8988
getUsers,
89+
inviteUser,
9090
removeUserCredential,
9191
resetUserPassword,
9292
revokeApiToken,

frontend/src/lib/api/items.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,12 @@ export const items = {
4545
method: 'PUT',
4646
body: JSON.stringify(data),
4747
}),
48-
getBacklog: (workspaceId, ql = null, collectionId = null, /** @type {any} */ { page, limit } = {}) => {
48+
getBacklog: (
49+
workspaceId,
50+
ql = null,
51+
collectionId = null,
52+
/** @type {any} */ { page, limit } = {}
53+
) => {
4954
const params = new URLSearchParams();
5055
if (collectionId) {
5156
params.append('collection_id', collectionId);

frontend/src/lib/api/sso.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ export const sso = {
1111
if (rememberMe) params.append('remember_me', 'true');
1212
const query = params.toString();
1313
// SAML and OIDC have different login URL patterns
14-
const basePath = providerType === 'saml'
15-
? `/api/sso/${slug}/saml/login`
16-
: `/api/sso/login/${slug}`;
14+
const basePath =
15+
providerType === 'saml' ? `/api/sso/${slug}/saml/login` : `/api/sso/login/${slug}`;
1716
return `${basePath}${query ? `?${query}` : ''}`;
1817
},
1918

frontend/src/lib/api/users.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import { fetchAPI } from './core.js';
22

33
// Users
44
export const getUsers = () => fetchAPI('/users');
5-
export const getAssignableUsers = (workspaceId) => fetchAPI(`/workspaces/${workspaceId}/assignable-users`);
5+
export const getAssignableUsers = (workspaceId) =>
6+
fetchAPI(`/workspaces/${workspaceId}/assignable-users`);
67
export const getUser = (id) => fetchAPI(`/users/${id}`);
78
export const createUser = (data) =>
89
fetchAPI('/users', {

0 commit comments

Comments
 (0)