-
-
Notifications
You must be signed in to change notification settings - Fork 250
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
WIP: Feature: Add Spoiler support #1061
base: main
Are you sure you want to change the base?
Conversation
This commit: * adds new style (LIGHTGREENBOLD, LIGHTGREENBOLD24) for spoiler header in `themes.py`. * adds markup entry in `soup2markup` for spoilers. Tests added. Co-authored-by: Sarthak Garg <grgsrthk.dev20@gmail.com>
This commit handles content metadata in `soup2markup` for spoilers. Test amended. Co-authored-by: Preet Mishra <ipreetmishra@gmail.com>
This commit adds popup to show hidden spoiler content. Tests added. Co-authored-by: Preet Mishra <ipreetmishra@gmail.com>
Tests amended. Co-authored-by: Preet Mishra <ipreetmishra@gmail.com>
This commit adds a button that would allow user to view the spoiler content, i.e., onclick of button is SpoilerView popup. Tests added. Co-authored-by: Preet Mishra <ipreetmishra@gmail.com>
3c2836b
to
bd66682
Compare
This commit wraps-up the PR by appending the SpoilerButton to message info view if present. Fixes zulip#688. Co-authored-by: Preet Mishra <ipreetmishra@gmail.com>
bd66682
to
8c5e15a
Compare
@Ezio-Sarthak I just gave this a try - it looks good, and is a definite improvement over just showing the content like now!
|
Heads up @Ezio-Sarthak, we just merged some commits that conflict with the changes your made in this pull request! You can review this repository's recent commits to see where the conflicts occur. Please rebase your feature branch against the |
As per the issue, this set of features was discussed in the topic starting at https://chat.zulip.org/#narrow/stream/206-zulip-terminal/topic/Spoilers!.20.23T688.20.23T1061.20.231173/near/904352. |
I'll be looking into this, will submit a WIP PR soon. |
@preetmishra Thanks for your primary work on this in a local branch, that helped me structuring this PR with separate commits and additional tests. This PR adds a basic support for spoilers in ZT.
Fixes #688.
Potential caveats
Commit flow:
Screenshots/GIFs