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

Add main page #459

Merged
merged 8 commits into from Jun 5, 2021
Merged

Add main page #459

merged 8 commits into from Jun 5, 2021

Conversation

beansgum
Copy link
Contributor

@beansgum beansgum commented Jun 4, 2021

This pr adds a new page, MainPage, and its job is to manage the app toolbar, navigation bar, and back stack history of other pages and it also moves the independent management of the page navigation from the pages to MainPage.

- setup topbar and navigation layout in main page
- calculate and display total balance in main page
- handle nav items and and page history in main page
@dreacot
Copy link
Collaborator

dreacot commented Jun 4, 2021

  1. Navigating to the tickets page crashes the app

  2. Clicking on the wallet selector doesn't work on both the send and receive page

Screenshot 2021-06-04 at 11 27 19 AM

  1. clicking on the send page, then the receive page right after, the x button closes the receive page but not the send page

Screenshot 2021-06-04 at 11 31 56 AM

  1. clicking clear all fields on the send page only clears the amount and not the address

Screenshot 2021-06-04 at 11 34 00 AM

  1. clicking "got it" on the modal that displays on the security tools page does nothing

Screenshot 2021-06-04 at 11 37 48 AM

  1. clicking the edit button on the account details page causes the app to crash

Screenshot 2021-06-04 at 11 40 57 AM

  1. clicking account[1] for my second wallet, shows the the account details of account[1] for my first wallet

  2. The toast message doesn't disappear

Screenshot 2021-06-04 at 11 45 20 AM

ui/window.go Outdated
Comment on lines 112 to 115
func (win *Window) changePage(page string) {
win.pages[win.current].onClose()
win.current = page
_ = page
win.refresh()
}
Copy link
Contributor

Choose a reason for hiding this comment

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

This method doesn't seem to be doing anything, it can be removed. The win.refresh() method isn't needed as well. Each page can handle invalidating the page by calling op.InvalidateOp. The changePageAndRefresh doesn't seem to be doing anything either.

Comment on lines +281 to +284
// if *pg.refreshPage {
// common.refreshWindow()
// *pg.refreshPage = false
// }
Copy link
Contributor

Choose a reason for hiding this comment

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

This can be deleted if it's not needed.

@oshorefueled
Copy link
Contributor

The top bar doesn't seem to be updated until I restart the app. I changed the currency conversion option in the settings page and it doesn't get displayed on the top bar until I restart the app.

@oshorefueled oshorefueled merged commit db0bf8c into planetdecred:master Jun 5, 2021
@beansgum beansgum deleted the main_page branch June 5, 2021 10:38
tuhalang pushed a commit to tuhalang/godcr that referenced this pull request Jun 5, 2021
* use pageCommmon a pointer across all pages

* Add main page
- setup topbar and navigation layout in main page
- calculate and display total balance in main page
- handle nav items and and page history in main page

* Remove redundant use of common.Layout function 
- the common.Layout included the side nav and top bar which 
   was called by every page to render its layout. This removes 
   the general Layout method forcing pages to return only its 
   own layout to the main page.
song50119 pushed a commit to song50119/godcr that referenced this pull request Apr 24, 2022
* use pageCommmon a pointer across all pages

* Add main page
- setup topbar and navigation layout in main page
- calculate and display total balance in main page
- handle nav items and and page history in main page

* Remove redundant use of common.Layout function 
- the common.Layout included the side nav and top bar which 
   was called by every page to render its layout. This removes 
   the general Layout method forcing pages to return only its 
   own layout to the main page.
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.

None yet

3 participants