1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 13:57:10 +09:00
Commit graph

89 commits

Author SHA1 Message Date
Evgenii Kozlov
ab1b602176
Integrate page icon picker (#280) 2020-03-10 17:41:25 +03:00
Evgenii Kozlov
cb734d5b86
Download files on phone (#277) 2020-03-05 17:53:18 +03:00
ubu
37f355bee6 Test fixes 2020-03-02 22:29:41 +03:00
Evgenii Kozlov
5fb40987f2
Feature/render file and picture blocks (#272) 2020-02-28 18:57:52 +03:00
Evgenii Kozlov
24a08e1029
Carriage positioning while splitting or merging blocks (#248) 2020-02-22 18:57:21 +03:00
Evgenii Kozlov
d4c3454c0d
Refact/event and focusing (#249) 2020-02-22 15:03:34 +03:00
Evgenii Kozlov
14984cc923
Background color for the whole block (#247) 2020-02-22 14:40:11 +03:00
ubu
b58c743bed Hot fix. 2020-02-22 14:37:07 +03:00
Konstantin Ivanov
ee1884941c
Editor | Allow users to add divider block (#246)
* IS-234 add divider block to data and middleware

* IS-234 add block divider to domain and presentation

* IS-234, other toolbar clicks

* IS-234 divider block, update middleware, data and domain

* IS-234 divider block, ui + clicks

* IS-234 before pr fixes

* IS-234 update messages

* IS-234, refactor option other click

* IS-234, send focused block id
2020-02-22 14:17:11 +03:00
Evgenii Kozlov
5362dd9c67
Editor | Hide option toolbars when system opens virtual keyboard on focus (#242) 2020-02-19 22:56:26 +03:00
Evgenii Kozlov
45ae415410
Navigation | Create a new page on home dashboard by pressing plus button on page screen (#213) 2020-02-19 21:20:45 +03:00
Evgenii Kozlov
92beaef03f
Sub-page navigation (naive implementation) (#236) 2020-02-18 22:26:29 +03:00
Evgenii Kozlov
cb46fbe10e
Editor | Split the target block on enter-key-pressed event (#230) 2020-02-18 22:14:13 +03:00
Evgenii Kozlov
277d7ba983
Update Middleware lib to 0.4.0 (#237) 2020-02-18 16:57:46 +03:00
Konstantin Ivanov
f5578e20b3
UI tests for editor/page (#222)
* IS-208, make use cases open
* IS-208, add mocks for blocks
* IS-208, update classes to work with test cases
* IS-208, turn off legacy test
* IS-208, add page fragment tests + test case fragment instance
2020-02-17 13:45:08 +03:00
Evgenii Kozlov
937ad753a0
Create a page inside a page (#216)
* Creating a new paragraph on outside-clicked event if the last block is a page block.
2020-02-13 21:18:12 +03:00
Evgenii Kozlov
1d0431d658
Numbered list (#217) 2020-02-13 20:56:06 +03:00
Evgenii Kozlov
1473e43d14
Fix/block diff util for page title (#211) 2020-02-11 02:04:54 +03:00
Evgenii Kozlov
5b95785b6e
Fix data races when creating a new list item (#210)
* Fixed

* Fixed
2020-02-11 01:11:33 +03:00
Evgenii Kozlov
9a919a1c77
Merge blocks on backspace-pressed event (#202)
* Added block merge request
* Parsing marks as a part of granular changes
2020-02-10 18:40:56 +03:00
Evgenii Kozlov
b751c61f06
Turn a list item into a paragraph on empty-block-enter-pressed event (#207) 2020-02-10 18:16:45 +03:00
Evgenii Kozlov
48159c24af Refactor event handler (#201) 2020-02-08 23:28:08 +03:00
Konstantin Ivanov
7ed1181533
Keyboard markup (#203) 2020-02-08 23:16:14 +03:00
Evgenii Kozlov
fdfd8a488f
Refactor BlockViewDiffUtil (#190) 2020-02-05 18:16:56 +03:00
Evgenii Kozlov
52204ba096
Fix | Page title changes are no longer saved after user pressed backspace on empty page title block (#185)
* Decreased debounce value for text changes
2020-02-03 13:53:14 +03:00
Evgenii Kozlov
3248f5a394
Control panel state fixes (#184) 2020-02-02 23:41:09 +03:00
Evgenii Kozlov
e8d03be227
Only show pages on home dashboard screen (exclude data-view blocks) (#179) 2020-02-02 21:32:08 +03:00
Konstantin Ivanov
959d4dce5a
(WIP) Feature/issue 111 text highlight (#172)
* IS-111 add background color span

* IS-111 add background colors click

* IS-111 update page view and view model with background color

* IS-111 convert background color to middleware

* IS-111 add back color to mapper

* IS-111 fix cursor visibility bug

* IS-111 fix when for color toolbar clicks

* IS-111 set links clickable in checkbox and bulleted

* IS-111 show toast when click on link

* IS-111 add block link clicking when markup changed

* IS-111 pr fixes

* IS-fix fix readd background text color

* IS-111 turn off link clicks

* IS-111 rename

* IS-111 update tests

* IS-111 remove JvmOverload
2020-02-02 18:38:52 +03:00
Evgenii Kozlov
132f88911a
Integrate Middleware 0.2.0 (#173) 2020-02-01 19:45:06 +03:00
Evgenii Kozlov
46a96e23ff
Fix/markup is broken when user splits the range (#170) 2020-02-01 14:43:54 +03:00
ubu
96451d132b
Handle enter-pressed event for list blocks (#166) 2020-01-29 21:14:27 +03:00
konstantiniiv
724455f96e HOTFIX fix tests 2020-01-29 19:31:17 +03:00
Konstantin Ivanov
ac0d64f8ab
(ISSUE-112) Link/unlink text (#158)
* IS-112 update package

* IS-112 add base classes

* IS-112 add link design

* IS-112 add link, navigation

* IS-112 add link, di

* IS-112 add link as mark type

* IS-112 link di

* IS-112, link navigation

* IS-112, add link click to page

* IS-112, add ext funcs + tests

* IS-112, link, view + viewmodel

* IS-112 add link span

* IS-112 send url link to page + send to middleware

* IS-112 update navigation with Link model

* IS-112 share link view model between page and link fragment

* IS-112 add linkfy to edit widget

* IS-112 map to link on click

* IS-112 use parcelize in module

* IS-112 add block markup extension funcs + tests

* IS-112 send url from link markup

* IS-112 remove link model

* IS-112 use link view model as shared state

* IS-112 add unlink usecase

* IS-112 update link di

* IS-112 add update link marks use case + tests

* IS-112 add can unlink text use case + tests

* IS-112 use listener for fragment navigation

* IS-112 link view model logic update

* IS-112 page view model update

* IS-112 add remove link mark use case + tests

* IS-112 update di

* IS-112 add unlink logic + fix link

* IS-112 fix after merge

* IS-112 rerender blocks after link/unlink

* IS-112 fix range

* IS-112 fix link

* IS-112 remove link from nav graph

* IS-112 code style fixes

* IS-112 code style fixes

* IS-112 after PR fixes
2020-01-29 19:10:55 +03:00
ubu
a4e7f5480b
Color toolbar for the whole target block (#157) 2020-01-29 14:33:51 +03:00
ubu
eb53e031fb
Fix (#150) 2020-01-27 15:21:38 +03:00
ubu
06556571e7
Turn-into toolbar (#145) 2020-01-26 20:24:06 +03:00
ubu
e06a6a8f04
Handle focus states (#135) 2020-01-22 18:10:24 +03:00
ubu
f4209d535c
Refactor event handler (#143) 2020-01-22 16:33:38 +03:00
ubu
2fb3c791b8
Add test for PageViewModel (#131) 2020-01-20 15:41:47 +03:00
ubu
dcdca206d4
Delete target block when user presses backspace inside an empty block (#130) 2020-01-20 14:13:35 +03:00
ubu
b57fdf625e
Create new paragraph on enter-press event at the end of the line (#129) 2020-01-19 16:36:13 +03:00
ubu
1fc874138f
Create only one block when clicked on empty space (#128) 2020-01-18 19:19:37 +03:00
ubu
ecf7524a3f
Create empty block when user clicks on empty space (#126) 2020-01-18 17:33:06 +03:00
ubu
25a47effda
Enter and backspace key detectors (#127) 2020-01-18 16:57:38 +03:00
ubu
d5864a0d6d
Wire action toolbar with middleware (#115)
* Implemented block duplication
* Focusing new paragraph when created
* Refactored tests, also added new tests for block deletion operations
2020-01-17 20:09:12 +03:00
ubu
bfec063621
Enable adding checkbox and bulleted-list blocks (#108) 2020-01-14 20:29:21 +03:00
ubu
936ba008bd
Wire add-block panel with middleware (#101)
* Created prototype model
* Refactored command for block creation
* Added hints for text input widgets
2019-12-30 17:58:29 +03:00
ubu
335be21fdd
Enable text color markup (#93)
* Added textColor markup
* Added ControlPanelInteractor
* Added tests and documentation
2019-12-26 19:45:36 +03:00
Konstantin Ivanov
e7111d6df0
Databaseview modal screens (#55)
* contacts view, main classes
* add contacts navigation
* contacts ui + presentation
* contacts domain + di
* contact tags, adapter + view
* add item decorator, drawable + ext func to core-ui
* contacts, update ui + mappers
* contacts. update domain + add extension date func
* contacts, presentation + domain
* contacts ui
* update gradle settings
* add filters logic
* contacts, ui + presentation

* filters deign

* contacts di + ext

* before pr fixes

* show contacts on desktop screen

* add gitignore

* filter logic, presentation

* filter logic, domain

* filter logic, ui

* filters refactoring

* after develop merge fixes

* modals add view, design + ui

* modal screens, add view + edit view

* modal screens, switch view + customize

* modal screen, properties

* modals, properties

* modal screens, properties reorder design

* modal screens, properties edit

* modal add view, navigation

* move dimens and strings to core-ui

* modal add view, design + ui + presentation

* modal add view, separate views

* add display view, presentation, use case + di

* databaseView, add default config

* add view display, hide icon

* add base bottom sheet fragment

* add android extension functions

* add todo to widget

* add display view, ui

* add display view, add navigation

* add display view, show result

* edit database, domain

* edit database, presentation

* edit database, ui + di

* edit database, navigation

* switch view, presentation + domain

* switch view, ui + di

* switch view, navigation

* customize view, presentation

* customize view, ui + di

* customize view, navigation

* domain, add groups

* custom view, design fix

* fix modal navigation + add safe args

* database view, add repo + update use cases

* database view, update di

* database mock repo update

* database domain, change view type, update mocks and models

* database presentation, fix switch and customize navigation

* database ui, contact fragment as parent for switch and customize scxreens

* switch and customize, update di

* add library-kanban-widget

* add kanban ui

* add kanban design

* add kanban domain logic

* add kanban presentation logic

* kanban, unit tests

* kanban, dimens + android util class

* gradle, add kanban

* set back states for dragItemAdapter

* fix navigation for demo

* demo, update kanban, contact mocks and models

* fix packages

* add graphik font

* demo, add test icon

* remove legacy help class, add android ext

* demo, fix design

* demo, update kanban and contacts ui

* Added goals fragment

* Added goals screen

* Enabled checkbox

* fix fab black tint

* add background color for tag

* add emoji for dashboard view

* some demo design fixes

* add demo docs

* add properties fragment + viewmodel

* some fixes

* modal properties, design

* modal properties, di

* rename model Account -> Person

* helper class, recycler item click

* properties, update di

* properties, add view holders

* recycler item click support

* properties, ui + design

* properties, navigate from customize screen

* properties, add view holders

* properties, number

* properties, date

* properties, icons + strings

* properties, multiple

* <?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    xmlns:app="http://schemas.android.com/apk/res-auto">

    <ImageView
        android:id="@+id/iconFile"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="@dimen/modal_property_margin_start"
        android:layout_marginTop="@dimen/modal_property_margin_top"
        android:layout_marginBottom="@dimen/modal_property_margin_bottom"
        android:contentDescription="@string/content_description_modal_icon"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:srcCompat="@drawable/ic_multiselect" />

    <TextView
        android:id="@+id/textFile"
        style="@style/ModalRowTestStyle"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="@dimen/modal_property_text_from_icon_margin"
        android:text="@string/prop_multiple"
        app:layout_constraintBottom_toBottomOf="@+id/iconFile"
        app:layout_constraintStart_toEndOf="@+id/iconFile"
        app:layout_constraintTop_toTopOf="@+id/iconFile" />

    <ImageView
        android:id="@+id/iconForward"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginEnd="@dimen/modal_property_margin_end"
        android:contentDescription="@string/content_description_modal_icon"
        app:layout_constraintBottom_toBottomOf="@+id/textFile"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toTopOf="@+id/textFile"
        app:srcCompat="@drawable/ic_arrow_forward" />

    <ImageView
        android:id="@+id/hideFile"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginEnd="@dimen/modal_property_hide_forward_margin"
        android:contentDescription="@string/content_description_modal_icon"
        app:layout_constraintBottom_toBottomOf="@+id/iconForward"
        app:layout_constraintEnd_toStartOf="@+id/iconForward"
        app:layout_constraintTop_toTopOf="@+id/iconForward"
        app:srcCompat="@drawable/ic_hide" />

property, file

* property, checkbox

* property, url

* property, phone

* property, update adapter

* property, rename models

* property, add new

* properties, design fix

* properties, add navigation, back, update disign

* property edit, view model

* property edit, di

* property edit, ui

* property, view model

* update database mock + add view extension

* details view, update view holders

* rename Properties -> Details + lot of fixes

* details, update xmls

* add show param to Properties

* update main component

* add view extension func

* details, update add new view holder

* detail edit, di + presentation + ui

* details, fix module name

* contacts, add detail edit navigation

* detail edit, fix ui

* detail edit, add navigation + show/hide

* detail edit, ui refactoring

* detail edit, add clicks

* detail edit, add delete detail

* detail edit, add hide detail

* detail edit, add duplicate

* hide detail test

* detail items, add drag'n'drop icon

* detail items, update viewholders

* details reorder, presentation + di

* details reorder, ui

* details reorder, navigation

* details adapter, add drag flag

* details reorder, add drag and drop

* details reorder, add swap logic

* database ui, update package

* database modals ui , update packages

* database table ui, package update

* database kanban ui, package update

* database ui, list board, tags

* database ui, rename view models and layouts

* database presentation, rename classes

* database presentation, move class

* database domain. rename property -> detail

* database ui, rename database view

* database domain, rename displayView -> display

* remove legacy

* rename display view -> display

* rename contact view -> list item

* fixes

* Squashed commit of the following:

commit 23f2ce74cc
Author: ubu <ubuphobos@gmail.com>
Date:   Sat Dec 21 20:24:52 2019 +0300
    Release commit: 0.0.13
commit aceba09990
Author: ubu <ubuphobos@gmail.com>
Date:   Sat Dec 21 17:08:39 2019 +0300

* fix event -> event wrapper

* remove duplicate

* update contacts package

* rename display view

Co-authored-by: ubu <ubuphobos@gmail.com>
2019-12-26 18:12:08 +03:00
ubu
693912fed6
Undo markup actions and handle markup overlapping (#92) 2019-12-25 00:45:01 +03:00