Commit Graph

977 Commits

Author SHA1 Message Date
Richard Shiue
70689d3239
feat: show the scrollbars again (#1605)
* fix: padding in grid cell editors

* fix: padding in grid header editor

* fix: padding for row details

* fix: shrink number formt list when possible

* chore: simply use column for select option editor

* fix: make sure that popovers are the edges

* fix: delete button padding

* fix: date and time formats padding mistake
2022-12-27 08:21:30 +08:00
Nathan.fooo
5a30f46b85
feat: sort cell (#1593)
* chore: call cell decode data

* chore: cache cell decoded data

* chore: update cache cell data

* chore: cache cell data

* refactor: separate cell type option functionalities

* refactor: add TypeOptionCellDataFilter trait

* chore: remove unused codes

* chore: fix wanrings

* chore: add sort tests

* chore: sort single select and multi select

Co-authored-by: nathan <nathan@appflowy.io>
2022-12-24 23:19:11 +08:00
Richard Shiue
6a465ac3e7
fix: button spacing for grid menus (#1602)
* chore: don't put extra space in front of text

* chore: alter button margins for date and time format buttons
2022-12-24 23:01:55 +08:00
Richard Shiue
f9cc05319b
chore: deprecate InputTextField (#1566) 2022-12-21 19:12:16 +08:00
Eakam
873a46e443
fix: no focus border on date cells (#1469)
* fix: no focus border on date cells

* fix: remove redundant import

* refactor: use existing functionality from GridCellWidget for focus border

* refactor: use requestBeginFocus override instead of GestureDetector
2022-12-21 19:11:49 +08:00
Nathan.fooo
eee3dcf43a
Create test template (#1594)
* refactor: rename functions

* chore: create test templagte

Co-authored-by: nathan <nathan@appflowy.io>
2022-12-21 11:00:08 +08:00
Annie
3f00e78508
chore: update text for folder storage (#1590) 2022-12-20 20:33:41 +08:00
Lucas.Xu
5d7008edd7
feat: Customize the storage folder path (#1538)
* feat: support customize folder path

* feat: add l10n and optimize the logic

* chore: code refactor

* feat: add file read/write permission for macOS

* fix: add toast for restoring path

* feat: fetch apps and show them

* feat: fetch apps and show them

* feat: implement select document logic

* feat: l10n and add select item callback

* feat: add space between tile

* chore: move file exporter to settings

* chore: update UI

* feat: support customizing folder when launching the app

* feat: auto register after customizing folder

* feat: l10n

* feat: l10n

* chore: reinitialize flowy sdk when calling init_sdk

* chore: remove flowysdk const keyword to make sure it can be rebuild

* chore: clear kv values when user logout

* chore: replace current workspace id key in kv.db

* feat: add config.name as a part of seesion_cache_key

* feat: support open folder when launching

* chore: fix some bugs

* chore: dart fix & flutter analyze

* chore: wrap 'sign up with ramdom user' as interface

* feat: dismiss settings view after changing the folder

* fix: read kv value after initializaing with new path

* chore: remove user_id prefix from current workspace key

* fix: move open latest view action to bloc

* test: add test utils for integration tests

* chore: move integration_test to its parent directory

* test: add integration_test ci

* test: switch to B from A, then switch to A again

* chore: fix warings and format code and fix tests

* chore: remove comment out codes

* chore: rename some properties name and optimize the logic

* chore: abstract logic of settings file exporter widget to cubit

* chore: abstract location customizer view from file system view

* chore: abstract settings page index to enum type

* chore: remove the redundant underscore

* test: fix integration test error

* chore: enable integration test for windows and ubuntu

* feat: abstract file picker as service and mock it under integration test

* chore: fix bloc test

Co-authored-by: nathan <nathan@appflowy.io>
2022-12-20 11:14:42 +08:00
Richard Shiue
60d9a6b3ab
refactor: appflowy themes (#1567)
* refactor: appflowy themes

* refactor: store ThemeData directly in cubit

* refactor: remove textStyles

* refactor: move AppTheme back into cubit
2022-12-18 16:02:18 +08:00
Lucas.Xu
8cdf6f9ec0
Merge pull request #1557 from rizwan3395/main
fear: support emoji
2022-12-14 11:17:36 +08:00
Nathan.fooo
9666269e27
Merge pull request #1570 from AppFlowy-IO/feat/grid_sort
Feat/grid sort
2022-12-12 21:18:45 +08:00
nathan
e141e7ee63 chore: add cell cmp trait 2022-12-12 15:29:33 +08:00
Lucas.Xu
3932d0661d feat: update emoji picker UI 2022-12-12 15:10:38 +08:00
nathan
1ac1fabb6e chore: add suffix PB to filter structs 2022-12-12 11:25:49 +08:00
nathan
0cf0b29721 chore: hide the grid blocks from Dart 2022-12-11 13:10:35 +08:00
Nathan.fooo
2a75ad144a
fix: the grid cell border color didn't change after switch to new theme (#1564)
Co-authored-by: nathan <nathan@appflowy.io>
2022-12-11 09:06:16 +08:00
Nathan.fooo
d487820963
fix: update checklist type option data (#1563)
Co-authored-by: nathan <nathan@appflowy.io>
2022-12-10 20:46:24 +08:00
Richard Shiue
350c55e71d
style: rename theme extension file (#1562) 2022-12-10 19:00:46 +08:00
nathan
07ebb0cb95 refactor: refresh rows 2022-12-09 20:04:12 +08:00
Nathan.fooo
12441f1183
fix: auto size filter menu (#1552)
Co-authored-by: nathan <nathan@appflowy.io>
2022-12-09 10:12:45 +08:00
Nathan.fooo
8c225fe547
Feat/restore revision (#1549)
* chore: write snapshot

* chore: add tests

* chore: sync close

* chore: restore from snapshot

* chore: delete invalid revisions after restored from snapshot

* chore: create default view if it fail to deserialize view's revisions when there is no snapshot

* chore: auto generate snapshot

Co-authored-by: nathan <nathan@appflowy.io>
2022-12-09 09:19:47 +08:00
Rasyid Miftahul Ihsan
9711d670ca
feat: add hover effect when trash icon is selected or hovered. (#1513) 2022-12-08 14:22:27 +08:00
Richard Shiue
442dfe7ef8
feat: switch between light and dark theme based on system settings (#1523)
* feat: allow listening to system for light/dark theme

* chore: implement UI for theme mode setting

* chore: fix translations
2022-12-08 14:21:11 +08:00
Richard Shiue
f81d5eb23e
fix: location of popover wrt the cell (#1545) 2022-12-08 14:18:57 +08:00
Lucas.Xu
4da786a439 chore: refactor font size design 2022-12-06 18:36:22 +08:00
Nathan.fooo
64ee3140a3
fix: click enter to submit the text content (#1537)
Co-authored-by: nathan <nathan@appflowy.io>
2022-12-05 17:17:33 +08:00
Nathan.fooo
a2f9ca2f28
fix: options don't refresh after moving the card (#1536)
Co-authored-by: nathan <nathan@appflowy.io>
2022-12-05 15:23:59 +08:00
Nathan.fooo
72dc0b8f67
fix: filter orders (#1535)
Co-authored-by: nathan <nathan@appflowy.io>
2022-12-05 15:23:48 +08:00
Nathan.fooo
721781f0ae
chore: refresh the grid rows after typing text in the text filter (#1533)
Co-authored-by: nathan <nathan@appflowy.io>
2022-12-05 09:55:37 +08:00
Nathan.fooo
0d879a6091
Fix/select option filter (#1530)
* fix: multi select filter bugs

* fix: single select bugs

Co-authored-by: nathan <nathan@appflowy.io>
2022-12-05 09:54:47 +08:00
Lucas.Xu
c6c164d347 feat: integrate divider, code block, and math equation into appflowy 2022-12-01 19:26:00 +08:00
Nathan.fooo
fff4af53e2
Merge pull request #1510 from LucasXu0/fix_1488
fix: [Bug] Inconsistent font weights #1488
2022-11-30 20:31:39 +08:00
Nathan.fooo
6910004003
Merge pull request #1512 from richardshiue/fix-flowytextfield-bugs
fix: flowy text field bugs
2022-11-30 20:30:42 +08:00
Richard Shiue
eaa1cb5a67 fix: flowy text field bugs 2022-11-30 18:28:51 +08:00
nathan
553cfb3f5e chore: support checklist filter 2022-11-30 16:43:57 +08:00
Lucas.Xu
086195d2cf fix: inconsistent font weight in Chinese #1488 2022-11-30 16:36:53 +08:00
nathan
d89a89131e chore: remove textstyle ref 2022-11-30 15:16:01 +08:00
nathan
a800e01f0b chore: config checklist board UI 2022-11-30 15:15:05 +08:00
nathan
29e07089ca fix: checklist cell did get notified after the cell content change 2022-11-30 15:15:03 +08:00
nathan
3cdd6665b3 chore: config checklist cell 2022-11-30 15:14:27 +08:00
nathan
1ba299815e feat: implement checklist UI 2022-11-30 15:14:27 +08:00
nathan
b4671c1d99 feat: support checklist 2022-11-30 15:14:27 +08:00
Richard Shiue
aa85970b0f
chore: port more const textstyles to theme provider styles (#1477)
* chore: port more const textstyles to theme provider styles

* style: unnecessary or use shared text fontSizes

* fix: build error from merging main

Co-authored-by: Nathan.fooo <86001920+appflowy@users.noreply.github.com>
2022-11-30 15:11:32 +08:00
Richard Shiue
3b3b61e67c
chore: select option cell & header editor UI + move to theme.of(context).texttheme (#1483)
* chore: improvements for suffix text in textfields

* chore: port more const textstyles to theme provider styles

* chore: select option editor UI improvements
2022-11-30 15:02:41 +08:00
Lucas.Xu
d7783a6440 chore: remove duplicated svg function 2022-11-30 13:22:16 +08:00
Lucas.Xu
fba69767a7
Merge pull request #1495 from LucasXu0/customize_font_size
Customize Font Size In AppFlowy #1479
2022-11-29 13:45:33 +08:00
Nathan.fooo
80d1cbabe0
feat: support multi-select option filter (#1501)
Co-authored-by: nathan <nathan@appflowy.io>
2022-11-28 22:49:13 +08:00
Lucas.Xu
43031b50eb feat: update bold text style 2022-11-28 21:31:33 +08:00
Nathan.fooo
bd32ce5543
Feat: support single select option filter (#1494)
* feat: support select option filter

* chore: select option filter ui

* chore: support edit single select filter

* chore: add flutter tests

Co-authored-by: nathan <nathan@appflowy.io>
2022-11-28 19:41:57 +08:00
Lucas.Xu
0e55cd07a4 chore: fix typo 2022-11-28 18:32:32 +08:00
Lucas.Xu
14ac2db06d Merge remote-tracking branch 'origin/main' into customize_font_size 2022-11-28 18:11:06 +08:00
Lucas.Xu
a162b02476 feat: convert provider to cubit #1479 2022-11-28 18:02:05 +08:00
Lucas.Xu
6d6e61956a feat: Customize Font Size In AppFlowy #1479 2022-11-28 15:34:55 +08:00
Lucas.Xu
37b119172b feat: Customize Font Size In AppFlowy #1479 2022-11-28 13:26:43 +08:00
Lucas.Xu
0ba26e0a84 feat: Customize Font Size In AppFlowy #1479 2022-11-28 10:37:37 +08:00
Nathan.fooo
c47f755155
feat: support checkbox filter (#1492)
* feat: support checkbox filter

* fix: unit test

Co-authored-by: nathan <nathan@appflowy.io>
2022-11-27 23:44:23 +08:00
Richard Shiue
d6cbbf3c2f
chore: date cell & header editor UI + move to theme.of(context).texttheme (#1473)
* chore: textstyles

* chore: sizing
2022-11-27 17:24:04 +08:00
nathan
b6773a732b chore: add filter tests 2022-11-27 16:53:42 +08:00
Nathan.fooo
182bfae5ad
fix: filter UI bugs (#1489)
* chore: remove the add filter button if there is no filters can not be added

* fix: update field info after filter was changed

* chore: update filter choicechip ui

* chore: insert and delete one by one to keep the delete/insert index is right

* chore: show filter after creating the default filter

* chore: update textfield_tags version to calm the warnings

* chore: try to fix potential fails on backend test

Co-authored-by: nathan <nathan@appflowy.io>
2022-11-27 14:47:11 +08:00
Nathan.fooo
69a7ae5201
Implement Grid's filter UI (#1474)
* fix: border of field cell

* chore: add filter button

* chore: refactor setting button event

* chore: notify row did changed with filter configuration

* chore: add filter bloc test

* chore: config add filter button

* chore: create filter

* chore: load filters and update corresponding field property

* chore: add filter choice chip

* chore: config choice chip ui

* chore: send notification when filter updated

* chore: update filter after update field type option data

* fix: remove/add filter when update field's type option

* chore: create home setting bloc to save the setting of the home screen

* chore: add filter test

* chore: edit text filter ui

* fix: filter cell bugs

* fix: insert row out of bound

* chore: update setting icon in grid

* chore: shrink wrap the filter list

* refactor: extract row container from row cache

* chore: disable split-debuginfo

Co-authored-by: nathan <nathan@appflowy.io>
2022-11-26 21:28:08 +08:00
Lucas.Xu
462daee934
fix: #1467 Editor's left and right margins is too rigid (#1471) 2022-11-22 20:06:54 +08:00
Richard Shiue
63059ea39d
chore: tints depend on light and dark theme (#1470) 2022-11-22 20:06:32 +08:00
Richard Shiue
5a8f1db5a6
fix: divider colors for top and bottom border widgets (#1468) 2022-11-22 20:01:16 +08:00
Richard Shiue
a8dc55b4f3
chore: use theme.of(context) text theme in settings and around app (#1466)
* chore: use theme.of(context) text theme in settings and around app

* chore: add textDecoration to FlowyText
2022-11-22 20:00:21 +08:00
Richard Shiue
67a253c9c7
fix: fix colors for buttons and allow more customization (#1465) 2022-11-21 08:23:37 +08:00
Richard Shiue
dcf6628aa3
feat: add divider between sidebar and the page (#1450) 2022-11-19 19:05:09 +08:00
Richard Shiue
81bc31d1b1
chore: use theme.of(context) text theme in FlowyText (#1463) 2022-11-19 17:53:30 +08:00
Richard Shiue
d7f14db6ab
chore: use theme.of(context) text theme in board (#1453) 2022-11-17 16:48:48 +08:00
Nathan.fooo
fc10ee2d6b
Fix filter test (#1459)
* chore: move grid_view_editor.rs to view_editor folder

* chore: hide invisible rows

* fix: lock issue

* fix: flutter test potential failed

* chore: separate group tests

Co-authored-by: nathan <nathan@appflowy.io>
2022-11-17 16:44:17 +08:00
Richard Shiue
f00a78746e
chore: add textTheme to AppTheme (#1448)
* chore: add textTheme to AppTheme

* chore: extend scaled font size options

* chore: add text styles to extension and rename extension to AFThemeExtension

* chore: use 2021 material design text style tokens
2022-11-17 15:28:57 +08:00
Richard Shiue
eb35fb25af
feat: initial steps to allow changing the app font (#1433)
* feat: initial steps to allow customizing app font

* chore: remove unnecessary factory constructor
2022-11-16 14:40:30 +08:00
Nathan.fooo
276df8202a
Merge pull request #1456 from AppFlowy-IO/filter_bloc
Add Filter bloc
2022-11-16 08:50:03 +08:00
nathan
0ee27097ce chore: add fitler bloc test 2022-11-15 23:17:01 +08:00
nathan
f1ac38dd59 chore: add filter service 2022-11-15 13:04:30 +08:00
Richard Shiue
66ed712952
feat: Add new page icon and refactor (#1449)
* refactor: port to popover action list for add new page

* feat: add icons to menu items for add new page

* chore: change translation for Doc to Document

Co-authored-by: nathan <nathan@appflowy.io>
2022-11-15 11:45:23 +08:00
nathan
3dddd907b0 chore: create filter bloc 2022-11-15 11:12:30 +08:00
nathan
1ee1f9c775 chore: fix ref 2022-11-15 10:46:26 +08:00
nathan
400220a312 chore: rename doc folder to document 2022-11-15 10:22:35 +08:00
Nathan.fooo
c3a41ba9ad
Merge pull request #1452 from AppFlowy-IO/feat/filter_date
Feat/filter date
2022-11-14 17:38:43 +08:00
Richard Shiue
aaadab434c fix: use surface color of colorscheme as editor's background color 2022-11-14 15:31:39 +08:00
appflowy
0e137f12f5 chore: date with utc 2022-11-14 12:03:22 +08:00
appflowy
6aba344583 chore: rename some pb structs 2022-11-14 09:59:23 +08:00
Onyedika Israel Ukwueze
a1e0282df0
fix: NetworkType null safety issues (#1435)
* fix: Networktype null safety issues

Networktype returns nulls when the connectivity result is vpn resulting to null safety issues.
Implemented a case for when the connectivity result is vpn to resolve this issue.

* chore: update connectivity_plus_platform_interface ^1.2.2

* chore: update network state on Rust side

Co-authored-by: Lucas.Xu <lucas.xu@appflowy.io>
2022-11-13 11:57:47 +08:00
Nathan.fooo
dd1dcba599
chore: return user setting (#1438) 2022-11-11 17:24:10 +08:00
Richard Shiue
5b4a93ee34
test: split test into widget and unit test (#1432) 2022-11-11 12:42:20 +08:00
Nathan.fooo
f426745094
fix: await the cell dispose (#1437) 2022-11-11 12:41:53 +08:00
Nathan.fooo
840095d73c
fix: create grid for each test (#1431) 2022-11-10 20:22:37 +08:00
Richard Shiue
bbd64fae81
refactor: appflowy theme system pt. 1 (#1407)
* refactor: port theme provider to bloc

* refactor: port from custom theme type enum to material design's brightness

* chore: add custom color extension to ThemeData

* refactor: use Theme.of(context) when trying to get theme colors

* refactor: toggle widget code refactor

* refactor: flowy hover style refactor

* refactor: flowy icon refactor

* fix: regression on sidebar tooltip text from #1210

* chore: read color from theme.of

* chore: quick access to custom color

* fix: dart test

* fix: scrollbar regression

* chore: fix flutter lint

* chore: fix grid bloc test

Co-authored-by: appflowy <annie@appflowy.io>
2022-11-10 14:22:18 +08:00
Nathan.fooo
42c2c4738a
chore: remove flutter quill (#1426) 2022-11-09 11:07:29 +08:00
Lucas.Xu
cdf6f1b38a
Merge pull request #1424 from LucasXu0/markdown
Implement appflowy editor document to markdown
2022-11-09 09:50:15 +08:00
Lucas.Xu
eb7356474c feat: integate appflowy_editor markdown codec into appflowy 2022-11-08 21:43:51 +08:00
Lucas.Xu
76d1267aa5 feat: remove the codec code from main project 2022-11-08 21:36:51 +08:00
Lucas.Xu
506f789318 chore: set theme.surface as editor's background color 2022-11-08 10:00:28 +08:00
Nathan.fooo
20f527f4eb
Merge pull request #1384 from Cyrine-benabid/fix-option_button_doesnt-close_popover
Close popover on text field tap
2022-11-07 17:36:44 +08:00
cyrine-benabid
9c8d00bb61
fix: request focus when InputTextField is added (#1394)
* fix request focus when InputTextField is added

* style: fix indentation
2022-11-01 20:56:42 +08:00
Cyrine-benabid
c7d8a0b7c3 refactor: remove useless popoverMutex from _AddOptionButton widget 2022-10-31 06:48:28 +01:00
Cyrine-benabid
286c89bf74 refactor: remove useless onTap and don't pass popovermutex when not needed 2022-10-30 20:30:38 +01:00
Cyrine-benabid
339e3d242f style: rename class and fix constructor 2022-10-30 20:20:13 +01:00
Cyrine-benabid
fad02eb09d fix: remove useless onTap 2022-10-30 20:19:20 +01:00
Cyrine-benabid
8f1752a253 fix: add missing super.initState() call 2022-10-30 19:30:56 +01:00