Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove flashcards #470

Merged
merged 2 commits into from
Nov 2, 2024
Merged

Remove flashcards #470

merged 2 commits into from
Nov 2, 2024

Conversation

samlhuillier
Copy link
Collaborator

No description provided.

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

Major refactoring to remove the flashcard feature from Reor, including UI components, utilities, types, and all related functionality.

  • Removed entire /src/components/Flashcard directory containing core flashcard functionality (FlashcardCreateModal, FlashcardReviewModal, FlashcardsCore)
  • Cleaned up flashcard references in IconsSidebar and keyboard shortcuts (mod+L)
  • Removed flashcard-related state management from ModalContext
  • Simplified directory creation logic in src/components/File/NewDirectory.tsx to only use vault directory
  • Updated welcome note and README to remove flashcard feature mentions

16 file(s) reviewed, 2 comment(s)
Edit PR Review Bot Settings | Greptile


https://github.com/reorproject/reor/assets/17236551/94a1dfeb-3361-45cd-8ebc-5cfed81ed9cb
<https://github.com/reorproject/reor/assets/17236551/94a1dfeb-3361-45cd-8ebc-5cfed81ed9cb>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: URL should be wrapped in markdown link syntax []() for consistency

Comment on lines 74 to 75
const finalPath = await window.path.join(directoryPath, directoryRelativePath)
window.fileSystem.createDirectory(finalPath)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logic: No error handling for createDirectory call - could silently fail if directory already exists or permissions issues

@samlhuillier samlhuillier merged commit 6ae0966 into main Nov 2, 2024
10 checks passed
@samlhuillier samlhuillier deleted the remove-flashcards branch November 2, 2024 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant