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

feat: docs #1202

Closed
wants to merge 7 commits into from
Closed

feat: docs #1202

wants to merge 7 commits into from

Conversation

JonasKruckenberg
Copy link
Contributor

No description provided.

desktop/wasi-mtt/src/impl/fetch.rs Show resolved Hide resolved
desktop/wasi-mtt/src/impl/poll.rs Show resolved Hide resolved
desktop/app/README.md Show resolved Hide resolved
@vercel
Copy link

vercel bot commented Dec 22, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
mintter-gateway ✅ Ready (Inspect) Visit Preview Dec 26, 2022 at 11:22AM (UTC)

@vercel vercel bot temporarily deployed to Preview December 22, 2022 17:47 Inactive
@juligasa
Copy link
Collaborator

juligasa commented Dec 22, 2022

@horacioh we should merge this, right? It's needed in #807 . The thing is some rust tests failed. Have you ever seen them? I could dive into them otherwise

@vercel vercel bot temporarily deployed to Preview December 22, 2022 17:55 Inactive
@vercel
Copy link

vercel bot commented Dec 23, 2022

Deployment failed with the following error:

Resource is limited - try again in 4 hours (more than 100, code: "api-deployments-free-per-day").

@vercel vercel bot temporarily deployed to Preview December 26, 2022 11:22 Inactive
@burdiyan
Copy link
Collaborator

@JonasKruckenberg I'm trying to fix this CI issue, but no luck. Looks like some of the Wit-related stuff got moved to other places, and cargo check fails in CI (and locally) with:

error: failed to get `wit-bindgen-host-wasmtime-rust` as a dependency of package `wasi-mtt v0.1.0 (/Users/burdiyan/code/src/github.com/mintterteam/mintter/desktop/wasi-mtt)`

burdiyan added a commit that referenced this pull request Feb 9, 2023
@burdiyan burdiyan closed this Feb 9, 2023
@burdiyan burdiyan deleted the feat/docs branch February 9, 2023 15:53
@burdiyan
Copy link
Collaborator

burdiyan commented Feb 9, 2023

Merged manually into build13/staging.

burdiyan added a commit that referenced this pull request Mar 3, 2023
horacioh pushed a commit that referenced this pull request Mar 15, 2023
horacioh added a commit that referenced this pull request Mar 15, 2023
* fix(editor): avoid editor jump

* fix: state machines predictableActionArguments argument

* fix(frontend): remove main machine and branch sync

    sync with staging
    Main machine wiped out, still WIP
    No sites, no double NavMenu seperator
    Gateway: server-rendered CID paths
    Site add form
    Send x-mintter-site-hostname header
    Publication path lowercase and save correctly
    Fixes query client/invalidation for sites add
    invite token expiration
    WIP: invite tokens and p2p init
    Fixed hooks for site add+remove
    Re-Publishing Workflow
    Publish/Unpublish UI and hooks
    Sites management now using new buf client
    App Query Client Singleton
    dummy remote p2p site calls
    local sites (add, list remove) mockups

* wip conversations

- change context value
- add comments styling inside activity section
- you can add comments to conversations now

* remove cconversation context error

* Sites management now using new buf client

* register p2p (mttnet) methods locally as well

* wip: calling .well-known

* wip: cleaning warnings

* wip: using more secure random generator

* update protos  with changes in documentation

* Init mttnet server sepparately

* Check permissions on remote (local mocked) calls

* update protos according to PR comments

* wip: publish + unpublish + list mockups

* get and update remote site info

* Fixes to listing and unpublishing webPubs

* ListWebPublicationRecords

* Make a local site by default. Just for tests

* change default site name

* Site Settings invite+members UI revamp

* fix(frontend): empty list button draft creation

the button was opening a new window after creating a draft. that's not the desired experience.
we do change the route of the same window after the draft is created.

* get path mocked

* fix: handle errors when getpath not found

* token only

* Invite workflow frontend fixes

* Log RPC from front end client

* Cleaner publish/share dialog when published

* Invalidate queries to affect other windows

* Provide member_role=editor when inviting

* useNavigation for new draft

