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 @@ - +
+
{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.content}
No documents found with filter tag{" "} {filterTag && ( - + {filterTag} )} @@ -25,7 +25,7 @@ const NoDocuments: React.FC = ({ Reload diff --git a/web-app/src/components/SuccessModal.tsx b/web-app/src/components/SuccessModal.tsx index 4751f4d..e06ce25 100644 --- a/web-app/src/components/SuccessModal.tsx +++ b/web-app/src/components/SuccessModal.tsx @@ -1,6 +1,6 @@ -import React, { Fragment } from "react"; import { Dialog, DialogTitle, Transition } from "@headlessui/react"; import { CheckCircleIcon } from "@heroicons/react/24/outline"; +import React, { Fragment } from "react"; interface SuccessModalProps { isOpen: boolean; @@ -25,7 +25,7 @@ const SuccessModal: React.FC = ({ isOpen, onClose }) => ( leaveFrom="opacity-100" leaveTo="opacity-0" > - + = ({ isOpen, onClose }) => ( leaveFrom="opacity-100 translate-y-0 sm:scale-100" leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" > - + - + Documents Updated - - The documents have been successfully updated with the - new titles and tags. + + The documents have been successfully updated with the new titles and tags. @@ -70,7 +69,7 @@ const SuccessModal: React.FC = ({ isOpen, onClose }) => ( OK 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 = ({ Back @@ -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"}
- The documents have been successfully updated with the - new titles and tags. +
+ The documents have been successfully updated with the new titles and tags.
{document.content.length > 40 ? `${document.content.substring(0, 40)}...` : document.content} @@ -34,15 +34,15 @@ const SuggestionCard: React.FC = ({ {document.tags.map((tag) => ( {tag} ))}