Skip to content

Commit

Permalink
Fixed bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
guillemcordoba committed Nov 8, 2023
1 parent 4be96c8 commit d630d54
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
"workspaces": ["ui", "tests"],
"scripts": {
"start": "AGENTS=2 npm run network",
"network": "hc s clean && npm run build:happ && UI_PORT=8888 concurrently \"npm start -w ui\" \"npm run launch:happ\" \"holochain-playground\"",
"network": "hc s clean && npm run build:happ && BOOTSTRAP_PORT=$(port) SIGNAL_PORT=$(port) UI_PORT=8888 concurrently \"npm start -w ui\" \"npm run local-services\" \"npm run launch\" \"holochain-playground\"",
"test": "npm run build:happ && cargo nextest run -j 1 && npm test -w tests",
"launch:happ": "echo \"pass\" | hc-launch --piped -n $AGENTS ./workdir/profiles-test.happ --ui-port $UI_PORT network -b https://bootstrap.holo.host webrtc wss://signal.holo.host",
"launch": "echo pass | RUST_LOG=warn hc launch --piped -n $AGENTS workdir/profiles-test.happ --ui-port $UI_PORT network --bootstrap http://127.0.0.1:$BOOTSTRAP_PORT webrtc ws://127.0.0.1:$SIGNAL_PORT",
"local-services": "hc run-local-services --bootstrap-port $BOOTSTRAP_PORT --signal-port $SIGNAL_PORT",
"build:happ": "npm run build:zome && hc app pack workdir --recursive",
"build:zome": "CARGO_TARGET_DIR=target cargo build --release --target wasm32-unknown-unknown",
"docs:start": "npm run docs:setup && storybook dev -p 6006",
Expand All @@ -23,6 +24,7 @@
"concurrently": "^6.2.1",
"gh-pages": "^3.2.3",
"lit-html": "^2.6.1",
"new-port-cli": "^1.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"storybook": "^7.0.0-beta.33"
Expand Down
2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@holochain-open-dev/profiles",
"version": "0.17.1",
"version": "0.17.2",
"description": "Frontend module for the Holochain hc_zome_profiles zomes",
"author": "[email protected]",
"license": "MIT",
Expand Down
5 changes: 3 additions & 2 deletions ui/src/elements/list-profiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import "./profile-list-item-skeleton.js";
import { ProfilesStore } from "../profiles-store";
import { profilesStoreContext } from "../context";
import { Profile } from "../types";
import { EntryRecord } from "@holochain-open-dev/utils";

/**
* @element list-profiles
Expand Down Expand Up @@ -60,7 +61,7 @@ export class ListProfiles extends LitElement {
}
}

renderList(profiles: ReadonlyMap<AgentPubKey, Profile>) {
renderList(profiles: ReadonlyMap<AgentPubKey, EntryRecord<Profile>>) {
if (profiles.size === 0)
return html`<span>${msg("There are no created profiles yet")} ></span>`;

Expand All @@ -75,7 +76,7 @@ export class ListProfiles extends LitElement {
@click=${() => this.fireAgentSelected(agent_pub_key)}
>
</agent-avatar
><span> ${profile.nickname}</span>
><span> ${profile.entry.nickname}</span>
</div>
`
)}
Expand Down
2 changes: 1 addition & 1 deletion ui/src/profiles-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export class ProfilesStore {
this.agentsWithProfile,
(agents) =>
this.agentsProfiles(agents) as AsyncReadable<
ReadonlyMap<AgentPubKey, Profile>
ReadonlyMap<AgentPubKey, EntryRecord<Profile>>
>
);

Expand Down

0 comments on commit d630d54

Please sign in to comment.