Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/identity' into email-login
Browse files Browse the repository at this point in the history
  • Loading branch information
megrogan committed Apr 22, 2024
2 parents 28440c5 + e08f769 commit 332c9d3
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 6 deletions.
Binary file not shown.
2 changes: 1 addition & 1 deletion frontend/app/src/components/home/Home.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@
inviteUsers: "admin",
mentionAllMembers: "member",
reactToMessages: "member",
startVideoCall: "admin",
startVideoCall: "member",
messagePermissions: {
default: "member",
p2pSwap: "none",
Expand Down
15 changes: 10 additions & 5 deletions frontend/app/src/components/home/addgroup/NewGroup.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@
$: hideInviteUsers = candidateGroup.level === "channel" && candidateGroup.public;
$: valid = detailsValid && visibilityValid && rulesValid;
$: {
if (candidateGroup.public) {
candidateGroup.permissions.startVideoCall = "admin";
}
}
function getSteps(
editing: boolean,
detailsValid: boolean,
Expand Down Expand Up @@ -246,11 +252,10 @@
step = 0;
} else if (!hideInviteUsers) {
onGroupCreated(resp.canisterId);
optionallyInviteUsers(resp.canisterId)
.catch((_err) => {
toastStore.showFailureToast(i18nKey("inviteUsersFailed"));
step = 0;
});
optionallyInviteUsers(resp.canisterId).catch((_err) => {
toastStore.showFailureToast(i18nKey("inviteUsersFailed"));
step = 0;
});
} else {
onGroupCreated(resp.canisterId);
}
Expand Down
47 changes: 47 additions & 0 deletions frontend/app/src/components/landingpages/blog/ICFootprint.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<script lang="ts">
import ExternalLink from "../ExternalLink.svelte";
</script>

<section>
<p>
Setting a new benchmark of environmental responsibility in the tech industry. OpenChat
becomes the first DAO to integrate IC Footprint 2.0 — a sustainability protocol that
harnesses the power of ICP smart contracts. <ExternalLink
href="https://owqnd-biaaa-aaaak-qidaq-cai.icp0.io/dashboard/projects/eq6en-6jqla-fbu5s-daskr-h6hx2-376n5-iqabl-qgrng-gfqmv-n3yjr-mqe,2fq7c-slacv-26cgz-vzbx2-2jrcs-5edph-i5s2j-tck77-c3rlz-iobzx-mqe"
>This real-time system</ExternalLink> tracks and records key environmental metrics like electricity
consumption and carbon emissions directly onto an immutable on-chain ledger. Raising consumer
awareness about climate issues and increasingly stringent environmental regulations are fuelling
a growing demand for eco-conscious technology especially in crypto.
</p>

<img src="/assets/blog/ic_footprint/ic_footprint.webp" alt="IC Footprint Dashboard" />

<p>
Moreover, OpenChat commits to actively decarbonising by acquiring renewable energy
certificates and carbon credits. Future developments include embedding OpenChat’s
zero-emissions commitment into a custom ESG smart contract, ensuring automatic compliance
with its sustainability goals. This innovation underscores OpenChat’s role as a pioneer in
Web3 and clean crypto.
</p>

<p>
OpenChat's dedication to sustainability strengthens its competitive edge. By focusing on
eco-friendly practices, OpenChat attracts more eco-conscious users and stands out from its
Web2 competitors like Discord, WhatsApp, and Slack.
</p>

<p>
As OpenChat advances its sustainable practices, it serves as a model for other digital
platforms, showing that technological innovation and environmental responsibility can
coexist.
</p>

<p>Join OpenChat and our movement toward a sustainable Web3 today.</p>
</section>

<style lang="scss">
img {
margin: $sp6 0;
width: 100%;
}
</style>
8 changes: 8 additions & 0 deletions frontend/app/src/components/landingpages/blog/posts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Governance from "./Governance.svelte";
import WebsiteReleases from "./WebsiteReleases.svelte";
import Translation from "./Translation.svelte";
import Video from "./VideoCallsReleased.svelte";
import ICFootprint from "./ICFootprint.svelte";

export type BlogPostInfo = {
slug: string;
Expand All @@ -15,6 +16,13 @@ export type BlogPostInfo = {
};

export const postsBySlug: Record<string, BlogPostInfo> = {
ic_footprint: {
slug: "ic_footprint",
title: "OpenChat tracks carbon-emissions in real-time and commits to net-zero operations",
author: "@Steffen",
date: new Date(2024, 3, 22),
component: ICFootprint,
},
video: {
slug: "video",
title: "Video calls released",
Expand Down

0 comments on commit 332c9d3

Please sign in to comment.