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

feat: add sticker loading UI #955

Merged
merged 1 commit into from
Sep 29, 2020
Merged

Conversation

emizzle
Copy link
Contributor

@emizzle emizzle commented Sep 18, 2020

Closes: #586

Previously, loading sticker packs and stickers would show a lot of blank and non-interactive content.

Now, stickers and sticker packs have grey circles to indicate loading. Additionally, the sticker market button (+) shows a loading indicator until the sticker packs are loaded.

Note

If a recent sticker is clicked while the sticker packs are still loading, the app crashes due to some kind of conflict in threads. I spent some time trying to figure this out, but could not get anywhere. Maybe @richard-ramos has an idea?

Closes: #586

Previously, loading sticker packs and stickers would show a lot of blank and non-interactive content.

Now, stickers and sticker packs have grey circles to indicate loading. Additionally, the sticker market button (+) shows a loading indicator until the sticker packs are loaded.
@status-im-auto
Copy link
Member

status-im-auto commented Sep 18, 2020

Jenkins Builds

Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 93f1043 #1 2020-09-18 03:44:03 ~7 min macos 📦dmg
✔️ 93f1043 #1 2020-09-18 03:48:32 ~12 min linux 📦App

Copy link
Member

@jrainville jrainville left a comment

Choose a reason for hiding this comment

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

Cool

@@ -260,9 +268,17 @@ QtObject:
write = setActiveChannelByIndex
notify = activeChannelChanged

proc getNumInstalledStickerPacks(self: ChatsView): QVariant {.slot.} =
newQVariant(self.status.stickers.installedStickerPacks.len)
Copy link
Member

Choose a reason for hiding this comment

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

You could just return this as an int no?

@iurimatias
Copy link
Member

we shouldn't merge this PR for now due to GC error

@iurimatias
Copy link
Member

after a chat with @michaelsbradleyjr and @richard-ramos this is ok to merge

@iurimatias iurimatias merged commit 64b0a11 into master Sep 29, 2020
@iurimatias iurimatias deleted the fix/add-sticker-pack-loading-ui branch September 29, 2020 19:19
emizzle pushed a commit that referenced this pull request Dec 14, 2020
The sticker loading UI was removed when the StatusChatInput and friends were added in. This PR re-adds the sticker loading UI introduced in PR# 955 (#955).
iurimatias pushed a commit that referenced this pull request Dec 18, 2020
The sticker loading UI was removed when the StatusChatInput and friends were added in. This PR re-adds the sticker loading UI introduced in PR# 955 (#955).
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.

Implement loading state UI: Obtain sticker packs when clicking on (+)
4 participants