diff --git a/web-app/index.html b/web-app/index.html index 7764df0..fcdbc4f 100644 --- a/web-app/index.html +++ b/web-app/index.html @@ -1,13 +1,13 @@ - + Paperless GPT - +
- + \ No newline at end of file diff --git a/web-app/src/DocumentProcessor.tsx b/web-app/src/DocumentProcessor.tsx index 22b87fd..f3745e5 100644 --- a/web-app/src/DocumentProcessor.tsx +++ b/web-app/src/DocumentProcessor.tsx @@ -185,22 +185,20 @@ const DocumentProcessor: React.FC = () => { if (loading) { return ( -
-
Loading documents...
+
+
Loading documents...
); } return ( -
+
-

- Paperless GPT -

+

Paperless GPT

{error && ( -
+
{error}
)} @@ -246,4 +244,4 @@ const DocumentProcessor: React.FC = () => { ); }; -export default DocumentProcessor; +export default DocumentProcessor; \ No newline at end of file diff --git a/web-app/src/components/DocumentCard.tsx b/web-app/src/components/DocumentCard.tsx index 26e0bed..bc6ec2a 100644 --- a/web-app/src/components/DocumentCard.tsx +++ b/web-app/src/components/DocumentCard.tsx @@ -6,9 +6,9 @@ interface DocumentCardProps { } const DocumentCard: React.FC = ({ document }) => ( -
-

{document.title}

-

+

+

{document.title}

+

{document.content.length > 100 ? `${document.content.substring(0, 100)}...` : document.content} @@ -17,21 +17,21 @@ const DocumentCard: React.FC = ({ document }) => ( {document.tags.map((tag) => ( {tag} ))}

-
-
+
+

{document.title}

{document.content}

{document.tags.map((tag) => ( {tag} diff --git a/web-app/src/components/DocumentsToProcess.tsx b/web-app/src/components/DocumentsToProcess.tsx index c8c030e..aec66a9 100644 --- a/web-app/src/components/DocumentsToProcess.tsx +++ b/web-app/src/components/DocumentsToProcess.tsx @@ -26,19 +26,19 @@ const DocumentsToProcess: React.FC = ({ }) => (
-

Documents to Process

+

Documents to Process

@@ -51,16 +51,18 @@ const DocumentsToProcess: React.FC = ({ type="checkbox" checked={generateTitles} onChange={(e) => setGenerateTitles(e.target.checked)} + className="dark:bg-gray-700 dark:border-gray-600" /> - Generate Titles + Generate Titles
diff --git a/web-app/src/components/NoDocuments.tsx b/web-app/src/components/NoDocuments.tsx index 9a58c20..2c94b51 100644 --- a/web-app/src/components/NoDocuments.tsx +++ b/web-app/src/components/NoDocuments.tsx @@ -12,11 +12,11 @@ const NoDocuments: React.FC = ({ onReload, processing, }) => ( -
+

No documents found with filter tag{" "} {filterTag && ( - + {filterTag} )} @@ -25,7 +25,7 @@ const NoDocuments: React.FC = ({ diff --git a/web-app/src/components/SuggestionCard.tsx b/web-app/src/components/SuggestionCard.tsx index 5507a4c..25da077 100644 --- a/web-app/src/components/SuggestionCard.tsx +++ b/web-app/src/components/SuggestionCard.tsx @@ -19,13 +19,13 @@ const SuggestionCard: React.FC = ({ }) => { const document = suggestion.original_document; return ( -

+
-

+

{document.title}

-

+

{document.content.length > 40 ? `${document.content.substring(0, 40)}...` : document.content} @@ -34,15 +34,15 @@ const SuggestionCard: React.FC = ({ {document.tags.map((tag) => ( {tag} ))}

-
-
+
+

{document.content}

@@ -52,7 +52,7 @@ const SuggestionCard: React.FC = ({ type="text" value={suggestion.suggested_title || ""} onChange={(e) => onTitleChange(suggestion.id, e.target.value)} - className="w-full border border-gray-300 rounded px-2 py-1 mt-2 focus:outline-none focus:ring-2 focus:ring-blue-500" + className="w-full border border-gray-300 dark:border-gray-600 rounded px-2 py-1 mt-2 focus:outline-none focus:ring-2 focus:ring-blue-500 dark:bg-gray-700 dark:text-gray-200" />
= ({ onDelete={(index) => onTagDeletion(suggestion.id, index)} allowNew={true} placeholderText="Add a tag" + classNames={{ + root: "react-tags dark:bg-gray-800", + rootIsActive: "is-active", + rootIsDisabled: "is-disabled", + rootIsInvalid: "is-invalid", + label: "react-tags__label", + tagList: "react-tags__list", + tagListItem: "react-tags__list-item", + tag: "react-tags__tag dark:bg-blue-900 dark:text-blue-200", + tagName: "react-tags__tag-name", + comboBox: "react-tags__combobox dark:bg-gray-700 dark:text-gray-200", + input: "react-tags__combobox-input dark:bg-gray-700 dark:text-gray-200", + listBox: "react-tags__listbox dark:bg-gray-700 dark:text-gray-200", + option: "react-tags__listbox-option dark:bg-gray-700 dark:text-gray-200 hover:bg-blue-500 dark:hover:bg-blue-800", + optionIsActive: "is-active", + highlight: "react-tags__highlight dark:bg-gray-800", + }} />
diff --git a/web-app/src/components/SuggestionsReview.tsx b/web-app/src/components/SuggestionsReview.tsx index cf7a2e1..3a1f648 100644 --- a/web-app/src/components/SuggestionsReview.tsx +++ b/web-app/src/components/SuggestionsReview.tsx @@ -24,7 +24,7 @@ const SuggestionsReview: React.FC = ({ updating, }) => (
-

+

Review and Edit Suggested Titles

@@ -42,7 +42,7 @@ const SuggestionsReview: React.FC = ({
@@ -51,8 +51,8 @@ const SuggestionsReview: React.FC = ({ disabled={updating} className={`${ updating - ? "bg-green-400 cursor-not-allowed" - : "bg-green-600 hover:bg-green-700" + ? "bg-green-400 dark:bg-green-600 cursor-not-allowed" + : "bg-green-600 dark:bg-green-700 hover:bg-green-700 dark:hover:bg-green-800" } text-white px-4 py-2 rounded focus:outline-none`} > {updating ? "Updating..." : "Apply Suggestions"}