1718 Commits

Author SHA1 Message Date
Lucas
dd2dbed8c8
fix: permission control doesn't work when opening the page at the first time (#8023)
* fix: permission control doesn't work when opening the page at the first time

* feat: enable tracing events cost time

* feat: leave shared page via ... menu

* fix: hide the create page button if user is guest

* feat: disable publish button if user is a guest

* feat: add shared user table

* feat: integrate sql into folder manager

* feat: integrate shared user notification

* fix: flutter analyze

* fix: revert local shared user data

* fix: disable share button on mobile if user is a guest

* feat: save the shared user data

* feat: integrate pro plan workflow into share menu

* chore: format code

* feat: disable share menu in local mode

* chore: format code
2025-06-05 09:42:31 +08:00
Lucas
5598689dba
feat: control access level in share menu (#8017)
* feat: use auto_confirm in share with user api

* feat: reduce share api calls

* feat: add team space section in title bar

* feat: only user with full access can invite guest/member

* feat: customize popup style

* feat: support section type

* feat: update access level based on public or private space

* test: add access level tests

* chore: update i18n

* chore: disable bloc talker

* fix: tests

* fix: general access test

* fix: view title bar test

* chore: i18n
2025-06-03 21:02:13 +08:00
Lucas
88a3e9eddd
feat: implement section breadcrumb and new share menu design (#8012)
* feat: support secion breadcrumb

* chore: update layout

* feat: observe space permission change

* feat: new share menu design

* fix: widget test
2025-06-03 09:46:42 +08:00
Lucas
d3566e303d
feat: optimize share section and share tab logic (#8001)
* feat: optimize share section and share tab logic

* feat: new people with access section

* feat: new copy link widget

* fix: hide member page for guest user

* fix: hide sites page for guest user

* feat: support access level in document

* fix: can't edit the title when access level is read

* feat: guest role can't get page outside the flatten shared pages

* chore: refactor user workspace bloc

* feat: show guest role in workspace menu

* chore: update guest tag and section header

* chore: use readwrite as default permission

* fix: remove unused tests

* chore: clear share status

* fix: access level

* fix: menu color

* feat: support general access section

* feat: remove self access

* fix: tests

* fix: access level issues

* test: add workspace bloc test
2025-06-02 13:52:14 +08:00
Lucas
289cf2526d
feat: integrate guest role (#7967)
* fix: turn off share apis when fg is off

* chore: bump client-api version

* fix: use workspace id in turn into member api

* feat: hide the invite textfield when user role is guest

* fix: improve error handling for invitation failures in share tab

* fix: handle sharing disabled state in share tab

* chore: bump version

* feat: replace sidebar menu with AFMenu

* chore: add error code

* feat: shared with me

* fix: app scale issue

* chore: udpate error message

* feat: support more access levels

* chore: delegate the view item events

* feat: inject the callbacks into shared page list

* fix: flutter analyze

* feat: support rename / change icon in shared folder

* feat: added shared page actions button

* fix: tests

* chore: update version
2025-05-29 10:17:27 +08:00
Nathan.fooo
8fcbf78714
chore: index document even content is empty (#7996) 2025-05-28 10:11:45 +08:00
Nathan
73757dad6b chore: fix ios simulator build 2025-05-26 17:30:56 +08:00
Nathan
ec1c5c40e2 chore: fix build 2025-05-26 16:46:00 +08:00
Nathan.fooo
95f3304cae
chore: add constraint for importing csv (#7981) 2025-05-26 16:20:29 +08:00
Nathan.fooo
8301c3f2c3
chore: fix ios build (#7982) 2025-05-26 16:19:55 +08:00
Richard Shiue
581a2b41a8
chore: adjust custom prompt UI (#7966)
* chore: refetch view when reload

* chore: excessive padding

* chore: cursor for clear search input

* chore: move other to bottom of category list

* chore: padding on mobile

* chore: select sources background color

* chore: support single and multi select

* chore: adjust colors
2025-05-26 14:21:35 +08:00
Richard Shiue
f5e2e4e915
fix: clear cells not working (#7956)
* fix: clear cells not working

* chore: bump collab rev
2025-05-22 10:36:15 +08:00
Nathan.fooo
b085f4feec
chore: bump collab (#7959) 2025-05-21 16:20:19 +08:00
Nathan.fooo
d80d0285f9
chore: enable index on mobile (#7954)
* chore: enable index on mobile

* chore: fix clippy
2025-05-21 12:05:27 +08:00
Lucas
105f244a4b
feat: shared folder refactor (#7948)
* feat: get the shared folder

* feat: add shared_view sql

* feat: persist the shared view data

* feat: support notification

* fix: flutter compile

* feat: add logic, data and presentations

* feat: integrate client-api endpoints

* feat: replace upsert with replace_all for workspace shared views management

* refactor: streamline sharedPages retrieval with extension method

* feat: enhance SharedSidebarBloc with folder notification support and update shared pages management

* feat: implement SharedSection with Bloc integration and new UI components

* chore: update comments

* feat: introduce SharedSectionBloc for managing shared pages with polling and notification support

* refactor: replace AFAccessLevelPB with ShareAccessLevel in shared pages management and extend functionality with new extensions

* chore: rename folder

* feat: add unit tests for SharedSectionBloc and UI components in shared section

* fix: rust fmt

* chore: revert version changes

* fix: cargo clippy

* fix: unit test
2025-05-20 16:37:09 +08:00
Nathan.fooo
8a80ded187
chore: add chat message order test (#7953)
* chore: add chat message order test

* chore: clippy
2025-05-20 14:22:28 +08:00
Nathan.fooo
49b56f0a6e
fix: stream key (#7952) 2025-05-20 11:48:29 +08:00
Richard Shiue
c634e906ea
chore: implement custom prompt usage metrics (#7923)
* chore: implement custom prompt usage metrics

* chore: bump client-api
2025-05-19 16:07:11 +08:00
Lucas
03d35f8fe1
feat: refactor share menu (#7935)
* chore: update client-api

* chore: integrate share endpoints

* feat: add share repository

* feat: add share events

* feat: integrate rust events

* chore: code refactor

* feat: add share logic

* feat: optimize share_with_user bloc

* feat: share with user widget

* feat: use AFPopover

* feat: add shared user list

* feat: fetch current user

* feat: add shared usert list

* feat: add mock share repo

* feat: update client-api

* feat: add people_with_access and general_access

* fix: flutter analyze

* feat: support share link

* feat: edit access level

* feat: invite guest

* feat: optimize share menu loading perf

* fix: unable to display the share link

* feat: update access role

* feat: support cached network image

* feat: add access level callback

* feat: remove guest access

* fix: popover exclusive issue

* fix: close edit access level popover after editing

* feat: use rust share apis

* chore: rename folder

* test: add widget tests

* test: share with user bloc test

* chore: downgrade to 0.9.3
2025-05-19 15:26:25 +08:00
Richard Shiue
a7b795d3cc
feat: allow users to map fields while importing prompts from database (#7938) 2025-05-19 10:40:04 +08:00
Nathan.fooo
fed9d43fc5
Upgrade Rust edition (Do not merge into 0.9.2 version) (#7925)
* chore: compile

* chore: bump rust edition

* chore: bump rust tool chain version

* chore: fix test

* chore: fmt

* chore: build target

* chore: clippy

* chore: fmt
2025-05-14 10:26:59 +08:00
Nathan.fooo
a359313974
chore: select source when user is not anon (#7921) 2025-05-13 11:10:32 +08:00
Nathan.fooo
7e5b243e40
chore: remove unused ai code (#7919) 2025-05-13 00:13:25 +08:00
Nathan
9ecae0a643 chore: ai templte 2025-05-11 20:16:12 +08:00
Richard Shiue
30f5692818
chore: adjust database custom prompt ui (#7902) 2025-05-11 16:45:28 +08:00
Khor Shu Heng
370b5714a1
chore: update collab version for row deserialization fix (#7907) 2025-05-11 14:08:32 +08:00
Nathan.fooo
b4d48a63b9
chore: support multiple source search in chat (#7906)
* chore: support multiple source search in chat

* chore: clippy
2025-05-10 15:28:38 +08:00
Nathan.fooo
c986e414f4
Vault workspace suggested question (#7903)
* chore: return suggested question when ai say i don't know

* chore: new message type

* chore: implement uI

* chore: implement UI

* fix: assertion in local ai chat

* chore: implement UI

* chore: update prompt

* chore: update logs

* chore: add tests

* chore: message id

* fix: local ai page animation issue

* chore: remove debug log

* fix: remove repeated setState

* chore: add test

* chore: test

* fix: compile

---------

Co-authored-by: Lucas.Xu <lucas.xu@appflowy.io>
2025-05-09 21:58:23 +08:00
Richard Shiue
680015ef66
feat: load custom prompts from a database (#7894)
* feat: load custom prompts from a database

* chore: code review

* chore: process trashed views and reduce widget rebuilds
2025-05-08 11:56:30 +08:00
Richard Shiue
b048407b4e
fix: select option logic (#7893)
* test: add select option tests

* fix: select option logic

* test: fix existing tests

* test: fix test logic
2025-05-08 09:13:03 +08:00
Nathan.fooo
95f9b07ef7
chore: use tanvity as fallback ai search (#7892)
* chore: use tanvity as fallback ai search

* chore: fix test
2025-05-08 00:17:02 +08:00
Nathan.fooo
f7b556677f
Custom langchain rust (#7887)
* chore: implement custom memory store chain

* chore: do not allow edit embedding model
2025-05-07 13:37:44 +08:00
Nathan.fooo
0f5699571c
chore: filter out space when indexing search (#7882) 2025-05-06 20:49:44 +08:00
Nathan.fooo
53cbd22111
chore: local ai chat with pages (#7881)
* chore: local ai chat with page

* chore: temp

* chore: clippy

* chore: fix ui bugs

* chore: fix ui bugs

* chore: fix view title

* chore: cloud id

* chore: bump server

* chore: bump server
2025-05-06 20:32:10 +08:00
Nathan.fooo
bdac73e934
chore: refactor local ai (#7880)
* chore: refactor local ai

* chore: ios build
2025-05-05 20:27:29 +08:00
Nathan.fooo
20f3116bd9
refactor: Model select (#7875)
* refactor: model select

* refactor: add test

* fix: add source

* fix: add source

* chore: notify all unset source

* chore: fix test
2025-05-02 15:37:40 +08:00
Nathan.fooo
612d652320
feat: support local ai embedding, local ai search, local document content search (#7839)
* chore: generate embeddings

* chore: save embedding

* chore: vec sqlite

* chore: clippy

* chore: init vector

* chore: create vector db

* chore: periodically write embedding

* chore: fix compile

* chore: skip write

* chore: impl search

* fix: test

* fix: stop scheduler

* fix: search

* chore: add test

* chore: update schema

* chore: index all

* chore: index

* chore: search document content

* chore: index document content and title

* chore: index all view

* chore: rename trait

* refactor: remove folder index manager

* chore: index folder changes

* chore: delete folder search

* chore: update logs

* chore: update logs

* chore: search

* chore: add search test

* chore: fmt

* chore: fix test

* chore: fix ios build
2025-05-02 08:21:42 +08:00
Nathan.fooo
7750f2257f
fix: anon user can not locate its data (#7873)
* fix: anon user can not locate its data

* chore: add test

* chore: bump version 0.9.1

* chore: remove self-hosted ios ci

---------

Co-authored-by: Lucas.Xu <lucas.xu@appflowy.io>
2025-05-01 15:06:56 +08:00
Lucas
63244e0b3c
fix: paste issue with the nested image (#7857)
* chore: replace delete button style

* chore: replace textfield in settings page

* fix: icon text align issue in database

* fix: member count is 0

* fix: invite member issue on mobile

* fix: checklist item align issue on Windows

* fix: integration test

* fix: support converting paragraph to markdown

* chore: update editor version

* fix: delete command in simple table cell

* feat: use new password error code
2025-04-30 11:45:48 +08:00
Lucas
168b29abe3
Revert "chore: try to fix the mobile build" (#7844)
This reverts commit 3f06f6415aee635e1e39cc772ece081484f0ab14.
2025-04-28 13:25:05 +08:00
Nathan
2463107c6c chore: fix ios build 2025-04-28 13:18:18 +08:00
Lucas
2661ad27ec
feat: improve password error message (#7842)
* chore: update i18n

* chore: bump client api version

* chore: try to fix the mobile build

* chore: enable iOS CI
2025-04-28 13:08:28 +08:00
Nathan
28a4303f0c Merge branch 'main' into support_switch_local_models 2025-04-26 10:43:32 +08:00
Nathan
549e8aee03 chore: clippy 2025-04-26 10:04:03 +08:00
Nathan
3bc0cc7b43 chore: rename 2025-04-26 00:56:45 +08:00
Nathan
90000add22 chore: update ui 2025-04-25 23:41:35 +08:00
Nathan
86e6845302 chore: update ui 2025-04-25 23:29:22 +08:00
Lucas
670023b8da
fix: add open workspace assertion (#7824)
* fix: add fix workspace assertion

* fix: macos build

* feat: add new token

* feat: change min width of AFButton to 76.0

* chore: update translations

* feat: add verifying button

* feat: set barrierDismissible as false

* chore: install libcurl4-openssl-dev on Linux

* fix: flutter analyze

* chore: bump cloud version to 0.9.45

* fix: ci tests

* fix: home bloc test

* fix: integration test

* fix: integration test

* fix: integration test
2025-04-25 21:40:21 +08:00
Nathan
7dd8d06c85 chore: display all local models 2025-04-25 16:53:32 +08:00
Nathan
2c6253576f chore: fix test 2025-04-25 14:33:09 +08:00