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

Initial TrustGraph integration (frontend) #132

Closed

Conversation

harlantwood
Copy link
Collaborator

This PR is the frontend side of TrustGraph integration.

This will land after the backend PR #104 is merged.

Following

  • In addition to our current "follows", we optionally add TrustAtoms which can be thought of as "nuanced follow information" -- eg ( "cuisine", 99% ).
  • In Agent Profile:
    • UI: Add to Trusted Feed (unchecked/off by default)
      • UI: when checked expand to allow creation of topic/weight
      • UI: allow creation of "all topics" / weight
  • when to exclude mews -- UI should be very clear -- eg a slider like: [Hard Pass]---[Meh]---[Awesome] which mirrors the underlying scale: -1.0 to 0 to 1.0.

Unfollowing

Feed

  • UI: Split feed UI into 2 tabs -- Chronological (the current feed) and Recommended (TrustGraph powered feed)
    • We order these posts according to some combination of: weight of tags and recency (don't want to see very old highly weighted at top)

Notes

  • For this first cut, if you follow a user in a topic (eg art) in Recommend you see only those posts that they have hashtag'd #art

hwood-fg and others added 2 commits May 13, 2023 12:49
Remove TrustGraph zome call infra from frontend

refactor(ui): make trust graph wrapper a vue input component

Create vec of trust atoms on follow

Update tests with new `follow` signature

Write test for following with TAs; Comment out most tests

CI reverts

Cleanup

Fix CI step name

Tests from develop, plus follow test from TrustGraph

Comment out our test; add dep

Rough cut of Recommended mews

Sweettest infra

Iterate on Recommended feed DNA func

Iterate

Iterate Recommended MewsFeed

Follow -- reinstate trust atom creation, better

Refactor out call_local_zome function

Work on tests, cleanup

Test fixes; run sweettest in CI

Lock TG to git ref

Commit old flake.lock file (holonix 2023-03-25) to avoid infinite hang on Mac M1

Try latest holonix

Fix CI command

Update TG git ref

Use latest TG git repo

CI: restore rust from branch; run both runners even if 1 fails

Always cache rust builds

Test helpers

Iterate on tests

test:watch

FollowInput in TS & tryorama

Add path: hashtag.#mytag.by.MYPUBKEY

Test of Recommeneded

Only show recent mews in Recommended

add payload so it fails for right reason

Update nix action to v20

sleet without tokio -- hangs on CI

Update flake

Simplify test

WIP test refactor broken

Test refactor working (thx GPT4)

More test helper refactor

Refactor tests

Refactor tests

Refactor tests

Refactor tests

Refactor tests

Refactor tests

Refactor tests

CPU burning sleep which may work on CI...

Try commenting out test with sleep for CI

Run tests serial, not parallel; begin test on ordering feed; better duration handling

Clippy fixes

Update flake.lock

Update Cargo.lock

Move tests to new dna

Order TrustFeedMews by topic weight

Lint

Update lockfiles

Update "follow" code in frontend

First cut at "Your Basket" view

Basket feed getting closer...

TrustAtom Vue work

Frontend tweaks and design notes

flake lock

Update hdk/hdi + flake lock

Various updates

Try to fix nix, breaking on CI:

https://github.com/GeekGene/MewsFeed/actions/runs/4761734440/jobs/8463253867

Use alternative hc cahcix cache as well

Run TG on push; push to holochain cache -- CI is timing out in mewsfeed org

Reduce nix storage space

Check disk space on CI

Test assert eq

Less debugging

Update flake

migrate tests to ts step 1: mv

Commit old sweet tests, and start sour tests

Convert "recommended" func test rs -> ts

Work on trust feed

Reinstate much of trustgraph infra + trust feed

trustgraph zome infra, test fixes

Fix up types & tests

Cleanup/refactor

Cleanup
@mattyg mattyg deleted the branch GeekGene:develop August 2, 2023 02:06
@mattyg mattyg closed this Aug 2, 2023
@harlantwood
Copy link
Collaborator Author

Unfortunately I have too many balls in the air, and need to reduce those in order to do a good job with a smaller number.

So with sadness I’m putting TrustGraph/MewsFeed integration on hold, to be resumed if/when bandwidth is available.

If anyone in the community wants to pick it up in the meantime I’m happy to advise.

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.

3 participants