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

Presenter console: fix disable button for single slide & some improvements on PC close #10989

Merged
merged 3 commits into from
Jan 24, 2025

Conversation

Darshan-upadhyay1110
Copy link
Contributor

  • Resolves: #
  • Target version: master

Summary

TODO

  • ...

Checklist

  • I have run make prettier-write and formatted the code.
  • All commits have Change-Id
  • I have run tests with make check
  • I have issued make run and manually verified that everything looks okay
  • Documentation (manuals or wiki) has been updated or is not required

- there is no motive to disable buttons by default
- will adjust button state on need basis

Signed-off-by: Darshan-upadhyay1110 <[email protected]>
Change-Id: I7d355076969e0049cd9660d94739677073110b08
@@ -160,6 +160,11 @@ class PresenterConsole {
this._visibleSlidesCount = this._presenter.getVisibleSlidesCount();
this._previews = new Array(this._getSlidesCount());

if (this._visibleSlidesCount == 1) {
this._disableButton(this._proxyPresenter.document.querySelector('#prev'));
Copy link
Contributor

Choose a reason for hiding this comment

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

just a nitpick: do we need to query for an element each time we want to use it? does it change?

I think you could store reference all the time and just use this.nextButton

@Darshan-upadhyay1110 Darshan-upadhyay1110 force-pushed the private/darshan/fix-PC-for-single-slide branch from 32affa5 to de6e265 Compare January 23, 2025 10:57
@hcvcastro
Copy link
Member

'unload' event listener was removed, if user clicks the default 'x', it should not close the presenter console

@hcvcastro
Copy link
Member

rewindEffect, dispatchEffect, should return something, please check with Marco to simplifiy a bit =)

@Darshan-upadhyay1110 Darshan-upadhyay1110 force-pushed the private/darshan/fix-PC-for-single-slide branch 2 times, most recently from c1dfa02 to 549abdb Compare January 23, 2025 12:06
@Darshan-upadhyay1110
Copy link
Contributor Author

'unload' event listener was removed, if user clicks the default 'x', it should not close the presenter console

I think my last commit got butchered somehow :) i updated that committed again

@hcvcastro
Copy link
Member

I think my last commit got butchered somehow :) i updated that committed again
Thanks

hcvcastro
hcvcastro previously approved these changes Jan 23, 2025
@eszkadev
Copy link
Contributor

Did you test with doing slideshow again after presenter console was closed?
With and without console. Just to be sure all is working correctly after first close.
(I remember there was similar problem in the past)

@Darshan-upadhyay1110
Copy link
Contributor Author

Did you test with doing slideshow again after presenter console was closed? With and without console. Just to be sure all is working correctly after first close. (I remember there was similar problem in the past)

Yes i tested that part also verified with Henry regarding that point. I think we are good

@Darshan-upadhyay1110
Copy link
Contributor Author

Darshan-upadhyay1110 commented Jan 24, 2025

So regarding last commit 549abdb i Had a discussion with pedro and here is the point which we agreed on.

  • On presenter console close we should also close the main presentation window (The slide show) as well
  • There is no reason to close only PC and let the main presentation stays open
  • If we do that then we are increasing the user clicks to end the main presentation

Conclusion : Close present in window if we close PC and vice versa

I would like to request do not merge this patch yet until i do complete the suggested changes and test the patch with defined test set

CC: @eszkadev @hcvcastro

@eszkadev eszkadev requested a review from hcvcastro January 24, 2025 09:58
@eszkadev eszkadev added the draft label Jan 24, 2025
@eszkadev eszkadev dismissed hcvcastro’s stale review January 24, 2025 09:58

Darshan still works on that

@eszkadev
Copy link
Contributor

removed approve to not merge by mistake

- Based on current slide and next slide number we will enable and disable the "Next" & "Prev" action button.

Signed-off-by: Darshan-upadhyay1110 <[email protected]>
Change-Id: Ibb54e1c86b02fa402374dc231ef28dbd476e9aa6
- In current case User needs to click twice to close the presentation
- this patch will help to close the PC and presentation after we do click next on last slide in PC
- As a user we should close both PC and main presentation on closing PresenterConsole

Signed-off-by: Darshan-upadhyay1110 <[email protected]>
Change-Id: Ibe7b11c2bf4438ff7bda46b5a4d520c840561919
@Darshan-upadhyay1110 Darshan-upadhyay1110 force-pushed the private/darshan/fix-PC-for-single-slide branch from 549abdb to 54df46e Compare January 24, 2025 11:24
@Darshan-upadhyay1110
Copy link
Contributor Author

Tested and ready to review :)

@hcvcastro
Copy link
Member

Tested. I works nice

@eszkadev eszkadev removed the draft label Jan 24, 2025
@Darshan-upadhyay1110 Darshan-upadhyay1110 merged commit 6938b25 into master Jan 24, 2025
14 checks passed
@Darshan-upadhyay1110 Darshan-upadhyay1110 deleted the private/darshan/fix-PC-for-single-slide branch January 24, 2025 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants