Skip to content

Beautiful, AI-native markdown IDE and LLM wiki

Share one image-attaching message box across bug report and feedback (PRD-8653) (#4911)

Andrew Mikofalvy202c3d41c8fa
diff --git a/.changeset/feedback-paste-drop-images.md b/.changeset/feedback-paste-drop-images.md
new file mode 100644
index 000000000..160903000
--- /dev/null
+++ b/.changeset/feedback-paste-drop-images.md
@@ -0,0 +1,5 @@
+---
+'@inkeep/open-knowledge': patch
+---
+
+The bug report and feedback forms now attach images you drop on, paste into, or attach to the message box.
diff --git a/docs/content/reference/configuration.mdx b/docs/content/reference/configuration.mdx
index dfc02314a..baa526913 100644
--- a/docs/content/reference/configuration.mdx
+++ b/docs/content/reference/configuration.mdx
@@ -127,7 +127,7 @@ Most users never set these — the schema settings above cover the common cases.
| `OK_SHOWALL_MAX_ENTRIES` | Max entries the sidebar's disk-walk listing returns per level before it stops and marks the list truncated (default `50000`) |
| `OK_BRIDGE_TOLERANCE_TELEMETRY` | Set to `1` to record each bridge-tolerance-class fire as a JSONL line in `<project>/.ok/local/tolerance-telemetry.jsonl` (opt-in, local-only, off by default; unstable diagnostic for triaging markdown-fidelity incidents). **Records doc paths in cleartext** — independent of `telemetry.localSink`'s `attributeDenylist`, which redacts span/log attributes, not this file. Deliberately outside the `.ok/local/telemetry/` subtree `ok diagnose bundle` harvests, so the unredacted paths never ship in a bug bundle. |
| `OTEL_SDK_DISABLED` | OpenTelemetry OTLP push gate. Inverted sense: set to `false` to **enable** push (it is off by default). |
-| `OK_BUG_REPORT_INTAKE_URL` | Base URL of the bug-report intake the desktop app's **Help → Report a bug…** upload posts to (e.g. `https://openknowledge.ai`). Must be `https:` — plain `http:` is accepted only for loopback hosts (local testing). Unset (the default), Send makes no network request — it opens a prefilled email draft to [email protected] that you send yourself. |
+| `OK_BUG_REPORT_INTAKE_URL` | Base URL of the intake the desktop app uploads to: reports sent from **Help → Report a bug…**, and images attached to the feedback form. Defaults to `https://openknowledge.ai`. Must be `https:` — plain `http:` is accepted only for loopback hosts (local testing). |
| `OK_FEEDBACK_INTAKE_ORIGIN` | Origin the optional [uninstall feedback](/docs/reference/what-open-knowledge-writes#what-leaves-your-machine) submission posts to (default `https://openknowledge.ai`). Must be `https:` — plain `http:` is accepted only for loopback hosts (local testing). An unusable value drops the submission rather than falling back to the default. |
| `OK_EMBEDDINGS_API_KEY` | Fallback embeddings key for [semantic search](#semantic-search), used when no project key is stored **and only for the default OpenAI endpoint** (a machine-wide env key is never sent to a custom host). Prefer `ok embeddings set-key` for normal use; the env var is convenient for CI / scripted runs against OpenAI. |
diff --git a/docs/content/reference/what-open-knowledge-writes.mdx b/docs/content/reference/what-open-knowledge-writes.mdx
index 3af90b7a7..b599a03bc 100644
--- a/docs/content/reference/what-open-knowledge-writes.mdx
+++ b/docs/content/reference/what-open-knowledge-writes.mdx
@@ -356,8 +356,9 @@ None of your content, by default. Everything above is written to your own disk.
| What | When | Where it goes |
| --- | --- | --- |
| Diagnostic bundle | Only when you run `ok diagnose bundle` (you can inspect it first). On macOS it also carries the crash reports the OS recorded for this app and its helper processes (listed above), which are machine-wide rather than project-scoped; only this app's are collected, never another application's, though a report of ours still names the processes it was running alongside, and the summary printed before the zip is written says what that search found even when the answer is nothing | Wherever you send it |
-| In-app bug report | Only when you click **Send** in the desktop app's **Help → Report a bug…** dialog, or the `Cmd+Shift+D` / `Ctrl+Shift+D` shortcut that opens the same dialog — it builds a secret-redacted zip you can reveal and inspect first, and nothing is sent without that explicit click. The zip carries a picture of the app window unless you uncheck **Screenshot** in that dialog, and the preview there is the picture that would be sent. You can also attach up to three images by dragging them into the dialog, pasting them from the clipboard (`Cmd+V` / `Ctrl+V`), or browsing for files. Neither these images nor the screenshot are scanned or redacted, so review them before sending. A report reached through a surface you opened only to get to the reporter — the command palette, the Help popover, or the Windows and Linux menu bar — waits for that surface to close first, and carries no marker, because the row it would point at has already gone. Every other report you start yourself photographs the screen as it is, so an open menu or another person's document visible at the time is in the picture, and carries a marker drawn where your pointer was, since a screenshot never includes the cursor. No marker is drawn either if the pointer has not moved since the window loaded, or has since left the window. The invitation that appears on its own after a crash is the exception to all of this: it carries no picture at all. After a crash, the same dialog adds an **off-by-default** "Include crash dump" checkbox: a crash dump is a memory snapshot that can contain document content and can't be redacted, and it is only ever attached when you check that box. On macOS the zip also carries the update helper's install log (listed above), which is machine-wide rather than project-scoped; the zip's own README names it and says where it came from. At the **Detailed diagnostics** level — pre-checked on the invitation that follows a crash — it additionally carries the crash reports macOS itself recorded for this app and its helpers (also listed above), which are machine-wide for the same reason and named in the same README; only this app's are collected, never another application's, though a report of ours still names the processes it was running alongside, and the zip always says what that search found even when the answer is nothing. The zip also carries a short send history of the bug reports previously generated on this machine — when each was generated and whether sending it succeeded — which is what makes a report that failed to send diagnosable at all. That history is machine-wide too, so it names the other projects you have filed reports from; it carries no document content, and the README names it the same way | By default, Send makes no network request — it opens a prefilled email draft to [email protected] that you send yourself, naming the zip to attach. Only when an operator has configured a bug-report intake endpoint ([`OK_BUG_REPORT_INTAKE_URL`](./configuration.mdx#environment-variables)) does Send upload the zip there, falling back to the same email draft if the upload fails |
+| In-app bug report | Only when you click **Send** in the desktop app's **Help → Report a bug…** dialog, or the `Cmd+Shift+D` / `Ctrl+Shift+D` shortcut that opens the same dialog — it builds a secret-redacted zip you can reveal and inspect first, and nothing is sent without that explicit click. The zip carries a picture of the app window unless you uncheck **Screenshot** in that dialog, and the preview there is the picture that would be sent. You can also attach up to three images by dropping them on the **What happened?** box, pasting them anywhere in the dialog (`Cmd+V` / `Ctrl+V`), or browsing with the paperclip in that box. Neither these images nor the screenshot are scanned or redacted, so review them before sending. A report reached through a surface you opened only to get to the reporter — the command palette, the Help popover, or the Windows and Linux menu bar — waits for that surface to close first, and carries no marker, because the row it would point at has already gone. Every other report you start yourself photographs the screen as it is, so an open menu or another person's document visible at the time is in the picture, and carries a marker drawn where your pointer was, since a screenshot never includes the cursor. No marker is drawn either if the pointer has not moved since the window loaded, or has since left the window. The invitation that appears on its own after a crash is the exception to all of this: it carries no picture at all. After a crash, the same dialog adds an **off-by-default** "Include crash dump" checkbox: a crash dump is a memory snapshot that can contain document content and can't be redacted, and it is only ever attached when you check that box. On macOS the zip also carries the update helper's install log (listed above), which is machine-wide rather than project-scoped; the zip's own README names it and says where it came from. At the **Detailed diagnostics** level — pre-checked on the invitation that follows a crash — it additionally carries the crash reports macOS itself recorded for this app and its helpers (also listed above), which are machine-wide for the same reason and named in the same README; only this app's are collected, never another application's, though a report of ours still names the processes it was running alongside, and the zip always says what that search found even when the answer is nothing. The zip also carries a short send history of the bug reports previously generated on this machine — when each was generated and whether sending it succeeded — which is what makes a report that failed to send diagnosable at all. That history is machine-wide too, so it names the other projects you have filed reports from; it carries no document content, and the README names it the same way | Send uploads the zip to the bug-report intake: `openknowledge.ai` unless [`OK_BUG_REPORT_INTAKE_URL`](./configuration.mdx#environment-variables) points elsewhere. If the upload fails, Send falls back to a prefilled email draft to [email protected] that you send yourself, naming the zip to attach |
| Uninstall feedback | Only if you answer the optional "Before you go" screen or prompt. The macOS desktop asks after you confirm removal, before the app quits and cleanup starts; feedback can be sent even if cleanup later fails. Interactive `ok uninstall` asks only after successful cleanup. Skipping sends nothing; CLI runs with `--yes`, `--json`, or non-interactive input never ask | `openknowledge.ai/api/feedback` — the reason you picked, your note, your email address if you gave one, plus the app version and platform. It files one ticket for the team; nothing from your notes is included |
+| Feedback form | Only when you click **Send** in the feedback form, opened from **Help → Send feedback**, the command palette's **Send feedback** command, or the feedback card in the sidebar. Images you drop on, paste into, or attach to the message box go with it; like bug report images, they are not scanned or redacted | `openknowledge.ai/api/feedback` — your rating, the reasons you picked, your note, your email address if you gave one, up to three attached images, plus the app version and platform. In the desktop app the images upload first to the bug-report intake (`openknowledge.ai` unless [`OK_BUG_REPORT_INTAKE_URL`](./configuration.mdx#environment-variables) points elsewhere) and the feedback carries links to them. If an image upload fails, the images go inline with the feedback to `openknowledge.ai/api/feedback` instead |
| Semantic search embeddings | Only when you enable [semantic search](./configuration.mdx#semantic-search) **and** set a key — off by default | Your configured embeddings provider (OpenAI by default) |
| GitHub sync / share | When you sync, clone, publish, or share | GitHub |
| Update check | Automatically — on launch and periodically while the desktop app runs | OpenKnowledge update service (`openknowledge.ai/updates`), which redirects to GitHub; sends the app version and channel |
diff --git a/packages/app/src/components/FeedbackForm.attachments.dom.test.tsx b/packages/app/src/components/FeedbackForm.attachments.dom.test.tsx
new file mode 100644
index 000000000..a6f54c5c2
--- /dev/null
+++ b/packages/app/src/components/FeedbackForm.attachments.dom.test.tsx
@@ -0,0 +1,100 @@
+import { cleanup, createEvent, fireEvent, render, screen, waitFor } from '@testing-library/react';
+import { afterEach, describe, expect, test, vi } from 'vitest';
+import { TooltipProvider } from '@/components/ui/tooltip';
+import { makeFilesDataTransfer } from '@/editor/composer-drop.test-helper';
+import { FeedbackForm } from './FeedbackForm';
+
+afterEach(() => {
+ cleanup();
+ vi.unstubAllGlobals();
+});
+
+function renderForm() {
+ render(
+ <TooltipProvider>
+ <textarea aria-label="Editor" />
+ <FeedbackForm source="test" />
+ </TooltipProvider>,
+ );
+ return screen.getByPlaceholderText('Tell us more (optional)');
+}
+
+function paste(target: Element, clipboardData: object) {
+ const event = createEvent.paste(target, { clipboardData });
+ fireEvent(target, event);
+ return event;
+}
+
+function png(name: string, body = 'png') {
+ return new File([body], name, { type: 'image/png' });
+}
+
+describe('feedback form image intake', () => {
+ test('attaches an image pasted into the message and announces it', async () => {
+ const message = renderForm();
+ const event = paste(message, makeFilesDataTransfer([png('image.png')]));
+ expect(event.defaultPrevented).toBe(true);
+ expect(await screen.findByText('image.png')).not.toBeNull();
+ expect(screen.getByText('1 image attached')).not.toBeNull();
+ });
+
+ test('leaves image pastes outside the form, such as in the editor, alone', () => {
+ renderForm();
+ const event = paste(
+ screen.getByRole('textbox', { name: 'Editor' }),
+ makeFilesDataTransfer([png('image.png')]),
+ );
+ expect(event.defaultPrevented).toBe(false);
+ expect(screen.queryByText('image.png')).toBeNull();
+ });
+
+ test('leaves text pastes into the message alone', () => {
+ const message = renderForm();
+ const event = paste(message, {
+ types: ['text/plain'],
+ files: [],
+ items: [],
+ getData: () => 'hi',
+ });
+ expect(event.defaultPrevented).toBe(false);
+ });
+
+ test('attaches an image dropped on the message box', async () => {
+ const message = renderForm();
+ const dataTransfer = makeFilesDataTransfer([png('dropped.png')]);
+ fireEvent.dragOver(message, { dataTransfer });
+ fireEvent.drop(message, { dataTransfer });
+ expect(await screen.findByText('dropped.png')).not.toBeNull();
+ });
+
+ test('says why a pasted image was not attached', async () => {
+ const message = renderForm();
+ paste(message, makeFilesDataTransfer([new File(['gif'], 'image.gif', { type: 'image/gif' })]));
+ expect(await screen.findByText('Only PNG, JPEG, or WebP images are allowed.')).not.toBeNull();
+ expect(screen.queryByText('image.gif')).toBeNull();
+ });
+
+ test('keeps two different pasted screenshots that share the clipboard name', async () => {
+ const message = renderForm();
+ paste(message, makeFilesDataTransfer([png('image.png')]));
+ paste(message, makeFilesDataTransfer([png('image.png', 'bigger png')]));
+ await waitFor(() => expect(screen.getAllByText('image.png')).toHaveLength(2));
+ expect(screen.getByText('2 images attached')).not.toBeNull();
+ });
+
+ test('ignores image pastes while the feedback is being sent', async () => {
+ vi.stubGlobal('fetch', () => new Promise(() => {}));
+ const message = renderForm();
+ fireEvent.click(screen.getByRole('radio', { name: 'Good' }));
+ fireEvent.click(screen.getByRole('button', { name: 'Send' }));
+ await screen.findByRole('button', { name: 'Sending' });
+ const event = paste(message, makeFilesDataTransfer([png('image.png')]));
+ expect(event.defaultPrevented).toBe(false);
+ expect(screen.queryByText('image.png')).toBeNull();
+ });
+
+ test('tells people they can drop, paste, or attach images', () => {
+ renderForm();
+ expect(screen.getByText('Drop, paste, or attach up to 3 images.')).not.toBeNull();
+ });
+});
diff --git a/packages/app/src/components/FeedbackForm.tsx b/packages/app/src/components/FeedbackForm.tsx
index e51760fc7..759ba1f44 100644
--- a/packages/app/src/components/FeedbackForm.tsx
+++ b/packages/app/src/components/FeedbackForm.tsx
@@ -17,12 +17,11 @@ import {
MAX_IMAGE_ATTACHMENTS_TOTAL_BYTES,
} from '@/lib/image-attachments';
import { cn } from '@/lib/utils';
-import { ImageAttachmentList, ImageAttachmentPicker } from './ImageAttachments';
+import { ImageAttachmentTextarea, useImageAttachmentIntake } from './ImageAttachments';
import { Button } from './ui/button';
import { Checkbox } from './ui/checkbox';
import { Form, FormControl, FormField, FormItem, FormLabel, FormMessage } from './ui/form';
import { Input } from './ui/input';
-import { Textarea } from './ui/textarea';
import { ToggleGroup, ToggleGroupItem } from './ui/toggle-group';
const REASONS: { value: string; label: MessageDescriptor }[] = [
@@ -107,6 +106,11 @@ export const FeedbackForm = ({
const attachmentsError = form.formState.errors.attachments;
const setAttachments = (files: File[]) =>
form.setValue('attachments', files, { shouldValidate: true });
+ const attachmentIntake = useImageAttachmentIntake({
+ files: attachments,
+ onChange: setAttachments,
+ disabled: form.formState.isSubmitting,
+ });
const onSubmit = async (data: z.infer<typeof schema>) => {
try {
@@ -153,6 +157,7 @@ export const FeedbackForm = ({
<Form {...form}>
<form
onSubmit={form.handleSubmit(onSubmit)}
+ onPaste={attachmentIntake.onPaste}
className={cn(compact ? 'space-y-3' : 'space-y-5', className)}
>
{(title || onDismiss) && (
@@ -259,36 +264,21 @@ export const FeedbackForm = ({
)}
{}
- <div className="space-y-2">
- <FormField
- control={form.control}
- name="message"
- render={({ field }) => (
- <FormItem>
- <FormControl>
- <div className="relative">
- <Textarea
- {...field}
- placeholder={t`Tell us more (optional)`}
- className={cn('resize-none pb-9', compact ? 'min-h-16' : 'min-h-20')}
- />
- <ImageAttachmentPicker
- files={attachments}
- onChange={setAttachments}
- className="absolute bottom-1.5 left-1.5"
- />
- </div>
- </FormControl>
- </FormItem>
- )}
- />
-
- <ImageAttachmentList
- files={attachments}
- onChange={setAttachments}
- error={attachmentsError?.message ?? null}
- />
- </div>
+ <FormField
+ control={form.control}
+ name="message"
+ render={({ field }) => (
+ <FormItem>
+ <ImageAttachmentTextarea
+ {...field}
+ intake={attachmentIntake}
+ error={attachmentsError?.message ?? null}
+ placeholder={t`Tell us more (optional)`}
+ className={compact ? 'min-h-16' : 'min-h-20'}
+ />
+ </FormItem>
+ )}
+ />
</div>
<div className="space-y-2">
{}
diff --git a/packages/app/src/components/ImageAttachmentTextarea.dom.test.tsx b/packages/app/src/components/ImageAttachmentTextarea.dom.test.tsx
new file mode 100644
index 000000000..3a29a5fbe
--- /dev/null
+++ b/packages/app/src/components/ImageAttachmentTextarea.dom.test.tsx
@@ -0,0 +1,208 @@
+import { cleanup, createEvent, fireEvent, render, screen } from '@testing-library/react';
+import userEvent from '@testing-library/user-event';
+import { useState } from 'react';
+import { createPortal } from 'react-dom';
+import { afterEach, describe, expect, test, vi } from 'vitest';
+import { ImageAttachmentTextarea, useImageAttachmentIntake } from '@/components/ImageAttachments';
+import { TooltipProvider } from '@/components/ui/tooltip';
+import { makeFilesDataTransfer } from '@/editor/composer-drop.test-helper';
+import { MAX_IMAGE_ATTACHMENTS_TOTAL_BYTES } from '@/lib/image-attachments';
+
+afterEach(cleanup);
+
+function Harness({
+ disabled = false,
+ onChange,
+}: {
+ disabled?: boolean;
+ onChange?: (files: File[]) => void;
+}) {
+ const [files, setFiles] = useState<File[]>([]);
+ const [note, setNote] = useState('');
+ const change = (next: File[]) => {
+ onChange?.(next);
+ setFiles(next);
+ };
+ const intake = useImageAttachmentIntake({ files, onChange: change, disabled });
+ return (
+ <TooltipProvider>
+ <div onPaste={intake.onPaste}>
+ <ImageAttachmentTextarea
+ aria-label="What happened?"
+ value={note}
+ onChange={(event) => setNote(event.target.value)}
+ intake={intake}
+ />
+ <button type="button">Other control</button>
+ <p data-testid="attached">{files.map((f) => f.name).join(', ')}</p>
+ {createPortal(<button type="button">Close preview</button>, document.body)}
+ </div>
+ </TooltipProvider>
+ );
+}
+
+const note = () => screen.getByRole('textbox', { name: 'What happened?' });
+const attached = () => screen.getByTestId('attached').textContent;
+
+function drop(files: File[], target: Element = note()) {
+ const event = createEvent.drop(target, { dataTransfer: makeFilesDataTransfer(files) });
+ fireEvent(target, event);
+ return event;
+}
+
+function paste(target: Element, clipboardData: object) {
+ const event = createEvent.paste(target, { clipboardData });
+ fireEvent(target, event);
+ return event;
+}
+
+function pick(files: File[]) {
+ const input = document.querySelector('input[type="file"]');
+ if (input === null) throw new Error('Missing picker');
+ fireEvent.change(input, { target: { files } });
+}
+
+function png(name: string, body = 'png') {
+ return new File([body], name, { type: 'image/png' });
+}
+
+describe('image attachment text box', () => {
+ test('tells people they can drop, paste, or attach, and ties that hint to the box', () => {
+ render(<Harness />);
+ const hint = screen.getByText('Drop, paste, or attach up to 3 images.');
+ expect(note().getAttribute('aria-describedby')).toContain(hint.id);
+ });
+
+ test('attaches images dropped on the text box and deduplicates them', () => {
+ render(<Harness />);
+ drop([png('screen.png')]);
+ drop([png('screen.png'), png('photo.png')]);
+ expect(attached()).toBe('screen.png, photo.png');
+ });
+
+ test('an image dropped on the attach button in the box corner attaches too', () => {
+ render(<Harness />);
+ drop([png('corner.png')], screen.getByRole('button', { name: 'Attach images' }));
+ expect(attached()).toBe('corner.png');
+ });
+
+ test('leaves dragged text alone so it drops into the box natively', () => {
+ render(<Harness />);
+ const dataTransfer = { types: ['text/plain'], files: [], items: [], getData: () => 'hi' };
+ const over = createEvent.dragOver(note(), { dataTransfer });
+ fireEvent(note(), over);
+ const dropped = createEvent.drop(note(), { dataTransfer });
+ fireEvent(note(), dropped);
+ expect(over.defaultPrevented).toBe(false);
+ expect(dropped.defaultPrevented).toBe(false);
+ expect(attached()).toBe('');
+ });
+
+ test('rejects unsupported files, oversized batches and over-cap batches visibly', () => {
+ const onChange = vi.fn();
+ render(<Harness onChange={onChange} />);
+ drop([new File(['text'], 'note.txt', { type: 'text/plain' })]);
+ expect(screen.getByRole('alert').textContent).toBe(
+ 'No images added. Only PNG, JPEG, or WebP images are allowed.',
+ );
+ drop([
+ new File([new Uint8Array(MAX_IMAGE_ATTACHMENTS_TOTAL_BYTES + 1)], 'big.png', {
+ type: 'image/png',
+ }),
+ ]);
+ expect(screen.getByRole('alert').textContent).toBe(
+ 'No images added. Attachments must total under 3 MB.',
+ );
+ drop([png('1.png'), png('2.png'), png('3.png'), png('4.png')]);
+ expect(screen.getByRole('alert').textContent).toBe(
+ 'No images added. You can attach up to 3 images.',
+ );
+ expect(onChange).not.toHaveBeenCalled();
+ drop([png('small.png')]);
+ expect(onChange).toHaveBeenCalledOnce();
+ expect(screen.queryByRole('alert')).toBeNull();
+ });
+
+ test('attaches pasted images wherever focus is inside the form', () => {
+ render(<Harness />);
+ const fromNote = paste(note(), makeFilesDataTransfer([png('image.png')]));
+ expect(fromNote.defaultPrevented).toBe(true);
+ paste(
+ screen.getByRole('button', { name: 'Other control' }),
+ makeFilesDataTransfer([png('second.png')]),
+ );
+ expect(attached()).toBe('image.png, second.png');
+ });
+
+ test('keeps two different pasted screenshots that share the clipboard name', () => {
+ render(<Harness />);
+ paste(note(), makeFilesDataTransfer([png('image.png')]));
+ paste(note(), makeFilesDataTransfer([png('image.png', 'bigger png')]));
+ expect(attached()).toBe('image.png, image.png');
+ });
+
+ test('announces how many images are attached', () => {
+ render(<Harness />);
+ paste(note(), makeFilesDataTransfer([png('image.png')]));
+ expect(screen.getByText('1 image attached')).not.toBeNull();
+ paste(note(), makeFilesDataTransfer([png('second.png')]));
+ expect(screen.getByText('2 images attached')).not.toBeNull();
+ });
+
+ test('ignores pasted images from content portaled out of the form, like a stacked dialog', () => {
+ render(<Harness />);
+ const event = paste(
+ screen.getByRole('button', { name: 'Close preview' }),
+ makeFilesDataTransfer([png('image.png')]),
+ );
+ expect(event.defaultPrevented).toBe(false);
+ expect(attached()).toBe('');
+ });
+
+ test('leaves text pastes alone and says why a pasted image was not attached', () => {
+ render(<Harness />);
+ const text = paste(note(), {
+ types: ['text/plain'],
+ files: [],
+ items: [],
+ getData: () => 'hi',
+ });
+ expect(text.defaultPrevented).toBe(false);
+ paste(note(), makeFilesDataTransfer([new File(['gif'], 'image.gif', { type: 'image/gif' })]));
+ expect(screen.getByRole('alert').textContent).toBe(
+ 'No images added. Only PNG, JPEG, or WebP images are allowed.',
+ );
+ });
+
+ test('browsing attaches through the same checks as paste and drop', () => {
+ render(<Harness />);
+ pick([new File(['gif'], 'image.gif', { type: 'image/gif' })]);
+ expect(screen.getByRole('alert').textContent).toBe(
+ 'No images added. Only PNG, JPEG, or WebP images are allowed.',
+ );
+ pick([png('picked.png')]);
+ expect(attached()).toBe('picked.png');
+ });
+
+ test('the attach button opens the file picker', async () => {
+ render(<Harness />);
+ const input = document.querySelector('input[type="file"]');
+ if (!(input instanceof HTMLInputElement)) throw new Error('Missing picker');
+ const click = vi.spyOn(input, 'click');
+ await userEvent.click(screen.getByRole('button', { name: 'Attach images' }));
+ expect(click).toHaveBeenCalledOnce();
+ });
+
+ test('ignores pastes, drops and browsing while disabled', () => {
+ const onChange = vi.fn();
+ render(<Harness disabled onChange={onChange} />);
+ const event = paste(note(), makeFilesDataTransfer([png('image.png')]));
+ expect(event.defaultPrevented).toBe(false);
+ drop([png('screen.png')]);
+ expect(screen.getByRole('button', { name: 'Attach images' }).hasAttribute('disabled')).toBe(
+ true,
+ );
+ expect(onChange).not.toHaveBeenCalled();
+ expect(attached()).toBe('');
+ });
+});
diff --git a/packages/app/src/components/ImageAttachments.tsx b/packages/app/src/components/ImageAttachments.tsx
index 9273e44dd..5c46d0855 100644
--- a/packages/app/src/components/ImageAttachments.tsx
+++ b/packages/app/src/components/ImageAttachments.tsx
@@ -1,12 +1,24 @@
-import { Trans, useLingui } from '@lingui/react/macro';
+import { Plural, Trans, useLingui } from '@lingui/react/macro';
import { Paperclip, X } from 'lucide-react';
-import { type FC, useEffect, useRef, useState } from 'react';
+import {
+ type ClipboardEvent,
+ type ComponentProps,
+ type DragEvent,
+ type FC,
+ type ReactNode,
+ useEffect,
+ useId,
+ useRef,
+ useState,
+} from 'react';
+import { isExternalFileDrag } from '@/components/file-tree-adapter';
+import { collectImageFiles } from '@/lib/acp/image-attachment';
import {
ACCEPTED_IMAGE_TYPES,
formatFileSize,
type ImageAttachmentProblem,
+ imageAttachmentsProblem,
MAX_IMAGE_ATTACHMENTS,
- mergeImageAttachments,
} from '@/lib/image-attachments';
const MAX_ATTACHMENTS = MAX_IMAGE_ATTACHMENTS;
@@ -24,6 +36,7 @@ import {
} from './ui/attachment';
import { Button } from './ui/button';
import { Input } from './ui/input';
+import { Textarea } from './ui/textarea';
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from './ui/tooltip';
const ImageAttachmentPreview: FC<{ file: File }> = ({ file }) => {
@@ -36,16 +49,16 @@ const ImageAttachmentPreview: FC<{ file: File }> = ({ file }) => {
return url ? <img src={url} alt="" className="size-full object-cover" /> : null;
};
-export interface ImageAttachmentPickerProps {
+interface ImageAttachmentPickerProps {
files: readonly File[];
- onChange: (files: File[]) => void;
+ onPick: (picked: FileList | null) => void;
disabled?: boolean;
className?: string;
}
-export const ImageAttachmentPicker: FC<ImageAttachmentPickerProps> = ({
+const ImageAttachmentPicker: FC<ImageAttachmentPickerProps> = ({
files,
- onChange,
+ onPick,
disabled = false,
className,
}) => {
@@ -89,7 +102,7 @@ export const ImageAttachmentPicker: FC<ImageAttachmentPickerProps> = ({
multiple
className="hidden"
onChange={(e) => {
- onChange(mergeImageAttachments(files, e.target.files));
+ onPick(e.target.files);
e.target.value = '';
}}
/>
@@ -97,17 +110,13 @@ export const ImageAttachmentPicker: FC<ImageAttachmentPickerProps> = ({
);
};
-export interface ImageAttachmentListProps {
+interface ImageAttachmentListProps {
files: readonly File[];
onChange: (files: File[]) => void;
- error?: string | null;
+ error?: ReactNode;
}
-export const ImageAttachmentList: FC<ImageAttachmentListProps> = ({
- files,
- onChange,
- error = null,
-}) => {
+const ImageAttachmentList: FC<ImageAttachmentListProps> = ({ files, onChange, error = null }) => {
const { t } = useLingui();
if (files.length === 0 && error === null) return null;
return (
@@ -136,12 +145,16 @@ export const ImageAttachmentList: FC<ImageAttachmentListProps> = ({
))}
</AttachmentGroup>
)}
- {error !== null && <p className="text-destructive text-sm">{error}</p>}
+ {error !== null && (
+ <p role="alert" className="text-destructive text-sm">
+ {error}
+ </p>
+ )}
</>
);
};
-export function useImageAttachmentProblemMessage(): (
+function useImageAttachmentProblemMessage(): (
problem: ImageAttachmentProblem | null,
) => string | null {
const { t } = useLingui();
@@ -152,3 +165,157 @@ export function useImageAttachmentProblemMessage(): (
return t`Attachments must total under 3 MB.`;
};
}
+
+function ImageAttachmentAnnouncer({ count }: { count: number }) {
+ return (
+ <span role="status" className="sr-only">
+ {count > 0 && <Plural value={count} one="# image attached" other="# images attached" />}
+ </span>
+ );
+}
+
+export interface ImageAttachmentIntake {
+ files: readonly File[];
+ setFiles: (files: File[]) => void;
+ disabled: boolean;
+ add: (picked: ArrayLike<File> | null) => void;
+ clearProblem: () => void;
+ problem: ImageAttachmentProblem | null;
+ dragging: boolean;
+ onPaste: (event: ClipboardEvent<HTMLElement>) => void;
+ onDragOver: (event: DragEvent<HTMLElement>) => void;
+ onDragLeave: (event: DragEvent<HTMLElement>) => void;
+ onDrop: (event: DragEvent<HTMLElement>) => void;
+}
+
+export function useImageAttachmentIntake({
+ files,
+ onChange,
+ disabled,
+}: {
+ files: readonly File[];
+ onChange: (files: File[]) => void;
+ disabled: boolean;
+}): ImageAttachmentIntake {
+ const [dragging, setDragging] = useState(false);
+ const [rejection, setRejection] = useState<{
+ files: readonly File[];
+ problem: ImageAttachmentProblem;
+ } | null>(null);
+
+ function add(picked: ArrayLike<File> | null) {
+ if (disabled || picked === null || picked.length === 0) return;
+ const unique = new Map(files.map((file) => [`${file.name}:${file.size}`, file]));
+ for (const file of Array.from(picked)) unique.set(`${file.name}:${file.size}`, file);
+ const next = [...unique.values()];
+ const error = imageAttachmentsProblem(next);
+ setRejection(error === null ? null : { files, problem: error });
+ if (error === null) onChange(next);
+ }
+
+ return {
+ files,
+ setFiles: onChange,
+ disabled,
+ add,
+ clearProblem: () => setRejection(null),
+ problem: rejection?.files === files ? rejection.problem : null,
+ dragging: dragging && !disabled,
+ onPaste(event) {
+ if (disabled) return;
+ if (!(event.target instanceof Node) || !event.currentTarget.contains(event.target)) return;
+ const pasted = collectImageFiles(event.clipboardData);
+ if (pasted.length === 0) return;
+ event.preventDefault();
+ add(pasted);
+ },
+ onDragOver(event) {
+ if (!isExternalFileDrag(event)) return;
+ event.preventDefault();
+ event.stopPropagation();
+ event.dataTransfer.dropEffect = disabled ? 'none' : 'copy';
+ if (!disabled) setDragging(true);
+ },
+ onDragLeave(event) {
+ if (
+ !(event.relatedTarget instanceof Node) ||
+ !event.currentTarget.contains(event.relatedTarget)
+ )
+ setDragging(false);
+ },
+ onDrop(event) {
+ setDragging(false);
+ if (!isExternalFileDrag(event)) return;
+ event.preventDefault();
+ event.stopPropagation();
+ add(event.dataTransfer.files);
+ },
+ };
+}
+
+export interface ImageAttachmentTextareaProps
+ extends Omit<
+ ComponentProps<typeof Textarea>,
+ 'disabled' | 'onDragOver' | 'onDragLeave' | 'onDrop'
+ > {
+ intake: ImageAttachmentIntake;
+ error?: string | null;
+ hint?: ReactNode;
+}
+
+export function ImageAttachmentTextarea({
+ intake,
+ error = null,
+ hint,
+ className,
+ 'aria-describedby': describedBy,
+ ...textareaProps
+}: ImageAttachmentTextareaProps) {
+ const hintId = useId();
+ const problemMessage = useImageAttachmentProblemMessage();
+ return (
+ <div className="flex min-w-0 flex-col gap-2">
+ {/* biome-ignore lint/a11y/noStaticElementInteractions: file drop target only; keyboard users paste or use the attach button. */}
+ <div
+ className="relative"
+ onDragOver={intake.onDragOver}
+ onDragLeave={intake.onDragLeave}
+ onDrop={intake.onDrop}
+ >
+ <Textarea
+ {...textareaProps}
+ disabled={intake.disabled}
+ aria-describedby={[describedBy, hintId].filter(Boolean).join(' ')}
+ className={cn(
+ 'resize-none pb-9',
+ className,
+ intake.dragging && 'border-primary bg-primary/5',
+ )}
+ />
+ <ImageAttachmentPicker
+ files={intake.files}
+ onPick={intake.add}
+ disabled={intake.disabled}
+ className="absolute bottom-1.5 start-1.5"
+ />
+ <ImageAttachmentAnnouncer count={intake.files.length} />
+ </div>
+ <p id={hintId} className="text-xs text-muted-foreground">
+ <Trans>Drop, paste, or attach up to {MAX_ATTACHMENTS} images.</Trans>
+ {hint !== undefined && <> {hint}</>}
+ </p>
+ <ImageAttachmentList
+ files={intake.files}
+ onChange={intake.setFiles}
+ error={
+ error ??
+ (intake.problem === null ? null : (
+ <>
+ <Trans>No images added.</Trans> <span>{problemMessage(intake.problem)}</span>
+ </>
+ ))
+ }
+ />
+ </div>
+ );
+}
diff --git a/packages/app/src/components/ReportBugDialog.dom.test.tsx b/packages/app/src/components/ReportBugDialog.dom.test.tsx
index d6cbc378a..1c69b4421 100644
--- a/packages/app/src/components/ReportBugDialog.dom.test.tsx
+++ b/packages/app/src/components/ReportBugDialog.dom.test.tsx
@@ -6,12 +6,13 @@ import type {
ReportBundleSummary,
} from '@inkeep/open-knowledge-core';
import type { OkBugReportSendInput } from '@inkeep/open-knowledge-core/desktop-bridge';
-import { act, cleanup, render, screen } from '@testing-library/react';
+import { act, cleanup, createEvent, fireEvent, render, screen } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import type { ReactNode } from 'react';
import { useEffect, useState } from 'react';
import { afterEach, describe, expect, test, vi } from 'vitest';
import { TooltipProvider } from '@/components/ui/tooltip';
+import { makeFilesDataTransfer } from '@/editor/composer-drop.test-helper';
import { bugReportSendManager } from '@/lib/bug-report-send-manager';
import { contactEmailStore } from '@/lib/contact-email-store';
import { installPointerPositionTracker } from '@/lib/pointer-position';
@@ -861,6 +862,47 @@ describe('ReportBugDialog', () => {
expect(log.createCalls).toEqual([{ level: 'standard', includeScreenshot: true }]);
});
+ test('an image pasted into the note attaches and is announced', async () => {
+ installBridge();
+ await renderDialog();
+ const note = screen.getByRole('textbox', { name: /what happened/i });
+ const event = createEvent.paste(note, {
+ clipboardData: makeFilesDataTransfer([new File(['png'], 'image.png', { type: 'image/png' })]),
+ });
+ fireEvent(note, event);
+ expect(event.defaultPrevented).toBe(true);
+ expect(await screen.findByText('image.png')).not.toBeNull();
+ expect(screen.getByText('1 image attached')).not.toBeNull();
+ });
+
+ test('an image pasted while the screenshot preview is open does not attach behind it', async () => {
+ installBridge({ captureScreenshot: () => Promise.resolve(SCREENSHOT) });
+ await renderDialog();
+ await userEvent.click(screen.getByRole('button', { name: 'Enlarge screenshot' }));
+ const preview = await screen.findByRole('dialog', { name: 'Screenshot preview' });
+ const event = createEvent.paste(preview, {
+ clipboardData: makeFilesDataTransfer([new File(['png'], 'image.png', { type: 'image/png' })]),
+ });
+ fireEvent(preview, event);
+ expect(event.defaultPrevented).toBe(false);
+ await userEvent.keyboard('{Escape}');
+ expect(screen.queryByText('image.png')).toBeNull();
+ });
+
+ test('an image pasted on the review step is not attached behind it', async () => {
+ installBridge();
+ await renderDialog();
+ await createReport();
+ const review = screen.getByRole('dialog');
+ const event = createEvent.paste(review, {
+ clipboardData: makeFilesDataTransfer([new File(['png'], 'image.png', { type: 'image/png' })]),
+ });
+ fireEvent(review, event);
+ expect(event.defaultPrevented).toBe(false);
+ await userEvent.click(screen.getByRole('button', { name: 'Back' }));
+ expect(screen.queryByText('image.png')).toBeNull();
+ });
+
test('unchecking the screenshot keeps it out of create', async () => {
const log = installBridge({ captureScreenshot: () => Promise.resolve(SCREENSHOT) });
await renderDialog();
@@ -1313,7 +1355,9 @@ describe('ReportBugDialog — reporter attachments', () => {
installBridge();
await renderDialog();
- expect(screen.getByText('Drop images here')).not.toBeNull();
+ expect(
+ screen.getByText("Drop, paste, or attach up to 3 images. Images aren't redacted."),
+ ).not.toBeNull();
expect(screen.getByText(/aren't redacted/)).not.toBeNull();
});
@@ -1379,6 +1423,55 @@ describe('ReportBugDialog — reporter attachments', () => {
expect(log.createCalls[0]?.attachments).toHaveLength(2);
});
+ test('a rejected addition does not come back after Create and Back', async () => {
+ installBridge();
+ await renderDialog();
+ await userEvent.upload(fileInput(), [pngFile('a.png'), pngFile('b.png'), pngFile('c.png')]);
+ await userEvent.upload(fileInput(), pngFile('d.png'));
+ expect(screen.getByText('No images added.')).not.toBeNull();
+ await createReport();
+ await userEvent.click(screen.getByRole('button', { name: 'Back' }));
+ expect(screen.queryByText('No images added.')).toBeNull();
+ });
+
+ test('a rejected addition stays visible when Create stops on an invalid email', async () => {
+ const log = installBridge();
+ await renderDialog();
+ await userEvent.upload(fileInput(), [pngFile('a.png'), pngFile('b.png'), pngFile('c.png')]);
+ await userEvent.upload(fileInput(), pngFile('d.png'));
+ await userEvent.click(screen.getByRole('checkbox', { name: 'Share your email for followups' }));
+ await userEvent.type(screen.getByPlaceholderText('[email protected]'), 'nope');
+ await userEvent.click(screen.getByRole('button', { name: 'Create report' }));
+ expect(screen.getByText('Please enter a valid email.')).not.toBeNull();
+ expect(screen.getByText('No images added.')).not.toBeNull();
+ expect(log.createCalls).toHaveLength(0);
+ });
+
+ test('a rejected addition stays visible when Create fails', async () => {
+ installBridge({
+ create: () => Promise.resolve({ ok: false, error: 'zip destination not writable' }),
+ });
+ await renderDialog();
+ await userEvent.upload(fileInput(), [pngFile('a.png'), pngFile('b.png'), pngFile('c.png')]);
+ await userEvent.upload(fileInput(), pngFile('d.png'));
+ await userEvent.click(screen.getByRole('button', { name: 'Create report' }));
+ expect(await screen.findByText("Couldn't create the report")).not.toBeNull();
+ expect(screen.getByText('No images added.')).not.toBeNull();
+ });
+
+ test('an image pasted while the report is being created is not attached', async () => {
+ installBridge({ create: () => new Promise(() => {}) });
+ await renderDialog();
+ const note = screen.getByRole('textbox', { name: /what happened/i });
+ await userEvent.click(screen.getByRole('button', { name: 'Create report' }));
+ const event = createEvent.paste(note, {
+ clipboardData: makeFilesDataTransfer([new File(['png'], 'image.png', { type: 'image/png' })]),
+ });
+ fireEvent(note, event);
+ expect(event.defaultPrevented).toBe(false);
+ expect(screen.queryByText('image.png')).toBeNull();
+ });
+
test('a report with no attachments sends includeAttachments false', async () => {
const log = installBridge();
await renderDialog();
diff --git a/packages/app/src/components/ReportBugDialogBody.tsx b/packages/app/src/components/ReportBugDialogBody.tsx
index 613edf527..9f9b4a6a1 100644
--- a/packages/app/src/components/ReportBugDialogBody.tsx
+++ b/packages/app/src/components/ReportBugDialogBody.tsx
@@ -19,7 +19,7 @@ import {
} from 'lucide-react';
import { useEffect, useId, useRef, useState } from 'react';
import { BugReportPreviousReports } from '@/components/BugReportHistory';
-import { ImageAttachmentList } from '@/components/ImageAttachments';
+import { ImageAttachmentTextarea, useImageAttachmentIntake } from '@/components/ImageAttachments';
import { Badge } from '@/components/ui/badge';
import { Button } from '@/components/ui/button';
import { Checkbox } from '@/components/ui/checkbox';
@@ -36,7 +36,6 @@ import {
} from '@/components/ui/dialog';
import { Input } from '@/components/ui/input';
import { Spinner } from '@/components/ui/spinner';
-import { Textarea } from '@/components/ui/textarea';
import { useContactEmail } from '@/hooks/use-contact-email';
import { bugReportSendManager } from '@/lib/bug-report-send-manager';
import { formatBundleSize, zipBasename } from '@/lib/bug-report-support';
@@ -44,7 +43,6 @@ import { commitContactEmail } from '@/lib/contact-email-store';
import { isImageAttachmentType } from '@/lib/image-attachments';
import { revealInFileManagerLabel } from '@/lib/platform-labels';
import { isValidContactEmail } from '@/lib/validate-email';
-import { ReportBugImageDropzone } from './ReportBugImageDropzone';
export interface ReportBugCrashContext {
source: string;
@@ -179,6 +177,11 @@ function ReportBugDialog({
const [includeDump, setIncludeDump] = useState(crashInvite?.minidumpAvailable === true);
const [includeScreenshot, setIncludeScreenshot] = useState(true);
const [attachments, setAttachments] = useState<File[]>([]);
+ const attachmentIntake = useImageAttachmentIntake({
+ files: attachments,
+ onChange: setAttachments,
+ disabled: phase.step !== 'compose' || phase.creating,
+ });
const [shareEmail, setShareEmail] = useState(false);
const [email, setEmail] = useState('');
const [emailError, setEmailError] = useState<string | null>(null);
@@ -248,6 +251,7 @@ function ReportBugDialog({
});
if (opSeqRef.current !== seq) return;
if (result.ok) {
+ attachmentIntake.clearProblem();
setPhase({
step: 'review',
report: {
@@ -286,7 +290,7 @@ function ReportBugDialog({
return (
<Dialog open={open} onOpenChange={handleOpenChange}>
- <DialogContent className="gap-2 sm:max-w-[46.25rem]">
+ <DialogContent className="gap-2 sm:max-w-[46.25rem]" onPaste={attachmentIntake.onPaste}>
{phase.step === 'compose' && (
<>
{/* oxlint-disable-next-line ok/no-physical-direction-utility -- Matches the shared dialog close button's physical right-2 position, including RTL. */}
@@ -362,7 +366,7 @@ function ReportBugDialog({
<Trans>(optional)</Trans>
</span>
</label>
- <Textarea
+ <ImageAttachmentTextarea
id={noteId}
value={note}
onChange={(e) => setNote(e.target.value)}
@@ -372,87 +376,74 @@ function ReportBugDialog({
: t`e.g. The editor froze after I pasted a large table`
}
rows={2}
- className="min-h-16 resize-none"
- disabled={phase.creating}
+ className="min-h-20"
+ intake={attachmentIntake}
+ hint={<Trans>Images aren't redacted.</Trans>}
/>
</div>
- <div
- className={
- screenshot !== null ? 'grid gap-4 sm:grid-cols-[1.35fr_1fr]' : 'grid gap-4'
- }
- >
- {screenshot !== null && (
- <div className="flex min-w-0 flex-col gap-2">
- <div className="flex items-center gap-2.5">
- <Checkbox
- id={screenshotId}
- checked={includeScreenshot}
- onCheckedChange={(value) => setIncludeScreenshot(value === true)}
- aria-describedby={screenshotHintId}
- disabled={phase.creating}
- />
- <label htmlFor={screenshotId} className="text-sm font-medium">
- <Trans>Screenshot</Trans>
- </label>
- </div>
- <Dialog>
- <DialogTrigger asChild>
- <Button
- variant="outline"
- className="relative block h-auto w-full overflow-hidden rounded-md bg-muted/40 p-0"
- aria-label={t`Enlarge screenshot`}
- >
- <img
- src={screenshot.dataUrl}
- alt={t`Preview of the screenshot`}
- className={`h-44 w-full object-contain ${includeScreenshot ? '' : 'opacity-40'}`}
- />
- <span className="absolute end-2 top-2 flex items-center gap-1 rounded bg-popover/90 px-2 py-1 text-xs">
- <ExpandIcon className="size-3" aria-hidden="true" />
- <Trans>Enlarge</Trans>
- </span>
- </Button>
- </DialogTrigger>
- <DialogContent className="sm:max-w-5xl">
- {/* oxlint-disable-next-line ok/no-physical-direction-utility -- Matches the shared dialog close button's physical right-2 position, including RTL. */}
- <DialogHeader className="pr-6">
- <DialogTitle>
- <Trans>Screenshot preview</Trans>
- </DialogTitle>
- <DialogDescription>
- <Trans>Not redacted. Check the image before sharing.</Trans>
- </DialogDescription>
- </DialogHeader>
- <DialogBody>
- <img
- src={screenshot.dataUrl}
- alt={t`Preview of the screenshot`}
- className="max-h-[70dvh] w-full object-contain"
- />
- </DialogBody>
- </DialogContent>
- </Dialog>
- <p id={screenshotHintId} className="text-xs text-muted-foreground">
- {pointerMarked ? (
- <Trans>Captured before this dialog, with the pointer marked.</Trans>
- ) : (
- <Trans>Captured before this dialog.</Trans>
- )}{' '}
- <Trans>Not redacted. Check the image before sharing.</Trans>
- </p>
+ {screenshot !== null && (
+ <div className="flex flex-wrap items-start gap-x-3 gap-y-2">
+ <div className="flex items-center gap-2.5 pt-0.5">
+ <Checkbox
+ id={screenshotId}
+ checked={includeScreenshot}
+ onCheckedChange={(value) => setIncludeScreenshot(value === true)}
+ aria-describedby={screenshotHintId}
+ disabled={phase.creating}
+ />
+ <label htmlFor={screenshotId} className="text-sm font-medium">
+ <Trans>Screenshot</Trans>
+ </label>
</div>
- )}
- <div
- className={`flex min-w-0 flex-col gap-2 ${screenshot !== null ? 'sm:pt-7' : ''}`}
- >
- <ReportBugImageDropzone
- files={attachments}
- onChange={setAttachments}
- disabled={phase.creating}
- />
- <ImageAttachmentList files={attachments} onChange={setAttachments} />
+ <Dialog>
+ <DialogTrigger asChild>
+ <Button
+ variant="outline"
+ className="relative block h-auto w-40 shrink-0 overflow-hidden rounded-md bg-muted/40 p-0"
+ aria-label={t`Enlarge screenshot`}
+ >
+ <img
+ src={screenshot.dataUrl}
+ alt={t`Preview of the screenshot`}
+ className={`h-24 w-full object-contain ${includeScreenshot ? '' : 'opacity-40'}`}
+ />
+ <span className="absolute end-1 top-1 flex items-center rounded bg-popover/90 p-1">
+ <ExpandIcon className="size-3" aria-hidden="true" />
+ </span>
+ </Button>
+ </DialogTrigger>
+ <DialogContent className="sm:max-w-5xl">
+ {/* oxlint-disable-next-line ok/no-physical-direction-utility -- Matches the shared dialog close button's physical right-2 position, including RTL. */}
+ <DialogHeader className="pr-6">
+ <DialogTitle>
+ <Trans>Screenshot preview</Trans>
+ </DialogTitle>
+ <DialogDescription>
+ <Trans>Not redacted. Check the image before sharing.</Trans>
+ </DialogDescription>
+ </DialogHeader>
+ <DialogBody>
+ <img
+ src={screenshot.dataUrl}
+ alt={t`Preview of the screenshot`}
+ className="max-h-[70dvh] w-full object-contain"
+ />
+ </DialogBody>
+ </DialogContent>
+ </Dialog>
+ <p
+ id={screenshotHintId}
+ className="min-w-40 flex-1 text-xs text-muted-foreground"
+ >
+ {pointerMarked ? (
+ <Trans>Captured before this dialog, with the pointer marked.</Trans>
+ ) : (
+ <Trans>Captured before this dialog.</Trans>
+ )}{' '}
+ <Trans>Not redacted. Check the image before sharing.</Trans>
+ </p>
</div>
- </div>
+ )}
<fieldset className="grid min-w-0 gap-3 border-t pt-3 sm:grid-cols-[1fr_1.25fr]">
<legend className="sr-only">
<Trans>What to include</Trans>
diff --git a/packages/app/src/components/ReportBugImageDropzone.dom.test.tsx b/packages/app/src/components/ReportBugImageDropzone.dom.test.tsx
deleted file mode 100644
index 3dcda27de..000000000
--- a/packages/app/src/components/ReportBugImageDropzone.dom.test.tsx
+++ /dev/null
@@ -1,154 +0,0 @@
-import { cleanup, createEvent, fireEvent, render, screen } from '@testing-library/react';
-import userEvent from '@testing-library/user-event';
-import { useState } from 'react';
-import { afterEach, describe, expect, test, vi } from 'vitest';
-import { makeFilesDataTransfer } from '@/editor/composer-drop.test-helper';
-import { MAX_IMAGE_ATTACHMENTS_TOTAL_BYTES } from '@/lib/image-attachments';
-import { ReportBugImageDropzone } from './ReportBugImageDropzone';
-
-afterEach(cleanup);
-
-function Harness({ disabled = false }: { disabled?: boolean }) {
- const [files, setFiles] = useState<File[]>([]);
- return (
- <>
- <textarea aria-label="What happened?" />
- <ReportBugImageDropzone files={files} onChange={setFiles} disabled={disabled} />
- <output>{files.map((f) => f.name).join(', ')}</output>
- </>
- );
-}
-
-function drop(files: File[]) {
- fireEvent.drop(screen.getByRole('button', { name: 'Attach images' }), {
- dataTransfer: { files },
- });
-}
-
-function paste(target: Element, clipboardData: object) {
- const event = createEvent.paste(target, { clipboardData });
- fireEvent(target, event);
- return event;
-}
-
-function png(name: string) {
- return new File(['png'], name, { type: 'image/png' });
-}
-
-describe('report image drop target', () => {
- test('adds dropped images and deduplicates them without navigating', () => {
- render(<Harness />);
- drop([png('screen.png')]);
- drop([png('screen.png'), png('photo.png')]);
- expect(screen.getByText('screen.png, photo.png')).not.toBeNull();
- });
-
- test('rejects unsupported files, oversized batches and over-cap batches visibly', () => {
- const onChange = vi.fn();
- render(<ReportBugImageDropzone files={[]} onChange={onChange} disabled={false} />);
- drop([new File(['text'], 'note.txt', { type: 'text/plain' })]);
- expect(screen.getByText('Only PNG, JPEG, or WebP images are allowed.')).not.toBeNull();
- drop([
- new File([new Uint8Array(MAX_IMAGE_ATTACHMENTS_TOTAL_BYTES + 1)], 'big.png', {
- type: 'image/png',
- }),
- ]);
- expect(screen.getByText('Attachments must total under 3 MB.')).not.toBeNull();
- drop([png('1.png'), png('2.png'), png('3.png'), png('4.png')]);
- expect(screen.getByText('You can attach up to 3 images.')).not.toBeNull();
- expect(onChange).not.toHaveBeenCalled();
- drop([png('small.png')]);
- expect(onChange).toHaveBeenCalledOnce();
- expect(screen.queryByText('You can attach up to 3 images.')).toBeNull();
- });
-
- test('adds pasted clipboard images wherever focus is in the dialog', () => {
- render(<Harness />);
- const note = screen.getByRole('textbox', { name: 'What happened?' });
- const fromNote = paste(note, makeFilesDataTransfer([png('image.png')]));
- expect(fromNote.defaultPrevented).toBe(true);
- paste(
- screen.getByRole('button', { name: 'Attach images' }),
- makeFilesDataTransfer([png('second.png')]),
- );
- paste(document.body, makeFilesDataTransfer([png('third.png')]));
- expect(screen.getByText('image.png, second.png, third.png')).not.toBeNull();
- });
-
- test('keeps two different pasted screenshots that share the clipboard name', () => {
- render(<Harness />);
- const note = screen.getByRole('textbox', { name: 'What happened?' });
- paste(note, makeFilesDataTransfer([png('image.png')]));
- paste(
- note,
- makeFilesDataTransfer([new File(['bigger png'], 'image.png', { type: 'image/png' })]),
- );
- expect(screen.getByText('image.png, image.png')).not.toBeNull();
- });
-
- test('ignores pasted images while a dialog stacked above the report has focus', () => {
- function Stacked() {
- const [files, setFiles] = useState<File[]>([]);
- return (
- <>
- <div role="dialog" aria-label="Report a bug">
- <ReportBugImageDropzone files={files} onChange={setFiles} disabled={false} />
- <output>{files.map((f) => f.name).join(', ')}</output>
- </div>
- <div role="dialog" aria-label="Screenshot preview">
- <button type="button">Close</button>
- </div>
- </>
- );
- }
- render(<Stacked />);
- const event = paste(
- screen.getByRole('button', { name: 'Close' }),
- makeFilesDataTransfer([png('image.png')]),
- );
- expect(event.defaultPrevented).toBe(false);
- paste(
- screen.getByRole('button', { name: 'Attach images' }),
- makeFilesDataTransfer([png('screen.png')]),
- );
- expect(document.querySelector('output')?.textContent).toBe('screen.png');
- });
-
- test('leaves text pastes alone and reports pasted images it cannot attach', () => {
- render(<Harness />);
- const note = screen.getByRole('textbox', { name: 'What happened?' });
- const text = paste(note, { types: ['text/plain'], files: [], items: [], getData: () => 'hi' });
- expect(text.defaultPrevented).toBe(false);
- paste(note, makeFilesDataTransfer([new File(['gif'], 'image.gif', { type: 'image/gif' })]));
- expect(screen.getByText('Only PNG, JPEG, or WebP images are allowed.')).not.toBeNull();
- });
-
- test('ignores pasted images while creation is in progress', () => {
- render(<Harness disabled />);
- const event = paste(document.body, makeFilesDataTransfer([png('image.png')]));
- expect(event.defaultPrevented).toBe(false);
- expect(screen.queryByText('image.png')).toBeNull();
- });
-
- test('prevents drops and browse actions while creation is in progress', async () => {
- const onChange = vi.fn();
- render(<ReportBugImageDropzone files={[]} onChange={onChange} disabled />);
- drop([png('screen.png')]);
- const picker = document.querySelector('input');
- if (picker === null) throw new Error('Missing picker');
- const click = vi.spyOn(picker, 'click');
- await userEvent.click(screen.getByRole('button', { name: 'Attach images' }));
- expect(click).not.toHaveBeenCalled();
- expect(onChange).not.toHaveBeenCalled();
- });
-
- test('keyboard activation opens the file picker', async () => {
- render(<Harness />);
- const picker = document.querySelector('input');
- if (picker === null) throw new Error('Missing picker');
- const click = vi.spyOn(picker, 'click');
- screen.getByRole('button', { name: 'Attach images' }).focus();
- await userEvent.keyboard('{Enter}');
- expect(click).toHaveBeenCalledOnce();
- });
-});
diff --git a/packages/app/src/components/ReportBugImageDropzone.tsx b/packages/app/src/components/ReportBugImageDropzone.tsx
deleted file mode 100644
index 12b6b049f..000000000
--- a/packages/app/src/components/ReportBugImageDropzone.tsx
+++ /dev/null
@@ -1,132 +0,0 @@
-import { Trans, useLingui } from '@lingui/react/macro';
-import { UploadIcon } from 'lucide-react';
-import { useEffect, useEffectEvent, useId, useRef, useState } from 'react';
-import { isExternalFileDrag } from '@/components/file-tree-adapter';
-import { useImageAttachmentProblemMessage } from '@/components/ImageAttachments';
-import { Button } from '@/components/ui/button';
-import { Input } from '@/components/ui/input';
-import { collectImageFiles } from '@/lib/acp/image-attachment';
-import {
- ACCEPTED_IMAGE_TYPES,
- type ImageAttachmentProblem,
- imageAttachmentsProblem,
-} from '@/lib/image-attachments';
-import { cn } from '@/lib/utils';
-
-interface ReportBugImageDropzoneProps {
- files: readonly File[];
- onChange: (files: File[]) => void;
- disabled: boolean;
-}
-
-export function ReportBugImageDropzone({ files, onChange, disabled }: ReportBugImageDropzoneProps) {
- const { t } = useLingui();
- const root = useRef<HTMLDivElement>(null);
- const picker = useRef<HTMLInputElement>(null);
- const hintId = useId();
- const [dragging, setDragging] = useState(false);
- const [rejection, setRejection] = useState<{
- files: readonly File[];
- problem: ImageAttachmentProblem;
- } | null>(null);
- const problem = rejection?.files === files ? rejection.problem : null;
- const problemMessage = useImageAttachmentProblemMessage();
-
- function addFiles(picked: ArrayLike<File> | null) {
- if (disabled || picked === null || picked.length === 0) return;
- const unique = new Map(files.map((file) => [`${file.name}:${file.size}`, file]));
- for (const file of Array.from(picked)) unique.set(`${file.name}:${file.size}`, file);
- const next = [...unique.values()];
- const error = imageAttachmentsProblem(next);
- setRejection(error === null ? null : { files, problem: error });
- if (error === null) onChange(next);
- }
-
- const pasteImages = useEffectEvent((event: ClipboardEvent) => {
- if (disabled) return;
- const target = event.target instanceof Element ? event.target : null;
- const targetDialog = target?.closest('[role="dialog"]') ?? null;
- if (targetDialog !== null && targetDialog !== root.current?.closest('[role="dialog"]')) return;
- const pasted = collectImageFiles(event.clipboardData);
- if (pasted.length === 0) return;
- event.preventDefault();
- addFiles(pasted);
- });
-
- useEffect(() => {
- document.addEventListener('paste', pasteImages);
- return () => document.removeEventListener('paste', pasteImages);
- }, []);
-
- return (
- <div ref={root} className="flex min-w-0 flex-col gap-2">
- <Button
- variant="outline"
- className={cn(
- 'h-auto min-h-40 w-full flex-col gap-1 whitespace-normal border-dashed bg-muted/30 px-4 py-5 text-center aria-disabled:opacity-50',
- dragging && !disabled && 'border-primary bg-primary/10',
- )}
- aria-label={t`Attach images`}
- aria-describedby={hintId}
- aria-disabled={disabled}
- onClick={() => {
- if (!disabled) picker.current?.click();
- }}
- onDragOver={(event) => {
- if (!isExternalFileDrag(event)) return;
- event.preventDefault();
- event.stopPropagation();
- event.dataTransfer.dropEffect = disabled ? 'none' : 'copy';
- if (!disabled) setDragging(true);
- }}
- onDragLeave={(event) => {
- if (
- !(event.relatedTarget instanceof Node) ||
- !event.currentTarget.contains(event.relatedTarget)
- )
- setDragging(false);
- }}
- onDrop={(event) => {
- event.preventDefault();
- event.stopPropagation();
- setDragging(false);
- addFiles(event.dataTransfer.files);
- }}
- >
- <UploadIcon className="mb-1 size-5 text-muted-foreground" aria-hidden="true" />
- <span>
- <Trans>Drop images here</Trans>
- </span>
- <span className="text-1sm font-normal text-primary underline underline-offset-4">
- <Trans>Browse files</Trans>
- </span>
- <span className="text-xs font-normal text-muted-foreground">
- <Trans>Up to 3 screenshots or photos</Trans>
- </span>
- </Button>
- <Input
- ref={picker}
- type="file"
- accept={ACCEPTED_IMAGE_TYPES.join(',')}
- multiple
- disabled={disabled}
- className="hidden"
- aria-label={t`Attach images`}
- onChange={(event) => {
- addFiles(event.target.files);
- event.target.value = '';
- }}
- />
- <p id={hintId} className="text-xs text-muted-foreground">
- <Trans>Images aren't redacted.</Trans>
- </p>
- <p role="status" className="text-xs text-destructive empty:hidden">
- {problem !== null && (
- <>
- <Trans>No images added.</Trans> <span>{problemMessage(problem)}</span>
- </>
- )}
- </p>
- </div>
- );
-}
diff --git a/packages/app/src/lib/image-attachments.test.ts b/packages/app/src/lib/image-attachments.test.ts
index 76b1a9504..76d073497 100644
--- a/packages/app/src/lib/image-attachments.test.ts
+++ b/packages/app/src/lib/image-attachments.test.ts
@@ -4,9 +4,7 @@ import {
formatFileSize,
imageAttachmentsProblem,
isImageAttachmentType,
- MAX_IMAGE_ATTACHMENTS,
MAX_IMAGE_ATTACHMENTS_TOTAL_BYTES,
- mergeImageAttachments,
totalImageAttachmentBytes,
} from './image-attachments.ts';
@@ -16,10 +14,6 @@ function fakeFile(name: string, type: string, size: number): File {
return file;
}
-function fakeFileList(files: File[]): FileList {
- return files as unknown as FileList;
-}
-
describe('isImageAttachmentType', () => {
test('accepts exactly the three wire types', () => {
for (const type of ACCEPTED_IMAGE_TYPES) expect(isImageAttachmentType(type)).toBe(true);
@@ -28,43 +22,6 @@ describe('isImageAttachmentType', () => {
});
});
-describe('mergeImageAttachments', () => {
- test('drops non-image picks', () => {
- const merged = mergeImageAttachments(
- [],
- fakeFileList([fakeFile('a.png', 'image/png', 10), fakeFile('b.gif', 'image/gif', 10)]),
- );
- expect(merged.map((f) => f.name)).toEqual(['a.png']);
- });
-
- test('dedupes on name and size', () => {
- const existing = [fakeFile('a.png', 'image/png', 10)];
- const merged = mergeImageAttachments(
- existing,
- fakeFileList([fakeFile('a.png', 'image/png', 10), fakeFile('a.png', 'image/png', 11)]),
- );
- expect(merged).toHaveLength(2);
- });
-
- test('truncates at the cap', () => {
- const merged = mergeImageAttachments(
- [],
- fakeFileList([
- fakeFile('a.png', 'image/png', 1),
- fakeFile('b.png', 'image/png', 2),
- fakeFile('c.png', 'image/png', 3),
- fakeFile('d.png', 'image/png', 4),
- ]),
- );
- expect(merged).toHaveLength(MAX_IMAGE_ATTACHMENTS);
- });
-
- test('a null pick leaves the current list alone', () => {
- const existing = [fakeFile('a.png', 'image/png', 10)];
- expect(mergeImageAttachments(existing, null)).toEqual(existing);
- });
-});
-
describe('imageAttachmentsProblem', () => {
test('an empty or in-bounds list has no problem', () => {
expect(imageAttachmentsProblem([])).toBeNull();
diff --git a/packages/app/src/lib/image-attachments.ts b/packages/app/src/lib/image-attachments.ts
index c3ca144d4..7c74a4a68 100644
--- a/packages/app/src/lib/image-attachments.ts
+++ b/packages/app/src/lib/image-attachments.ts
@@ -26,14 +26,6 @@ export function totalImageAttachmentBytes(files: readonly File[]): number {
return files.reduce((total, file) => total + file.size, 0);
}
-export function mergeImageAttachments(current: readonly File[], picked: FileList | null): File[] {
- const seen = new Set(current.map((f) => `${f.name}:${f.size}`));
- const accepted = Array.from(picked ?? []).filter(
- (f) => isImageAttachmentType(f.type) && !seen.has(`${f.name}:${f.size}`),
- );
- return [...current, ...accepted].slice(0, MAX_IMAGE_ATTACHMENTS);
-}
-
export function imageAttachmentsProblem(files: readonly File[]): ImageAttachmentProblem | null {
if (files.length > MAX_IMAGE_ATTACHMENTS) return 'count';
if (!files.every((f) => isImageAttachmentType(f.type))) return 'type';
diff --git a/packages/app/src/locales/ar/messages.json b/packages/app/src/locales/ar/messages.json
index 41662cb0a..8d9a2d94b 100644
--- a/packages/app/src/locales/ar/messages.json
+++ b/packages/app/src/locales/ar/messages.json
@@ -1977,7 +1977,6 @@
"JOhCT9": ["الدفع يشمل"],
"JReD69": ["تمت إزالة ملفات OpenKnowledge"],
"JWsZlx": ["افتح مشروعًا للتحرير."],
- "JYj5R2": ["تصفح الملفات"],
"JZ8cO6": ["فاتح أو داكن أو تتبع نظام التشغيل."],
"J_jZ5z": [
"تقرأ كل أداة ذكاء اصطناعي المهارات من مجلدها الخاص. وجّه مجلدًا إلى آخر لترى الأداتان المهارات نفسها — أضف المهارة مرة واحدة بدلًا من نسخها إلى كل أداة."
@@ -2097,6 +2096,20 @@
"L-rMC9": ["إعادة التعيين إلى الافتراضي"],
"L1BQTH": [["0"], " غير مثبَّت بعد — يجري فتح صفحة تنزيله."],
"L1ZE3M": ["إحصاءات المستند"],
+ "L2Bye8": [
+ [
+ "count",
+ "plural",
+ {
+ "zero": ["تم إرفاق ", "#", " صورة"],
+ "one": ["تم إرفاق ", "#", " صورة"],
+ "two": ["تم إرفاق ", "#", " صورتين"],
+ "few": ["تم إرفاق ", "#", " صور"],
+ "many": ["تم إرفاق ", "#", " صورة"],
+ "other": ["تم إرفاق ", "#", " صورة"]
+ }
+ ]
+ ],
"L3BcJ4": [
"يحتاج هذا إلى رؤية ملفاتك، وليس فقط المستند المفتوح، لذلك يظهر عند تشغيل تدقيق المشروع وليس أثناء الكتابة."
],
@@ -3326,7 +3339,6 @@
"Xg-Ntj": ["يحتاج الرمز إلى نطاقي repo وread:user."],
"XgqUOy": ["لم يُعثر على مهارة في ذلك المصدر. سيوضح الاستيراد السبب إن تابعت."],
"XgsZ2F": ["نسخ الرمز ", ["code"]],
- "XhVmAh": ["تكبير"],
"Xhm7gG": ["اقتراحات الأصول"],
"Xisk4u": ["حُرِّر ", ["editedAgo"]],
"XjqA8x": ["يبدّل النمط ", ["0"], "/**"],
@@ -4204,6 +4216,7 @@
"eolhcI": ["جارٍ قراءة شجرة العمل"],
"eps54V": ["أُزيل"],
"epuNYK": ["حدّد كتلة كمرجع أساسي. تتحدث المرايا في الأماكن الأخرى مباشرةً أثناء تحريرك لها."],
+ "eqSy2M": ["أفلت الصور أو الصقها أو أرفقها، حتى ", ["MAX_ATTACHMENTS"], " صور."],
"erenF-": ["لا يمكن حذف ملفات لم تُحَل تعارضاتها"],
"euGaS0": ["تعذّرت قراءة ", ["fileName"], "."],
"euc6Ns": ["تكرار"],
@@ -4515,7 +4528,6 @@
"haHgQj": ["تم نسخ المسار النسبي"],
"habOU_": ["فشل تحديث إعداد الموافقة التلقائية — ", ["detail"]],
"hadECI": ["يلزم استبدال ", ["0"]],
- "hcBdO4": ["حتى 3 لقطات شاشة أو صور"],
"he3ygx": ["نسخ"],
"heV8si": [
"هذا يحذف ",
@@ -5146,7 +5158,6 @@
"nP-KFo": ["محادثة ", ["0"], " جديدة"],
"nTM8ab": ["امنحها اسمًا قبل تعديل ألوانها."],
"nTwL53": ["افتح مستندًا لمشاركة رابطه."],
- "nVGRwu": ["أفلت الصور هنا"],
"nWMRxa": ["إلغاء التثبيت"],
"nWS2gQ": ["منشور بواسطة ", ["publisher"]],
"nWv1ja": ["أدِر الملفات المخفية من الإعدادات ← أنماط التجاهل."],
diff --git a/packages/app/src/locales/ar/messages.po b/packages/app/src/locales/ar/messages.po
index 23100320a..606acb986 100644
--- a/packages/app/src/locales/ar/messages.po
+++ b/packages/app/src/locales/ar/messages.po
@@ -689,6 +689,10 @@ msgstr "{count, plural, zero {# تعليق} one {تعليق واحد} two {تع
msgid "{count, plural, one {# doc} other {# docs}}"
msgstr "{count, plural, zero {لا مستندات} one {مستند واحد} two {مستندان} few {# مستندات} many {# مستندًا} other {# مستند}}"
+#: src/components/ImageAttachments.tsx
+msgid "{count, plural, one {# image attached} other {# images attached}}"
+msgstr "{count, plural, zero {تم إرفاق # صورة} one {تم إرفاق # صورة} two {تم إرفاق # صورتين} few {تم إرفاق # صور} many {تم إرفاق # صورة} other {تم إرفاق # صورة}}"
+
#: src/components/TrashFailureModal.tsx
msgid "{count, plural, one {# item could not be moved to the {trashNoun}. Do you want to permanently delete instead?} other {# items could not be moved to the {trashNoun}. Do you want to permanently delete instead?}}"
msgstr "{count, plural, zero {تعذّر نقل # عنصر إلى {trashNoun}. هل تريد الحذف نهائيًا بدلاً من ذلك؟} one {تعذّر نقل عنصر واحد إلى {trashNoun}. هل تريد الحذف نهائيًا بدلاً من ذلك؟} two {تعذّر نقل عنصرين إلى {trashNoun}. هل تريد الحذف نهائيًا بدلاً من ذلك؟} few {تعذّر نقل # عناصر إلى {trashNoun}. هل تريد الحذف نهائيًا بدلاً من ذلك؟} many {تعذّر نقل # عنصرًا إلى {trashNoun}. هل تريد الحذف نهائيًا بدلاً من ذلك؟} other {تعذّر نقل # عنصر إلى {trashNoun}. هل تريد الحذف نهائيًا بدلاً من ذلك؟}}"
@@ -2266,7 +2270,6 @@ msgid "Attach files"
msgstr "إرفاق الملفات"
#: src/components/ImageAttachments.tsx
-#: src/components/ReportBugImageDropzone.tsx
msgid "Attach images"
msgstr "إرفاق صور"
@@ -2585,10 +2588,6 @@ msgstr "رابط معطل"
msgid "Browse"
msgstr "استعراض"
-#: src/components/ReportBugImageDropzone.tsx
-msgid "Browse files"
-msgstr "تصفح الملفات"
-
#: src/components/share-receive-miss-content.tsx
msgid "Browse folder"
msgstr "استعراض مجلد"
@@ -5347,9 +5346,9 @@ msgstr "اسحب العنصر {0} لإعادة الترتيب"
msgid "Drop a file to attach"
msgstr "أفلت ملفًا لإرفاقه"
-#: src/components/ReportBugImageDropzone.tsx
-msgid "Drop images here"
-msgstr "أفلت الصور هنا"
+#: src/components/ImageAttachments.tsx
+msgid "Drop, paste, or attach up to {MAX_ATTACHMENTS} images."
+msgstr "أفلت الصور أو الصقها أو أرفقها، حتى {MAX_ATTACHMENTS} صور."
#: src/components/AppMenubar.tsx
#: src/components/command-palette-commands.ts
@@ -5780,10 +5779,6 @@ msgstr "نقطة النهاية"
msgid "Eng specs"
msgstr "مواصفات هندسية"
-#: src/components/ReportBugDialogBody.tsx
-msgid "Enlarge"
-msgstr "تكبير"
-
#: src/components/ReportBugDialogBody.tsx
msgid "Enlarge screenshot"
msgstr "تكبير لقطة الشاشة"
@@ -7394,7 +7389,7 @@ msgstr "تعذّر تحويل هدف الصورة \"{shown}\" إلى ملف مح
msgid "Image target \"{shown}\" does not resolve to an existing file."
msgstr "هدف الصورة \"{shown}\" لا يشير إلى ملف موجود."
-#: src/components/ReportBugImageDropzone.tsx
+#: src/components/ReportBugDialogBody.tsx
msgid "Images aren't redacted."
msgstr "لا تُحجب المعلومات الحساسة في الصور."
@@ -9395,7 +9390,7 @@ msgstr "لا توجد صفحات محورية بعد. تظهر المحاور ع
msgid "No icons match."
msgstr "لا توجد أيقونات مطابقة."
-#: src/components/ReportBugImageDropzone.tsx
+#: src/components/ImageAttachments.tsx
msgid "No images added."
msgstr "لم تتم إضافة أي صور."
@@ -15764,10 +15759,6 @@ msgstr "تقرير بلا عنوان"
msgid "Untracked"
msgstr "غير متتبَّع"
-#: src/components/ReportBugImageDropzone.tsx
-msgid "Up to 3 screenshots or photos"
-msgstr "حتى 3 لقطات شاشة أو صور"
-
#: src/components/SyncStatusBadge.tsx
msgid "Up to date"
msgstr "محدَّث"
diff --git a/packages/app/src/locales/bn/messages.json b/packages/app/src/locales/bn/messages.json
index 18713b150..9edf06ebe 100644
--- a/packages/app/src/locales/bn/messages.json
+++ b/packages/app/src/locales/bn/messages.json
@@ -1672,7 +1672,6 @@
"JOhCT9": ["পাঠানোতে অন্তর্ভুক্ত"],
"JReD69": ["OpenKnowledge-এর ফাইল সরানো হয়েছে"],
"JWsZlx": ["সম্পাদনা করতে একটি প্রকল্প খুলুন।"],
- "JYj5R2": ["ফাইল বেছে নিন"],
"JZ8cO6": ["হালকা, গাঢ়, বা OS অনুসরণ করুন।"],
"J_jZ5z": [
"প্রতিটি AI টুল নিজের ফোল্ডার থেকে স্কিল পড়ে। একটি ফোল্ডারকে আরেকটির দিকে নির্দেশ করুন, তখন দুটি টুলই একই স্কিল দেখবে — প্রতিটি টুলে কপি করার বদলে স্কিল একবারই যোগ করুন।"
@@ -1792,6 +1791,13 @@
"L-rMC9": ["ডিফল্টে রিসেট করুন"],
"L1BQTH": [["0"], " এখনও ইনস্টল করা নেই — এর ডাউনলোড পাতা খোলা হচ্ছে।"],
"L1ZE3M": ["নথির পরিসংখ্যান"],
+ "L2Bye8": [
+ [
+ "count",
+ "plural",
+ { "one": ["#", "টি ছবি সংযুক্ত হয়েছে"], "other": ["#", "টি ছবি সংযুক্ত হয়েছে"] }
+ ]
+ ],
"L3BcJ4": [
"এটির জন্য আপনার ফাইলগুলি দেখতে হবে, শুধু খোলা নথি নয়, তাই এটি প্রদর্শিত হয় যখন আপনি টাইপ করার পরিবর্তে একটি প্রকল্প অডিট চালান।"
],
@@ -2826,7 +2832,6 @@
"Xg-Ntj": ["টোকেনটির repo ও read:user স্কোপ দরকার।"],
"XgqUOy": ["ওই উৎসে কোনো স্কিল পাওয়া যায়নি। আপনি চালিয়ে গেলে আমদানি কারণ জানাবে।"],
"XgsZ2F": [["code"], " কোডটি কপি করুন"],
- "XhVmAh": ["বড় করুন"],
"Xhm7gG": ["অ্যাসেট পরামর্শ"],
"Xisk4u": [["editedAgo"], " সম্পাদিত"],
"XjqA8x": ["প্যাটার্ন ", ["0"], "/** টগল করুন"],
@@ -3554,6 +3559,7 @@
"epuNYK": [
"একটি ব্লককে সত্যের উৎস হিসেবে চিহ্নিত করুন। আপনি সেটি সম্পাদনা করার সঙ্গে সঙ্গে অন্য জায়গার মিররগুলো হালনাগাদ হয়।"
],
+ "eqSy2M": ["সর্বোচ্চ ", ["MAX_ATTACHMENTS"], "টি ছবি ছেড়ে দিন, পেস্ট করুন বা সংযুক্ত করুন।"],
"erenF-": ["যেসব ফাইলের দ্বন্দ্ব এখনও মেটেনি সেগুলো মোছা যাবে না"],
"euGaS0": [["fileName"], " পড়া যায়নি।"],
"euc6Ns": ["প্রতিলিপি করুন"],
@@ -3828,7 +3834,6 @@
"haHgQj": ["আপেক্ষিক পথ কপি হয়েছে"],
"habOU_": ["স্বয়ংক্রিয় অনুমোদনের সেটিং হালনাগাদ করতে ব্যর্থ — ", ["detail"]],
"hadECI": [["0"], " প্রতিস্থাপন করা দরকার"],
- "hcBdO4": ["সর্বোচ্চ ৩টি স্ক্রিনশট বা ছবি"],
"he3ygx": ["কপি করুন"],
"heV8si": [
"এটি ",
@@ -4395,7 +4400,6 @@
"nP-KFo": ["নতুন ", ["0"], " আলাপ"],
"nTM8ab": ["রং সম্পাদনা করার আগে এটিকে একটি নাম দিন।"],
"nTwL53": ["কোনো নথির URL ভাগ করতে সেটি খুলুন।"],
- "nVGRwu": ["এখানে ছবি ছেড়ে দিন"],
"nWMRxa": ["পিন সরান"],
"nWS2gQ": [["publisher"], " প্রকাশ করেছে"],
"nWv1ja": ["লুকানো ফাইল Settings → Ignore patterns-এ সামলান।"],
diff --git a/packages/app/src/locales/bn/messages.po b/packages/app/src/locales/bn/messages.po
index e10e571b2..3c95f4e39 100644
--- a/packages/app/src/locales/bn/messages.po
+++ b/packages/app/src/locales/bn/messages.po
@@ -689,6 +689,10 @@ msgstr "{count, plural, one {# মন্তব্য} other {# মন্তব
msgid "{count, plural, one {# doc} other {# docs}}"
msgstr "{count, plural, one {# টি নথি} other {# টি নথি}}"
+#: src/components/ImageAttachments.tsx
+msgid "{count, plural, one {# image attached} other {# images attached}}"
+msgstr "{count, plural, one {#টি ছবি সংযুক্ত হয়েছে} other {#টি ছবি সংযুক্ত হয়েছে}}"
+
#: src/components/TrashFailureModal.tsx
msgid "{count, plural, one {# item could not be moved to the {trashNoun}. Do you want to permanently delete instead?} other {# items could not be moved to the {trashNoun}. Do you want to permanently delete instead?}}"
msgstr "{count, plural, one {# টি আইটেম {trashNoun}-এ পাঠানো যায়নি। এর বদলে কি স্থায়ীভাবে মুছে ফেলতে চান?} other {# টি আইটেম {trashNoun}-এ পাঠানো যায়নি। এর বদলে কি স্থায়ীভাবে মুছে ফেলতে চান?}}"
@@ -2262,7 +2266,6 @@ msgid "Attach files"
msgstr "ফাইল সংযুক্ত করুন"
#: src/components/ImageAttachments.tsx
-#: src/components/ReportBugImageDropzone.tsx
msgid "Attach images"
msgstr "ছবি সংযুক্ত করুন"
@@ -2581,10 +2584,6 @@ msgstr "ভাঙা লিংক"
msgid "Browse"
msgstr "ব্রাউজ করুন"
-#: src/components/ReportBugImageDropzone.tsx
-msgid "Browse files"
-msgstr "ফাইল বেছে নিন"
-
#: src/components/share-receive-miss-content.tsx
msgid "Browse folder"
msgstr "ফোল্ডার ব্রাউজ করুন"
@@ -5343,9 +5342,9 @@ msgstr "ক্রম বদলাতে আইটেম {0} টেনে আন
msgid "Drop a file to attach"
msgstr "সংযুক্ত করতে একটি ফাইল ফেলুন"
-#: src/components/ReportBugImageDropzone.tsx
-msgid "Drop images here"
-msgstr "এখানে ছবি ছেড়ে দিন"
+#: src/components/ImageAttachments.tsx
+msgid "Drop, paste, or attach up to {MAX_ATTACHMENTS} images."
+msgstr "সর্বোচ্চ {MAX_ATTACHMENTS}টি ছবি ছেড়ে দিন, পেস্ট করুন বা সংযুক্ত করুন।"
#: src/components/AppMenubar.tsx
#: src/components/command-palette-commands.ts
@@ -5776,10 +5775,6 @@ msgstr "এন্ডপয়েন্ট"
msgid "Eng specs"
msgstr "ইঞ্জিনিয়ারিং স্পেক"
-#: src/components/ReportBugDialogBody.tsx
-msgid "Enlarge"
-msgstr "বড় করুন"
-
#: src/components/ReportBugDialogBody.tsx
msgid "Enlarge screenshot"
msgstr "স্ক্রিনশট বড় করুন"
@@ -7390,7 +7385,7 @@ msgstr "ছবির লক্ষ্য \"{shown}\"-কে প্রকল্প
msgid "Image target \"{shown}\" does not resolve to an existing file."
msgstr "ছবির লক্ষ্য \"{shown}\" কোনো বিদ্যমান ফাইলকে নির্দেশ করে না।"
-#: src/components/ReportBugImageDropzone.tsx
+#: src/components/ReportBugDialogBody.tsx
msgid "Images aren't redacted."
msgstr "ছবির সংবেদনশীল তথ্য আড়াল করা হয় না।"
@@ -9391,7 +9386,7 @@ msgstr "এখনও কোনো হাব পাতা নেই। পাত
msgid "No icons match."
msgstr "কোনো আইকন মেলেনি।"
-#: src/components/ReportBugImageDropzone.tsx
+#: src/components/ImageAttachments.tsx
msgid "No images added."
msgstr "কোনো ছবি যোগ করা হয়নি।"
@@ -15760,10 +15755,6 @@ msgstr "শিরোনামহীন রিপোর্ট"
msgid "Untracked"
msgstr "ট্র্যাক করা হয়নি"
-#: src/components/ReportBugImageDropzone.tsx
-msgid "Up to 3 screenshots or photos"
-msgstr "সর্বোচ্চ ৩টি স্ক্রিনশট বা ছবি"
-
#: src/components/SyncStatusBadge.tsx
msgid "Up to date"
msgstr "হালনাগাদ"
diff --git a/packages/app/src/locales/en/messages.json b/packages/app/src/locales/en/messages.json
index 4945226ad..f25ecaba6 100644
--- a/packages/app/src/locales/en/messages.json
+++ b/packages/app/src/locales/en/messages.json
@@ -1729,7 +1729,6 @@
"JOhCT9": ["Push includes"],
"JReD69": ["OpenKnowledge files were removed"],
"JWsZlx": ["Open a project to edit."],
- "JYj5R2": ["Browse files"],
"JZ8cO6": ["Light, dark, or follow the OS."],
"J_jZ5z": [
"Each AI tool reads skills from its own folder. Point one folder at another and both tools see the same skills — add a skill once instead of copying it into every tool."
@@ -1850,6 +1849,9 @@
"L-rMC9": ["Reset to default"],
"L1BQTH": [["0"], " isn't installed yet — opening its download page."],
"L1ZE3M": ["Document statistics"],
+ "L2Bye8": [
+ ["count", "plural", { "one": ["#", " image attached"], "other": ["#", " images attached"] }]
+ ],
"L3BcJ4": [
"This one needs to see your files, not just the open document, so it appears when you run a project audit rather than while you type."
],
@@ -2909,7 +2911,6 @@
"Xg-Ntj": ["The token needs the repo and read:user scopes."],
"XgqUOy": ["No skill found at that source. Import will report why if you continue."],
"XgsZ2F": ["Copy the code ", ["code"]],
- "XhVmAh": ["Enlarge"],
"Xhm7gG": ["Asset suggestions"],
"Xisk4u": ["Edited ", ["editedAgo"]],
"XjqA8x": ["Toggles the pattern ", ["0"], "/**"],
@@ -3664,6 +3665,7 @@
"epuNYK": [
"Mark a block as the source of truth. Mirrors elsewhere update live as you edit it."
],
+ "eqSy2M": ["Drop, paste, or attach up to ", ["MAX_ATTACHMENTS"], " images."],
"erenF-": ["Cannot delete files with unresolved conflicts"],
"euGaS0": ["Couldn't read ", ["fileName"], "."],
"euc6Ns": ["Duplicate"],
@@ -3961,7 +3963,6 @@
"haHgQj": ["Copied relative path"],
"habOU_": ["Failed to update the auto-approve setting — ", ["detail"]],
"hadECI": [["0"], " needs replacing"],
- "hcBdO4": ["Up to 3 screenshots or photos"],
"he3ygx": ["Copy"],
"heV8si": [
"This permanently removes ",
@@ -4544,7 +4545,6 @@
"nP-KFo": ["New ", ["0"], " chat"],
"nTM8ab": ["Give it a name before editing its colors."],
"nTwL53": ["Open a doc to share its URL."],
- "nVGRwu": ["Drop images here"],
"nWMRxa": ["Unpin"],
"nWS2gQ": ["Published by ", ["publisher"]],
"nWv1ja": ["Manage hidden files in Settings → Ignore patterns."],
diff --git a/packages/app/src/locales/en/messages.po b/packages/app/src/locales/en/messages.po
index e64bd1c7e..b15bc4bcf 100644
--- a/packages/app/src/locales/en/messages.po
+++ b/packages/app/src/locales/en/messages.po
@@ -689,6 +689,10 @@ msgstr "{count, plural, one {# comment} other {# comments}} across {0, plural, o
msgid "{count, plural, one {# doc} other {# docs}}"
msgstr "{count, plural, one {# doc} other {# docs}}"
+#: src/components/ImageAttachments.tsx
+msgid "{count, plural, one {# image attached} other {# images attached}}"
+msgstr "{count, plural, one {# image attached} other {# images attached}}"
+
#: src/components/TrashFailureModal.tsx
msgid "{count, plural, one {# item could not be moved to the {trashNoun}. Do you want to permanently delete instead?} other {# items could not be moved to the {trashNoun}. Do you want to permanently delete instead?}}"
msgstr "{count, plural, one {# item could not be moved to the {trashNoun}. Do you want to permanently delete instead?} other {# items could not be moved to the {trashNoun}. Do you want to permanently delete instead?}}"
@@ -2266,7 +2270,6 @@ msgid "Attach files"
msgstr "Attach files"
#: src/components/ImageAttachments.tsx
-#: src/components/ReportBugImageDropzone.tsx
msgid "Attach images"
msgstr "Attach images"
@@ -2585,10 +2588,6 @@ msgstr "Broken link"
msgid "Browse"
msgstr "Browse"
-#: src/components/ReportBugImageDropzone.tsx
-msgid "Browse files"
-msgstr "Browse files"
-
#: src/components/share-receive-miss-content.tsx
msgid "Browse folder"
msgstr "Browse folder"
@@ -5347,9 +5346,9 @@ msgstr "Drag item {0} to reorder"
msgid "Drop a file to attach"
msgstr "Drop a file to attach"
-#: src/components/ReportBugImageDropzone.tsx
-msgid "Drop images here"
-msgstr "Drop images here"
+#: src/components/ImageAttachments.tsx
+msgid "Drop, paste, or attach up to {MAX_ATTACHMENTS} images."
+msgstr "Drop, paste, or attach up to {MAX_ATTACHMENTS} images."
#: src/components/AppMenubar.tsx
#: src/components/command-palette-commands.ts
@@ -5780,10 +5779,6 @@ msgstr "Endpoint"
msgid "Eng specs"
msgstr "Eng specs"
-#: src/components/ReportBugDialogBody.tsx
-msgid "Enlarge"
-msgstr "Enlarge"
-
#: src/components/ReportBugDialogBody.tsx
msgid "Enlarge screenshot"
msgstr "Enlarge screenshot"
@@ -7394,7 +7389,7 @@ msgstr "Image target \"{shown}\" could not be resolved to a project-local file."
msgid "Image target \"{shown}\" does not resolve to an existing file."
msgstr "Image target \"{shown}\" does not resolve to an existing file."
-#: src/components/ReportBugImageDropzone.tsx
+#: src/components/ReportBugDialogBody.tsx
msgid "Images aren't redacted."
msgstr "Images aren't redacted."
@@ -9395,7 +9390,7 @@ msgstr "No hub pages yet. Hubs appear once pages accumulate inbound graph links.
msgid "No icons match."
msgstr "No icons match."
-#: src/components/ReportBugImageDropzone.tsx
+#: src/components/ImageAttachments.tsx
msgid "No images added."
msgstr "No images added."
@@ -15764,10 +15759,6 @@ msgstr "Untitled report"
msgid "Untracked"
msgstr "Untracked"
-#: src/components/ReportBugImageDropzone.tsx
-msgid "Up to 3 screenshots or photos"
-msgstr "Up to 3 screenshots or photos"
-
#: src/components/SyncStatusBadge.tsx
msgid "Up to date"
msgstr "Up to date"
diff --git a/packages/app/src/locales/es/messages.json b/packages/app/src/locales/es/messages.json
index e56a8d8b3..8eec341ec 100644
--- a/packages/app/src/locales/es/messages.json
+++ b/packages/app/src/locales/es/messages.json
@@ -2023,7 +2023,6 @@
"JOhCT9": ["Push incluye"],
"JReD69": ["Se eliminaron los archivos de OpenKnowledge"],
"JWsZlx": ["Abre un proyecto para editarlo."],
- "JYj5R2": ["Examinar archivos"],
"JZ8cO6": ["Claro, oscuro o seguir al sistema."],
"J_jZ5z": [
"Cada herramienta de IA lee las habilidades desde su propia carpeta. Apunta una carpeta a otra y ambas herramientas verán las mismas habilidades: añade una habilidad una sola vez en lugar de copiarla en cada herramienta."
@@ -2152,6 +2151,17 @@
"L-rMC9": ["Restablecer al valor por defecto"],
"L1BQTH": [["0"], " todavía no está instalado: abriendo su página de descarga."],
"L1ZE3M": ["Estadísticas del documento"],
+ "L2Bye8": [
+ [
+ "count",
+ "plural",
+ {
+ "one": ["#", " imagen adjunta"],
+ "many": ["#", " imágenes adjuntas"],
+ "other": ["#", " imágenes adjuntas"]
+ }
+ ]
+ ],
"L3BcJ4": [
"Esta regla necesita ver tus archivos, no solo el documento abierto, por lo que aparece al ejecutar una auditoría del proyecto y no mientras escribes."
],
@@ -3382,7 +3392,6 @@
"No se encontró ninguna habilidad en ese origen. Si continúas, la importación te dirá por qué."
],
"XgsZ2F": ["Copiar el código ", ["code"]],
- "XhVmAh": ["Ampliar"],
"Xhm7gG": ["Sugerencias de recursos"],
"Xisk4u": ["Editado ", ["editedAgo"]],
"XjqA8x": ["Alterna el patrón ", ["0"], "/**"],
@@ -4272,6 +4281,7 @@
"epuNYK": [
"Marca un bloque como fuente de verdad. Los espejos de otros sitios se actualizan en vivo mientras lo editas."
],
+ "eqSy2M": ["Arrastra, pega o adjunta hasta ", ["MAX_ATTACHMENTS"], " imágenes."],
"erenF-": ["No se pueden eliminar archivos con conflictos sin resolver"],
"euGaS0": ["No se pudo leer ", ["fileName"], "."],
"euc6Ns": ["Duplicar"],
@@ -4611,7 +4621,6 @@
"haHgQj": ["Ruta relativa copiada"],
"habOU_": ["No se pudo actualizar el ajuste de aprobación automática — ", ["detail"]],
"hadECI": [["0"], " necesita reemplazo"],
- "hcBdO4": ["Hasta 3 capturas de pantalla o fotos"],
"he3ygx": ["Copiar"],
"heV8si": [
"Esto elimina permanentemente ",
@@ -5259,7 +5268,6 @@
"nP-KFo": ["Nuevo chat de ", ["0"]],
"nTM8ab": ["Ponle un nombre antes de editar sus colores."],
"nTwL53": ["Abre un documento para compartir su URL."],
- "nVGRwu": ["Arrastra imágenes aquí"],
"nWMRxa": ["Dejar de fijar"],
"nWS2gQ": ["Publicado por ", ["publisher"]],
"nWv1ja": ["Gestiona los archivos ocultos en Ajustes → Patrones de exclusión."],
diff --git a/packages/app/src/locales/es/messages.po b/packages/app/src/locales/es/messages.po
index aecf08fa1..5a659839f 100644
--- a/packages/app/src/locales/es/messages.po
+++ b/packages/app/src/locales/es/messages.po
@@ -689,6 +689,10 @@ msgstr "{count, plural, one {# comentario} many {# comentarios} other {# comenta
msgid "{count, plural, one {# doc} other {# docs}}"
msgstr "{count, plural, one {# documento} many {# documentos} other {# documentos}}"
+#: src/components/ImageAttachments.tsx
+msgid "{count, plural, one {# image attached} other {# images attached}}"
+msgstr "{count, plural, one {# imagen adjunta} many {# imágenes adjuntas} other {# imágenes adjuntas}}"
+
#: src/components/TrashFailureModal.tsx
msgid "{count, plural, one {# item could not be moved to the {trashNoun}. Do you want to permanently delete instead?} other {# items could not be moved to the {trashNoun}. Do you want to permanently delete instead?}}"
msgstr "{count, plural, one {No se pudo mover # elemento a la {trashNoun}. ¿Quieres eliminarlo permanentemente?} many {No se pudieron mover # elementos a la {trashNoun}. ¿Quieres eliminarlos permanentemente?} other {No se pudieron mover # elementos a la {trashNoun}. ¿Quieres eliminarlos permanentemente?}}"
@@ -2266,7 +2270,6 @@ msgid "Attach files"
msgstr "Adjuntar archivos"
#: src/components/ImageAttachments.tsx
-#: src/components/ReportBugImageDropzone.tsx
msgid "Attach images"
msgstr "Adjuntar imágenes"
@@ -2585,10 +2588,6 @@ msgstr "Enlace roto"
msgid "Browse"
msgstr "Examinar"
-#: src/components/ReportBugImageDropzone.tsx
-msgid "Browse files"
-msgstr "Examinar archivos"
-
#: src/components/share-receive-miss-content.tsx
msgid "Browse folder"
msgstr "Elegir carpeta"
@@ -5347,9 +5346,9 @@ msgstr "Arrastra el elemento {0} para reordenar"
msgid "Drop a file to attach"
msgstr "Suelta un archivo para adjuntarlo"
-#: src/components/ReportBugImageDropzone.tsx
-msgid "Drop images here"
-msgstr "Arrastra imágenes aquí"
+#: src/components/ImageAttachments.tsx
+msgid "Drop, paste, or attach up to {MAX_ATTACHMENTS} images."
+msgstr "Arrastra, pega o adjunta hasta {MAX_ATTACHMENTS} imágenes."
#: src/components/AppMenubar.tsx
#: src/components/command-palette-commands.ts
@@ -5780,10 +5779,6 @@ msgstr "Endpoint"
msgid "Eng specs"
msgstr "Especificaciones de ingeniería"
-#: src/components/ReportBugDialogBody.tsx
-msgid "Enlarge"
-msgstr "Ampliar"
-
#: src/components/ReportBugDialogBody.tsx
msgid "Enlarge screenshot"
msgstr "Ampliar captura de pantalla"
@@ -7394,7 +7389,7 @@ msgstr "El destino de la imagen «{shown}» no se pudo resolver como un archivo
msgid "Image target \"{shown}\" does not resolve to an existing file."
msgstr "El destino de la imagen «{shown}» no corresponde a un archivo existente."
-#: src/components/ReportBugImageDropzone.tsx
+#: src/components/ReportBugDialogBody.tsx
msgid "Images aren't redacted."
msgstr "Las imágenes no se censuran."
@@ -9395,7 +9390,7 @@ msgstr "Todavía no hay páginas índice. Los índices aparecen cuando las pági
msgid "No icons match."
msgstr "Ningún icono coincide."
-#: src/components/ReportBugImageDropzone.tsx
+#: src/components/ImageAttachments.tsx
msgid "No images added."
msgstr "No se ha añadido ninguna imagen."
@@ -15764,10 +15759,6 @@ msgstr "Informe sin título"
msgid "Untracked"
msgstr "Sin seguimiento"
-#: src/components/ReportBugImageDropzone.tsx
-msgid "Up to 3 screenshots or photos"
-msgstr "Hasta 3 capturas de pantalla o fotos"
-
#: src/components/SyncStatusBadge.tsx
msgid "Up to date"
msgstr "Al día"
diff --git a/packages/app/src/locales/fr/messages.json b/packages/app/src/locales/fr/messages.json
index 99865cab7..0bb804ead 100644
--- a/packages/app/src/locales/fr/messages.json
+++ b/packages/app/src/locales/fr/messages.json
@@ -2055,7 +2055,6 @@
"JOhCT9": ["Pousser inclut"],
"JReD69": ["Les fichiers OpenKnowledge ont été supprimés"],
"JWsZlx": ["Ouvrez un projet pour le modifier."],
- "JYj5R2": ["Parcourir les fichiers"],
"JZ8cO6": ["Clair, sombre, ou suivre le système."],
"J_jZ5z": [
"Chaque outil IA lit les compétences depuis son propre dossier. Pointez un dossier vers un autre et les deux outils verront les mêmes compétences : ajoutez une compétence une seule fois au lieu de la copier dans chaque outil."
@@ -2193,6 +2192,17 @@
"L-rMC9": ["Réinitialiser à la valeur par défaut"],
"L1BQTH": [["0"], " n'est pas encore installé — ouverture de sa page de téléchargement."],
"L1ZE3M": ["Statistiques du document"],
+ "L2Bye8": [
+ [
+ "count",
+ "plural",
+ {
+ "one": ["#", " image jointe"],
+ "many": ["#", " images jointes"],
+ "other": ["#", " images jointes"]
+ }
+ ]
+ ],
"L3BcJ4": [
"Celui-ci doit voir vos fichiers, pas seulement le document ouvert, afin qu'il apparaisse lorsque vous exécutez un audit de projet plutôt que pendant que vous tapez."
],
@@ -3430,7 +3440,6 @@
"Aucune compétence trouvée à cette source. L'importation en indiquera la raison si vous continuez."
],
"XgsZ2F": ["Copier le code ", ["code"]],
- "XhVmAh": ["Agrandir"],
"Xhm7gG": ["Suggestions de ressources"],
"Xisk4u": ["Modifié ", ["editedAgo"]],
"XjqA8x": ["Active ou désactive le motif ", ["0"], "/**"],
@@ -4313,6 +4322,7 @@
"epuNYK": [
"Marque un bloc comme source de vérité. Les miroirs situés ailleurs se mettent à jour en direct pendant que vous le modifiez."
],
+ "eqSy2M": ["Déposez, collez ou joignez jusqu'à ", ["MAX_ATTACHMENTS"], " images."],
"erenF-": ["Impossible de supprimer des fichiers dont les conflits ne sont pas résolus"],
"euGaS0": ["Impossible de lire ", ["fileName"], "."],
"euc6Ns": ["Dupliquer"],
@@ -4646,7 +4656,6 @@
"haHgQj": ["Chemin relatif copié"],
"habOU_": ["Échec de la mise à jour du réglage d'approbation automatique — ", ["detail"]],
"hadECI": [["0"], " doit être remplacé"],
- "hcBdO4": ["Jusqu’à 3 captures d’écran ou photos"],
"he3ygx": ["Copier"],
"heV8si": [
"Cela supprime définitivement ",
@@ -5302,7 +5311,6 @@
"nP-KFo": ["Nouvelle discussion ", ["0"]],
"nTM8ab": ["Donnez-lui un nom avant de modifier ses couleurs."],
"nTwL53": ["Ouvrez un document pour partager son URL."],
- "nVGRwu": ["Déposer des images ici"],
"nWMRxa": ["Détacher"],
"nWS2gQ": ["Publié par ", ["publisher"]],
"nWv1ja": ["Gérez les fichiers masqués dans Paramètres → Motifs d'exclusion."],
diff --git a/packages/app/src/locales/fr/messages.po b/packages/app/src/locales/fr/messages.po
index 469a0d447..5145b81f3 100644
--- a/packages/app/src/locales/fr/messages.po
+++ b/packages/app/src/locales/fr/messages.po
@@ -689,6 +689,10 @@ msgstr "{count, plural, one {# commentaire} many {# commentaires} other {# comme
msgid "{count, plural, one {# doc} other {# docs}}"
msgstr "{count, plural, one {# document} many {# documents} other {# documents}}"
+#: src/components/ImageAttachments.tsx
+msgid "{count, plural, one {# image attached} other {# images attached}}"
+msgstr "{count, plural, one {# image jointe} many {# images jointes} other {# images jointes}}"
+
#: src/components/TrashFailureModal.tsx
msgid "{count, plural, one {# item could not be moved to the {trashNoun}. Do you want to permanently delete instead?} other {# items could not be moved to the {trashNoun}. Do you want to permanently delete instead?}}"
msgstr "{count, plural, one {# élément n'a pas pu être mis à la {trashNoun}. Voulez-vous le supprimer définitivement ?} many {# éléments n'ont pas pu être mis à la {trashNoun}. Voulez-vous les supprimer définitivement ?} other {# éléments n'ont pas pu être mis à la {trashNoun}. Voulez-vous les supprimer définitivement ?}}"
@@ -2266,7 +2270,6 @@ msgid "Attach files"
msgstr "Joindre des fichiers"
#: src/components/ImageAttachments.tsx
-#: src/components/ReportBugImageDropzone.tsx
msgid "Attach images"
msgstr "Joindre des images"
@@ -2585,10 +2588,6 @@ msgstr "Lien cassé"
msgid "Browse"
msgstr "Parcourir"
-#: src/components/ReportBugImageDropzone.tsx
-msgid "Browse files"
-msgstr "Parcourir les fichiers"
-
#: src/components/share-receive-miss-content.tsx
msgid "Browse folder"
msgstr "Parcourir le dossier"
@@ -5347,9 +5346,9 @@ msgstr "Faites glisser l'élément {0} pour réorganiser"
msgid "Drop a file to attach"
msgstr "Déposez un fichier pour le joindre"
-#: src/components/ReportBugImageDropzone.tsx
-msgid "Drop images here"
-msgstr "Déposer des images ici"
+#: src/components/ImageAttachments.tsx
+msgid "Drop, paste, or attach up to {MAX_ATTACHMENTS} images."
+msgstr "Déposez, collez ou joignez jusqu'à {MAX_ATTACHMENTS} images."
#: src/components/AppMenubar.tsx
#: src/components/command-palette-commands.ts
@@ -5780,10 +5779,6 @@ msgstr "Point de terminaison"
msgid "Eng specs"
msgstr "Spécifications techniques"
-#: src/components/ReportBugDialogBody.tsx
-msgid "Enlarge"
-msgstr "Agrandir"
-
#: src/components/ReportBugDialogBody.tsx
msgid "Enlarge screenshot"
msgstr "Agrandir la capture d’écran"
@@ -7394,7 +7389,7 @@ msgstr "La cible de l’image « {shown} » n’a pas pu être résolue en tan
msgid "Image target \"{shown}\" does not resolve to an existing file."
msgstr "La cible de l’image « {shown} » ne correspond à aucun fichier existant."
-#: src/components/ReportBugImageDropzone.tsx
+#: src/components/ReportBugDialogBody.tsx
msgid "Images aren't redacted."
msgstr "Les images ne sont pas expurgées."
@@ -9395,7 +9390,7 @@ msgstr "Pas encore de pages pivots. Les pivots apparaissent une fois que les pag
msgid "No icons match."
msgstr "Aucune icône ne correspond."
-#: src/components/ReportBugImageDropzone.tsx
+#: src/components/ImageAttachments.tsx
msgid "No images added."
msgstr "Aucune image ajoutée."
@@ -15764,10 +15759,6 @@ msgstr "Rapport sans titre"
msgid "Untracked"
msgstr "Non suivi"
-#: src/components/ReportBugImageDropzone.tsx
-msgid "Up to 3 screenshots or photos"
-msgstr "Jusqu’à 3 captures d’écran ou photos"
-
#: src/components/SyncStatusBadge.tsx
msgid "Up to date"
msgstr "À jour"
diff --git a/packages/app/src/locales/hi/messages.json b/packages/app/src/locales/hi/messages.json
index 16aabe477..1e8ae7d72 100644
--- a/packages/app/src/locales/hi/messages.json
+++ b/packages/app/src/locales/hi/messages.json
@@ -1673,7 +1673,6 @@
"JOhCT9": ["भेजें में शामिल"],
"JReD69": ["OpenKnowledge की फ़ाइलें हटा दी गईं"],
"JWsZlx": ["संपादित करने के लिए कोई प्रोजेक्ट खोलें।"],
- "JYj5R2": ["फ़ाइलें चुनें"],
"JZ8cO6": ["हल्का, गहरा, या OS का अनुसरण।"],
"J_jZ5z": [
"हर AI टूल स्किल अपने ही फ़ोल्डर से पढ़ता है। एक फ़ोल्डर को दूसरे की ओर इंगित करें, तब दोनों टूल एक ही स्किल देखेंगे — हर टूल में कॉपी करने के बजाय स्किल एक ही बार जोड़ें।"
@@ -1795,6 +1794,9 @@
"L-rMC9": ["डिफ़ॉल्ट पर रीसेट करें"],
"L1BQTH": [["0"], " अभी इंस्टॉल नहीं है — इसका डाउनलोड पेज खोला जा रहा है।"],
"L1ZE3M": ["दस्तावेज़ आँकड़े"],
+ "L2Bye8": [
+ ["count", "plural", { "one": ["#", " छवि संलग्न की गई"], "other": ["#", " छवियाँ संलग्न की गईं"] }]
+ ],
"L3BcJ4": [
"इसे आपकी फ़ाइलों को देखने की ज़रूरत है, न कि केवल खुले दस्तावेज़ को, इसलिए यह तब दिखाई देता है जब आप टाइप करते समय प्रोजेक्ट ऑडिट चलाते हैं।"
],
@@ -2823,7 +2825,6 @@
"Xg-Ntj": ["टोकन को repo और read:user स्कोप चाहिए।"],
"XgqUOy": ["उस स्रोत पर कोई स्किल नहीं मिली। आगे बढ़ने पर आयात बताएगा कि क्यों।"],
"XgsZ2F": ["कोड ", ["code"], " कॉपी करें"],
- "XhVmAh": ["बड़ा करें"],
"Xhm7gG": ["एसेट सुझाव"],
"Xisk4u": [["editedAgo"], " संपादित"],
"XjqA8x": ["पैटर्न ", ["0"], "/** टॉगल करें"],
@@ -3546,6 +3547,7 @@
"epuNYK": [
"किसी ब्लॉक को सत्य के स्रोत के रूप में चिह्नित करें। जैसे-जैसे आप उसे संपादित करते हैं, बाकी जगहों के मिरर तुरंत अद्यतित होते हैं।"
],
+ "eqSy2M": ["अधिकतम ", ["MAX_ATTACHMENTS"], " चित्र छोड़ें, पेस्ट करें या संलग्न करें।"],
"erenF-": ["जिन फ़ाइलों के विरोध हल नहीं हुए हैं, उन्हें हटाया नहीं जा सकता"],
"euGaS0": [["fileName"], " पढ़ नहीं सका।"],
"euc6Ns": ["नकल बनाएँ"],
@@ -3823,7 +3825,6 @@
"haHgQj": ["सापेक्ष पथ कॉपी किया गया"],
"habOU_": ["स्वत: स्वीकृति सेटिंग अपडेट करने में विफल — ", ["detail"]],
"hadECI": [["0"], " को बदलना ज़रूरी है"],
- "hcBdO4": ["अधिकतम 3 स्क्रीनशॉट या फ़ोटो"],
"he3ygx": ["कॉपी करें"],
"heV8si": [
"यह ",
@@ -4391,7 +4392,6 @@
"nP-KFo": ["नई ", ["0"], " चैट"],
"nTM8ab": ["इसके रंग संपादित करने से पहले इसे नाम दें।"],
"nTwL53": ["किसी दस्तावेज़ का URL साझा करने के लिए उसे खोलें।"],
- "nVGRwu": ["चित्र यहाँ छोड़ें"],
"nWMRxa": ["पिन हटाएँ"],
"nWS2gQ": [["publisher"], " द्वारा प्रकाशित"],
"nWv1ja": ["छिपी हुई फ़ाइलें Settings → Ignore patterns में सँभालें।"],
diff --git a/packages/app/src/locales/hi/messages.po b/packages/app/src/locales/hi/messages.po
index 252184d37..0b768465c 100644
--- a/packages/app/src/locales/hi/messages.po
+++ b/packages/app/src/locales/hi/messages.po
@@ -689,6 +689,10 @@ msgstr "{count, plural, one {# टिप्पणी} other {# टिप्प
msgid "{count, plural, one {# doc} other {# docs}}"
msgstr "{count, plural, one {# दस्तावेज़} other {# दस्तावेज़}}"
+#: src/components/ImageAttachments.tsx
+msgid "{count, plural, one {# image attached} other {# images attached}}"
+msgstr "{count, plural, one {# छवि संलग्न की गई} other {# छवियाँ संलग्न की गईं}}"
+
#: src/components/TrashFailureModal.tsx
msgid "{count, plural, one {# item could not be moved to the {trashNoun}. Do you want to permanently delete instead?} other {# items could not be moved to the {trashNoun}. Do you want to permanently delete instead?}}"
msgstr "{count, plural, one {# आइटम को {trashNoun} में नहीं ले जाया जा सका। क्या आप इसके बजाय स्थायी रूप से हटाना चाहते हैं?} other {# आइटम को {trashNoun} में नहीं ले जाया जा सका। क्या आप इसके बजाय स्थायी रूप से हटाना चाहते हैं?}}"
@@ -2262,7 +2266,6 @@ msgid "Attach files"
msgstr "फ़ाइलें संलग्न करें"
#: src/components/ImageAttachments.tsx
-#: src/components/ReportBugImageDropzone.tsx
msgid "Attach images"
msgstr "छवियाँ संलग्न करें"
@@ -2581,10 +2584,6 @@ msgstr "टूटा हुआ लिंक"
msgid "Browse"
msgstr "ब्राउज़ करें"
-#: src/components/ReportBugImageDropzone.tsx
-msgid "Browse files"
-msgstr "फ़ाइलें चुनें"
-
#: src/components/share-receive-miss-content.tsx
msgid "Browse folder"
msgstr "फ़ोल्डर ब्राउज़ करें"
@@ -5343,9 +5342,9 @@ msgstr "क्रम बदलने के लिए आइटम {0} खीं
msgid "Drop a file to attach"
msgstr "संलग्न करने के लिए फ़ाइल छोड़ें"
-#: src/components/ReportBugImageDropzone.tsx
-msgid "Drop images here"
-msgstr "चित्र यहाँ छोड़ें"
+#: src/components/ImageAttachments.tsx
+msgid "Drop, paste, or attach up to {MAX_ATTACHMENTS} images."
+msgstr "अधिकतम {MAX_ATTACHMENTS} चित्र छोड़ें, पेस्ट करें या संलग्न करें।"
#: src/components/AppMenubar.tsx
#: src/components/command-palette-commands.ts
@@ -5776,10 +5775,6 @@ msgstr "एंडपॉइंट"
msgid "Eng specs"
msgstr "इंजीनियरिंग स्पेक"
-#: src/components/ReportBugDialogBody.tsx
-msgid "Enlarge"
-msgstr "बड़ा करें"
-
#: src/components/ReportBugDialogBody.tsx
msgid "Enlarge screenshot"
msgstr "स्क्रीनशॉट बड़ा करें"
@@ -7390,7 +7385,7 @@ msgstr "चित्र लक्ष्य \"{shown}\" को प्रोजे
msgid "Image target \"{shown}\" does not resolve to an existing file."
msgstr "चित्र लक्ष्य \"{shown}\" किसी मौजूदा फ़ाइल पर हल नहीं होता।"
-#: src/components/ReportBugImageDropzone.tsx
+#: src/components/ReportBugDialogBody.tsx
msgid "Images aren't redacted."
msgstr "चित्रों की संवेदनशील जानकारी नहीं छिपाई जाती।"
@@ -9391,7 +9386,7 @@ msgstr "अभी कोई हब पेज नहीं। पेजों प
msgid "No icons match."
msgstr "कोई आइकन मेल नहीं खाता।"
-#: src/components/ReportBugImageDropzone.tsx
+#: src/components/ImageAttachments.tsx
msgid "No images added."
msgstr "कोई इमेज नहीं जोड़ी गई।"
@@ -15760,10 +15755,6 @@ msgstr "बिना शीर्षक रिपोर्ट"
msgid "Untracked"
msgstr "ट्रैक नहीं किया गया"
-#: src/components/ReportBugImageDropzone.tsx
-msgid "Up to 3 screenshots or photos"
-msgstr "अधिकतम 3 स्क्रीनशॉट या फ़ोटो"
-
#: src/components/SyncStatusBadge.tsx
msgid "Up to date"
msgstr "अद्यतित"
diff --git a/packages/app/src/locales/id/messages.json b/packages/app/src/locales/id/messages.json
index 678177d39..693eb117f 100644
--- a/packages/app/src/locales/id/messages.json
+++ b/packages/app/src/locales/id/messages.json
@@ -1762,7 +1762,6 @@
"JOhCT9": ["Push menyertakan"],
"JReD69": ["File OpenKnowledge telah dihapus"],
"JWsZlx": ["Buka sebuah proyek untuk menyunting."],
- "JYj5R2": ["Pilih file"],
"JZ8cO6": ["Terang, gelap, atau ikuti sistem."],
"J_jZ5z": [
"Setiap alat AI membaca keterampilan dari foldernya sendiri. Arahkan satu folder ke folder lain dan kedua alat akan melihat keterampilan yang sama — tambahkan keterampilan sekali saja alih-alih menyalinnya ke setiap alat."
@@ -1889,6 +1888,7 @@
"L-rMC9": ["Setel ulang ke bawaan"],
"L1BQTH": [["0"], " belum terpasang — membuka halaman unduhannya."],
"L1ZE3M": ["Statistik dokumen"],
+ "L2Bye8": [["count", "plural", { "other": ["#", " gambar dilampirkan"] }]],
"L3BcJ4": [
"Yang ini perlu melihat file Anda, bukan hanya dokumen yang terbuka, sehingga muncul saat Anda menjalankan audit proyek, bukan saat Anda mengetik."
],
@@ -2950,7 +2950,6 @@
"Tidak ada keterampilan yang ditemukan di sumber itu. Jika Anda melanjutkan, impor akan melaporkan alasannya."
],
"XgsZ2F": ["Salin kode ", ["code"]],
- "XhVmAh": ["Perbesar"],
"Xhm7gG": ["Saran aset"],
"Xisk4u": ["Disunting ", ["editedAgo"]],
"XjqA8x": ["Mengaktifkan atau menonaktifkan pola ", ["0"], "/**"],
@@ -3694,6 +3693,7 @@
"epuNYK": [
"Menandai sebuah blok sebagai sumber kebenaran. Cermin di tempat lain diperbarui langsung saat Anda menyuntingnya."
],
+ "eqSy2M": ["Letakkan, tempel, atau lampirkan hingga ", ["MAX_ATTACHMENTS"], " gambar."],
"erenF-": ["Tidak dapat menghapus berkas yang konfliknya belum diselesaikan"],
"euGaS0": ["Tidak dapat membaca ", ["fileName"], "."],
"euc6Ns": ["Gandakan"],
@@ -3993,7 +3993,6 @@
"haHgQj": ["Jalur relatif disalin"],
"habOU_": ["Gagal memperbarui pengaturan persetujuan otomatis — ", ["detail"]],
"hadECI": [["0"], " perlu diganti"],
- "hcBdO4": ["Hingga 3 tangkapan layar atau foto"],
"he3ygx": ["Salin"],
"heV8si": [
"Ini menghapus ",
@@ -4581,7 +4580,6 @@
"nP-KFo": ["Obrolan ", ["0"], " baru"],
"nTM8ab": ["Beri nama sebelum menyunting warnanya."],
"nTwL53": ["Buka sebuah dokumen untuk membagikan URL-nya."],
- "nVGRwu": ["Letakkan gambar di sini"],
"nWMRxa": ["Lepas sematan"],
"nWS2gQ": ["Diterbitkan oleh ", ["publisher"]],
"nWv1ja": ["Kelola berkas tersembunyi di Pengaturan → Pola abaikan."],
diff --git a/packages/app/src/locales/id/messages.po b/packages/app/src/locales/id/messages.po
index 329ca3abe..172850060 100644
--- a/packages/app/src/locales/id/messages.po
+++ b/packages/app/src/locales/id/messages.po
@@ -689,6 +689,10 @@ msgstr "{count, plural, other {# komentar}} di {0, plural, other {# berkas}}"
msgid "{count, plural, one {# doc} other {# docs}}"
msgstr "{count, plural, other {# dokumen}}"
+#: src/components/ImageAttachments.tsx
+msgid "{count, plural, one {# image attached} other {# images attached}}"
+msgstr "{count, plural, other {# gambar dilampirkan}}"
+
#: src/components/TrashFailureModal.tsx
msgid "{count, plural, one {# item could not be moved to the {trashNoun}. Do you want to permanently delete instead?} other {# items could not be moved to the {trashNoun}. Do you want to permanently delete instead?}}"
msgstr "{count, plural, other {# item tidak dapat dipindahkan ke {trashNoun}. Apakah Anda ingin menghapus permanen saja?}}"
@@ -2262,7 +2266,6 @@ msgid "Attach files"
msgstr "Lampirkan berkas"
#: src/components/ImageAttachments.tsx
-#: src/components/ReportBugImageDropzone.tsx
msgid "Attach images"
msgstr "Lampirkan gambar"
@@ -2581,10 +2584,6 @@ msgstr "Tautan rusak"
msgid "Browse"
msgstr "Telusuri"
-#: src/components/ReportBugImageDropzone.tsx
-msgid "Browse files"
-msgstr "Pilih file"
-
#: src/components/share-receive-miss-content.tsx
msgid "Browse folder"
msgstr "Pilih folder"
@@ -5343,9 +5342,9 @@ msgstr "Seret item {0} untuk menata ulang"
msgid "Drop a file to attach"
msgstr "Lepaskan berkas untuk melampirkan"
-#: src/components/ReportBugImageDropzone.tsx
-msgid "Drop images here"
-msgstr "Letakkan gambar di sini"
+#: src/components/ImageAttachments.tsx
+msgid "Drop, paste, or attach up to {MAX_ATTACHMENTS} images."
+msgstr "Letakkan, tempel, atau lampirkan hingga {MAX_ATTACHMENTS} gambar."
#: src/components/AppMenubar.tsx
#: src/components/command-palette-commands.ts
@@ -5776,10 +5775,6 @@ msgstr "Endpoint"
msgid "Eng specs"
msgstr "Spesifikasi teknik"
-#: src/components/ReportBugDialogBody.tsx
-msgid "Enlarge"
-msgstr "Perbesar"
-
#: src/components/ReportBugDialogBody.tsx
msgid "Enlarge screenshot"
msgstr "Perbesar tangkapan layar"
@@ -7390,7 +7385,7 @@ msgstr "Target gambar \"{shown}\" tidak dapat dicocokkan dengan file lokal proye
msgid "Image target \"{shown}\" does not resolve to an existing file."
msgstr "Target gambar \"{shown}\" tidak merujuk ke file yang ada."
-#: src/components/ReportBugImageDropzone.tsx
+#: src/components/ReportBugDialogBody.tsx
msgid "Images aren't redacted."
msgstr "Gambar tidak disamarkan."
@@ -9391,7 +9386,7 @@ msgstr "Belum ada halaman pusat. Pusat muncul begitu halaman mengumpulkan tautan
msgid "No icons match."
msgstr "Tidak ada ikon yang cocok."
-#: src/components/ReportBugImageDropzone.tsx
+#: src/components/ImageAttachments.tsx
msgid "No images added."
msgstr "Tidak ada gambar yang ditambahkan."
@@ -15760,10 +15755,6 @@ msgstr "Laporan tanpa judul"
msgid "Untracked"
msgstr "Tidak dilacak"
-#: src/components/ReportBugImageDropzone.tsx
-msgid "Up to 3 screenshots or photos"
-msgstr "Hingga 3 tangkapan layar atau foto"
-
#: src/components/SyncStatusBadge.tsx
msgid "Up to date"
msgstr "Sudah mutakhir"
diff --git a/packages/app/src/locales/ko/messages.json b/packages/app/src/locales/ko/messages.json
index b3326b26c..820fb2154 100644
--- a/packages/app/src/locales/ko/messages.json
+++ b/packages/app/src/locales/ko/messages.json
@@ -1683,7 +1683,6 @@
"JOhCT9": ["푸시에 포함됨"],
"JReD69": ["OpenKnowledge 파일을 제거했습니다"],
"JWsZlx": ["편집할 프로젝트를 엽니다."],
- "JYj5R2": ["파일 찾아보기"],
"JZ8cO6": ["밝은 테마, 어두운 테마 또는 운영 체제 설정을 따릅니다."],
"J_jZ5z": [
"각 AI 도구는 자체 폴더에서 스킬을 읽습니다. 한 폴더를 다른 폴더로 연결하면 두 도구가 같은 스킬을 봅니다. 모든 도구에 복사하는 대신 스킬을 한 번만 추가하세요."
@@ -1805,6 +1804,7 @@
"L-rMC9": ["기본값으로 재설정"],
"L1BQTH": [["0"], " 미설치 상태입니다. 다운로드 페이지를 엽니다."],
"L1ZE3M": ["문서 통계"],
+ "L2Bye8": [["count", "plural", { "other": ["이미지 ", "#", "개 첨부됨"] }]],
"L3BcJ4": [
"이 규칙은 열린 문서만이 아니라 파일을 확인해야 하므로 입력 중이 아니라 프로젝트 감사를 실행할 때 나타납니다."
],
@@ -2817,7 +2817,6 @@
"Xg-Ntj": ["토큰에 repo 및 read:user 범위가 필요합니다."],
"XgqUOy": ["해당 소스에서 스킬을 찾지 못했습니다. 계속하면 가져오기에서 이유를 알려줍니다."],
"XgsZ2F": ["코드 ", ["code"], " 복사"],
- "XhVmAh": ["확대"],
"Xhm7gG": ["에셋 제안"],
"Xisk4u": [["editedAgo"], "에 편집됨"],
"XjqA8x": ["패턴 ", ["0"], "/** 사용 설정 전환"],
@@ -3544,6 +3543,7 @@
"epuNYK": [
"블록을 기준 소스로 지정합니다. 편집하면 다른 곳의 미러가 실시간으로 업데이트됩니다."
],
+ "eqSy2M": ["이미지를 최대 ", ["MAX_ATTACHMENTS"], "개까지 놓거나 붙여넣거나 첨부하세요."],
"erenF-": ["해결되지 않은 충돌이 있는 파일은 삭제할 수 없습니다."],
"euGaS0": [["fileName"], " 읽기 실패."],
"euc6Ns": ["복제"],
@@ -3823,7 +3823,6 @@
"haHgQj": ["상대 경로를 복사했습니다"],
"habOU_": ["자동 승인 설정을 업데이트하지 못했습니다: ", ["detail"]],
"hadECI": [["0"], " 교체 필요"],
- "hcBdO4": ["스크린샷 또는 사진 최대 3개"],
"he3ygx": ["복사"],
"heV8si": [
["names"],
@@ -4384,7 +4383,6 @@
"nP-KFo": ["새 ", ["0"], " 채팅"],
"nTM8ab": ["색상을 편집하기 전에 이름을 지정합니다."],
"nTwL53": ["URL을 공유할 문서를 여세요."],
- "nVGRwu": ["여기에 이미지 놓기"],
"nWMRxa": ["고정 해제"],
"nWS2gQ": ["게시자: ", ["publisher"]],
"nWv1ja": ["설정 → 무시 패턴에서 숨김 파일을 관리합니다."],
diff --git a/packages/app/src/locales/ko/messages.po b/packages/app/src/locales/ko/messages.po
index 2d676e624..cb540c77e 100644
--- a/packages/app/src/locales/ko/messages.po
+++ b/packages/app/src/locales/ko/messages.po
@@ -689,6 +689,10 @@ msgstr "{count, plural, other {댓글 #개, {0, plural, other {파일 #개}}}}"
msgid "{count, plural, one {# doc} other {# docs}}"
msgstr "{count, plural, other {#개 문서}}"
+#: src/components/ImageAttachments.tsx
+msgid "{count, plural, one {# image attached} other {# images attached}}"
+msgstr "{count, plural, other {이미지 #개 첨부됨}}"
+
#: src/components/TrashFailureModal.tsx
msgid "{count, plural, one {# item could not be moved to the {trashNoun}. Do you want to permanently delete instead?} other {# items could not be moved to the {trashNoun}. Do you want to permanently delete instead?}}"
msgstr "{count, plural, other {이동하지 못한 항목 #개를 {trashNoun}로 이동할 수 없습니다. 대신 영구 삭제하시겠습니까?}}"
@@ -2266,7 +2270,6 @@ msgid "Attach files"
msgstr "파일 첨부"
#: src/components/ImageAttachments.tsx
-#: src/components/ReportBugImageDropzone.tsx
msgid "Attach images"
msgstr "이미지 첨부"
@@ -2585,10 +2588,6 @@ msgstr "끊어진 링크"
msgid "Browse"
msgstr "찾아보기"
-#: src/components/ReportBugImageDropzone.tsx
-msgid "Browse files"
-msgstr "파일 찾아보기"
-
#: src/components/share-receive-miss-content.tsx
msgid "Browse folder"
msgstr "폴더 찾아보기"
@@ -5347,9 +5346,9 @@ msgstr "항목 {0}을 드래그하여 순서 변경"
msgid "Drop a file to attach"
msgstr "첨부할 파일 드롭"
-#: src/components/ReportBugImageDropzone.tsx
-msgid "Drop images here"
-msgstr "여기에 이미지 놓기"
+#: src/components/ImageAttachments.tsx
+msgid "Drop, paste, or attach up to {MAX_ATTACHMENTS} images."
+msgstr "이미지를 최대 {MAX_ATTACHMENTS}개까지 놓거나 붙여넣거나 첨부하세요."
#: src/components/AppMenubar.tsx
#: src/components/command-palette-commands.ts
@@ -5780,10 +5779,6 @@ msgstr "엔드포인트"
msgid "Eng specs"
msgstr "엔지니어링 사양"
-#: src/components/ReportBugDialogBody.tsx
-msgid "Enlarge"
-msgstr "확대"
-
#: src/components/ReportBugDialogBody.tsx
msgid "Enlarge screenshot"
msgstr "스크린샷 확대"
@@ -7394,7 +7389,7 @@ msgstr "이미지 대상 \"{shown}\"을 프로젝트 로컬 파일로 확인할
msgid "Image target \"{shown}\" does not resolve to an existing file."
msgstr "이미지 대상 \"{shown}\"이 존재하는 파일로 확인되지 않습니다."
-#: src/components/ReportBugImageDropzone.tsx
+#: src/components/ReportBugDialogBody.tsx
msgid "Images aren't redacted."
msgstr "이미지는 민감 정보가 가려지지 않습니다."
@@ -9395,7 +9390,7 @@ msgstr "아직 허브 페이지가 없습니다. 페이지에 들어오는 그
msgid "No icons match."
msgstr "일치하는 아이콘이 없습니다."
-#: src/components/ReportBugImageDropzone.tsx
+#: src/components/ImageAttachments.tsx
msgid "No images added."
msgstr "추가된 이미지가 없습니다."
@@ -15764,10 +15759,6 @@ msgstr "제목 없는 보고서"
msgid "Untracked"
msgstr "추적 안 됨"
-#: src/components/ReportBugImageDropzone.tsx
-msgid "Up to 3 screenshots or photos"
-msgstr "스크린샷 또는 사진 최대 3개"
-
#: src/components/SyncStatusBadge.tsx
msgid "Up to date"
msgstr "최신 상태"
diff --git a/packages/app/src/locales/pseudo/messages.json b/packages/app/src/locales/pseudo/messages.json
index e2935e46b..f21409a11 100644
--- a/packages/app/src/locales/pseudo/messages.json
+++ b/packages/app/src/locales/pseudo/messages.json
@@ -1729,7 +1729,6 @@
"JOhCT9": ["Ƥũśĥ ĩńćĺũďēś"],
"JReD69": ["ŌƥēńĶńōŵĺēďĝē ƒĩĺēś ŵēŕē ŕēḿōvēď"],
"JWsZlx": ["Ōƥēń à ƥŕōĴēćţ ţō ēďĩţ."],
- "JYj5R2": ["ßŕōŵśē ƒĩĺēś"],
"JZ8cO6": ["Ĺĩĝĥţ, ďàŕķ, ōŕ ƒōĺĺōŵ ţĥē ŌŚ."],
"J_jZ5z": [
"Ēàćĥ ÀĨ ţōōĺ ŕēàďś śķĩĺĺś ƒŕōḿ ĩţś ōŵń ƒōĺďēŕ. Ƥōĩńţ ōńē ƒōĺďēŕ àţ àńōţĥēŕ àńď ƀōţĥ ţōōĺś śēē ţĥē śàḿē śķĩĺĺś — àďď à śķĩĺĺ ōńćē ĩńśţēàď ōƒ ćōƥŷĩńĝ ĩţ ĩńţō ēvēŕŷ ţōōĺ."
@@ -1850,6 +1849,9 @@
"L-rMC9": ["Ŕēśēţ ţō ďēƒàũĺţ"],
"L1BQTH": [["0"], " ĩśń'ţ ĩńśţàĺĺēď ŷēţ — ōƥēńĩńĝ ĩţś ďōŵńĺōàď ƥàĝē."],
"L1ZE3M": ["Ďōćũḿēńţ śţàţĩśţĩćś"],
+ "L2Bye8": [
+ ["count", "plural", { "one": ["#", " ĩḿàĝē àţţàćĥēď"], "other": ["#", " ĩḿàĝēś àţţàćĥēď"] }]
+ ],
"L3BcJ4": [
"Ţĥĩś ōńē ńēēďś ţō śēē ŷōũŕ ƒĩĺēś, ńōţ Ĵũśţ ţĥē ōƥēń ďōćũḿēńţ, śō ĩţ àƥƥēàŕś ŵĥēń ŷōũ ŕũń à ƥŕōĴēćţ àũďĩţ ŕàţĥēŕ ţĥàń ŵĥĩĺē ŷōũ ţŷƥē."
],
@@ -2909,7 +2911,6 @@
"Xg-Ntj": ["Ţĥē ţōķēń ńēēďś ţĥē ŕēƥō àńď ŕēàď:ũśēŕ śćōƥēś."],
"XgqUOy": ["Ńō śķĩĺĺ ƒōũńď àţ ţĥàţ śōũŕćē. Ĩḿƥōŕţ ŵĩĺĺ ŕēƥōŕţ ŵĥŷ ĩƒ ŷōũ ćōńţĩńũē."],
"XgsZ2F": ["Ćōƥŷ ţĥē ćōďē ", ["code"]],
- "XhVmAh": ["Ēńĺàŕĝē"],
"Xhm7gG": ["Àśśēţ śũĝĝēśţĩōńś"],
"Xisk4u": ["Ēďĩţēď ", ["editedAgo"]],
"XjqA8x": ["Ţōĝĝĺēś ţĥē ƥàţţēŕń ", ["0"], "/**"],
@@ -3664,6 +3665,7 @@
"epuNYK": [
"Ḿàŕķ à ƀĺōćķ àś ţĥē śōũŕćē ōƒ ţŕũţĥ. Ḿĩŕŕōŕś ēĺśēŵĥēŕē ũƥďàţē ĺĩvē àś ŷōũ ēďĩţ ĩţ."
],
+ "eqSy2M": ["Ďŕōƥ, ƥàśţē, ōŕ àţţàćĥ ũƥ ţō ", ["MAX_ATTACHMENTS"], " ĩḿàĝēś."],
"erenF-": ["Ćàńńōţ ďēĺēţē ƒĩĺēś ŵĩţĥ ũńŕēśōĺvēď ćōńƒĺĩćţś"],
"euGaS0": ["Ćōũĺďń'ţ ŕēàď ", ["fileName"], "."],
"euc6Ns": ["Ďũƥĺĩćàţē"],
@@ -3961,7 +3963,6 @@
"haHgQj": ["Ćōƥĩēď ŕēĺàţĩvē ƥàţĥ"],
"habOU_": ["Ƒàĩĺēď ţō ũƥďàţē ţĥē àũţō-àƥƥŕōvē śēţţĩńĝ — ", ["detail"]],
"hadECI": [["0"], " ńēēďś ŕēƥĺàćĩńĝ"],
- "hcBdO4": ["Ũƥ ţō 3 śćŕēēńśĥōţś ōŕ ƥĥōţōś"],
"he3ygx": ["Ćōƥŷ"],
"heV8si": [
"Ţĥĩś ƥēŕḿàńēńţĺŷ ŕēḿōvēś ",
@@ -4544,7 +4545,6 @@
"nP-KFo": ["Ńēŵ ", ["0"], " ćĥàţ"],
"nTM8ab": ["Ĝĩvē ĩţ à ńàḿē ƀēƒōŕē ēďĩţĩńĝ ĩţś ćōĺōŕś."],
"nTwL53": ["Ōƥēń à ďōć ţō śĥàŕē ĩţś ŨŔĹ."],
- "nVGRwu": ["Ďŕōƥ ĩḿàĝēś ĥēŕē"],
"nWMRxa": ["Ũńƥĩń"],
"nWS2gQ": ["Ƥũƀĺĩśĥēď ƀŷ ", ["publisher"]],
"nWv1ja": ["Ḿàńàĝē ĥĩďďēń ƒĩĺēś ĩń Śēţţĩńĝś → Ĩĝńōŕē ƥàţţēŕńś."],
diff --git a/packages/app/src/locales/pseudo/messages.po b/packages/app/src/locales/pseudo/messages.po
index c50fa2003..864fe1248 100644
--- a/packages/app/src/locales/pseudo/messages.po
+++ b/packages/app/src/locales/pseudo/messages.po
@@ -689,6 +689,10 @@ msgstr ""
msgid "{count, plural, one {# doc} other {# docs}}"
msgstr ""
+#: src/components/ImageAttachments.tsx
+msgid "{count, plural, one {# image attached} other {# images attached}}"
+msgstr ""
+
#: src/components/TrashFailureModal.tsx
msgid "{count, plural, one {# item could not be moved to the {trashNoun}. Do you want to permanently delete instead?} other {# items could not be moved to the {trashNoun}. Do you want to permanently delete instead?}}"
msgstr ""
@@ -2262,7 +2266,6 @@ msgid "Attach files"
msgstr ""
#: src/components/ImageAttachments.tsx
-#: src/components/ReportBugImageDropzone.tsx
msgid "Attach images"
msgstr ""
@@ -2581,10 +2584,6 @@ msgstr ""
msgid "Browse"
msgstr ""
-#: src/components/ReportBugImageDropzone.tsx
-msgid "Browse files"
-msgstr ""
-
#: src/components/share-receive-miss-content.tsx
msgid "Browse folder"
msgstr ""
@@ -5343,8 +5342,8 @@ msgstr ""
msgid "Drop a file to attach"
msgstr ""
-#: src/components/ReportBugImageDropzone.tsx
-msgid "Drop images here"
+#: src/components/ImageAttachments.tsx
+msgid "Drop, paste, or attach up to {MAX_ATTACHMENTS} images."
msgstr ""
#: src/components/AppMenubar.tsx
@@ -5776,10 +5775,6 @@ msgstr ""
msgid "Eng specs"
msgstr ""
-#: src/components/ReportBugDialogBody.tsx
-msgid "Enlarge"
-msgstr ""
-
#: src/components/ReportBugDialogBody.tsx
msgid "Enlarge screenshot"
msgstr ""
@@ -7390,7 +7385,7 @@ msgstr ""
msgid "Image target \"{shown}\" does not resolve to an existing file."
msgstr ""
-#: src/components/ReportBugImageDropzone.tsx
+#: src/components/ReportBugDialogBody.tsx
msgid "Images aren't redacted."
msgstr ""
@@ -9391,7 +9386,7 @@ msgstr ""
msgid "No icons match."
msgstr ""
-#: src/components/ReportBugImageDropzone.tsx
+#: src/components/ImageAttachments.tsx
msgid "No images added."
msgstr ""
@@ -15760,10 +15755,6 @@ msgstr ""
msgid "Untracked"
msgstr ""
-#: src/components/ReportBugImageDropzone.tsx
-msgid "Up to 3 screenshots or photos"
-msgstr ""
-
#: src/components/SyncStatusBadge.tsx
msgid "Up to date"
msgstr ""
diff --git a/packages/app/src/locales/pt-BR/messages.json b/packages/app/src/locales/pt-BR/messages.json
index ca09b8681..a94caa93f 100644
--- a/packages/app/src/locales/pt-BR/messages.json
+++ b/packages/app/src/locales/pt-BR/messages.json
@@ -2002,7 +2002,6 @@
"JOhCT9": ["O Push inclui"],
"JReD69": ["Os arquivos do OpenKnowledge foram removidos"],
"JWsZlx": ["Abra um projeto para editar."],
- "JYj5R2": ["Procurar arquivos"],
"JZ8cO6": ["Claro, escuro ou seguir o sistema."],
"J_jZ5z": [
"Cada ferramenta de IA lê as habilidades da sua própria pasta. Aponte uma pasta para outra e as duas ferramentas verão as mesmas habilidades: adicione uma habilidade uma vez em vez de copiá-la para cada ferramenta."
@@ -2129,6 +2128,17 @@
"L-rMC9": ["Redefinir para o padrão"],
"L1BQTH": [["0"], " ainda não está instalado — abrindo sua página de download."],
"L1ZE3M": ["Estatísticas do documento"],
+ "L2Bye8": [
+ [
+ "count",
+ "plural",
+ {
+ "one": ["#", " imagem anexada"],
+ "many": ["#", " imagens anexadas"],
+ "other": ["#", " imagens anexadas"]
+ }
+ ]
+ ],
"L3BcJ4": [
"Este precisa ver seus arquivos, não apenas o documento aberto, para que apareça quando você executa uma auditoria de projeto, e não enquanto você digita."
],
@@ -3331,7 +3341,6 @@
"Nenhuma habilidade encontrada nessa fonte. Se você continuar, a importação vai dizer por quê."
],
"XgsZ2F": ["Copiar o código ", ["code"]],
- "XhVmAh": ["Ampliar"],
"Xhm7gG": ["Sugestões de recursos"],
"Xisk4u": ["Editado ", ["editedAgo"]],
"XjqA8x": ["Alterna o padrão ", ["0"], "/**"],
@@ -4180,6 +4189,7 @@
"epuNYK": [
"Marca um bloco como fonte da verdade. Os espelhos em outros lugares se atualizam ao vivo enquanto você o edita."
],
+ "eqSy2M": ["Solte, cole ou anexe até ", ["MAX_ATTACHMENTS"], " imagens."],
"erenF-": ["Não é possível excluir arquivos com conflitos não resolvidos"],
"euGaS0": ["Não foi possível ler ", ["fileName"], "."],
"euc6Ns": ["Duplicar"],
@@ -4513,7 +4523,6 @@
"haHgQj": ["Caminho relativo copiado"],
"habOU_": ["Falha ao atualizar a configuração de aprovação automática — ", ["detail"]],
"hadECI": [["0"], " precisa ser substituído"],
- "hcBdO4": ["Até 3 capturas de tela ou fotos"],
"he3ygx": ["Copiar"],
"heV8si": [
"Isto remove permanentemente ",
@@ -5149,7 +5158,6 @@
"nP-KFo": ["Novo chat do ", ["0"]],
"nTM8ab": ["Dê um nome antes de editar as cores."],
"nTwL53": ["Abra um documento para compartilhar a URL dele."],
- "nVGRwu": ["Solte imagens aqui"],
"nWMRxa": ["Desafixar"],
"nWS2gQ": ["Publicado por ", ["publisher"]],
"nWv1ja": ["Gerencie os arquivos ocultos em Configurações → Padrões de exclusão."],
diff --git a/packages/app/src/locales/pt-BR/messages.po b/packages/app/src/locales/pt-BR/messages.po
index 08e23f0e9..43adf2494 100644
--- a/packages/app/src/locales/pt-BR/messages.po
+++ b/packages/app/src/locales/pt-BR/messages.po
@@ -689,6 +689,10 @@ msgstr "{count, plural, one {# comentário} many {# comentários} other {# comen
msgid "{count, plural, one {# doc} other {# docs}}"
msgstr "{count, plural, one {# documento} many {# documentos} other {# documentos}}"
+#: src/components/ImageAttachments.tsx
+msgid "{count, plural, one {# image attached} other {# images attached}}"
+msgstr "{count, plural, one {# imagem anexada} many {# imagens anexadas} other {# imagens anexadas}}"
+
#: src/components/TrashFailureModal.tsx
msgid "{count, plural, one {# item could not be moved to the {trashNoun}. Do you want to permanently delete instead?} other {# items could not be moved to the {trashNoun}. Do you want to permanently delete instead?}}"
msgstr "{count, plural, one {Não foi possível mover # item para {trashNoun}. Deseja excluir permanentemente?} many {Não foi possível mover # itens para {trashNoun}. Deseja excluir permanentemente?} other {Não foi possível mover # itens para {trashNoun}. Deseja excluir permanentemente?}}"
@@ -2262,7 +2266,6 @@ msgid "Attach files"
msgstr "Anexar arquivos"
#: src/components/ImageAttachments.tsx
-#: src/components/ReportBugImageDropzone.tsx
msgid "Attach images"
msgstr "Anexar imagens"
@@ -2581,10 +2584,6 @@ msgstr "Link quebrado"
msgid "Browse"
msgstr "Procurar"
-#: src/components/ReportBugImageDropzone.tsx
-msgid "Browse files"
-msgstr "Procurar arquivos"
-
#: src/components/share-receive-miss-content.tsx
msgid "Browse folder"
msgstr "Escolher pasta"
@@ -5343,9 +5342,9 @@ msgstr "Arraste o item {0} para reordenar"
msgid "Drop a file to attach"
msgstr "Solte um arquivo para anexar"
-#: src/components/ReportBugImageDropzone.tsx
-msgid "Drop images here"
-msgstr "Solte imagens aqui"
+#: src/components/ImageAttachments.tsx
+msgid "Drop, paste, or attach up to {MAX_ATTACHMENTS} images."
+msgstr "Solte, cole ou anexe até {MAX_ATTACHMENTS} imagens."
#: src/components/AppMenubar.tsx
#: src/components/command-palette-commands.ts
@@ -5776,10 +5775,6 @@ msgstr "Endpoint"
msgid "Eng specs"
msgstr "Especificações de engenharia"
-#: src/components/ReportBugDialogBody.tsx
-msgid "Enlarge"
-msgstr "Ampliar"
-
#: src/components/ReportBugDialogBody.tsx
msgid "Enlarge screenshot"
msgstr "Ampliar captura de tela"
@@ -7390,7 +7385,7 @@ msgstr "O destino da imagem \"{shown}\" não pôde ser resolvido como um arquivo
msgid "Image target \"{shown}\" does not resolve to an existing file."
msgstr "O destino da imagem \"{shown}\" não corresponde a um arquivo existente."
-#: src/components/ReportBugImageDropzone.tsx
+#: src/components/ReportBugDialogBody.tsx
msgid "Images aren't redacted."
msgstr "As imagens não são censuradas."
@@ -9391,7 +9386,7 @@ msgstr "Ainda não há páginas de índice. Os índices aparecem quando as pági
msgid "No icons match."
msgstr "Nenhum ícone corresponde."
-#: src/components/ReportBugImageDropzone.tsx
+#: src/components/ImageAttachments.tsx
msgid "No images added."
msgstr "Nenhuma imagem adicionada."
@@ -15760,10 +15755,6 @@ msgstr "Relatório sem título"
msgid "Untracked"
msgstr "Não rastreado"
-#: src/components/ReportBugImageDropzone.tsx
-msgid "Up to 3 screenshots or photos"
-msgstr "Até 3 capturas de tela ou fotos"
-
#: src/components/SyncStatusBadge.tsx
msgid "Up to date"
msgstr "Atualizado"
diff --git a/packages/app/src/locales/ur/messages.json b/packages/app/src/locales/ur/messages.json
index 9477a9def..bd2367767 100644
--- a/packages/app/src/locales/ur/messages.json
+++ b/packages/app/src/locales/ur/messages.json
@@ -1761,7 +1761,6 @@
"JOhCT9": ["پُش میں شامل"],
"JReD69": ["OpenKnowledge کی فائلیں ہٹا دی گئیں"],
"JWsZlx": ["ترمیم کے لیے کوئی پروجیکٹ کھولیں۔"],
- "JYj5R2": ["فائلیں منتخب کریں"],
"JZ8cO6": ["روشن، تاریک، یا OS کی پیروی۔"],
"J_jZ5z": [
"ہر AI ٹول مہارتیں اپنے فولڈر سے پڑھتا ہے۔ ایک فولڈر کو دوسرے کی طرف اشارہ کریں تو دونوں ٹولز ایک ہی مہارتیں دیکھیں گے — ہر ٹول میں نقل کرنے کے بجائے مہارت ایک بار شامل کریں۔"
@@ -1889,6 +1888,13 @@
"L-rMC9": ["طے شدہ پر واپس کریں"],
"L1BQTH": [["0"], " ابھی نصب نہیں ہے — اس کا ڈاؤن لوڈ صفحہ کھولا جا رہا ہے۔"],
"L1ZE3M": ["دستاویز کے اعداد و شمار"],
+ "L2Bye8": [
+ [
+ "count",
+ "plural",
+ { "one": ["#", " تصویر منسلک کی گئی"], "other": ["#", " تصاویر منسلک کی گئیں"] }
+ ]
+ ],
"L3BcJ4": [
"اس کو آپ کی فائلوں کو دیکھنے کی ضرورت ہے، نہ صرف کھلی دستاویز، لہذا یہ تب ظاہر ہوتا ہے جب آپ ٹائپ کرتے وقت کے بجائے پروجیکٹ آڈٹ چلاتے ہیں۔"
],
@@ -2973,7 +2979,6 @@
"Xg-Ntj": ["ٹوکن کو repo اور read:user دائرہ کار درکار ہیں۔"],
"XgqUOy": ["اس ماخذ پر کوئی مہارت نہیں ملی۔ اگر آپ جاری رکھیں تو درآمد وجہ بتا دے گی۔"],
"XgsZ2F": ["کوڈ ", ["code"], " کاپی کریں"],
- "XhVmAh": ["بڑا کریں"],
"Xhm7gG": ["اثاثوں کی تجاویز"],
"Xisk4u": [["editedAgo"], " ترمیم ہوئی"],
"XjqA8x": ["پیٹرن ", ["0"], "/** ٹوگل کریں"],
@@ -3749,6 +3754,7 @@
"epuNYK": [
"کسی بلاک کو سچائی کا ماخذ نشان زد کریں۔ اس میں ترمیم کرتے ہی دوسری جگہوں کے مررز براہِ راست تازہ ہو جاتے ہیں۔"
],
+ "eqSy2M": ["زیادہ سے زیادہ ", ["MAX_ATTACHMENTS"], " تصاویر چھوڑیں، پیسٹ کریں یا منسلک کریں۔"],
"erenF-": ["ایسی فائلیں حذف نہیں کی جا سکتیں جن کے تنازعات حل نہیں ہوئے"],
"euGaS0": [["fileName"], " پڑھا نہیں جا سکا۔"],
"euc6Ns": ["نقل بنائیں"],
@@ -4042,7 +4048,6 @@
"haHgQj": ["نسبتی راستہ نقل ہو گیا"],
"habOU_": ["خودکار منظوری کی ترتیب تازہ نہیں ہو سکی — ", ["detail"]],
"hadECI": [["0"], " کو تبدیل کرنا ضروری ہے"],
- "hcBdO4": ["زیادہ سے زیادہ 3 اسکرین شاٹس یا تصاویر"],
"he3ygx": ["نقل کریں"],
"heV8si": [
"یہ ",
@@ -4643,7 +4648,6 @@
"nP-KFo": ["نئی ", ["0"], " گفتگو"],
"nTM8ab": ["اس کے رنگوں میں ترمیم سے پہلے اسے نام دیں۔"],
"nTwL53": ["کسی دستاویز کا URL شیئر کرنے کے لیے اسے کھولیں۔"],
- "nVGRwu": ["تصاویر یہاں چھوڑیں"],
"nWMRxa": ["پن ہٹائیں"],
"nWS2gQ": [["publisher"], " کی طرف سے شائع کردہ"],
"nWv1ja": ["چھپی ہوئی فائلیں ترتیبات ← نظر انداز کرنے کے پیٹرنز میں سنبھالیں۔"],
diff --git a/packages/app/src/locales/ur/messages.po b/packages/app/src/locales/ur/messages.po
index f2d7b1cd7..19636b063 100644
--- a/packages/app/src/locales/ur/messages.po
+++ b/packages/app/src/locales/ur/messages.po
@@ -689,6 +689,10 @@ msgstr "{count, plural, one {# تبصرہ} other {# تبصرے}} {0, plural, one
msgid "{count, plural, one {# doc} other {# docs}}"
msgstr "{count, plural, one {# دستاویز} other {# دستاویزات}}"
+#: src/components/ImageAttachments.tsx
+msgid "{count, plural, one {# image attached} other {# images attached}}"
+msgstr "{count, plural, one {# تصویر منسلک کی گئی} other {# تصاویر منسلک کی گئیں}}"
+
#: src/components/TrashFailureModal.tsx
msgid "{count, plural, one {# item could not be moved to the {trashNoun}. Do you want to permanently delete instead?} other {# items could not be moved to the {trashNoun}. Do you want to permanently delete instead?}}"
msgstr "{count, plural, one {# آئٹم {trashNoun} میں منتقل نہیں ہو سکا۔ کیا آپ اس کے بجائے مستقل طور پر حذف کرنا چاہتے ہیں؟} other {# آئٹمز {trashNoun} میں منتقل نہیں ہو سکے۔ کیا آپ اس کے بجائے مستقل طور پر حذف کرنا چاہتے ہیں؟}}"
@@ -2266,7 +2270,6 @@ msgid "Attach files"
msgstr "فائلیں منسلک کریں"
#: src/components/ImageAttachments.tsx
-#: src/components/ReportBugImageDropzone.tsx
msgid "Attach images"
msgstr "تصاویر منسلک کریں"
@@ -2585,10 +2588,6 @@ msgstr "ٹوٹا ہوا لنک"
msgid "Browse"
msgstr "براؤز کریں"
-#: src/components/ReportBugImageDropzone.tsx
-msgid "Browse files"
-msgstr "فائلیں منتخب کریں"
-
#: src/components/share-receive-miss-content.tsx
msgid "Browse folder"
msgstr "فولڈر براؤز کریں"
@@ -5347,9 +5346,9 @@ msgstr "ترتیب بدلنے کے لیے آئٹم {0} کھینچیں"
msgid "Drop a file to attach"
msgstr "منسلک کرنے کے لیے فائل چھوڑیں"
-#: src/components/ReportBugImageDropzone.tsx
-msgid "Drop images here"
-msgstr "تصاویر یہاں چھوڑیں"
+#: src/components/ImageAttachments.tsx
+msgid "Drop, paste, or attach up to {MAX_ATTACHMENTS} images."
+msgstr "زیادہ سے زیادہ {MAX_ATTACHMENTS} تصاویر چھوڑیں، پیسٹ کریں یا منسلک کریں۔"
#: src/components/AppMenubar.tsx
#: src/components/command-palette-commands.ts
@@ -5780,10 +5779,6 @@ msgstr "اینڈ پوائنٹ"
msgid "Eng specs"
msgstr "انجینئرنگ اسپیکس"
-#: src/components/ReportBugDialogBody.tsx
-msgid "Enlarge"
-msgstr "بڑا کریں"
-
#: src/components/ReportBugDialogBody.tsx
msgid "Enlarge screenshot"
msgstr "اسکرین شاٹ بڑا کریں"
@@ -7394,7 +7389,7 @@ msgstr "تصویر کے ہدف \"{shown}\" کو پروجیکٹ کی مقامی
msgid "Image target \"{shown}\" does not resolve to an existing file."
msgstr "تصویر کا ہدف \"{shown}\" کسی موجودہ فائل کی طرف اشارہ نہیں کرتا۔"
-#: src/components/ReportBugImageDropzone.tsx
+#: src/components/ReportBugDialogBody.tsx
msgid "Images aren't redacted."
msgstr "تصاویر کی حساس معلومات نہیں چھپائی جاتیں۔"
@@ -9395,7 +9390,7 @@ msgstr "ابھی کوئی مرکزی صفحہ نہیں۔ مراکز اسی وق
msgid "No icons match."
msgstr "کوئی آئیکن مماثل نہیں۔"
-#: src/components/ReportBugImageDropzone.tsx
+#: src/components/ImageAttachments.tsx
msgid "No images added."
msgstr "کوئی تصویر شامل نہیں کی گئی۔"
@@ -15764,10 +15759,6 @@ msgstr "بلا عنوان رپورٹ"
msgid "Untracked"
msgstr "غیر ٹریک شدہ"
-#: src/components/ReportBugImageDropzone.tsx
-msgid "Up to 3 screenshots or photos"
-msgstr "زیادہ سے زیادہ 3 اسکرین شاٹس یا تصاویر"
-
#: src/components/SyncStatusBadge.tsx
msgid "Up to date"
msgstr "تازہ ترین"
diff --git a/packages/app/src/locales/zh-Hans/messages.json b/packages/app/src/locales/zh-Hans/messages.json
index ce9eb325c..1b78dabd3 100644
--- a/packages/app/src/locales/zh-Hans/messages.json
+++ b/packages/app/src/locales/zh-Hans/messages.json
@@ -1502,7 +1502,6 @@
"JOhCT9": ["推送包含"],
"JReD69": ["已移除 OpenKnowledge 文件"],
"JWsZlx": ["请打开一个项目以进行编辑。"],
- "JYj5R2": ["浏览文件"],
"JZ8cO6": ["浅色、深色,或跟随系统。"],
"J_jZ5z": [
"每个 AI 工具都从各自的文件夹读取技能。将一个文件夹指向另一个,两个工具就会看到相同的技能——只需添加一次技能,而不必复制到每个工具。"
@@ -1617,6 +1616,7 @@
"L-rMC9": ["重置为默认值"],
"L1BQTH": [["0"], " 尚未安装——正在打开它的下载页面。"],
"L1ZE3M": ["文档统计"],
+ "L2Bye8": [["count", "plural", { "other": ["已附加 ", "#", " 张图片"] }]],
"L3BcJ4": [
"这个需要查看您的文件,而不仅仅是打开的文档,因此它会在您运行项目审核时出现,而不是在您键入时出现。"
],
@@ -2553,7 +2553,6 @@
"Xg-Ntj": ["这个令牌需要 repo 和 read:user 权限范围。"],
"XgqUOy": ["在那个来源没有找到技能。如果继续,导入会告诉你原因。"],
"XgsZ2F": ["复制代码 ", ["code"]],
- "XhVmAh": ["放大"],
"Xhm7gG": ["资源建议"],
"Xisk4u": [["editedAgo"], "编辑"],
"XjqA8x": ["切换模式 ", ["0"], "/**"],
@@ -3201,6 +3200,7 @@
"eolhcI": ["正在读取工作区"],
"eps54V": ["已移除"],
"epuNYK": ["把某个块标记为事实来源。你编辑它时,别处的镜像会实时更新。"],
+ "eqSy2M": ["拖放、粘贴或附加最多 ", ["MAX_ATTACHMENTS"], " 张图片。"],
"erenF-": ["无法删除存在未解决冲突的文件"],
"euGaS0": ["无法读取 ", ["fileName"], "。"],
"euc6Ns": ["创建副本"],
@@ -3459,7 +3459,6 @@
"haHgQj": ["已复制相对路径"],
"habOU_": ["更新自动批准设置失败——", ["detail"]],
"hadECI": [["0"], " 需要替换"],
- "hcBdO4": ["最多 3 张屏幕截图或照片"],
"he3ygx": ["复制"],
"heV8si": [
"这将永久删除 ",
@@ -3960,7 +3959,6 @@
"nP-KFo": ["新建 ", ["0"], " 对话"],
"nTM8ab": ["请先命名主题,再编辑颜色。"],
"nTwL53": ["打开一个文档来共享它的 URL。"],
- "nVGRwu": ["将图片拖放到此处"],
"nWMRxa": ["取消置顶"],
"nWS2gQ": ["由 ", ["publisher"], " 发布"],
"nWv1ja": ["在「设置 → 忽略模式」中管理隐藏文件。"],
diff --git a/packages/app/src/locales/zh-Hans/messages.po b/packages/app/src/locales/zh-Hans/messages.po
index 349ee85dd..a078dedf9 100644
--- a/packages/app/src/locales/zh-Hans/messages.po
+++ b/packages/app/src/locales/zh-Hans/messages.po
@@ -689,6 +689,10 @@ msgstr "{count, plural, other {# 条评论}},分布在 {0, plural, other {#
msgid "{count, plural, one {# doc} other {# docs}}"
msgstr "{count, plural, other {# 个文档}}"
+#: src/components/ImageAttachments.tsx
+msgid "{count, plural, one {# image attached} other {# images attached}}"
+msgstr "{count, plural, other {已附加 # 张图片}}"
+
#: src/components/TrashFailureModal.tsx
msgid "{count, plural, one {# item could not be moved to the {trashNoun}. Do you want to permanently delete instead?} other {# items could not be moved to the {trashNoun}. Do you want to permanently delete instead?}}"
msgstr "{count, plural, other {# 个项目无法移到{trashNoun}。是否要改为永久删除?}}"
@@ -2266,7 +2270,6 @@ msgid "Attach files"
msgstr "附加文件"
#: src/components/ImageAttachments.tsx
-#: src/components/ReportBugImageDropzone.tsx
msgid "Attach images"
msgstr "附加图片"
@@ -2585,10 +2588,6 @@ msgstr "失效链接"
msgid "Browse"
msgstr "浏览"
-#: src/components/ReportBugImageDropzone.tsx
-msgid "Browse files"
-msgstr "浏览文件"
-
#: src/components/share-receive-miss-content.tsx
msgid "Browse folder"
msgstr "浏览文件夹"
@@ -5347,9 +5346,9 @@ msgstr "拖动项目 {0} 以重新排序"
msgid "Drop a file to attach"
msgstr "拖放文件以附加"
-#: src/components/ReportBugImageDropzone.tsx
-msgid "Drop images here"
-msgstr "将图片拖放到此处"
+#: src/components/ImageAttachments.tsx
+msgid "Drop, paste, or attach up to {MAX_ATTACHMENTS} images."
+msgstr "拖放、粘贴或附加最多 {MAX_ATTACHMENTS} 张图片。"
#: src/components/AppMenubar.tsx
#: src/components/command-palette-commands.ts
@@ -5780,10 +5779,6 @@ msgstr "端点"
msgid "Eng specs"
msgstr "工程规格"
-#: src/components/ReportBugDialogBody.tsx
-msgid "Enlarge"
-msgstr "放大"
-
#: src/components/ReportBugDialogBody.tsx
msgid "Enlarge screenshot"
msgstr "放大屏幕截图"
@@ -7394,7 +7389,7 @@ msgstr "无法将图片目标“{shown}”解析为项目本地文件。"
msgid "Image target \"{shown}\" does not resolve to an existing file."
msgstr "图片目标“{shown}”未指向现有文件。"
-#: src/components/ReportBugImageDropzone.tsx
+#: src/components/ReportBugDialogBody.tsx
msgid "Images aren't redacted."
msgstr "图片不会进行脱敏处理。"
@@ -9395,7 +9390,7 @@ msgstr "还没有中枢页面。当页面积累起入链后,中枢页就会出
msgid "No icons match."
msgstr "没有匹配的图标。"
-#: src/components/ReportBugImageDropzone.tsx
+#: src/components/ImageAttachments.tsx
msgid "No images added."
msgstr "未添加任何图片。"
@@ -15764,10 +15759,6 @@ msgstr "未命名报告"
msgid "Untracked"
msgstr "未跟踪"
-#: src/components/ReportBugImageDropzone.tsx
-msgid "Up to 3 screenshots or photos"
-msgstr "最多 3 张屏幕截图或照片"
-
#: src/components/SyncStatusBadge.tsx
msgid "Up to date"
msgstr "已是最新"
diff --git a/packages/app/src/locales/zh-Hant/messages.json b/packages/app/src/locales/zh-Hant/messages.json
index 4d3ac003f..192aa7516 100644
--- a/packages/app/src/locales/zh-Hant/messages.json
+++ b/packages/app/src/locales/zh-Hant/messages.json
@@ -1510,7 +1510,6 @@
"JOhCT9": ["推送包含"],
"JReD69": ["已移除 OpenKnowledge 檔案"],
"JWsZlx": ["請開啟一個專案才能編輯。"],
- "JYj5R2": ["瀏覽檔案"],
"JZ8cO6": ["淺色、深色,或跟隨系統。"],
"J_jZ5z": [
"每個 AI 工具都從各自的資料夾讀取技能。將一個資料夾指向另一個,兩個工具就會看到相同的技能——只需新增一次技能,不必複製到每個工具。"
@@ -1629,6 +1628,7 @@
"L-rMC9": ["重設為預設值"],
"L1BQTH": [["0"], " 尚未安裝——正在開啟它的下載頁面。"],
"L1ZE3M": ["文件統計"],
+ "L2Bye8": [["count", "plural", { "other": ["已附加 ", "#", " 張圖片"] }]],
"L3BcJ4": [
"這個需要查看您的文件,而不僅僅是打開的文檔,因此它會在您執行專案審核時出現,而不是在您鍵入時出現。"
],
@@ -2573,7 +2573,6 @@
"Xg-Ntj": ["這個權杖需要 repo 和 read:user 權限範圍。"],
"XgqUOy": ["在那個來源找不到技能。如果繼續,匯入會告訴你原因。"],
"XgsZ2F": ["複製代碼 ", ["code"]],
- "XhVmAh": ["放大"],
"Xhm7gG": ["資源建議"],
"Xisk4u": [["editedAgo"], "編輯"],
"XjqA8x": ["切換模式 ", ["0"], "/**"],
@@ -3219,6 +3218,7 @@
"eolhcI": ["正在讀取工作區"],
"eps54V": ["已移除"],
"epuNYK": ["把某個區塊標記為事實來源。你編輯它的時候,別處的鏡像會即時更新。"],
+ "eqSy2M": ["拖放、貼上或附加最多 ", ["MAX_ATTACHMENTS"], " 張圖片。"],
"erenF-": ["無法刪除仍有未解決衝突的檔案"],
"euGaS0": ["無法讀取 ", ["fileName"], "。"],
"euc6Ns": ["建立副本"],
@@ -3481,7 +3481,6 @@
"haHgQj": ["已複製相對路徑"],
"habOU_": ["更新自動核准設定失敗——", ["detail"]],
"hadECI": [["0"], " 需要更換"],
- "hcBdO4": ["最多 3 張螢幕截圖或照片"],
"he3ygx": ["複製"],
"heV8si": ["這將永久刪除 ", ["names"], "。按名稱調用這些技能的代理將失敗,直到重新建立它們。"],
"hgF0al": ["將 ", ["0"], " 用於目前的淺色模式"],
@@ -3980,7 +3979,6 @@
"nP-KFo": ["新的 ", ["0"], " 對話"],
"nTM8ab": ["請先為主題命名,再編輯色彩。"],
"nTwL53": ["開啟一份文件才能分享它的 URL。"],
- "nVGRwu": ["將圖片拖放至此處"],
"nWMRxa": ["取消置頂"],
"nWS2gQ": ["由 ", ["publisher"], " 發布"],
"nWv1ja": ["在「設定 → 忽略模式」中管理隱藏的檔案。"],
diff --git a/packages/app/src/locales/zh-Hant/messages.po b/packages/app/src/locales/zh-Hant/messages.po
index 3ba03019a..bd0c2be2f 100644
--- a/packages/app/src/locales/zh-Hant/messages.po
+++ b/packages/app/src/locales/zh-Hant/messages.po
@@ -689,6 +689,10 @@ msgstr "{count, plural, other {# 則註解}},分布在 {0, plural, other {#
msgid "{count, plural, one {# doc} other {# docs}}"
msgstr "{count, plural, other {# 個文件}}"
+#: src/components/ImageAttachments.tsx
+msgid "{count, plural, one {# image attached} other {# images attached}}"
+msgstr "{count, plural, other {已附加 # 張圖片}}"
+
#: src/components/TrashFailureModal.tsx
msgid "{count, plural, one {# item could not be moved to the {trashNoun}. Do you want to permanently delete instead?} other {# items could not be moved to the {trashNoun}. Do you want to permanently delete instead?}}"
msgstr "{count, plural, other {# 個項目無法移到{trashNoun}。是否要改為永久刪除?}}"
@@ -2266,7 +2270,6 @@ msgid "Attach files"
msgstr "附加檔案"
#: src/components/ImageAttachments.tsx
-#: src/components/ReportBugImageDropzone.tsx
msgid "Attach images"
msgstr "附加圖片"
@@ -2585,10 +2588,6 @@ msgstr "失效的連結"
msgid "Browse"
msgstr "瀏覽"
-#: src/components/ReportBugImageDropzone.tsx
-msgid "Browse files"
-msgstr "瀏覽檔案"
-
#: src/components/share-receive-miss-content.tsx
msgid "Browse folder"
msgstr "瀏覽資料夾"
@@ -5347,9 +5346,9 @@ msgstr "拖曳項目 {0} 以重新排序"
msgid "Drop a file to attach"
msgstr "拖放檔案以附加"
-#: src/components/ReportBugImageDropzone.tsx
-msgid "Drop images here"
-msgstr "將圖片拖放至此處"
+#: src/components/ImageAttachments.tsx
+msgid "Drop, paste, or attach up to {MAX_ATTACHMENTS} images."
+msgstr "拖放、貼上或附加最多 {MAX_ATTACHMENTS} 張圖片。"
#: src/components/AppMenubar.tsx
#: src/components/command-palette-commands.ts
@@ -5780,10 +5779,6 @@ msgstr "端點"
msgid "Eng specs"
msgstr "工程規格"
-#: src/components/ReportBugDialogBody.tsx
-msgid "Enlarge"
-msgstr "放大"
-
#: src/components/ReportBugDialogBody.tsx
msgid "Enlarge screenshot"
msgstr "放大螢幕截圖"
@@ -7394,7 +7389,7 @@ msgstr "無法將圖片目標「{shown}」解析為專案本機檔案。"
msgid "Image target \"{shown}\" does not resolve to an existing file."
msgstr "圖片目標「{shown}」未指向現有檔案。"
-#: src/components/ReportBugImageDropzone.tsx
+#: src/components/ReportBugDialogBody.tsx
msgid "Images aren't redacted."
msgstr "圖片不會遮蔽敏感資訊。"
@@ -9395,7 +9390,7 @@ msgstr "還沒有樞紐頁面。等頁面累積起連入的關係圖連結,樞
msgid "No icons match."
msgstr "沒有相符的圖示。"
-#: src/components/ReportBugImageDropzone.tsx
+#: src/components/ImageAttachments.tsx
msgid "No images added."
msgstr "未新增任何圖片。"
@@ -15764,10 +15759,6 @@ msgstr "未命名回報"
msgid "Untracked"
msgstr "未追蹤"
-#: src/components/ReportBugImageDropzone.tsx
-msgid "Up to 3 screenshots or photos"
-msgstr "最多 3 張螢幕截圖或照片"
-
#: src/components/SyncStatusBadge.tsx
msgid "Up to date"
msgstr "已是最新"