* update document on duplicate path (and same docID)

* redeem token (if provided) in add site

* basic invite page on gateway

* gateway fix missing env, log mode

* Add Site invite token + error handling

* update slate packages

* highlight conversation context wip

* remove panelSend event causing infinite loop

* Clicking Conv Bubble opens Activity

* Unpublish only if you are site owner or doc author

* List members get members and delete member mockups

* adding site owner to the db at init time

* fix shared build (ts-ignore)

* fix share button dissappear

* fix draft scroll error

* docs(tauri): merge docs from #1202

Closes #1202

* defining well-known message in doc

* If not site flag provided daemon is a regular node

* serve .well-known content

* wip: connect with site via p2p when adding it

* feat(comments): comments first iteration done

- rendering selectors on publications
- list conversation on activity panel
- render selectors on conversation item
- reply to conversations
- proper transform between api <-> slate

* resolve conflicts with master

* fix tsc build

* wip: remote calls with hardcoded redeemtoken

* proxy add site with no hardcodings

* proxy all calls to remote site if headers found.

* wip: harden tokens and improve debug comments

* check path is a valid URL

* Send site hostname header

* SSR web publish with pretty path

* Work around tauri dots in params

* flag 2 create random acc. w/out user intervention

* Supports publishing home page

* Web gateway to support home screen

* proxy ListWebPublicationRecords for each site

