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

BrowserView: Updated, rebased PR with bug fixes. #831

Open
wants to merge 31 commits into
base: main
Choose a base branch
from

Conversation

kanishk98
Copy link
Collaborator

@kanishk98 kanishk98 commented Oct 10, 2019


What's this PR do?

Same purpose as #793, but updated to pass tests and include more recent features.
For code to pass compilation, we may have to modify electron.d.ts to the file here.

I needed to make the above changes so that page-title-updated would be counted as a before-input-event.

You have tested this PR on:

  • Windows
  • Linux/Ubuntu
  • macOS

@akashnimare
Copy link
Member

@kanishk98 is this good to merge? If yes, then I'll need to cross-check the auto-update before merging.

@kanishk98
Copy link
Collaborator Author

Yeah, features and settings seem to be working pretty well for me. I'll do another check just to make sure, but I think it's good to be merged.

Please also text me on czo if you need any help with testing the auto-update process.

@akashnimare
Copy link
Member

Okay, great. I'm testing the auto-update on macOS first. Can you do the same on Linux?

@kanishk98
Copy link
Collaborator Author

Can you do the same on Linux?

I can test it out on Windows (will let you know the results on czo).
@muskankhedia would you mind testing this on Linux? I'll walk you through the process.

View extends the BrowserView class in the main
process and provides and interface similar to
webview. Other functions can be added later
when required.
Adds ViewManager class which makes it easier
to create, manage and delete views. Also,
created some basic listeners which will be
required later.
Removes all instances of webview from main.ts and
adds an initial working instance of BrowserView.
Implements logic for updating badgeCount
to show message count in sidebar.
Removes tooltips that we show for orgs and settings,
as these tooltips are no more visible over the
BrowserViews, so there is no use of keeping them.
Instead, uses title property of HTMLElements, which
can be displayed over BrowserViews.
Destroys all views to recreate them later
when app is reloaded. Also, set lastActiveIndex
to 0 when a tab is removed.
Add logic to set user agent for each browserview.
Also, the badgeCount was not shown initially,
on opening the app. Adds that too.
Adds a refresh function which refreshes view
every 200 ms, and shows it only if the view
DOM content is loaded. Also, gets rid of buggy
browser view switching which we were facing earlier.
@kanishk98
Copy link
Collaborator Author

I've fixed the merge conflicts and also updated the broken link to the modified electron.d.ts file required.
@akashnimare please have a look at this and let me know if it's good to go.
@muskankhedia can you try running the auto-update on Windows and/or Linux and let us know how that goes? I'm getting the "Windows is unable to find Zulip.exe" error on my system, which is not related to the auto-update.

@akashnimare
Copy link
Member

Oh, that error is really frustrating. I'll check it out.

@vsvipul
Copy link
Collaborator

vsvipul commented Dec 7, 2019

@akashnimare @kanishk98 what's the current status on this ?

@akashnimare
Copy link
Member

@vsvipul hey, good to see you back :)

This is next in our roadmap. I'm releasing the stable release from the master, once done we can push a beta release with this PR.

@zulipbot
Copy link
Member

zulipbot commented Mar 1, 2020

Heads up @kanishk98, 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 upstream/master branch and resolve your pull request's merge conflicts accordingly.

@akashnimare
Copy link
Member

@manavmehta let's clean it up and merge.

Comment on lines -28 to -30
showNetworkError(): void {
this.webview.forceLoad();
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

@kanishk98 @akashnimare Do we need to totally remove this or need to create some alternative?

Base automatically changed from master to main January 22, 2021 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants