Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 20 additions & 20 deletions ai-translations/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions ai-translations/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "datocms-plugin-ai-translations",
"homepage": "https://github.com/datocms/plugins/tree/master/ai-translations#readme",
"version": "3.4.2",
"version": "3.5.0-0",
"author": "DatoCMS <support@datocms.com>",
"description": "Translate fields and records directly on DatoCMS using AI",
"keywords": [
Expand Down Expand Up @@ -37,8 +37,8 @@
"@anthropic-ai/sdk": "^0.78.0",
"@datocms/cma-client-browser": "^5.3.0",
"@google/generative-ai": "^0.24.1",
"datocms-plugin-sdk": "^2.1.1",
"datocms-react-ui": "^2.1.4",
"datocms-plugin-sdk": "3.0.1-alpha.0",
"datocms-react-ui": "3.0.1-alpha.0",
"framer-motion": "^12.38.0",
"locale-codes": "^1.3.1",
"openai": "^6.33.0",
Expand Down
26 changes: 13 additions & 13 deletions ai-translations/src/components/TranslationProgressModal.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,22 @@
.TranslationProgressModal__stats {
margin: 4px 0 0 0 !important;
font-size: 14px;
color: var(--light-body-color);
color: var(--color--ink-subtle);
}

.TranslationProgressModal__progress-bar {
height: 8px;
width: 100%;
background-color: var(--light-bg-color);
border: 1px solid var(--border-color);
background-color: var(--color--surface-muted);
border: 1px solid var(--color--border);
border-radius: 999px;
margin: 8px 0 16px 0;
overflow: hidden;
}

.TranslationProgressModal__progress-bar-fill {
height: 100%;
background-color: var(--accent-color);
background-color: var(--color--primary--surface);
box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.1);
transition: width 0.3s ease-in-out;
}
Expand All @@ -78,9 +78,9 @@
align-items: center;
gap: 8px;
font-size: var(--font-size-s);
color: var(--base-body-color);
color: var(--color--ink);
text-align: left;
border-top: 1px solid var(--border-color);
border-top: 1px solid var(--color--border);
}

.TranslationProgressModal__update-item:first-child {
Expand All @@ -96,19 +96,19 @@

.TranslationProgressModal__update-item--completed
.TranslationProgressModal__update-status {
color: var(--success-color);
color: var(--color--feedback-success--ink);
font-weight: 700;
}

.TranslationProgressModal__update-item--error
.TranslationProgressModal__update-status {
color: var(--alert-color);
color: var(--color--danger--ink);
font-weight: 700;
}

.TranslationProgressModal__update-item--processing
.TranslationProgressModal__update-status {
color: var(--accent-color);
color: var(--color--primary--surface);
}

.TranslationProgressModal__update-message {
Expand All @@ -118,7 +118,7 @@
.TranslationProgressModal__initializing {
padding: 20px;
text-align: center;
color: var(--light-body-color);
color: var(--color--ink-subtle);
}

.TranslationProgressModal__spinner-container {
Expand All @@ -130,8 +130,8 @@

.TranslationProgressModal__errors {
padding: 12px;
background-color: var(--alert-light-bg-color);
color: var(--alert-color);
background-color: var(--color--feedback-fail--outline);
color: var(--color--danger--ink);
border-radius: 4px;
margin-bottom: 20px;
font-size: 14px;
Expand All @@ -149,7 +149,7 @@
width: 100%;
gap: var(--spacing-m);
padding-top: var(--spacing-m);
border-top: 1px solid var(--border-color);
border-top: 1px solid var(--color--border);
}
/*
* TranslationProgressModal.css
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ export default function GlossaryPairEditor({
style={{
flex: 1,
minWidth: 0,
border: '1px solid var(--border-color, #e0e0e0)',
border: '1px solid var(--color--border)',
borderRadius: 4,
padding: '10px 12px',
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
justify-content: flex-start;
align-items: center;
flex-direction: column;
background: var(--page-background, #f6f8fb);
background: var(--color--surface);
}

.container {
Expand All @@ -16,10 +16,10 @@

.card {
position: relative;
background: var(--surface-color, #ffffff);
background: var(--color--surface-muted);
border-radius: 18px;
padding: 26px 26px 24px;
border: 1px solid rgba(148, 163, 184, 0.15);
border: 1px solid var(--color--border);
box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
display: flex;
flex-direction: column;
Expand All @@ -33,7 +33,7 @@
left: 26px;
right: 26px;
height: 1px;
background: rgba(148, 163, 184, 0.28);
background: var(--color--border);
}

.cardHeader {
Expand All @@ -46,14 +46,14 @@
margin: 0;
font-size: var(--font-size-xl);
font-weight: 600;
color: var(--base-body-color);
color: var(--color--ink);
}

.cardCaption {
margin: 0;
font-size: var(--font-size-xs);
line-height: 1.5;
color: var(--light-body-color);
color: var(--color--ink-subtle);
}

.section {
Expand All @@ -67,7 +67,7 @@
letter-spacing: 0.08em;
font-weight: 600;
text-transform: uppercase;
color: rgba(71, 85, 105, 0.78);
color: var(--color--ink-subtle);
}

.localeRow {
Expand All @@ -83,7 +83,7 @@
display: flex;
align-items: center;
justify-content: center;
color: var(--base-body-color);
color: var(--color--ink);
font-size: 18px;
font-weight: 600;
}
Expand All @@ -99,9 +99,9 @@
border-radius: 999px;
font-size: 12px;
font-weight: 500;
background: rgba(93, 90, 252, 0.12);
color: var(--accent-color, #5d5afc);
border: 1px solid rgba(93, 90, 252, 0.18);
background: var(--color--accent--surface);
color: var(--color--accent--ink);
border: 1px solid var(--color--accent--ink);
}

.actions {
Expand All @@ -112,24 +112,24 @@

.helperText {
font-size: 12px;
color: rgba(71, 85, 105, 0.82);
color: var(--color--ink-subtle);
text-align: center;
}

.statusReady {
color: var(--accent-color, #5d5afc);
color: var(--color--accent--ink);
font-weight: 600;
}

.statusPending {
color: #f97316;
color: var(--color--feedback-warning--ink);
font-weight: 600;
}

.loadingOverlay {
position: absolute;
inset: 0;
background: rgba(246, 248, 251, 0.94);
background: var(--color--overlay--surface);
border-radius: 18px;
display: flex;
flex-direction: column;
Expand All @@ -140,13 +140,13 @@

.loadingText {
font-size: 13px;
color: rgba(71, 85, 105, 0.8);
color: var(--color--ink-subtle);
}

.footerNote {
margin-top: 22px;
font-size: 12px;
color: rgba(71, 85, 105, 0.8);
color: var(--color--ink-subtle);
text-align: center;
}

Expand Down
12 changes: 7 additions & 5 deletions ai-translations/src/entrypoints/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -148,28 +148,30 @@
outline: none;
font-family: inherit;
font-size: inherit;
background-color: var(--color-surface);
color: var(--color--ink);
}

.label {
color: var(--light-body-color);
color: var(--color--ink-subtle);
}

.hint {
font-size: var(--font-size-xs);
color: var(--light-body-color);
color: var(--color--ink-subtle);
}

.fieldLabelTitle {
font-size: var(--font-size-xl);
font-weight: 600;
color: var(--base-body-color);
color: var(--color--ink);
margin-top: 16px;
}

.fieldLabelHint {
margin-top: -16px;
font-size: var(--font-size-m);
color: var(--light-body-color);
color: var(--color--ink-subtle);
margin-bottom: 16px;
}

Expand Down Expand Up @@ -210,7 +212,7 @@
display: inline-block;
cursor: help;
margin-left: 8px;
color: #faad14;
color: var(--color--feedback-warning--ink);
}

/* Standard tooltip that appears below the info icon */
Expand Down
Loading