Skip to content

Commit a18b729

Browse files
authored
Merge pull request #222 from fluxsocial/dev
v0.2.16
2 parents 2435448 + f98e024 commit a18b729

18 files changed

Lines changed: 694 additions & 1748 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ jobs:
3939
PKG_CONFIG_PATH: "/usr/local/opt/openssl/lib/pkgconfig"
4040
run: |
4141
cargo install lair_keystore --git https://github.com/guillemcordoba/lair --rev 8c0a3683d93540301af53688ea431c7cc0beb438
42-
cargo install --locked holochain --git https://github.com/holochain/holochain.git --tag holochain-0.0.123
43-
cargo install holochain_cli --version 0.0.24
42+
cargo install --locked holochain --git https://github.com/holochain/holochain.git --tag holochain-0.0.125
43+
cargo install holochain_cli --version 0.0.26
4444
./scripts/copy-hc.sh
4545
- name: Cache cargo registry
4646
uses: actions/cache@v1
@@ -157,8 +157,8 @@ jobs:
157157
SQLCIPHER_STATIC: 1
158158
run: |
159159
cargo install lair_keystore --git https://github.com/guillemcordoba/lair --rev 8c0a3683d93540301af53688ea431c7cc0beb438
160-
cargo install --locked holochain --git https://github.com/holochain/holochain.git --tag holochain-0.0.123
161-
cargo install holochain_cli --version 0.0.24
160+
cargo install --locked holochain --git https://github.com/holochain/holochain.git --tag holochain-0.0.125
161+
cargo install holochain_cli --version 0.0.26
162162
./scripts/copy-hc.sh
163163
- name: Cache cargo registry
164164
uses: actions/cache@v1

CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,36 @@
22
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
33
This project *loosely* adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). More specifically:
44

5+
## [0.2.16] - 07/02/2022
6+
7+
### Added
8+
- Ability to copy Flux logs from splash screen
9+
- caching on expressions @ ad4m-executor where language is immutable
10+
- added CAL
11+
12+
### Changed
13+
- Using holochain version 0.0.125
14+
- replies and emojis are loaded async after initial message load to reduce loading time
15+
- use indexdb for profile storage to avoid filling localStorage
16+
- only fetch 35 messages per page
17+
18+
### Deprecated
19+
20+
### Removed
21+
- Many un-used dependencies
22+
23+
### Fixed
24+
- Notifications working again
25+
- ad4m-executor will now check which port to use when starting gql server to avoid collisions
26+
- fixed bug where name for communities could all become the same
27+
- members name not being present when making a reply
28+
- various bugs with the handling of emojis on a message
29+
- error when channel views would sometimes not load correctly
30+
31+
### Security
32+
33+
---
34+
535
## [0.2.15] - 23/01/2022
636

737
### Added

LICENSE

Lines changed: 159 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,20 @@ cachix use holochain-ci
1818
Installing dependencies for flux and compiling holochain can be done with:
1919

2020
```
21-
npm install && npm run get-languages && npm run build-holochain
21+
yarn install && yarn run get-languages && yarn run build-holochain
2222
```
2323

2424
### Compiles and hot-reloads for development
2525
```
26-
npm run electron:serve
26+
yarn run electron:serve
2727
```
2828

2929
## Cleaning local state
3030

3131
The following commands will remove all installed ad4m languages (except defaults), holochain DNA's, ad4m did store & vuex store.
3232

3333
```
34-
npm run clean-state
34+
yarn run clean-state
3535
```
3636

3737
## Holochain DNA's
@@ -50,10 +50,10 @@ These DNA's come bundled with the builtin languages, links above are provided fo
5050

5151
### Compiles and minifies for production
5252
```
53-
npm run build-holochain && npm run get-languages && npm run electron:build
53+
yarn run build-holochain && yarn run get-languages && yarn run electron:build
5454
```
5555

5656
### Lints and fixes files
5757
```
58-
npm run lint
58+
yarn run lint
5959
```

default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
holonixPath ? builtins.fetchTarball { url = "https://github.com/holochain/holonix/archive/2f7b8047d6314f64fca34394a52d465c18b2f4d5.tar.gz"; }
2+
holonixPath ? builtins.fetchTarball { url = "https://github.com/holochain/holonix/archive/99fbe2026e774b29b265f81bf68a9cf0b21b31c3.tar.gz"; }
33
}:
44

55
let

