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: Rebased and cleaned up #1018

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

Conversation

manavmehta
Copy link
Collaborator

What's this PR do?
Builds upon #831 which was built upon #793

You have tested this PR on:

  • Windows
  • Linux/Ubuntu
  • macOS (Not tested yet)

** Tasks **

  • Add context-menu support
  • Logic to handle-external-link
  • Check User Agent against a test server

** Temporarily Reverted PR's and commits:**
Commits reverted:

PR's reverted:

@manavmehta manavmehta mentioned this pull request Nov 13, 2020
vsvipul and others added 24 commits November 14, 2020 01:45
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.
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.
Removes the heavy setInterval which we were
using earlier to prevent heavy CPU Usage.
The main reason we were using a setInterval
earlier was because view switching was buggy.
This commit fixes that.
Base automatically changed from master to main January 22, 2021 19:22
@zulipbot
Copy link
Member

Heads up @manavmehta, 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.

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.

4 participants