Skip to content
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

fix: added offline queue page#125

Merged
milenazuccarelli merged 18 commits intoaerogear:masterfrom
milenazuccarelli:AEROGEAR-8881
Mar 26, 2019
Merged

fix: added offline queue page#125
milenazuccarelli merged 18 commits intoaerogear:masterfrom
milenazuccarelli:AEROGEAR-8881

Conversation

@milenazuccarelli
Copy link
Copy Markdown
Contributor

Description

Added page to view changes staged offine

localhost_8100_ (7)

localhost_8100_ (5)

localhost_8100_ (6)


import { OfflineQueuePageModule } from './pages/offline-queue/offline-queue.module';

export function loadOfflineQueuePageModule() {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Redundant

<ion-back-button defaultHref="tasks"></ion-back-button>
</ion-buttons>
<ion-title>
Offline queue
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

WDYT: Offline changes?

{{ stagedItem.operationName }}
</ion-badge>
</h2>
<div *ngIf="stagedItem.variables.title">
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Not for now but it could be simple for loop that iterates over variables as the style for all is the same. When we change schema this will silently fail.

}

public getData() {
this.stagedItems = JSON.parse(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This will trigger angular bind for a millisecond. Each writes to fields of Page rewrites UI.
It will be more efficient to simply put that to var and assign it only bellow.

item-right
></ion-toggle>
</ion-item>
<h4>Simulate offline in Task page</h4>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

To simplify review we may need to unstage this for the moment.
I think we are not ready yet to get both ideas merged. We could work on this in separate PR.

Comment thread src/app/pages/task/task.page.scss
@wtrocki
Copy link
Copy Markdown
Contributor

wtrocki commented Mar 26, 2019

Minor lint issues:

> ionic4-graphql-starter-app@1.0.0 lint /home/circleci/aerogear
> ng lint

Linting "app"...

ERROR: /home/circleci/aerogear/src/app/pages/offline-queue/offline-queue.page.ts:1:35 - " should be '
ERROR: /home/circleci/aerogear/src/app/pages/offline-queue/offline-queue.page.ts:4:13 - " should be '
ERROR: /home/circleci/aerogear/src/app/pages/offline-queue/offline-queue.page.ts:5:16 - " should be '
ERROR: /home/circleci/aerogear/src/app/pages/offline-queue/offline-queue.page.ts:6:15 - " should be '
ERROR: /home/circleci/aerogear/src/app/pages/offline-queue/offline-queue.page.ts:18:35 - " should be '

Copy link
Copy Markdown
Member

@StephenCoady StephenCoady left a comment

Choose a reason for hiding this comment

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

Great work!

Comment thread src/app/pages/offline-queue/offline-queue.page.ts Outdated
Comment thread src/app/pages/offline-queue/offline-queue.page.html
Copy link
Copy Markdown
Contributor

@wtrocki wtrocki left a comment

Choose a reason for hiding this comment

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

Good to merge.

@milenazuccarelli milenazuccarelli merged commit ce79e91 into aerogear:master Mar 26, 2019
@milenazuccarelli milenazuccarelli deleted the AEROGEAR-8881 branch March 26, 2019 13:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants