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

bumped open-dev dependencies #3

Merged
merged 1 commit into from
Feb 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .templates/app/web-app/ui/package.json.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
"localize:build": "lit-localize build"
},
"dependencies": {
"@holochain/client": "^0.16.2",
"@holochain-open-dev/elements": "^0.8.2",
"@holochain-open-dev/profiles": "^0.16.1",
"@holochain-open-dev/stores": "^0.8.2",
"@holochain-open-dev/utils": "^0.16.0",
"@holochain/client": "^0.16.7",
"@holochain-open-dev/elements": "^0.8.4",
"@holochain-open-dev/profiles": "^0.17.3",
"@holochain-open-dev/stores": "^0.8.11",
"@holochain-open-dev/utils": "^0.16.5",
"@lit/context": "^1.0.0",
"@lit/localize": "^0.12.0",
"@mdi/js": "^7.2.0",
Expand Down
19 changes: 10 additions & 9 deletions .templates/app/web-app/ui/src/holochain-app.ts.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
ProfilesStore,
profilesStoreContext
} from '@holochain-open-dev/profiles';
import { EntryRecord } from '@holochain-open-dev/utils';

import '@holochain-open-dev/elements/dist/elements/display-error.js';
import '@holochain-open-dev/profiles/dist/elements/agent-avatar.js';
Expand All @@ -37,7 +38,7 @@ export class HolochainApp extends LitElement {

_client!: AppAgentClient;

_myProfile!: StoreSubscriber<AsyncStatus<Profile | undefined>>;
_myProfile!: StoreSubscriber<AsyncStatus<EntryRecord<Profile> | undefined>>;

async firstUpdated() {
this._client = await AppAgentWebsocket.connect(new URL('ws://localhost'), '{{app_name}}');
Expand All @@ -48,17 +49,17 @@ export class HolochainApp extends LitElement {
}

async initStores(appAgentClient: AppAgentClient) {
// Don't change this
// Don't change this
}

renderMyProfile() {
switch (this._myProfile.value.status) {
case 'pending':
case 'pending':
return html`<profile-list-item-skeleton></profile-list-item-skeleton>`;
case 'complete':
const profile = this._myProfile.value.value;
if (!profile) return html``;

return html`<div
class="row"
style="align-items: center;"
Expand All @@ -67,12 +68,12 @@ export class HolochainApp extends LitElement {
<agent-avatar
.agentPubKey=${this._client.myPubKey}
></agent-avatar>
<span style="margin: 0 16px;">${profile?.nickname}</span>
<span style="margin: 0 16px;">${profile?.entry.nickname}</span>
</div>`;
case 'error':
return html`<display-error
return html`<display-error
.headline=${msg("Error fetching the profile")}
.error=${this._myProfile.value.error}
.error=${this._myProfile.value.error}
tooltip
></display-error>`;
}
Expand All @@ -82,7 +83,7 @@ export class HolochainApp extends LitElement {
renderContent() {
return html``;
}

renderBackButton() {
if (this._view.view === 'main') return html``;

Expand Down Expand Up @@ -114,7 +115,7 @@ export class HolochainApp extends LitElement {

${this.renderMyProfile()}
</div>

<profile-prompt style="flex: 1;">
${this.renderContent()}
</profile-prompt>
Expand Down
Loading