Skip to content

Add Flip Quotes feature with toggle for funny/sarcastic quote variations#32

Draft
Copilot wants to merge 3 commits into
masterfrom
copilot/fix-31
Draft

Add Flip Quotes feature with toggle for funny/sarcastic quote variations#32
Copilot wants to merge 3 commits into
masterfrom
copilot/fix-31

Conversation

Copy link
Copy Markdown

Copilot AI commented Jul 24, 2025

Implements the Flip Quotes feature that allows users to toggle between original quotes and funny/sarcastic variations using a toggle button in the header.

Changes Made

Core Implementation

  • Quote Data Structure: Added optional flippedQuote: String? field to the Quote data class with backward compatibility
  • Quote Generation Logic: Implemented generateFlippedQuote() function with 4 different flipping patterns:
    • Sarcastic suffixes ("...or so they say", "...said no one ever", "...in your dreams")
    • Sarcastic prefixes ("Obviously, ", "Clearly, ", "Of course, ")
    • Word replacements (success→failure, always→never, possible→impossible)
    • Ironic twists ("The opposite of '...' is probably true")

UI Components

  • Header Toggle: Added flip mode toggle button using Material Design FlipToBack/FlipToFront icons
  • Quote Display: Updated QuoteContent component to conditionally show flipped quotes when toggle is active
  • State Management: Added isFlipMode state to QuotesViewModel with toggleFlipMode() function
  • Share Integration: Updated sharing functionality to share flipped versions when in flip mode

Screenshots

Normal Mode:
Normal Mode

Flipped Mode:
Flipped Mode

Key Features

  • Backward Compatible: Existing JSON structure unchanged; flipped quotes generated programmatically
  • Minimal Changes: Surgical modifications without breaking existing functionality
  • State Persistence: Flip mode maintained during navigation and theme changes
  • User Experience: Simple toggle interface with visual feedback when in flip mode

Example transformation:

  • Original: "Genius is one percent inspiration and ninety-nine percent perspiration"
  • Flipped: "Genius is one percent inspiration and ninety-nine percent perspiration...or so they say"

Fixes #31.

Warning

Firewall rules blocked me from connecting to one or more addresses

I tried to connect to the following addresses, but was blocked by firewall rules:

  • dl.google.com
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED -Xmx1536m -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant -cp /home/REDACTED/.gradle/wrapper/dists/gradle-8.9-bin/90cnw93cvbtalezasaz0blq0a/gradle-8.9/lib/gradle-daemon-main-8.9.jar -javaagent:/home/REDACTED/.gradle/wrapper/dists/gradle-8.9-bin/90cnw93cvbtalezasaz0blq0a/gradle-8.9/lib/agents/gradle-instrumentation-agent-8.9.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 8.9 (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Copilot AI and others added 2 commits July 24, 2025 05:21
Co-authored-by: Amrish-Sharma <498994+Amrish-Sharma@users.noreply.github.com>
Co-authored-by: Amrish-Sharma <498994+Amrish-Sharma@users.noreply.github.com>
Copilot AI changed the title [WIP] Idea: Flip the Quotes Add Flip Quotes feature with toggle for funny/sarcastic quote variations Jul 24, 2025
Copilot AI requested a review from Amrish-Sharma July 24, 2025 05:32
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.

Idea: Flip the Quotes

2 participants