package.json

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "flux",
3-
"version": "0.2.15",
3+
"version": "0.2.16",
44
"private": true,
55
"description": "A social web3 tool kit for communities",
66
"author": "josh@junto.foundation",
@@ -26,29 +26,23 @@
2626
"dependencies": {
2727
"@apollo/client": "3.4.17",
2828
"@junto-foundation/junto-elements": "^0.4.0",
29-
"@perspect3vism/ad4m": "0.1.24",
30-
"@perspect3vism/ad4m-executor": "0.1.30",
31-
"@tiptap/vue-3": "^2.0.0-beta.45",
29+
"@perspect3vism/ad4m": "0.1.25",
30+
"@perspect3vism/ad4m-executor": "0.1.32",
3231
"core-js": "^3.15.2",
3332
"date-fns": "^2.22.1",
34-
"datocms-structured-text-utils": "^1.2.0",
3533
"electron-updater": "^4.3.9",
34+
"get-port": "^5.1.1",
3635
"graphql": "^15.5.0",
37-
"idb": "^6.1.4",
3836
"level": "^7.0.1",
3937
"nanoid": "^3.1.30",
4038
"patch-package": "^6.4.7",
4139
"pinia": "^2.0.2",
42-
"register-service-worker": "^1.7.1",
4340
"sass": "^1.49.0",
4441
"subscriptions-transport-ws": "^0.9.19",
4542
"uuid": "^8.3.2",
4643
"vue": "^3.0.0",
47-
"vue-advanced-cropper": "^2.3.1",
48-
"vue-datocms": "^1.0.3",
4944
"vue-router": "^4.0.0-0",
50-
"vue-virtual-scroller": "^2.0.0-alpha.1",
51-
"fs-extra": "^10.0.0"
45+
"vue-advanced-cropper": "^2.3.1"
5246
},
5347
"devDependencies": {
5448
"@babel/plugin-transform-runtime": "^7.14.5",

public/loading.html

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@
2626
height: 100vh;
2727
width: 100vw;
2828
}
29+
30+
.error {
31+
padding: 40px 80px;
32+
visibility: collapse;
33+
opacity: 0;
34+
transition: visibility 0s, opacity 0.5s linear, height 1s;
35+
height: 0;
36+
}
2937
</style>
3038
<body>
3139
<div class="main">
@@ -52,6 +60,40 @@
5260
fill="var(--j-color-black)"
5361
/>
5462
</svg>
63+
<div class="error">
64+
<j-flex a="center" direction="column" gap="900">
65+
<j-text nomargin variant="heading-lg"
66+
>Whoops, something broke! 😅</j-text
67+
>
68+
<j-text nomargin variant="subheading">
69+
If you have also been asked to include a log file with your report,
70+
click the button below to copy a log file to your desktop:
71+
</j-text>
72+
<j-button onclick="copyFile()" variant="primary">Copy</j-button>
73+
</j-flex>
74+
</div>
5575
</div>
5676
</body>
77+
<script>
78+
setTimeout(() => {
79+
const error = document.getElementsByClassName('error');
80+
error[0].style.display = 'block'
81+
error[0].style.visibility = 'visible'
82+
error[0].style.opacity = 1
83+
error[0].style.height = '160px'
84+
}, 30000);
85+
86+
function copyFile() {
87+
const button = document.getElementsByTagName('j-button');
88+
window.api.send("copyLogs");
89+
90+
setTimeout(() => {
91+
button[0].innerHTML = 'Copied'
92+
93+
setTimeout(() => {
94+
button[0].innerHTML = 'Copy'
95+
}, 2000);
96+
}, 500);
97+
}
98+
</script>
5799
</html>

src/App.vue

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,18 @@ export default defineComponent({
144144
perspective: string
145145
) => {
146146
console.debug("GOT INCOMING MESSAGE SIGNAL", link, perspective);
147-
if (link.data!.predicate! === MEMBER) {
147+
if (link.data!.predicate! === EXPRESSION) {
148+
expressionWorker.postMessage({
149+
id: link.data!.target!,
150+
retry: expressionGetRetries,
151+
callbackData: { perspective, link },
152+
interval: expressionGetDelayMs,
153+
query: print(GET_EXPRESSION),
154+
variables: { url: link.data!.target! },
155+
name: "Expression signal get",
156+
dataKey: "expression",
157+
});
158+
} else if (link.data!.predicate! === MEMBER) {
148159
const did = link.data!.target!.split("://")[1];
149160
console.log("Got new member in signal! Parsed out did: ", did);
150161
if (did) {

src/__tests__/store/app/actions/updateCommunityTheme.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ describe("Update community theme", () => {
118118
expect(error).toBeInstanceOf(Error);
119119
expect(error).toHaveProperty(
120120
"message",
121-
`Cannot read property 'theme' of undefined`
121+
`Cannot read properties of undefined (reading 'theme')`
122122
);
123123
}
124124

src/constants/agents.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export const JUNTO_AGENT =
2-
"did:key:zQ3shbBYwqHtBMXfe96MN5YVDvZPLLC87EFAPL9SnoqLDd9Jm";
2+
"did:key:zQ3sheV6m6sT83woZtVL2PHiz6J1qWRh4FWW2aiJvxy6d2o7S";
33

44
export const AD4M_AGENT =
55
"did:key:zQ3shkkuZLvqeFgHdgZgFMUx8VGkgVWsLA83w2oekhZxoCW2n";

0 commit comments

Comments
 (0)