* hostname with mandatory protocol (http(s)://)

* forward metadata in proxied calls

* fix automatic acc. generation when already exists

* Start supporting protocol in site hostname

* manually cherry-pick conversations styles

this is from the Nostr branch

* Gateway Env variable: GW_NEXT_HOST

* Gateway env: GW_GPRC_ENDPOINT

* wip: include sync comments

* Dockerfile to containerize the daemon

* wip:contanerize gateway

* fix(backend/ipfs): switch to inmemory datastore again

Trying to fix database locking issues.

Closes #1200.

* fix mintter.com website with hardcoded document

* add .vercel to gitignore

* fixes on env variables for gateway

* fix envs again

* pasing transport tpo getPublication

* forcing gateway as host

* clientside again for gateway

* fix metadata formatted date

* fix comments workflow + design

* Nostr experiment to staging (behind flag)

* nostr true by default

* update mintter homepage pub version

* update frontend deps

* testing ssr on ids page

* testing nodejs runtime on ids

* rollback to clientside rendering

* wip: tests

* wip: site tests

* site db schema

* enable wss in build (wip)

* add click selector click event

* fix(comments): control better when to add/remove conversations

* fix(comments): bidirectional highlight for conversations

* fix(comments): scrollIntoView working in both publication and conversations

* gw vercel check and render client side pub

* docker file for nextjs site self host

* server side render 100%

* fetch redirect mode

* vercel test

* 😵‍💫

* 🤠

* 👾

* 🌈 interceptor

* 📢

* gw: server render by default

* Site title

* Clean up unused settings tabs

* Improvements to site members

* Fixing site hostname labels + urls

* sites db schema (no breaking change yet)

* protect early exits to not panic

* fix: not error on normal shutdown

* lint

* remove references table and renaming

* create site transactions

* fix: wrong token table

* wip: improve token sql functions

* wip:sql tests

* change database compatibility

* well known api draft

* remove the need to build shared pkg

* Revert "remove the need to build shared pkg"

This reverts commit 8e729d2.

* fix build step for gw

* setup env variables correctly

* wip: add member

* force vercel to use gateway.mintter.com

* set new homepage doc for gateway

* force gateway url

* 🤌

* 😔

* 😢

* 😢😢

* allow unpublish by path

* Build13/drag and drop (#1308)

* fix(tauri): fix daemon flags pasing WIP

* added drag and drop hook implementation. added drag context to blocktools

* added drag machine. added drag event handlers to blocktools and editor. removed usedragdrop hook

* drag and drop WIP

- rebase with build13/staging
- code cleanup
- create custom drag context utils

* moved dragover handling to phrasing props. added style handling to drag machine

* blocktools inside blocks

* added prevention of dragging parent inside it's children list

* added drag attributes and handlers to editor blocks and blocktools

* moved ondragover to paragraph. added editor parameter to drag machine

* wip

* added mouseup to blocktools to enable mouse machine back. added removing group if dragging the only child of a group

* rebase with build13/staging

* fix validate

---------

Co-authored-by: Horacio Herrera <hi@horacioh.com>

* remove log interceptor from prod transform

* enable everyone to edit enything

* remove publication blocktools red background

* feat(frontend): drag and drop working

    added checking and removing empty groups
    Merge branch 'build13/staging' into build13/drag-and-drop
    disabled drag and drop if editor in dragging state. removed comments and console logs. renamed selection catching plugin
    added mouseup to blocktools to enable mouse machine back. added removing group if dragging the only child of a group
    moved ondragover to paragraph. added editor parameter to drag machine
    added prevention of dragging parent inside it's children list
    blocktools inside blocks
    moved dragover handling to phrasing props. added style handling to drag machine
    added drag machine. added drag event handlers to blocktools and editor. removed usedragdrop hook
    added drag and drop hook implementation. added drag context to blocktools

* wip: site member management in db

* fix: consume grpc port properly

* fix nextjs responses

* fix: returning proper role on existing accounts

* log ids params for debugging

* check documentId params check

* wip: change site opts in db

* wip: managing sites in the db

* wip: web publication records db (not tested)

* prevent same document to be published twice

* unpublish by docid (+ version) only

* wip: web publication db testing (no references)

* wip: account for references in published documents

* Sites db persistence (breaking change)

* wip: commenting

* replace existing site

* tokens db

* site members db

* sites db

* update site info (title+description)

* publish and unpublish db

* linting

* change compatibility date and linting

* allow adding a site without token (and no owner)

* fix site tests

* test proxy members

* wip: site info test

* fix(frontend): fix publishing redirection

it was not happening because we were not calling the appropiate actions

* test(backend): add tests for block revisions

Add test to reproduce #1301. Seems to be working fine though.

* Error adding a site without token if not an owner

* version id provided on unpublish

* Security pack own words support comma

* fix(frontend): add zomm in and out

* Publish/share dialog: Fix url of home path

* gw: author server rendered

* gw: env port for development

* gw: well known endpoint for nextjs

* wip: site deployment documentation

* disable nostr

* documentID unique key + test suite update

* add author data on comments

* added top and bottom lines when dragging based on the paths

* wip: site syncs-in provided documents only

* fix(frontend): fix drag and drop in Mac

* some frontend fixes

* site syncing tests

* wip:syncing comments

* fix(frontend): fix publish share popover alignment

* fix: multiple identical site members

* wip: less autorelay verbosity

* site only syncs out with site members

* wip on new sidepanel

* feat(frontend): add activepanel to sidepanele

* fixed bug where blocks would be dragged to top when the bottom line was showed. added nested groups code (WIP)

* add footer import on sites page

* take into account lists in tests

* change site bio when updating site info

* wip: publish tests

* wip: improve site tests

* wip: make linter happy

* wip: unify db constraints

* error getpath on blank path + improve test suite

* fix(backend): don't panic on nil datoms iterator

Closes #1310.

* Citations and Versions sidebar prototype

* test(rust): fix clippy lint issues

* wip: improve error messages on document finding

* check multiple devices in parallel when publishing

* identify supporting materials by ID + Version

* fix(front): provide supporting material properly

* wip: linting and messaging

* look at nextjs .well-known path when adding a site

* site deployment

* fix(frontend): minor fixes on dragging

* fix(frontend): transformation to api now respects revision

solves #1301

* unify hover effect + cleanup imports

* make script portable

* fix(frontend): remove shared api client calls

* uncomment correct index page ids

* member management for owners, remove member

* gw: Remove client side fallback

* Gateway Dev port fix

* gw: query for author on page slug

* settings + share hostname display no protocol

* publish success message

* republish notification

* not exposing daemon http ports to the outside

* remove the ERROR

* fix(gateway): fix gateway wrong calls

* cleanup imports

* remove citation numbers for now

* using a more portable curl command to deploy sites

* wip: some comments on difficult-to-follow code

* fix mnemonics call in onboarding

* Fix double https in invite sender

* add logs to production build

* upgrade to the more advanced script

* wip: not defining latest to pull from repo

* gw: Minor logging / cleanup

* citations number in blocks

* Improving sites settings UI

* not exposing addresses over http in regular nodes

* wip: test docker build action

* fix: docker action

* Include site docker images in nightlies 6 AM

* fix(gateway): special site header for sites

* fix(frontend): slim down nextjs-docker size

* update static copy route in docker

* chore(build): make protobuf JS codegen up to date

* Fix broken republish message

* Invalidate doc list on publish

* Site title, doc title, SEO metadata

* Gateway Pretty Path not found

* Fix: take version into account in getpath

* WebPublish to use the open version

* Fix silent error dialog

* feat(frontend): new ui structure for the gateway code

* fix(build): fix rust CI issues

Removing workspace-hack, because it seems to be causing issues, and seems like it's not worth the effort at this point.

* Improve panel titles

* app sidebar toggle behavior in footer

* conversation floating button is gone

* fix(build): remove wasi-mtt from the rust workspace

* fix frontend package installs

---------

Co-authored-by: Horacio Herrera <hi@horacioh.com>
Co-authored-by: Eric Vicenti <eric@vicenti.net>
Co-authored-by: juligasa <11684004+juligasa@users.noreply.github.com>
Co-authored-by: Iskak Toltay <36269035+IsKEK@users.noreply.github.com>
Co-authored-by: IsKEK <iskaktoltay@gmail.com>
horacioh added a commit that referenced this pull request Apr 5, 2023
* register p2p (mttnet) methods locally as well

* wip: calling .well-known

* wip: cleaning warnings

* wip: using more secure random generator

* update protos  with changes in documentation

* Init mttnet server sepparately

* Check permissions on remote (local mocked) calls

* update protos according to PR comments

* wip: publish + unpublish + list mockups

* get and update remote site info

* Fixes to listing and unpublishing webPubs

* ListWebPublicationRecords

* Make a local site by default. Just for tests

* change default site name

* Site Settings invite+members UI revamp

* fix(frontend): empty list button draft creation

the button was opening a new window after creating a draft. that's not the desired experience.
we do change the route of the same window after the draft is created.

* get path mocked

* fix: handle errors when getpath not found

* token only

* Invite workflow frontend fixes

* Log RPC from front end client

* Cleaner publish/share dialog when published

* Invalidate queries to affect other windows

* Provide member_role=editor when inviting

* useNavigation for new draft

* update document on duplicate path (and same docID)

* redeem token (if provided) in add site

* basic invite page on gateway

* gateway fix missing env, log mode

* Add Site invite token + error handling

* update slate packages

* highlight conversation context wip

* remove panelSend event causing infinite loop

* Clicking Conv Bubble opens Activity

* Unpublish only if you are site owner or doc author

* List members get members and delete member mockups

* adding site owner to the db at init time

* fix shared build (ts-ignore)

* fix share button dissappear

* fix draft scroll error

* docs(tauri): merge docs from #1202

Closes #1202

* defining well-known message in doc

* If not site flag provided daemon is a regular node

* serve .well-known content

* wip: connect with site via p2p when adding it

* feat(comments): comments first iteration done

- rendering selectors on publications
- list conversation on activity panel
- render selectors on conversation item
- reply to conversations
- proper transform between api <-> slate

* resolve conflicts with master

* fix tsc build

* wip: remote calls with hardcoded redeemtoken

* proxy add site with no hardcodings

* proxy all calls to remote site if headers found.

* wip: harden tokens and improve debug comments

* check path is a valid URL

* Send site hostname header

* SSR web publish with pretty path

* Work around tauri dots in params

* flag 2 create random acc. w/out user intervention

* Supports publishing home page

* Web gateway to support home screen

* proxy ListWebPublicationRecords for each site

* hostname with mandatory protocol (http(s)://)

* forward metadata in proxied calls

* fix automatic acc. generation when already exists

* Start supporting protocol in site hostname

* manually cherry-pick conversations styles

this is from the Nostr branch

* Gateway Env variable: GW_NEXT_HOST

* Gateway env: GW_GPRC_ENDPOINT

* wip: include sync comments

* Dockerfile to containerize the daemon

* wip:contanerize gateway

* fix(backend/ipfs): switch to inmemory datastore again

Trying to fix database locking issues.

Closes #1200.

* fix mintter.com website with hardcoded document

* add .vercel to gitignore

* fixes on env variables for gateway

* fix envs again

* pasing transport tpo getPublication

* forcing gateway as host

* clientside again for gateway

* fix metadata formatted date

* fix comments workflow + design

* Nostr experiment to staging (behind flag)

* nostr true by default

* update mintter homepage pub version

* update frontend deps

* testing ssr on ids page

* testing nodejs runtime on ids

* rollback to clientside rendering

* wip: tests

* wip: site tests

* site db schema

* enable wss in build (wip)

* add click selector click event

* fix(comments): control better when to add/remove conversations

* fix(comments): bidirectional highlight for conversations

* fix(comments): scrollIntoView working in both publication and conversations

* gw vercel check and render client side pub

* docker file for nextjs site self host

* server side render 100%

* fetch redirect mode

* vercel test

* 😵‍💫

* 🤠

* 👾

* 🌈 interceptor

* 📢

* gw: server render by default

* Site title

* Clean up unused settings tabs

* Improvements to site members

* Fixing site hostname labels + urls

* sites db schema (no breaking change yet)

* protect early exits to not panic

* fix: not error on normal shutdown

* lint

* remove references table and renaming

* create site transactions

* fix: wrong token table

* wip: improve token sql functions

* wip:sql tests

* change database compatibility

* well known api draft

* remove the need to build shared pkg

* Revert "remove the need to build shared pkg"

This reverts commit 8e729d2.

* fix build step for gw

* setup env variables correctly

* wip: add member

* force vercel to use gateway.mintter.com

* set new homepage doc for gateway

* force gateway url

* 🤌

* 😔

* 😢

* 😢😢

* allow unpublish by path

* Build13/drag and drop (#1308)

* fix(tauri): fix daemon flags pasing WIP

* added drag and drop hook implementation. added drag context to blocktools

* added drag machine. added drag event handlers to blocktools and editor. removed usedragdrop hook

* drag and drop WIP

- rebase with build13/staging
- code cleanup
- create custom drag context utils

* moved dragover handling to phrasing props. added style handling to drag machine

* blocktools inside blocks

* added prevention of dragging parent inside it's children list

* added drag attributes and handlers to editor blocks and blocktools

* moved ondragover to paragraph. added editor parameter to drag machine

* wip

* added mouseup to blocktools to enable mouse machine back. added removing group if dragging the only child of a group

* rebase with build13/staging

* fix validate

---------

Co-authored-by: Horacio Herrera <hi@horacioh.com>

* remove log interceptor from prod transform

* enable everyone to edit enything

* remove publication blocktools red background

* feat(frontend): drag and drop working

    added checking and removing empty groups
    Merge branch 'build13/staging' into build13/drag-and-drop
    disabled drag and drop if editor in dragging state. removed comments and console logs. renamed selection catching plugin
    added mouseup to blocktools to enable mouse machine back. added removing group if dragging the only child of a group
    moved ondragover to paragraph. added editor parameter to drag machine
    added prevention of dragging parent inside it's children list
    blocktools inside blocks
    moved dragover handling to phrasing props. added style handling to drag machine
    added drag machine. added drag event handlers to blocktools and editor. removed usedragdrop hook
    added drag and drop hook implementation. added drag context to blocktools

* wip: site member management in db

* fix: consume grpc port properly

* fix nextjs responses

* fix: returning proper role on existing accounts

* log ids params for debugging

* check documentId params check

* wip: change site opts in db

* wip: managing sites in the db

* wip: web publication records db (not tested)

* prevent same document to be published twice

* unpublish by docid (+ version) only

* wip: web publication db testing (no references)

* wip: account for references in published documents

* Sites db persistence (breaking change)

* wip: commenting

* replace existing site

* tokens db

* site members db

* sites db

* update site info (title+description)

* publish and unpublish db

* linting

* change compatibility date and linting

* allow adding a site without token (and no owner)

* fix site tests

* test proxy members

* wip: site info test

* fix(frontend): fix publishing redirection

it was not happening because we were not calling the appropiate actions

* test(backend): add tests for block revisions

Add test to reproduce #1301. Seems to be working fine though.

* Error adding a site without token if not an owner

* version id provided on unpublish

* Security pack own words support comma

* fix(frontend): add zomm in and out

* Publish/share dialog: Fix url of home path

* gw: author server rendered

* gw: env port for development

* gw: well known endpoint for nextjs

* wip: site deployment documentation

* disable nostr

* documentID unique key + test suite update

* add author data on comments

* added top and bottom lines when dragging based on the paths

* wip: site syncs-in provided documents only

* fix(frontend): fix drag and drop in Mac

* some frontend fixes

* site syncing tests

* wip:syncing comments

* fix(frontend): fix publish share popover alignment

* fix: multiple identical site members

* wip: less autorelay verbosity

* site only syncs out with site members

* wip on new sidepanel

* feat(frontend): add activepanel to sidepanele

* fixed bug where blocks would be dragged to top when the bottom line was showed. added nested groups code (WIP)

* add footer import on sites page

* take into account lists in tests

* change site bio when updating site info

* wip: publish tests

* wip: improve site tests

* wip: make linter happy

* wip: unify db constraints

* error getpath on blank path + improve test suite

* fix(backend): don't panic on nil datoms iterator

Closes #1310.

* Citations and Versions sidebar prototype

* test(rust): fix clippy lint issues

* wip: improve error messages on document finding

* check multiple devices in parallel when publishing

* identify supporting materials by ID + Version

* fix(front): provide supporting material properly

* wip: linting and messaging

* look at nextjs .well-known path when adding a site

* site deployment

* fix(frontend): minor fixes on dragging

* fix(frontend): transformation to api now respects revision

solves #1301

* unify hover effect + cleanup imports

* make script portable

* fix(frontend): remove shared api client calls

* uncomment correct index page ids

* member management for owners, remove member

* gw: Remove client side fallback

* Gateway Dev port fix

* gw: query for author on page slug

* settings + share hostname display no protocol

* publish success message

* republish notification

* not exposing daemon http ports to the outside

* remove the ERROR

* added nested groups drag and drop functionality

* fix(gateway): fix gateway wrong calls

* cleanup imports

* remove citation numbers for now

* using a more portable curl command to deploy sites

* wip: some comments on difficult-to-follow code

* fix mnemonics call in onboarding

* Fix double https in invite sender

* add logs to production build

* upgrade to the more advanced script

* wip: not defining latest to pull from repo

* gw: Minor logging / cleanup

* citations number in blocks

* Improving sites settings UI

* not exposing addresses over http in regular nodes

* wip: test docker build action

* fix: docker action

* Include site docker images in nightlies 6 AM

* add temporary docker nightly releases in staging

* added styling for nested group drag

* added nested groups drag and drop functionality

* merge with master

* fixed github conflicts

* fixed last conflicts

* WIP fixing the nested group line

* fixed nested group dragging for blocks with multiple children not on the same level

* cleanup after mege

* commit after pnpm format

* WIP dragover on list items

* a working version with dragover on list items. WIP, nested group dragging lines don't appear immediately

* fixed nested group dragging. works immediately on drag over now.

* added styling for nester group dragging. removed comments and logs

* removed unused code, comments and logs. pnpm format

* ran pnpm format

* fmt

---------

Co-authored-by: juligasa <11684004+juligasa@users.noreply.github.com>
Co-authored-by: Eric Vicenti <eric@vicenti.net>
Co-authored-by: Horacio Herrera <hi@horacioh.com>
Co-authored-by: Alexandr Burdiyan <burdiyan@gmail.com>
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.

4 participants