f9aa7b52f8
feat: switch to matrix.test.mystiq.app
ci/woodpecker/push/woodpecker Pipeline was successful
2022-08-19 17:41:05 +05:30
2e54866353
fix: submit path
ci/woodpecker/push/woodpecker Pipeline was successful
2022-08-18 17:51:23 +05:30
ce075eb32b
feat: set custom homeserver and bugreport endpoint
ci/woodpecker/push/woodpecker Pipeline was successful
2022-08-18 17:41:24 +05:30
02a50a19cb
feat: add ci badge
ci/woodpecker/push/woodpecker Pipeline was successful
2022-08-16 17:25:37 +05:30
a33d9981bd
fix: secrets
ci/woodpecker/push/woodpecker Pipeline was successful
2022-08-16 17:05:59 +05:30
8335a50308
feat: switch to python, debian doesn't have make installed by default
ci/woodpecker/push/woodpecker Pipeline failed
2022-08-16 17:02:10 +05:30
ee9e73d8c7
fix: use debian latest img to get git with git branch --show-current
ci/woodpecker/push/woodpecker Pipeline failed
2022-08-16 16:59:15 +05:30
63f77feb7b
fix: set project root
ci/woodpecker/push/woodpecker Pipeline failed
2022-08-16 16:55:52 +05:30
04de39596f
feat: bump ci node to 16
ci/woodpecker/push/woodpecker Pipeline failed
2022-08-16 16:52:22 +05:30
25b634bb78
fix: use same tests as github actions
ci/woodpecker/push/woodpecker Pipeline failed
2022-08-16 16:47:23 +05:30
96c9ea8de7
fix: use node 14, same as github actions config
ci/woodpecker/push/woodpecker Pipeline failed
2022-08-16 16:44:15 +05:30
d80e970117
feat: conditional deploy pipeline
ci/woodpecker/push/woodpecker Pipeline failed
2022-08-16 16:38:53 +05:30
6db5f34ac2
feat: multi-pipeline workflow
2022-08-16 16:36:05 +05:30
df0000783d
feat: deploy to librepages
ci/woodpecker/push/woodpecker Pipeline failed
2022-08-16 16:14:27 +05:30
Bruno Windels
c898bcb46a
release v0.3.1
2022-08-02 12:16:55 +02:00
Bruno Windels
97391663d3
sdk version 0.1.0
2022-08-01 14:32:26 +02:00
R Midhun Suresh
7d3f22c106
Merge pull request #824 from vector-im/fix-dev-server-1
...
Fix develop server breaking due to import syntax
2022-08-01 17:29:52 +05:30
RMidhunSuresh
832597447a
Add explaining doc
2022-08-01 17:01:36 +05:30
RMidhunSuresh
236a4ab49b
Ignore error
2022-08-01 17:01:36 +05:30
RMidhunSuresh
ba8cdea6b4
Use default import if other not found
2022-08-01 17:01:36 +05:30
RMidhunSuresh
ef9f90bc36
Fix imports breaking on dev
2022-08-01 17:01:36 +05:30
R Midhun Suresh
67e94bd642
Merge pull request #825 from vector-im/fix-sdk-fail-1
...
Fix sdk build failing after derived theme implementation
2022-08-01 16:17:09 +05:30
R Midhun Suresh
f7839135a4
Merge pull request #823 from vector-im/fix-tmp-dir
...
Fix .tmp being created in `/`
2022-08-01 16:16:35 +05:30
RMidhunSuresh
4571ecd851
Specify theme as array
2022-07-29 23:45:58 +05:30
RMidhunSuresh
5091090795
Produce .tmp directory within root
2022-07-29 23:11:17 +05:30
Bruno Windels
db2b4e693c
release v0.3.0
2022-07-29 17:10:24 +02:00
Bruno Windels
eee8412621
Merge pull request #822 from vector-im/bwindels/move-runtime-theme-test-out-of-root
...
move semi-automatic test for runtime themes into dedicated directory
2022-07-29 15:00:34 +00:00
Bruno Windels
5e83eca3b9
move semi-automatic test for runtime themes into dedicated directory
2022-07-29 16:43:28 +02:00
Bruno Windels
041e628520
Merge pull request #769 from vector-im/implement-derived-theme
...
Support for derived themes
2022-07-29 14:25:05 +00:00
Bruno Windels
4838e19c92
Merge pull request #811 from vector-im/bwindels/sharekeyswithinvitees
...
Key sharing based on room history visibility
2022-07-29 14:23:26 +00:00
Bruno Windels
cb0ac846c7
remove obsolete comment
2022-07-29 16:22:01 +02:00
Bruno Windels
b40ce6137e
Merge pull request #676 from vector-im/ts-conversion-domain-navigation
...
Convert /domain/navigation to typescript
2022-07-29 14:21:17 +00:00
Bruno Windels
fdefea5b88
Merge branch 'master' into ts-conversion-domain-navigation
2022-07-29 16:18:22 +02:00
RMidhunSuresh
39817dc36b
Revert back option
2022-07-29 17:33:33 +05:30
RMidhunSuresh
708637e390
No need for this complex resolve
2022-07-29 16:45:25 +05:30
Bruno Windels
b6f795505d
fix lint
2022-07-29 12:21:16 +02:00
Bruno Windels
10522cacef
Merge pull request #813 from vector-im/doc-derived-theming
...
[Documentation] - Add information about derived themes to doc
2022-07-29 10:16:41 +00:00
Bruno Windels
02116103a1
Merge pull request #816 from Kaki-In/restore_last
...
Opening the last opened room at start
2022-07-29 10:16:23 +00:00
Bruno Windels
06da5a8ae4
clarification
2022-07-29 10:14:58 +00:00
Bruno Windels
02bc7d1d7e
fix typo
2022-07-29 10:14:41 +00:00
Kaki In
09bc77073b
Merge branch 'vector-im:master' into restore_last
2022-07-29 12:06:49 +02:00
Bruno Windels
4a2e14925a
Merge pull request #812 from vector-im/doc-config
...
[Documentation] - Add type for config options
2022-07-29 10:05:27 +00:00
Bruno Windels
224ab2672a
Merge pull request #809 from Kaki-In/implement-join
...
Implemented /join
2022-07-29 10:03:18 +00:00
Bruno Windels
170460f5a9
add link to sygnal webpush docs as well
2022-07-29 12:02:09 +02:00
Bruno Windels
2a5e0302dc
Merge pull request #785 from vector-im/hs/log-when-storage-access-fails
...
Log the error when we can't get storage access
2022-07-29 09:47:58 +00:00
Kaki In
f512bfcfc1
Pretty syntaxed the RoomViewModel
2022-07-29 11:47:47 +02:00
Half-Shot
5b5c852401
Revert "use logging items"
...
This reverts commit d937b9b14b
.
2022-07-29 10:44:37 +01:00
Kaki In
58a2d1f34c
Restored the common.js indentation
2022-07-29 11:44:23 +02:00
Half-Shot
d937b9b14b
use logging items
2022-07-29 10:39:41 +01:00
Bruno Windels
d3e93196e3
Merge pull request #777 from ibeckermayer/ibeckermayer/ts-conversion-loginviewmodel
...
TS conversion for `LoginViewModel`
2022-07-29 09:27:10 +00:00
Bruno Windels
62b3a67e33
write unit tests for correctly reading history visibility when needed
2022-07-28 17:09:41 +02:00
Bruno Windels
319ec37864
fix typos preventing to load the history visibility
2022-07-28 11:44:50 +02:00
Kaki In
f5dacb4e42
Fixed last check
2022-07-28 10:26:59 +02:00
Kaki In
302131c447
Review last checks
2022-07-28 10:14:21 +02:00
Kaki In
fb79326747
Forgot one change
2022-07-28 09:26:08 +02:00
Kaki In
3c64f7d49b
Finals checks about https://github.com/vector-im/hydrogen-web/pull/809#pullrequestreview-1053501341
...
- joined the processJoinRoom and joinRoom methods;
- fixed some precisions miss;
- removed some useless code;
- change the error message height from absolute (40px) to relative (auto)
2022-07-28 09:23:30 +02:00
Isaiah Becker-Mayer
a82df95b82
marking private methods as such
2022-07-27 22:09:30 -07:00
Isaiah Becker-Mayer
cadca70946
fixes linter errors and removes some unneeded async/await
2022-07-27 22:09:30 -07:00
Isaiah Becker-Mayer
8b91d8fac8
adds newline
2022-07-27 22:09:30 -07:00
Isaiah Becker-Mayer
a5b9cb6b95
removes unnecessary awaits
2022-07-27 22:09:30 -07:00
Isaiah Becker-Mayer
aeed978789
changes signature of emitChange to require changedProps
2022-07-27 22:09:30 -07:00
Isaiah Becker-Mayer
7b7b19476c
updates some signatures to be more verbose, fixes wrong type for attemptLogin
2022-07-27 22:09:30 -07:00
Isaiah Becker-Mayer
ad0bd82bda
creating default exports
2022-07-27 22:09:30 -07:00
Isaiah Becker-Mayer
d7657dcc4d
first draft of fully typescriptified LoginViewModel.ts
2022-07-27 22:09:30 -07:00
Kaki In
176caf340f
Placed the join command outside of the processCommand method
2022-07-27 16:42:44 +02:00
Kaki In
a40bb59dc0
Some fixes :
...
- fixed a pretty syntax miss (a !== b);
- fixed a type error : replaced "msgtype" by "type" when instantied the "messinfo" variable;
- some indentation fixes
2022-07-27 16:36:58 +02:00
Kaki In
ab64ce02b2
Separated the _processCommand and the joinRoom command
...
- renamed executeJoinCommand as joinRoom;
- separated the joinRoom process and the parse and result process
2022-07-27 15:18:32 +02:00
Kaki In
2d3b6fe973
Canceled indentation modification.
2022-07-27 12:40:19 +02:00
Kaki In
550b9db4dc
Separated the join instructions into a executeJoinCommand method
2022-07-27 12:21:00 +02:00
Bruno Windels
0df66b5aea
track room before listing user ids when sharing key
2022-07-27 12:06:55 +02:00
Bruno Windels
f18520a2fe
let loadMembers use own txn in case members haven't been fetched yet
...
if they haven't, it will need a network request, meaning that the txn
will get closed, so we can't reuse it afterwards
2022-07-27 11:39:50 +02:00
Bruno Windels
50b6ee91d7
don't need history visibility here
2022-07-27 11:39:36 +02:00
Kaki In
9b0ab0c8f1
Used "null" instead of "undefined"
...
When creating the this._lastSessionHash attribute of History
2022-07-27 09:19:36 +02:00
Bruno Windels
402cf17d22
Merge branch 'master' into bwindels/sharekeyswithinvitees
2022-07-27 09:17:31 +02:00
Bruno Windels
bfaba63f47
fix ts error
2022-07-26 17:55:21 +02:00
Bruno Windels
544afef902
test adding and removing when tracking multiple rooms
2022-07-26 17:41:26 +02:00
Bruno Windels
dd878bb8d6
also take rejecting invites into account to remove user identity
2022-07-26 16:58:07 +02:00
Bruno Windels
dea3852425
add some tests for sharing keys with invitees
2022-07-26 16:57:28 +02:00
Bruno Windels
4c17612b05
allow passing txn to loadMembers so we can do it as part of sync txn
...
to rewrite useridentities upon receiving new history visibility
2022-07-26 16:53:02 +02:00
Kaki In
f9f49b7640
Fixed an error and improving css
...
If the /join command success, an error was thrown, because of a copy-pasted command not well integrated
The button of the error on "theme.css" contains now an unicode cross. The :after/:before cross was disformed when opening the room informations.
2022-07-26 14:48:03 +02:00
Kaki In
0718f1e77e
Fixed the https://github.com/vector-im/hydrogen-web/pull/816#discussion_r929692693 comment
...
Added the _lastSessionHash attribute inside the History constructor
2022-07-26 11:11:16 +02:00
Kaki In
09fd1a5113
Use "args.join" instead of "message.substring"
...
into RoomViewModel._processCommands
2022-07-26 10:37:05 +02:00
Kaki In
832b840a15
Merge remote-tracking branch 'origin' into restore_last
2022-07-26 10:06:31 +02:00
Kaki In
adfecf0778
Fix restoring the last url at start
...
The last session url is now remembered for being restored at the beginning of the session. Thanks for the help of @bwindels
2022-07-26 10:02:20 +02:00
Kaki In
5fa6793958
Merge branch 'vector-im:master' into implement-join
2022-07-25 16:30:50 +02:00
Kaki In
1e5179f835
- Application des différents commentaires du Pull Request ( #809 )
...
- Correction des erreurs d'indentations.
2022-07-25 15:22:06 +02:00
Bruno Windels
bc385e2cdc
Merge pull request #778 from vector-im/bwindels/uidocs
...
more detailed docs for IView, TemplateView and ListView
2022-07-25 13:02:22 +00:00
Kaki In
0bf021ea87
The room is now joined after having actualised the rooms list, to avoid the synchronisations waits that can sometimes disable to enter the room (message "You're not into this room" or simply "You're not in this room yet. *Join the room*")
2022-07-25 13:37:03 +02:00
RMidhunSuresh
fdd60a7516
Add documentation for derived themes
2022-07-25 11:38:50 +05:30
RMidhunSuresh
63bdbee39c
Make optional fields optional
2022-07-25 11:33:22 +05:30
RMidhunSuresh
8a976861fb
Add type
2022-07-25 11:31:14 +05:30
Bruno Windels
a23df8a545
pass history visibility to device tracker
...
and delegate adding and removing members to share keys with to it
2022-07-22 17:49:59 +02:00
Bruno Windels
17f42f523a
add write method for when history visibility changes
...
also returning added and removed user ids
2022-07-22 17:49:26 +02:00
Bruno Windels
f6011f3f34
take history visibility into account in device tracker
...
and return added and removed userids to their userIdentity for the given
room, so room encryption can share and discard the keys for them
2022-07-22 17:48:26 +02:00
Bruno Windels
86c0e9e669
logic for whether a key should be shared by membership and h. visibility
2022-07-22 17:46:53 +02:00
Bruno Windels
f337940202
this migration shouldn't be needed anymore
...
and undoes the export of addRoomToIdentity, which is somewhat internal
2022-07-22 17:46:29 +02:00
Kaki In
b7fd22c7f9
SyntaxError fixed
2022-07-22 17:10:29 +02:00
Kaki In
66a59e6f4d
Error of interpretation of the 403 status at the last update. Fixed
2022-07-22 17:09:43 +02:00
Kaki In
e345d0b33e
Added the 403 status when joining an unknown room
2022-07-22 17:06:09 +02:00
Kaki In
be8962cec2
Fixed priority operations when checking request status
2022-07-22 16:59:48 +02:00
Kaki In
8b39346409
The error message can now be closed
2022-07-22 16:34:52 +02:00
Kaki In
fb58d9c9ef
Corrected some syntax dismiss
2022-07-22 16:08:53 +02:00
Bruno Windels
22831e710c
support async callback in iterateResponseStateEvents
2022-07-22 14:15:26 +02:00
Kaki In
faa8cae532
Added the possibility to join a room using /join (also added the global commands uses, and some others commands like /shrug .)
2022-07-21 13:55:23 +02:00
RMidhunSuresh
8d766ac504
Remove await within loop
2022-07-21 12:05:10 +05:30
Bruno Windels
c8a8eb10b5
get user ids for sharing a new key when the message is sent
...
rather than when the key happens to get sent
2022-07-20 15:21:33 +02:00
Bruno Windels
d79e5f7806
create key share operations for invitees when history visibility=invited
2022-07-20 15:20:23 +02:00
RMidhunSuresh
7feaa479c0
Typescript update to support .mjs files
2022-07-20 15:55:11 +05:30
RMidhunSuresh
1456e308a8
Add type and fix formatting
2022-07-20 15:36:02 +05:30
RMidhunSuresh
313e65e00c
Write tests
2022-07-20 12:30:41 +05:30
RMidhunSuresh
612b878793
Update theme name
2022-07-19 21:21:35 +05:30
RMidhunSuresh
8aa96e8031
Update log label
2022-07-19 21:19:22 +05:30
RMidhunSuresh
7ac2c7c7fa
Get tests to work
2022-07-19 21:06:55 +05:30
RMidhunSuresh
de02456641
Add explaining comment
2022-07-19 19:46:36 +05:30
RMidhunSuresh
994667205f
Remove change
2022-07-19 19:38:36 +05:30
RMidhunSuresh
ecb3a66dfc
WIP
2022-07-19 17:56:08 +05:30
RMidhunSuresh
e1ee258630
Change path
2022-07-19 17:56:08 +05:30
RMidhunSuresh
83b5d3b68e
Change directory name
2022-07-19 17:56:08 +05:30
RMidhunSuresh
7a1591e0ce
Move code
2022-07-19 17:56:08 +05:30
RMidhunSuresh
07db5450b7
Aliases can also be derived
2022-07-19 17:56:08 +05:30
RMidhunSuresh
081de5afa8
.js --> .mjs
2022-07-19 17:56:08 +05:30
RMidhunSuresh
dece42dce3
Do not store all the manifests in memory
2022-07-19 17:56:08 +05:30
RMidhunSuresh
b29287c47e
await in loop --> Promise.all()
2022-07-19 17:56:08 +05:30
RMidhunSuresh
9bdf9c500b
Add return types
2022-07-19 17:56:08 +05:30
RMidhunSuresh
9e2d355573
Add logging
2022-07-19 17:56:08 +05:30
RMidhunSuresh
ce5db47708
Support using derived theme as default theme
2022-07-19 17:56:08 +05:30
RMidhunSuresh
da0a918c18
This code should only run once
2022-07-19 17:56:08 +05:30
RMidhunSuresh
043cc9f12c
Use ThemeManifest type
2022-07-19 17:56:08 +05:30
RMidhunSuresh
80fb953688
Don't fail on erros; expect the code to throw!
2022-07-19 17:56:08 +05:30
RMidhunSuresh
f15e23762a
Add more missing keys to type
2022-07-19 17:56:08 +05:30
RMidhunSuresh
f440457875
Use ThemeManifest type where possible
2022-07-19 17:56:08 +05:30
RMidhunSuresh
a8cab98666
Add mroe missing types
2022-07-19 17:56:08 +05:30
RMidhunSuresh
ac7be0c7a1
WIP
2022-07-19 17:56:08 +05:30
RMidhunSuresh
d731eab51c
Support fetching text
2022-07-19 17:56:08 +05:30
RMidhunSuresh
f7b302d34f
Don't optimzie colors
2022-07-19 17:56:08 +05:30
RMidhunSuresh
5ba74b1d75
Use script to copy over runtime theme after build
2022-07-19 17:56:08 +05:30
RMidhunSuresh
c5f4a75d4b
Split code so that it can be reused
2022-07-19 17:56:08 +05:30
RMidhunSuresh
2f3db89e0a
Let ts know that we can use replaceAll()
2022-07-19 17:56:08 +05:30
RMidhunSuresh
1ef382f3a9
Add gruvbox color scheme
2022-07-19 17:56:08 +05:30
RMidhunSuresh
161e29b36e
Use existing code
2022-07-19 17:56:08 +05:30
RMidhunSuresh
2947f9f6ff
Remove console.log
2022-07-19 17:56:08 +05:30
RMidhunSuresh
c873804543
produce asset hashed icons
2022-07-19 17:56:08 +05:30
RMidhunSuresh
43e8cc9e52
Add svgo for optimizing svgs as dev dependency
2022-07-19 17:56:08 +05:30
RMidhunSuresh
bf87ed7eae
Do not add variables to root for runtime theme
2022-07-19 17:56:08 +05:30
RMidhunSuresh
8c02541b69
WIP - 1
2022-07-19 17:56:08 +05:30
RMidhunSuresh
599e519f22
Convert color code to use es6 module
2022-07-19 17:56:08 +05:30
RMidhunSuresh
d5e24bf6e8
Convert color.js to color.mjs
2022-07-19 17:56:08 +05:30
Bruno Windels
bb5711db7e
Merge pull request #802 from vector-im/fix-dev-server
...
Fix bug that stops hydrogen from running in dev server
2022-07-19 10:22:36 +00:00
RMidhunSuresh
88808b0b06
Fix bug preventing yarn start
2022-07-19 15:50:01 +05:30
R Midhun Suresh
c9bca52e82
Merge pull request #760 from vector-im/refactor-rollup-plugin
...
Refactor theme builder plugin
2022-07-11 16:54:18 +05:30
RMidhunSuresh
6718198d9c
Continue with other items if this throws
2022-07-11 12:40:24 +05:30
Bruno Windels
7b9e681d55
sdk v0.0.15
2022-07-07 15:25:17 +02:00
R Midhun Suresh
8291aea2f7
Merge pull request #790 from vector-im/fix-hide-composer
...
Pass childOptions to LowPowerLevelViewModel
2022-07-07 18:19:08 +05:30
RMidhunSuresh
f073f40e31
Fix error
2022-07-07 18:16:33 +05:30
R Midhun Suresh
963324c767
Merge pull request #789 from vector-im/support-pl-room-creation
...
Support power_level_content_override option on room creation
2022-07-07 17:42:19 +05:30
R Midhun Suresh
eac75644e7
Merge pull request #788 from vector-im/pl-composer
...
Disable composer when user lacks powerlevel needed to send messages
2022-07-07 17:35:29 +05:30
RMidhunSuresh
0bdbb96036
Use same kind
2022-07-07 17:26:43 +05:30
RMidhunSuresh
d292e1f5ad
Extract into function
2022-07-07 17:23:23 +05:30
RMidhunSuresh
cd9e00b847
Support power_level_content_override
2022-07-07 17:17:05 +05:30
RMidhunSuresh
3941b7e3f0
Rename method
2022-07-07 16:45:18 +05:30
RMidhunSuresh
efd9f70e92
WIP
2022-07-07 16:39:45 +05:30
Isaiah Becker-Mayer
204948db64
changing filename to ts
2022-07-06 21:06:36 -04:00
Will Hunt
a85d2c96d6
Log the error when we can't get storage access
...
This is quite useful when debugging why a session isn't working properly.
2022-07-06 10:06:00 +01:00
R Midhun Suresh
28b686dae7
Merge pull request #784 from vector-im/fix-build-race
...
Fix build error caused due to race in postcss plugin
2022-07-05 20:13:57 +05:30
RMidhunSuresh
dd82469ab4
Don't assume object is available
2022-07-05 20:07:48 +05:30
Bruno Windels
3bf6a46a39
release sdk 0.0.14
2022-07-05 16:02:47 +02:00
Bruno Windels
e42e76a21c
Merge pull request #782 from vector-im/image-view-fix
...
Do not render images as links if lightboxUrl is empty
2022-07-05 14:00:53 +00:00
RMidhunSuresh
8ec0bd7295
Check if lightbox url is available
2022-07-05 17:55:51 +05:30
Bruno Windels
ff2129f36a
Merge pull request #773 from vector-im/madlittlemods/consistent-test-selector
...
Add a couple consistent selectors to reference in tests
2022-07-04 14:19:09 +00:00
Bruno Windels
1aa2ff5c10
Merge pull request #781 from vector-im/bwindels/fixlint-2022-7-4
...
fix lint
2022-07-04 14:18:05 +00:00
Bruno Windels
34ce8a8e3c
fix lint
2022-07-04 16:15:59 +02:00
Bruno Windels
652e2c6d3b
Merge pull request #780 from vector-im/bwindels/update-olm-3.2.8
...
update olm to 3.2.8
2022-07-04 14:15:04 +00:00
Bruno Windels
c0445f2182
update lock file
2022-07-04 15:40:17 +02:00
Bruno Windels
b76fd1d792
update olm to 3.2.8
2022-07-04 15:39:11 +02:00
R Midhun Suresh
751dfa66a8
Merge pull request #758 from vector-im/document-theming
...
Document theming in Hydrogen
2022-07-04 17:20:53 +05:30
RMidhunSuresh
a3c6d744f5
Add link to ts file
2022-07-04 17:18:50 +05:30
R Midhun Suresh
b9f316e7c3
Better sentence structure
...
Co-authored-by: Bruno Windels <274386+bwindels@users.noreply.github.com>
2022-07-04 17:16:43 +05:30
R Midhun Suresh
d448ee1722
Fix typo
...
Co-authored-by: Bruno Windels <274386+bwindels@users.noreply.github.com>
2022-07-04 17:16:43 +05:30
RMidhunSuresh
da87470996
Store images in source tree
2022-07-04 17:16:43 +05:30
RMidhunSuresh
b319c0acb0
Remvoe stray newlines
2022-07-04 17:16:43 +05:30
RMidhunSuresh
e90e573bf9
Add doc
2022-07-04 17:16:43 +05:30
R Midhun Suresh
a68f0bba39
Merge pull request #752 from vector-im/theme-document-manifest
...
Create a type for theme-manifest
2022-07-04 17:11:08 +05:30
Bruno Windels
ca94c65dac
clarify LazyListView constraints
2022-07-04 10:19:56 +02:00
Bruno Windels
fba3275f5b
Merge pull request #746 from vector-im/madlittlemods/assets-path-for-assets
...
Import SDK assets from the `assets/` directory
2022-07-04 06:53:37 +00:00
Bruno Windels
fc93acfd8d
some rewording
2022-07-01 14:09:06 +02:00
Bruno Windels
d398e490eb
some rewording
2022-07-01 13:59:57 +02:00
Bruno Windels
0ab611b013
more detailed docs for IView, TemplateView and ListView
2022-07-01 13:08:50 +02:00
Bruno Windels
bb923b8eb9
bump sdk version
2022-06-30 10:54:11 +02:00
Bruno Windels
73cd96fe3a
abort release script on error
2022-06-30 10:54:00 +02:00
Bruno Windels
4929839fe9
release v0.2.33
2022-06-30 10:51:11 +02:00
Eric Eastwood
c59f65e43b
Add a couple consistent selectors to reference in tests
...
Using `data-testid` because it seems generic out of the list from:
- https://docs.cypress.io/guides/core-concepts/cypress-app#Uniqueness
- https://docs.cypress.io/guides/references/best-practices#How-It-Works
2022-06-29 12:56:20 +02:00
Eric Eastwood
fd3a0f0126
Merge branch 'master' into madlittlemods/assets-path-for-assets
2022-06-28 16:35:54 +02:00
Eric Eastwood
ccfd63dfeb
Restore backwards compatible theme paths
...
See https://github.com/vector-im/hydrogen-web/pull/746#discussion_r901347536
2022-06-28 16:35:30 +02:00
Eric Eastwood
5b54280ac2
Ignore macOS metadata .DS_Store ( #770 )
2022-06-28 05:08:24 -05:00
Bruno Windels
bd5bf7d456
Merge pull request #761 from vector-im/hs/node-15-replaceal
...
Require node 15+
2022-06-25 18:22:35 +00:00
Bruno Windels
ad8ad22cc1
Merge pull request #767 from vector-im/bwindels/download-media
...
Menu option to download attached image or video of event
2022-06-25 18:21:17 +00:00
Bruno Windels
3369bda2f0
offer menu options to download media
...
also always show status (before sendStatus), not just when isPending
as we are recycling it to show download status as well
2022-06-25 20:15:33 +02:00
Bruno Windels
7430aa7aab
allow download media in media view model
2022-06-25 20:14:32 +02:00
Bruno Windels
3bc453d5ca
Merge pull request #766 from vector-im/bwindels/fix-765
...
Also allow undefined, which means at the end of the paginated direction
2022-06-25 17:40:26 +00:00
Bruno Windels
84bac0afe9
Also allow undefined, which means at the end of the paginated direction
...
we already detect the end by chunk.length===0, so we just need to not throw
2022-06-25 19:37:36 +02:00
Will Hunt
9cb7d89097
Require node 15.
...
We use replaceAll in scripts/postcss/svg-colorizer.js which is a ES2021 feature. https://node.green/#ES2021-features--String-prototype-replaceAll
2022-06-24 13:27:09 +01:00
RMidhunSuresh
d688fa4737
Get the theme-collection id from manifest
2022-06-23 15:06:22 +05:30
RMidhunSuresh
0dfd24af22
Update info on path
...
path is now relative to the manifest!
2022-06-21 12:52:10 +05:30
RMidhunSuresh
34eac94da3
Make everything optional
...
Now typescript will force us to validate everything.
2022-06-20 21:27:02 +05:30
RMidhunSuresh
fbdd512e06
Split functions into smaller functions
2022-06-20 21:10:11 +05:30
RMidhunSuresh
5eec724712
Locations must be relative to manifest
2022-06-20 20:35:06 +05:30
RMidhunSuresh
93165cb947
runtime theme chunks should also be stored in map
...
There will be more than one runtime theme file when multiple theme
collections exist.
2022-06-20 13:46:14 +05:30
RMidhunSuresh
e3372f0f2b
Don't use theme-name in manifest file names
2022-06-20 12:54:18 +05:30
R Midhun Suresh
5a3cf03f0b
Merge pull request #759 from vector-im/move-scope-down
...
Refactor out global variables in postcss plugins
2022-06-20 12:14:06 +05:30
R Midhun Suresh
c050ade03c
Merge pull request #756 from vector-im/themeing-improvement-1
...
Improve code quality in css-url-variables plugin
2022-06-20 11:19:47 +05:30
RMidhunSuresh
cc29dc045d
Move scope down in css-url-processor
2022-06-17 16:38:13 +05:30
RMidhunSuresh
09b2437e72
Move scope of variables down in compile-variables
2022-06-17 16:35:18 +05:30
RMidhunSuresh
cfd347335b
Move scope of variables down
...
This was causing icons to be repeated in the css-file
2022-06-16 21:29:33 +05:30
RMidhunSuresh
d322f380ad
Fix typo here
...
This was causing the icons section to be omitted from the source section
of the manifest.
2022-06-16 21:26:16 +05:30
RMidhunSuresh
f658dc2e4b
Make comment clearer
2022-06-15 15:06:16 +05:30
RMidhunSuresh
7a3eabf39c
Formatting fix
2022-06-15 15:04:33 +05:30
RMidhunSuresh
48da6c782c
Remove base key
2022-06-15 15:04:12 +05:30
RMidhunSuresh
b00bbc7daf
Fix formatting
2022-06-15 15:03:41 +05:30
RMidhunSuresh
9fbe8a4e32
Change description of version key
2022-06-15 15:02:15 +05:30
Bruno Windels
623939c671
release v0.2.32
2022-06-15 11:29:29 +02:00
Bruno Windels
fccc41f4b9
Merge pull request #753 from vector-im/bwindels/rageshake-submit
...
Allow sending logs to rageshake server
2022-06-15 11:28:54 +02:00
Bruno Windels
3b66ed8c17
fix type
2022-06-15 11:24:16 +02:00
Bruno Windels
8fe8981ffa
add options to send logs to server in settings ui
2022-06-15 11:14:06 +02:00
Bruno Windels
375d8b066c
complete settings view model for logs ui
2022-06-15 11:13:46 +02:00
Bruno Windels
69ada73dd4
cleanup rageshake code
2022-06-15 11:13:05 +02:00
Bruno Windels
2129a97588
remove unused param
2022-06-15 11:12:49 +02:00
Bruno Windels
4caabae895
extract map -> formdata conversion and also suppor this for xhr
2022-06-15 10:15:15 +02:00
RMidhunSuresh
d0375141f8
WIP - write type for manifest
2022-06-15 12:11:15 +05:30
Bruno Windels
a644621889
basic support for sending rageshake in view model
2022-06-14 18:46:02 +02:00
Bruno Windels
4ed7e01dfd
release v0.2.31
2022-06-14 16:00:35 +02:00
Bruno Windels
e643ffb334
Merge pull request #751 from vector-im/fix-theming-watch
...
Fix: don't crash on platforms that don't have a preferred color scheme
2022-06-14 16:00:13 +02:00
RMidhunSuresh
d00ea39dc4
No need to throw here
2022-06-14 19:27:18 +05:30
RMidhunSuresh
69d8e6031e
This isn't used anywhere
2022-06-14 19:26:59 +05:30
Bruno Windels
abee9baf60
release v0.2.30
2022-06-14 10:15:00 +02:00
Bruno Windels
d4aaa8117b
Merge pull request #742 from vector-im/theme-chooser-improvements
...
Theme chooser improvements
2022-06-14 10:14:29 +02:00
RMidhunSuresh
be66969c9a
Remove font section from manifest
2022-06-14 11:52:45 +05:30
R Midhun Suresh
7bce0d848f
Merge pull request #750 from vector-im/madlittlemods/fix-broken-hydrogen-dev
...
Fix Vite not being able to analyze dynamic CSS styles import in dev on Windows
2022-06-13 20:04:25 +05:30
RMidhunSuresh
53a8915ffc
Parellelize code
2022-06-12 17:05:31 +05:30
RMidhunSuresh
b5fd3656a7
Fix code breaking on dev server
2022-06-12 16:53:25 +05:30
R Midhun Suresh
acffd15002
Add comment
...
Co-authored-by: Bruno Windels <274386+bwindels@users.noreply.github.com>
2022-06-12 16:52:21 +05:30
R Midhun Suresh
989ecd785a
Lowercase string
...
Co-authored-by: Bruno Windels <274386+bwindels@users.noreply.github.com>
2022-06-12 16:51:58 +05:30
RMidhunSuresh
9a5a002293
Remove test-variant
2022-06-08 13:35:58 +05:30
Eric Eastwood
2cfd08e500
Remove debug logging
2022-06-07 23:47:38 -05:00
Eric Eastwood
2b4a7f05a6
Fix Vite not being able analyze dynamic CSS styles import in dev
...
Fix:
```
$ yarn start
[vite] warning:
@theme/default
1 | import "C:\Users\MLM\Documents\GitHub\element\hydrogen-web\src\platform\web\ui\css\themes\element\theme.css";import "@theme/element/light/variables.css"
| ^
The above dynamic import cannot be analyzed by vite.
See https://github.com/rollup/plugins/tree/master/packages/dynamic-import-vars#limitations for supported dynamic import formats. If this is intended to be left as-is, you can use the /* @vite-ignore */ comment inside the import() call to suppress this warning.
Plugin: vite:import-analysis
File: @theme/default
```
And in the browser, it results in none of the styles loading because of the following error:
```
Uncaught SyntaxError: Invalid Unicode escape sequence (at default:formatted:1:163)
```
---
Before:
```
import { injectQuery as __vite__injectQuery } from "/@vite/client";import "__vite__injectQuery(C:\Users\MLM\Documents\GitHub\element\hydrogen-web\src\platform\web\ui\css\themes\element\theme.css, 'import')";import "/@id/__x00__@theme/element/light/variables.css"
```
After:
```
import "/ui/css/themes/element/theme.css";import "/@id/__x00__@theme/element/light/variables.css"
```
2022-06-07 23:41:45 -05:00
RMidhunSuresh
d31f127982
Add explaining comment
2022-06-07 13:28:56 +05:30
RMidhunSuresh
d08cfe3a29
Add more logging
2022-06-07 11:57:57 +05:30
RMidhunSuresh
51a837d459
Remove unuseed import
2022-06-06 17:26:39 +05:30
RMidhunSuresh
2f0f7143b5
Simplify code
2022-06-06 17:20:36 +05:30
RMidhunSuresh
0dac00f327
themeVariant is optional
2022-06-06 17:20:16 +05:30
RMidhunSuresh
a639fc5467
Rever to sensisble defaults
2022-06-06 12:20:06 +05:30
RMidhunSuresh
258a604cc6
Don't make defaultTheme compulsory
2022-06-06 12:19:48 +05:30
RMidhunSuresh
a2cbac9e0c
Move code into method
2022-06-06 11:53:13 +05:30
RMidhunSuresh
71c3fb39a2
store theme-name and variant in settings
2022-06-05 20:52:47 +05:30
RMidhunSuresh
43244fa026
Add explaining comment
2022-06-05 20:52:47 +05:30
RMidhunSuresh
9e88bc3098
Fix bugs
2022-06-05 20:52:47 +05:30
RMidhunSuresh
b74f4b612b
Change UI
2022-06-05 20:52:47 +05:30
RMidhunSuresh
8de91291dd
Add more methods to ThemeLoader
2022-06-05 20:52:47 +05:30
RMidhunSuresh
dc2d1ce700
Remove id
2022-06-05 20:52:47 +05:30
RMidhunSuresh
12a8e94243
Move code into ThemeLoader
2022-06-05 20:52:47 +05:30
RMidhunSuresh
9e79b632a8
Extract variable
2022-06-05 20:52:47 +05:30
RMidhunSuresh
efb1a67470
Make method name a verb
2022-06-05 20:52:47 +05:30
RMidhunSuresh
e3235ea3eb
Rename themeName --> themeId
2022-06-05 20:52:47 +05:30
RMidhunSuresh
46d2792dac
Modify comment
2022-06-05 20:52:47 +05:30
RMidhunSuresh
8ad0b8a726
rename themeName --> variantName
2022-06-05 20:52:47 +05:30
RMidhunSuresh
e8e4c33bae
Rephrase comment
2022-06-05 20:52:47 +05:30
RMidhunSuresh
cb03e97e78
Use default theme intially
2022-06-05 20:52:47 +05:30
RMidhunSuresh
f6cec938a7
Add default theme to mapping
2022-06-05 20:52:47 +05:30
RMidhunSuresh
bbec2effe5
Add typing
2022-06-05 20:52:47 +05:30
RMidhunSuresh
d4084da299
Extract code into function
2022-06-05 20:52:47 +05:30
RMidhunSuresh
1f00c8f635
Add a temporary theme to test this PR
2022-06-05 20:52:47 +05:30
RMidhunSuresh
0b98473e85
Render a radio button for default variants
2022-06-05 20:52:47 +05:30
RMidhunSuresh
3afbe1148e
Use the new built-asset format in ThemeLoader
2022-06-05 20:52:47 +05:30
RMidhunSuresh
809c522571
Change the format of built-asset
2022-06-05 20:52:47 +05:30
RMidhunSuresh
4474458f4b
getActiveTheme should never return undefined
...
Instead it should throw an error.
This is useful for when we do setTheme(await getActiveTheme()) because
setTheme expects a string.
2022-06-05 20:52:47 +05:30
Eric Eastwood
9d8a578dce
Better comment
2022-05-31 15:35:48 -05:00
Eric Eastwood
38c3774869
Import assets from the assets/ directory
...
> Will be easier towards the future when adding more assets. Probably best to keep style.css for now for backwards compat though.
>
> *-- https://github.com/vector-im/hydrogen-web/pull/693#discussion_r853844282 *
2022-05-31 15:30:56 -05:00
Bruno Windels
8b2299852e
Merge pull request #744 from vector-im/bwindels/fix-tracker-changed-key-check
...
Fix: device with changed key not being properly ignored
2022-05-31 13:51:17 +02:00
Bruno Windels
c62c8da10b
fix changed key not being ignored
2022-05-31 13:39:35 +02:00
Bruno Windels
bc51644868
reassignment is not used later on, remove
2022-05-31 13:39:23 +02:00
Bruno Windels
3d3d590334
add failing test for device with changed key being returned
2022-05-31 13:39:05 +02:00
Bruno Windels
11d7535c23
add some basic tests (with mock utils) for DeviceTracker
2022-05-31 13:38:34 +02:00
Bruno Windels
a49d7eae5d
Merge pull request #693 from vector-im/madlittlemods/686-682-local-friendly-development-and-commonjs
...
Make the SDK friendly to locally link and develop on
2022-05-30 14:45:16 +02:00
Bruno Windels
1b2a6b5d0e
Merge branch 'master' into madlittlemods/686-682-local-friendly-development-and-commonjs
2022-05-30 14:15:19 +02:00
RMidhunSuresh
ba647d012d
Fix type in observeNavigation
2022-05-29 20:38:14 +05:30
RMidhunSuresh
fc873757d8
WIP
2022-05-27 22:42:21 +05:30
RMidhunSuresh
ec1cc89cf9
Make URLRouter in options conditional on generic
...
URLRouter can be passed in option to vm only if the SegmentType used
contains session.
ViewModel.urlCreator returns undefined when used with a SegmentType that
lacks session.
2022-05-27 22:42:21 +05:30
RMidhunSuresh
a336623f3a
Generic parameter should extend object
2022-05-27 22:42:21 +05:30
RMidhunSuresh
9300347e9b
Give defaultt type
2022-05-27 22:42:21 +05:30
RMidhunSuresh
f49d580d49
WIP
2022-05-27 22:42:21 +05:30
RMidhunSuresh
263948faa3
Remove unwanted export
2022-05-27 22:42:21 +05:30
RMidhunSuresh
52f0690c70
Add return type
2022-05-27 22:42:21 +05:30
RMidhunSuresh
7a24059337
Remove empty line
2022-05-27 22:42:21 +05:30
RMidhunSuresh
4fd1918202
Remove comment
2022-05-27 22:42:21 +05:30
RMidhunSuresh
4ae3a5bf7a
Use undefined instead of null
2022-05-27 22:42:21 +05:30
RMidhunSuresh
5be00f051f
Use subtype instead of whole SegmentType
2022-05-27 22:42:21 +05:30
RMidhunSuresh
e7f4ce6175
Mark methods as private
2022-05-27 22:42:21 +05:30
RMidhunSuresh
09bc0f1b60
Extract complex type as type alias
2022-05-27 22:42:21 +05:30
RMidhunSuresh
76d04ee277
Make defaultSessionId optional
2022-05-27 22:42:21 +05:30
RMidhunSuresh
f28dfc6964
Type createRouter function
2022-05-27 22:42:21 +05:30
RMidhunSuresh
c14e4f3eed
Use segment type
2022-05-27 22:42:21 +05:30
RMidhunSuresh
5d42f372f6
Pass as separate arguments to constructor
2022-05-27 22:42:21 +05:30
RMidhunSuresh
4c3e0a6ff0
Convert URLRouter.js to typescript
2022-05-27 22:42:21 +05:30
RMidhunSuresh
d9bfca10e1
Type function
2022-05-27 22:42:21 +05:30
RMidhunSuresh
bf2fb52691
Fix formatting
2022-05-27 22:42:21 +05:30
RMidhunSuresh
646cbe0fff
Make all keys string
2022-05-27 22:42:21 +05:30
RMidhunSuresh
92e8fc8ad3
Remove deprecated method
2022-05-27 22:42:21 +05:30
RMidhunSuresh
92c79c853d
Convert index.js to typescript
2022-05-27 22:42:21 +05:30
RMidhunSuresh
55229252d7
Type allowsChild
2022-05-27 22:42:21 +05:30
RMidhunSuresh
3efc426fed
Complete converting Navigation.js to ts
2022-05-27 22:42:21 +05:30
RMidhunSuresh
04d5b9bfda
WIP - 2
2022-05-27 22:42:21 +05:30
RMidhunSuresh
66f6c4aba1
WIP
2022-05-27 22:42:18 +05:30
Bruno Windels
ed8c98558d
release v0.2.29
2022-05-18 21:45:45 +02:00
Bruno Windels
514d5c0a50
add notes about client side caching
2022-05-18 19:44:39 +00:00
Bruno Windels
13428bd03c
allow updating cache of unhashed assets (like config) in service worker
2022-05-18 21:41:47 +02:00
Bruno Windels
1555b0f4bc
put a message in container node when config file is not found
2022-05-18 21:41:31 +02:00
Bruno Windels
0e46aed0df
rename config file to config.sample.json when packaging
2022-05-18 20:52:18 +02:00
Bruno Windels
7b0591be46
explain that push section of config usually doesn't need to be touched
2022-05-18 20:51:50 +02:00
Bruno Windels
f21e103270
add newlines to config file when rewriting with theme stuff
2022-05-18 20:46:38 +02:00
Bruno Windels
7a197c0a1a
add deployment instruction now that we have a config file
2022-05-18 20:44:04 +02:00
Bruno Windels
8a5f1ed9cd
Merge remote-tracking branch 'origin/move-config-root'
2022-05-18 20:40:12 +02:00
Bruno Windels
36ddd61318
Merge pull request #724 from vector-im/theme-chooser
...
Implement theme chooser in settings
2022-05-18 20:22:38 +02:00
Bruno Windels
03ab1ee2c7
log theme being loaded
2022-05-18 17:48:03 +02:00
RMidhunSuresh
a550788788
Remove some logging + use wrapOrRun
2022-05-18 18:56:28 +05:30
RMidhunSuresh
683ffa9ed3
injectServiceWorker plugin should accept callback
2022-05-18 17:31:17 +05:30
RMidhunSuresh
7952a34d64
Add logging
2022-05-18 16:09:09 +05:30
RMidhunSuresh
7426d17e33
Precache config and theme manifest
2022-05-18 16:07:26 +05:30
RMidhunSuresh
660a08db3e
Give a better name
2022-05-18 14:41:52 +05:30
RMidhunSuresh
1b22a48b54
Treat theme-manifests the same way as config
2022-05-18 14:23:41 +05:30
Eric Eastwood
b725269c7a
Clean up index.html in the right spot
2022-05-18 00:21:56 -05:00
Eric Eastwood
639358b146
Merge branch 'master' into madlittlemods/686-682-local-friendly-development-and-commonjs
...
Conflicts:
scripts/sdk/base-manifest.json
2022-05-12 12:05:45 -05:00
RMidhunSuresh
34e8b60917
Create config.json in root
2022-05-12 16:05:33 +05:30
RMidhunSuresh
9ba1534390
Remove unused import
2022-05-12 16:03:06 +05:30
RMidhunSuresh
4ddfd3b508
built-asset --> built-assets
2022-05-12 14:56:58 +05:30
RMidhunSuresh
e63440527a
Move condition to binding
2022-05-12 13:43:19 +05:30
RMidhunSuresh
0984aeb570
Move code to ThemeLoader
2022-05-12 13:39:57 +05:30
RMidhunSuresh
654e83a5f9
Remove method
2022-05-12 13:28:11 +05:30
RMidhunSuresh
b306344739
Add explaining comment
2022-05-12 12:55:08 +05:30
R Midhun Suresh
4231037345
Update src/platform/web/Platform.js
...
Co-authored-by: Bruno Windels <274386+bwindels@users.noreply.github.com>
2022-05-12 12:48:41 +05:30
R Midhun Suresh
d5bc9f5d7d
Update src/platform/web/Platform.js
...
Co-authored-by: Bruno Windels <274386+bwindels@users.noreply.github.com>
2022-05-12 12:48:34 +05:30
Bruno Windels
6fde6bbf6b
bump sdk version
2022-05-11 14:58:57 +02:00
RMidhunSuresh
cc88245933
Create themeLoader only if not dev
2022-05-11 15:46:12 +05:30
RMidhunSuresh
174adc0755
Move platform dependent code to Platform
2022-05-11 15:38:37 +05:30
RMidhunSuresh
c26dc04b52
Fix type
2022-05-11 15:03:32 +05:30
RMidhunSuresh
2761789f45
Move theme code to separate file
2022-05-11 14:58:14 +05:30
RMidhunSuresh
213f87378b
Use t.if instead of t.map
2022-05-11 12:46:12 +05:30
RMidhunSuresh
855298bdaf
Read from manifest
2022-05-11 12:40:32 +05:30
RMidhunSuresh
e8a4ab5ecc
built-asset must be a mapping
...
A mapping from theme-name to location of css file
2022-05-10 16:58:06 +05:30
RMidhunSuresh
5204fe5c99
This emitFile is no longer needed
2022-05-10 14:22:37 +05:30
RMidhunSuresh
c39f0d2efb
Don't show theme chooser on dev
2022-05-10 14:12:36 +05:30
RMidhunSuresh
bb3368959f
Use sh instead of bash
2022-05-10 14:12:36 +05:30
RMidhunSuresh
af9cbd727f
Remove existing stylesheets when changing themes
2022-05-10 14:12:36 +05:30
RMidhunSuresh
12a70469eb
Fix formatting
2022-05-10 14:12:36 +05:30
RMidhunSuresh
c611d3f85c
Select current theme in dropdown
2022-05-10 14:12:36 +05:30
RMidhunSuresh
ecb83bb277
Store and load theme from setting
2022-05-10 14:12:36 +05:30
RMidhunSuresh
daae7442bb
Create theme chooser
2022-05-10 14:12:36 +05:30
RMidhunSuresh
cc2c74fdff
Generate theme summary on build
2022-05-10 14:12:36 +05:30
RMidhunSuresh
541cd96eeb
Add script to cleanup after build
2022-05-10 14:12:36 +05:30
RMidhunSuresh
f16a2e5d22
Don't add asset hash to manifest json on build
2022-05-10 14:12:36 +05:30
Bruno Windels
b7675f46c4
bump sdk version
2022-05-10 09:59:38 +02:00
R Midhun Suresh
a06474d7ac
Merge pull request #731 from vector-im/fix-tilescollection
...
Newly created tiles must be given a copy of tilesOptions
2022-05-10 12:33:46 +05:30
Bruno Windels
e903d3a6a4
mark options as readonly
2022-05-09 14:12:31 +02:00
Bruno Windels
3888291758
updateOptions is unused,not the best idea since options is/can be shared
2022-05-09 14:10:50 +02:00
Bruno Windels
6beff7e552
override emitChange so no need to clone option object for all tiles
...
instead, we don't store the emitChange in the options but rather on
the tile itself.
2022-05-09 14:09:45 +02:00
RMidhunSuresh
139a87de99
Pass a copy of the options to the tiles
2022-05-08 19:14:51 +05:30
Eric Eastwood
e54482e4c0
Add some comments
2022-05-05 17:57:25 -05:00
Eric Eastwood
75098b4712
Merge branch 'master' into madlittlemods/686-682-local-friendly-development-and-commonjs
2022-05-05 17:50:33 -05:00
Eric Eastwood
d053d4388f
Update Vite to avoid flakey errors in our PostCSS plugins
...
Fix https://github.com/vector-im/hydrogen-web/issues/722
Updating Vite to includes fixes from
https://github.com/vitejs/vite/issues/7822 -> https://github.com/vitejs/vite/pull/7827
2022-05-05 14:58:43 -05:00
Bruno Windels
23b621492f
Merge pull request #726 from vector-im/flow-registration
...
Allow passing in flowSelector from startRegistration method
2022-04-27 11:18:53 +02:00
RMidhunSuresh
83664a1b13
viewClassForTile is needed for TimelineView
2022-04-27 12:38:12 +05:30
RMidhunSuresh
c07a42292c
Include Platform change in sdk docs
2022-04-27 12:28:48 +05:30
RMidhunSuresh
049a477008
Pass flowSelector from Client.startRegistration
2022-04-27 12:27:19 +05:30
Bruno Windels
fa34315210
undo refactoring typo from #723
2022-04-25 16:44:31 +02:00
Bruno Windels
bec8cea583
fix for breaking in #725
2022-04-25 14:17:07 +02:00
Bruno Windels
3536d12680
Merge pull request #725 from vector-im/bwindels/templateview-ts
...
add typing for text bindings in template view
2022-04-25 12:42:37 +02:00
Bruno Windels
ab893f63b5
remove unneeded assignment
2022-04-25 12:40:25 +02:00
Bruno Windels
6c57c96cb9
add typing for text bindings in template view
2022-04-25 12:07:28 +02:00
R Midhun Suresh
6ba5fbeebb
Merge pull request #723 from vector-im/implement-609
...
Read config.json on app start
2022-04-22 15:00:02 +05:30
RMidhunSuresh
d8da128780
remove await
2022-04-22 14:34:16 +05:30
RMidhunSuresh
7a33c2e00d
await
2022-04-22 12:26:29 +05:30
RMidhunSuresh
5a94a2feba
Move handleConfigRequest inside handleRequest
2022-04-22 12:22:30 +05:30
RMidhunSuresh
c6691cf1cb
Simplify code
2022-04-22 12:10:25 +05:30
RMidhunSuresh
826835e518
No need to rewrite to index.html
2022-04-22 12:07:53 +05:30
RMidhunSuresh
b6e55ef59c
Remove comment
2022-04-21 14:46:55 +05:30
RMidhunSuresh
4f23944581
Use named param in Legacy Platform
2022-04-21 14:17:47 +05:30
RMidhunSuresh
1cdc76f5a4
Use undefine instead of null
2022-04-21 14:14:38 +05:30
RMidhunSuresh
468b7e1595
Cache config.json
2022-04-21 12:52:42 +05:30
Eric Eastwood
ce289baba6
Remove extra space
2022-04-20 17:32:12 -05:00
Eric Eastwood
f1e07b6842
Explain what is being deleted by the strange syntax
...
See https://github.com/vector-im/hydrogen-web/pull/693#discussion_r815284713
2022-04-20 11:59:49 -05:00
Eric Eastwood
e9cee2e6a4
Merge branch 'master' into madlittlemods/686-682-local-friendly-development-and-commonjs
...
Conflicts:
scripts/sdk/build.sh
2022-04-20 11:58:39 -05:00
Eric Eastwood
5f8a171c2c
Fix asset build throwing and swallowing errors ( #721 )
...
- Fix `svg-colorizer` throwing errors with Windows file paths
- Fix `css-url-parser` swallowing errors because it was `async`
- Fail SDK build script (`yarn build:sdk`, `build.sh`) overall when some commands are failing
2022-04-20 11:55:48 -05:00
RMidhunSuresh
6cd3c8ee2b
Read config from URL
2022-04-20 12:42:07 +05:30
RMidhunSuresh
2cfcd4653f
Use named params
2022-04-20 12:00:33 +05:30
Eric Eastwood
f56dc582a5
Fix tests after theme updates
2022-04-20 00:39:32 -05:00
Eric Eastwood
f61bf6090e
Enable extended globs for removing all but some filename !(filename)
...
See https://github.com/vector-im/hydrogen-web/pull/693#discussion_r853534719
2022-04-19 17:28:09 -05:00
Eric Eastwood
12d6447b06
Merge branch 'master' into madlittlemods/686-682-local-friendly-development-and-commonjs
...
Conflicts:
package.json
scripts/sdk/base-manifest.json
scripts/sdk/build.sh
2022-04-19 17:19:13 -05:00
Bruno Windels
480c5c1584
update SDK docs with new style location
2022-04-14 13:49:54 +02:00
Bruno Windels
2d6cbcfce0
release v0.2.28
2022-04-14 10:38:17 +02:00
Bruno Windels
78f352b839
avoid white ring around avatars in dark theme
2022-04-14 10:38:08 +02:00
Bruno Windels
cbdd7548da
release v0.2.27
2022-04-14 09:53:21 +02:00
Bruno Windels
3b74e2ea7e
Merge pull request #712 from vector-im/theme-convert
...
Theming - Convert existing theme to use new theming architecture
2022-04-14 09:52:38 +02:00
RMidhunSuresh
3f4dddc004
Add backwards compatibility
2022-04-13 17:49:38 +05:30
RMidhunSuresh
5170329c79
Remove unsued imports
2022-04-13 17:44:07 +05:30
RMidhunSuresh
2d8a3d9f9b
Fix SDK build
2022-04-13 17:12:38 +05:30
RMidhunSuresh
83dffef47d
Use new theme config
2022-04-13 14:26:40 +05:30
RMidhunSuresh
23aac5cb45
Make theme-name lowercase in manifest
2022-04-13 14:26:40 +05:30
RMidhunSuresh
f7bfab6e08
Add develop only script tag to index.html
2022-04-13 14:26:40 +05:30
RMidhunSuresh
5e7432b5de
Make badge font color always white
2022-04-13 14:26:40 +05:30
RMidhunSuresh
2de0450e97
Make colors better looking for dark variant
2022-04-13 14:26:40 +05:30
RMidhunSuresh
f26b51e5da
Change colors in more css files
2022-04-13 14:26:40 +05:30
RMidhunSuresh
bf74c3c67b
Add more colors to manifest
2022-04-13 14:26:40 +05:30
RMidhunSuresh
3d304be211
Convert theme.css
...
- Use color variables
- Use colorized icons
2022-04-13 14:26:40 +05:30
RMidhunSuresh
698d47e221
Enable plugins in config
2022-04-13 14:26:40 +05:30
RMidhunSuresh
3e2a2b7942
Add theme manifest
2022-04-13 14:26:40 +05:30
RMidhunSuresh
061dc5f824
Replace icon colors with predefined color
2022-04-13 14:26:40 +05:30
R Midhun Suresh
366e75b242
Merge pull request #716 from vector-im/vite-plugin-dev
...
Theming - Support theming in dev server
2022-04-13 14:20:04 +05:30
R Midhun Suresh
b76fb70579
Merge pull request #717 from vector-im/fix-css-url-processor
...
Theming - Fix css-url-processor
2022-04-13 14:19:36 +05:30
R Midhun Suresh
aacd0e6dfb
Merge pull request #718 from vector-im/fix-css-compile-variables
...
Theming - Some more changes for compile-variables plugin
2022-04-13 14:19:21 +05:30
RMidhunSuresh
bf0cdcd3f1
Add explaining comment
2022-04-13 13:39:20 +05:30
RMidhunSuresh
825c9847fe
Don't hardcode theme/variant names
2022-04-13 12:56:14 +05:30
RMidhunSuresh
14523ecc5d
Use new theme option in vite-config
2022-04-13 12:40:49 +05:30
RMidhunSuresh
efef7147af
Modify jsdoc comment
2022-04-12 21:02:30 +05:30
RMidhunSuresh
39bc827aaf
Invert operation for dark theme
2022-04-12 20:58:14 +05:30
RMidhunSuresh
bb9954a36c
Let derive function know if theme is dark
2022-04-12 20:57:43 +05:30
RMidhunSuresh
0b241db058
Produce a mapping of aliases to resolved colors
2022-04-12 20:57:03 +05:30
RMidhunSuresh
743bd0db1c
Support dark mode and remove dev script tag
2022-04-12 20:39:04 +05:30
RMidhunSuresh
25a8521efc
Use hash instead of UUID
2022-04-12 20:15:14 +05:30
RMidhunSuresh
36782fb4fe
Use unique filenames
...
Otherwise newly produced svgs will replace other svgs produced earlier
in the build.
2022-04-12 19:44:29 +05:30
RMidhunSuresh
6456d4ef76
Cache cssPath
2022-04-10 14:59:42 +05:30
RMidhunSuresh
49535807bf
Do not run plugin on runtime theme
2022-04-10 14:59:08 +05:30
RMidhunSuresh
0a95eb0940
Fix formatting
2022-04-10 14:52:26 +05:30
RMidhunSuresh
ff98ef4465
Support theming in dev server
2022-04-10 14:49:19 +05:30
Bruno Windels
a6b6fef6d2
sdk release 0.0.10
2022-04-08 17:48:20 +02:00
Bruno Windels
c9bc080aef
Merge pull request #713 from vector-im/bwindels/fix-request-responsecode-error
...
fix error thrown during request when response code is not used
2022-04-08 15:26:12 +02:00
Bruno Windels
4cbd149c25
Merge pull request #715 from vector-im/bwindels/rename-viewclassfortile
...
Some timeline refactoring and also make reply tiles of correct custom view class
2022-04-08 15:19:39 +02:00
Bruno Windels
cf780ce259
also apply custom tiles in reply preview in composer
2022-04-08 15:16:22 +02:00
Bruno Windels
d21d10e4f2
pass in viewClassForTile from SessionView
...
so you can also use custom tiles when using the grid view
2022-04-08 15:15:21 +02:00
Bruno Windels
1fea14dd10
ensure other parameters don't get passed to TemplateView parent ctors
2022-04-08 15:04:38 +02:00
Bruno Windels
1f0cb542c8
pass viewClassForTile to tile views, so they can create reply view with correct subtile
2022-04-08 15:02:07 +02:00
Bruno Windels
57f50cc416
fix lint warnings
2022-04-08 15:01:27 +02:00
Bruno Windels
cda96a35ee
rename viewClassForEntry to viewClassForTile
2022-04-08 15:01:06 +02:00
Bruno Windels
e977a6829b
Merge pull request #714 from vector-im/bwindels/custom-tiles
...
Allow custom timeline tiles for SDK usage
2022-04-08 14:29:54 +02:00
Bruno Windels
ac4bb8ca15
export tile view & view models from SDK
2022-04-08 14:27:08 +02:00
Bruno Windels
a913671f0c
make tileClassForEntry optional, as otherwise it is a breaking change
2022-04-08 14:19:34 +02:00
Bruno Windels
5445db2a42
allow injecting the tilesCreator from the Root/Session/RoomViewModel
...
this changes the API slightly to be more future-proof,
as we'll expose it in the SDK now.
The function now returns a SimpleTile constructor, rather than an
instance. This allows us to test if an entry would render in the
timeline without creating a tile, which is something we might want in
the matrix layer later on.
The function is now called tileClassForEntry, analogue to what we
do in TimelineView.
2022-04-08 12:52:30 +02:00
Bruno Windels
220f35ae03
fix typescript error
2022-04-08 11:52:21 +02:00
Bruno Windels
6aa79cf6e2
allow to inject custom tile view creator fn into timeline view
2022-04-07 17:25:20 +02:00
Bruno Windels
88482292e1
Merge pull request #700 from vector-im/ajbura-patch-2
...
Add observeNavigation in ViewModel
2022-04-07 14:08:40 +02:00
Bruno Windels
9755062563
fix error thrown during request when response code is not used
2022-04-07 10:35:00 +02:00
R Midhun Suresh
0a225292f0
Merge pull request #704 from vector-im/vite-plugin
...
Theming - Rollup plugin to enumerate and compile themes (and their variants)
2022-04-07 11:57:03 +05:30
R Midhun Suresh
1b18b1f815
Merge pull request #707 from vector-im/css-url-processor
...
Theming - Postcss plugin to process URLs
2022-04-07 11:54:53 +05:30
RMidhunSuresh
c0fb8a2c77
Throw error if no replacements were made
2022-04-07 11:53:11 +05:30
RMidhunSuresh
f2b4f2e069
Remove console.log
2022-04-07 11:53:11 +05:30
RMidhunSuresh
7046fcc7c7
Find list of resolved colors from result
...
and also throw only if secondary color was provided
2022-04-07 11:53:11 +05:30
RMidhunSuresh
8c6400ab2c
utf-8 --> utf8
2022-04-07 11:53:11 +05:30
RMidhunSuresh
5d5eb93baa
Implement plugin
2022-04-07 11:53:11 +05:30
R Midhun Suresh
4ded893880
Merge pull request #703 from vector-im/css-url-variables-plugin
...
Theming - Postcss plugin to replace URL values with css variable
2022-04-07 11:44:46 +05:30
RMidhunSuresh
bfd73ae52a
Pass derive function as argument
2022-04-07 11:37:20 +05:30
RMidhunSuresh
6d724e27e7
No need to check if icons are already written
2022-04-07 11:35:24 +05:30
RMidhunSuresh
2dd655cd9a
Check if icon is in shared var
2022-04-07 11:35:24 +05:30
RMidhunSuresh
9a96112146
Rename function name
2022-04-07 11:35:24 +05:30
RMidhunSuresh
545ff2ec32
Add explaining comment
2022-04-07 11:35:24 +05:30
RMidhunSuresh
5e702171ce
Remove console.log
2022-04-07 11:35:24 +05:30
RMidhunSuresh
cd4fce0c6f
Populate shared map with collected icons
2022-04-07 11:35:24 +05:30
RMidhunSuresh
1a50effd86
Only extract into variables if file is svg
2022-04-07 11:35:24 +05:30
RMidhunSuresh
b7a47ae901
Give function better name
2022-04-07 11:35:24 +05:30
RMidhunSuresh
0a186dd11b
Fix css logic
2022-04-07 11:35:24 +05:30
RMidhunSuresh
f07a3ea5b5
Remove css specific syntax from map
2022-04-07 11:35:24 +05:30
RMidhunSuresh
2d4ec5380e
Initialize variables later
2022-04-07 11:35:24 +05:30
RMidhunSuresh
6b4bb762aa
Remove unused variable
2022-04-07 11:35:24 +05:30
RMidhunSuresh
97ade0659c
Add explaining comment
2022-04-07 11:35:24 +05:30
RMidhunSuresh
b59d6970fc
Fix code duplication in tests
2022-04-07 11:35:21 +05:30
RMidhunSuresh
cbff912476
Improve code quality
2022-04-07 11:34:11 +05:30
RMidhunSuresh
3ae2b4dab4
Use two url() in test
2022-04-07 11:34:11 +05:30
RMidhunSuresh
f897e5132c
Implement url to variables plugin
2022-04-07 11:34:11 +05:30
R Midhun Suresh
e0bc9b31a9
Merge pull request #709 from vector-im/compile-variables-improvement
...
Theming - postcss-compile-variables improvement
2022-04-07 11:31:59 +05:30
RMidhunSuresh
f75ee86c0e
Change comment
2022-04-06 12:30:26 +05:30
RMidhunSuresh
7f9af5b5fa
Add icon to manifest
2022-04-06 12:30:26 +05:30
RMidhunSuresh
b0f082e81f
Add derived variables to source section
2022-04-06 12:30:26 +05:30
RMidhunSuresh
d5b5e10230
Produce manifest.jsom
2022-04-06 12:30:26 +05:30
RMidhunSuresh
86c45b5b99
Emit runtime bundle
2022-04-06 12:30:26 +05:30
RMidhunSuresh
32eb95734a
Add default themes to index html
2022-04-06 12:30:26 +05:30
RMidhunSuresh
1f6efb4db3
Write plugin code
2022-04-06 12:30:26 +05:30
RMidhunSuresh
48d0242c80
Also derive variables in URLs
2022-04-06 12:23:55 +05:30
Eric Eastwood
2401b7f453
Add way to test whether SDK works in ESM and CommonJS
2022-04-05 19:24:27 -05:00
Eric Eastwood
dd06d78a72
Avoid ERR_REQUIRE_ESM errors when requiring SDK
2022-04-05 18:17:14 -05:00
Eric Eastwood
95d17303c3
Update Vite which includes fixes to importing *.js?url
with exports
...
Update to Vite which includes https://github.com/vitejs/vite/pull/7098
2022-04-05 17:16:55 -05:00
Eric Eastwood
d247bc4e28
Merge branch 'master' into madlittlemods/686-682-local-friendly-development-and-commonjs
...
Conflicts:
package.json
scripts/sdk/base-manifest.json
2022-04-05 17:15:30 -05:00
RMidhunSuresh
454345c9b2
Always set map
2022-04-05 15:08:35 +05:30
RMidhunSuresh
76789eacf1
Use array instead of Set
2022-04-01 20:43:42 +05:30
RMidhunSuresh
859449ed60
Write test for map population
2022-04-01 16:41:00 +05:30
RMidhunSuresh
918a3e42b1
Populate compiled variables map
2022-04-01 16:23:33 +05:30
RMidhunSuresh
4350d2f264
Don't derive variables for runtime theme
2022-04-01 16:20:58 +05:30
RMidhunSuresh
2015fa2d7a
Move postcss-value-parser to dev dependency
2022-03-27 20:18:42 +05:30
RMidhunSuresh
e8bd1f3390
Pass result as message
2022-03-27 20:06:26 +05:30
R Midhun Suresh
66304ed7e0
Merge pull request #701 from vector-im/css-compile-variables-plugin
...
Theming - Postcss plugin to compile variables
2022-03-24 12:14:46 +05:30
RMidhunSuresh
72785e7c3e
Remove -- from everywhere
2022-03-23 20:39:24 +05:30
RMidhunSuresh
59ca8e6309
Add explanation of plugin
2022-03-23 17:25:12 +05:30
RMidhunSuresh
5d4323cd1d
Remove stray "--" from code
2022-03-23 17:12:14 +05:30
RMidhunSuresh
19a6d669a9
Extract base variables from css
2022-03-14 23:26:37 +05:30
RMidhunSuresh
bca1648df6
Move plugin to /scripts and create eslintrc
2022-03-14 11:35:10 +05:30
RMidhunSuresh
4020ade70c
Remove redundant comment
2022-03-10 17:51:25 +05:30
RMidhunSuresh
2c068cc3ce
typo
2022-03-10 17:42:12 +05:30
RMidhunSuresh
6f4a7e074a
Change confusing doc
2022-03-10 17:27:12 +05:30
RMidhunSuresh
9f77df0bff
Match regex only if declaration is a variable
2022-03-10 17:24:32 +05:30
RMidhunSuresh
ff10297bf8
Explicitly convert to number
2022-03-10 17:22:02 +05:30
RMidhunSuresh
f732164b5f
Formatting change
2022-03-10 17:21:38 +05:30
RMidhunSuresh
5210123977
Document options
2022-03-10 17:19:04 +05:30
RMidhunSuresh
1663782954
Throw after fetching value
2022-03-10 16:05:13 +05:30
RMidhunSuresh
63c1f2a7a3
Add node as env to eslint
2022-03-09 17:22:45 +05:30
RMidhunSuresh
96fa83b508
Add license header
2022-03-09 17:22:11 +05:30
RMidhunSuresh
79f363fb9d
Move code to callback and fix alias code
2022-03-09 17:20:05 +05:30
Bruno Windels
ca211f929b
Merge pull request #702 from vector-im/bwindels/observablemapts
...
convert (Base)ObservableMap to typescript
2022-03-09 11:53:59 +01:00
Bruno Windels
6150e91c3f
fix type error again
2022-03-09 11:51:11 +01:00
Bruno Windels
762925d4a5
fix type error
2022-03-09 11:44:49 +01:00
Bruno Windels
21080d2110
fix tests
2022-03-09 11:41:26 +01:00
Bruno Windels
6d7c983e8e
convert (Base)ObservableMap to typescript
2022-03-09 11:33:49 +01:00
RMidhunSuresh
a83850ebf3
Use postcss value parser to find variables
2022-03-09 11:48:53 +05:30
RMidhunSuresh
41f6b6ab6b
Use startsWith instead of regex testing
2022-03-07 13:25:53 +05:30
RMidhunSuresh
a5d46bb40c
Move over tests to Hydrogen using impunity
2022-03-07 13:10:44 +05:30
RMidhunSuresh
f170ef0206
Switch over to off-color
2022-03-07 11:38:39 +05:30
Ajay Bura
e07abfa02a
Add missing type
2022-03-07 11:33:51 +05:30
RMidhunSuresh
b6f5e68e9e
Format file
2022-03-07 11:33:44 +05:30
RMidhunSuresh
92084e8005
Move all code under the Once event
...
Apparently the other events are common to all plugins.
2022-03-07 11:32:30 +05:30
Bruno Windels
8b8233ff00
Merge pull request #691 from vector-im/madlittlemods/only-crypto-in-secure-context
...
Only initialize `Crypto` when olm is provided
2022-03-03 17:33:50 +01:00
RMidhunSuresh
60d60e9572
WIP
2022-03-03 19:58:46 +05:30
Ajay Bura
61ce2f9e3d
Add observeNavigation in ViewModel
2022-03-03 15:36:25 +05:30
Eric Eastwood
2f4c639cef
Only initialize Crypto when olm is provided
...
See https://github.com/vector-im/hydrogen-web/pull/691#discussion_r816988082
2022-03-02 03:17:59 -06:00
Eric Eastwood
c09964dc30
Add data-event-id="$xxx"
attributes to timeline items for easy selecting in end-to-end tests ( #690 )
...
Split out from https://github.com/vector-im/hydrogen-web/pull/653
Example test assertions: db6d3797d7/test/e2e-tests.js (L248-L252)
```js
// Make sure the $abc event on the page has "foobarbaz" text in it
assert.match(
dom.document.querySelector(`[data-event-id="$abc"]`).outerHTML,
new RegExp(`.*foobarbaz.*`)
);
```
2022-03-01 18:36:14 -06:00
Bruno Windels
2e1283d199
Merge pull request #670 from vector-im/bwindels/ts-olm
...
Convert olm code to typescript
2022-03-01 18:53:22 +01:00
Bruno Windels
62ce111938
Merge pull request #692 from ryushar/ryushar/typescriptify
...
Convert domain/avatar.js and domain/LogoutViewModel.js to Typescript
2022-03-01 18:50:19 +01:00
Bruno Windels
770f7aea00
Merge pull request #689 from vector-im/madlittlemods/add-more-html-elements
...
Add more HTML form and SVG elements
2022-03-01 18:43:34 +01:00
Bruno Windels
b6d9993ed0
remove unused import
2022-03-01 17:08:49 +01:00
Bruno Windels
643ab1a5f3
cant export this for some reason
2022-03-01 15:48:42 +01:00
Bruno Windels
42141c7063
bump SDK version
2022-03-01 15:45:24 +01:00
Bruno Windels
1087d62705
Merge pull request #695 from vector-im/ajbura-patch-1
...
Export some more symbols from the SDK
2022-03-01 15:44:51 +01:00
Bruno Windels
ee8e45926f
also export observable value classes
2022-03-01 15:42:04 +01:00
Bruno Windels
4c50dbf7ec
make SDK exports explicit
2022-03-01 15:41:44 +01:00
Ajay Bura
4a4856a29e
export module
2022-02-28 17:19:01 +05:30
Eric Eastwood
0023ab34ba
Add a placeholder for upgrading vite to comment on
2022-02-26 05:19:59 -06:00
Eric Eastwood
8fb2b2755a
Fix typos pointing to wrong files
2022-02-26 03:08:16 -06:00
Eric Eastwood
cd007b40e1
Make the SDK friendly to locally link and develop on
...
Fix https://github.com/vector-im/hydrogen-web/issues/686
Fix https://github.com/vector-im/hydrogen-web/issues/682
Instead of deleting the whole `target/` directory, leave it alone so the symlink
driving the `npm link`/`yarn link` stays in tact.
Leave Vite builds in their build directories (`/lib-build`/`/asset-build`)
so you can `vite build --watch` to build on local changes and still have a
consisent place to reference in the `package.json` `exports`. Previously,
everything relied on `build.sh` which does a bunch of moving and renaming
and made it hard to rebuild on changes.
Add back support for CommonJS (adding the `package.json` `exports`).
The last piece is making sure the `?url` imports (`import workerPath from 'hydrogen-view-sdk/main.js?url';`)
work still. It looks like this may have just been solved via
https://github.com/vitejs/vite/issues/6725 -> https://github.com/vitejs/vite/pull/7073
(literally 2 days ago) and we just need to wait for the next Vite release 🎉
2022-02-26 01:12:00 -06:00
Tushar
17acda7741
typescriptify domain/LogoutViewModel.js
2022-02-25 16:45:07 +05:30
Tushar
7055f02f16
typescriptify domain/avatar.js
2022-02-25 15:52:54 +05:30
Eric Eastwood
0935f2d23a
Only try to use window.crypto.subtle in secure contexts to avoid it throwing and stopping all JavaScript
...
Relevant error if you crypto is used in a non-secure context like a local LAN IP `http://192.168.1.151:3050/ `
```
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'deriveBits')
at new Crypto
at new Platform
at mountHydrogen
```
For my use-case with https://github.com/matrix-org/matrix-public-archive , I don't need crypto/encryption at all.
Docs:
- https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts
- https://developer.mozilla.org/en-US/docs/Web/API/Crypto/subtle
- "Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers."
---
Related to https://github.com/vector-im/hydrogen-web/issues/579
2022-02-25 01:59:48 -06:00
Eric Eastwood
b993331e06
Add more HTML form and SVG elements
...
Split off from https://github.com/vector-im/hydrogen-web/pull/653
Personally using `select`, `option`, and `path` currently in https://github.com/matrix-org/matrix-public-archive
but added a few extra SVG elements that seemed common to me.
2022-02-25 01:40:52 -06:00
Bruno Windels
8adc5a9fae
these were public actually
2022-02-18 17:24:55 +01:00
Bruno Windels
3f9f0e98c7
remove unused olm property in SenderKeyDecryption
2022-02-18 17:21:27 +01:00
Bruno Windels
82299e5aea
Update src/matrix/e2ee/olm/Decryption.ts
...
Co-authored-by: R Midhun Suresh <hi@midhun.dev>
2022-02-18 17:18:33 +01:00
Bruno Windels
3330530f68
Update src/matrix/e2ee/DecryptionResult.ts
...
Co-authored-by: R Midhun Suresh <hi@midhun.dev>
2022-02-18 17:18:25 +01:00
Bruno Windels
620409b3f0
fixup: ctor argument order
...
as it was an object before, order didn't matter
2022-02-18 17:17:24 +01:00
Bruno Windels
78e0bb1ff0
replace isPreKeyMessage with const enum
2022-02-18 17:00:56 +01:00
Bruno Windels
347edb5988
remove unused storage property
2022-02-18 16:47:47 +01:00
Bruno Windels
0ff1a01b42
Merge pull request #669 from vector-im/bwindels/contrib
...
Add guide for new contributers
2022-02-17 17:46:57 +01:00
Bruno Windels
91fd0e433a
remove changelog notes remainder
2022-02-17 17:44:44 +01:00
Bruno Windels
cdd6112971
finish adapting contribution guide
2022-02-17 17:39:45 +01:00
Bruno Windels
ac48a5a4df
bump SDK version to 0.0.8
2022-02-17 10:10:23 +01:00
Bruno Windels
49f6a2c2eb
Merge pull request #679 from vector-im/bwindels/fix-vm-ctor-default-options
...
always pass options to ViewModel constructor
2022-02-17 10:10:19 +01:00
Bruno Windels
2821f4d396
Merge pull request #680 from vector-im/bwindels/export-roomstatus
...
export RoomStatus in SDK
2022-02-17 09:51:12 +01:00
Bruno Windels
2472f11ec0
export RoomStatus
2022-02-17 09:47:57 +01:00
Bruno Windels
7f1fed6f8c
always pass options to ViewModel constructor
2022-02-17 09:24:18 +01:00
Bruno Windels
d971fd1a47
Merge pull request #678 from vector-im/fix-viewmodel-error
...
Check options exist on emitChange
2022-02-17 09:08:54 +01:00
RMidhunSuresh
498a43327f
Check if options exist in emitChange
2022-02-17 11:30:04 +05:30
Bruno Windels
d9acc83182
Merge pull request #675 from vector-im/bwindels/fix-lint-timeline-import
...
fix lint
2022-02-16 18:05:52 +01:00
Bruno Windels
60f5da60bb
fix lint
2022-02-16 18:01:24 +01:00
Bruno Windels
e3e90ed167
convert olm/Encryption to TS
2022-02-16 18:00:13 +01:00
Bruno Windels
eb5ca200f2
missed rename here
2022-02-16 18:00:03 +01:00
Bruno Windels
61b264be3b
bump sdk version to 0.0.7
2022-02-16 10:20:53 +01:00
Bruno Windels
37cec04e9c
Merge pull request #671 from vector-im/token-auth-registration
...
Implement token authenticated registration
2022-02-16 10:20:33 +01:00
RMidhunSuresh
7a9298328f
Return _type from getter
2022-02-16 14:37:18 +05:30
RMidhunSuresh
a76bcd1739
Changes in TokenAuth
2022-02-16 13:36:24 +05:30
RMidhunSuresh
60bc4450f3
Use type from server
2022-02-16 13:21:04 +05:30
RMidhunSuresh
ed151c8567
Return token stage from createRegistrationStage
2022-02-16 12:33:59 +05:30
RMidhunSuresh
c40801efd9
Implement the registration stage
2022-02-16 12:33:24 +05:30
Bruno Windels
a4fd1615dd
convert decryption
2022-02-15 18:21:29 +01:00
Bruno Windels
74c640f937
convert Session
2022-02-15 18:21:12 +01:00
Bruno Windels
7aeda70ff6
convert DecryptionResult
2022-02-15 18:20:14 +01:00
Bruno Windels
c6dde63abd
Merge pull request #668 from vector-im/bwindels/ts-viewmodel
...
convert ViewModel to typescript
2022-02-15 15:38:22 +01:00
Bruno Windels
dea1e7eaf3
bump sdk version
2022-02-15 11:31:50 +01:00
Bruno Windels
7179758c50
also here
2022-02-15 08:22:09 +01:00
Bruno Windels
1a159f9e9a
WIP
2022-02-14 18:01:04 +01:00
Bruno Windels
1795f58ba5
rename imports
2022-02-14 17:53:59 +01:00
Bruno Windels
4d82dd22b6
convert ViewModel to typescript
2022-02-14 17:50:17 +01:00
Bruno Windels
460780d602
Merge pull request #666 from vector-im/madlittlemods/explicit-domparser-document-for-consistent-return-with-linkedom-ssr
...
Fix missing reply text when message body is parsed as HTML in `linkedom` (SSR)
2022-02-14 09:57:31 +01:00
Eric Eastwood
dfed04166e
Fix missing reply text when message body is parsed as HTML in [linkedom
]( https://github.com/WebReflection/linkedom ) (SSR).
...
- [`linkedom`](https://github.com/WebReflection/linkedom ) is being used https://github.com/matrix-org/matrix-public-archive to server-side render (SSR) Hydrogen (`hydrogen-view-sdk`)
- This is being fixed by using a explicit HTML wrapper boilerplate with `DOMParser` to get a matching result in the browser and `linkedom`.
Currently `parseHTML` is only used for HTML content bodies in events. Events with replies have content bodies that look like `<mx-reply>Hello</mx-reply> What's up` so they're parsed as HTML to strip out the `<mx-reply>` part.
Before | After
--- | ---
![](https://user-images.githubusercontent.com/558581/153692011-2f0e7114-fcb4-481f-b217-49f461b1740a.png ) | ![](https://user-images.githubusercontent.com/558581/153692016-52582fdb-abd9-439d-9dce-3f04da6959db.png )
Before:
```js
// Browser (Chrome, Firefox)
new DOMParser().parseFromString(`<div>foo</div>`, "text/html").body.outerHTML;
// '<body><div>foo</div></body>'
// `linkedom` ❌
new DOMParser().parseFromString(`<div>foo</div>`, "text/html").body.outerHTML;
// '<body></body>'
```
After (consistent matching output):
```js
// Browser (Chrome, Firefox)
new DOMParser().parseFromString(`<!DOCTYPE html><html><body><div>foo</div></body></html>`, "text/html").body.outerHTML;
// '<body><div>foo</div></body>'
// `linkedom`
new DOMParser().parseFromString(`<!DOCTYPE html><html><body><div>foo</div></body></html>`, "text/html").body.outerHTML;
// '<body><div>foo</div></body>'
```
`linkedom` goal is to be close to the current DOM standard, but [not too close](https://github.com/WebReflection/linkedom#faq ). Focused on the streamlined cases for server-side rendering (SSR).
Here is some context around getting `DOMParser` to interpret things better. The conclusion was to only support the explicit standard cases with a `<html><body></body></html>` specified instead of adding the magic HTML document creation and massaging that the browser does.
- https://github.com/WebReflection/linkedom/issues/106
- https://github.com/WebReflection/linkedom/pull/108
---
Part of https://github.com/vector-im/hydrogen-web/pull/653 to support server-side rendering Hydrogen for the [`matrix-public-archive`](https://github.com/matrix-org/matrix-public-archive ) project.
2022-02-11 20:10:46 -06:00
Bruno Windels
75e2618f70
Merge pull request #664 from vector-im/bwindels/onlylogsummarykeys
...
dont log summary valued, as they can contain PII
2022-02-11 18:41:26 +01:00
Bruno Windels
9685ef4dd3
dont log summary valued, as they can contain PII
2022-02-11 18:39:37 +01:00
Bruno Windels
750f3cd8ff
release v0.2.26
2022-02-11 17:20:54 +01:00
Bruno Windels
34ec0e2c82
Merge pull request #663 from vector-im/bwindels/fix-reply-not-loading
...
Fix replies from /context not loading in e2ee rooms
2022-02-11 17:20:06 +01:00
Bruno Windels
ea8f3e5a6a
remove argument that is already bound in BaseRoom, making decryption fail
2022-02-11 17:14:56 +01:00
Bruno Windels
a184ad528f
Merge pull request #654 from vector-im/bwindels/create-room
...
Create rooms
2022-02-11 16:56:24 +01:00
Bruno Windels
57b1542688
use private topic field as public one got removed as not needed in view
2022-02-11 09:37:56 +01:00
Bruno Windels
175f869c83
fix lint
2022-02-10 20:07:27 +01:00
Bruno Windels
a442b4b009
Merge branch 'master' into bwindels/create-room
2022-02-10 20:05:40 +01:00
Bruno Windels
d65b25f084
also adjust m.direct if the room has already been replaced
2022-02-10 20:00:01 +01:00
Bruno Windels
2765f48a64
create user id array in m.direct if it doesn't exist already
2022-02-10 19:59:44 +01:00
Bruno Windels
d2008a336b
fix lint errors
2022-02-10 19:54:47 +01:00
Bruno Windels
ff46d382ac
adjust m.direct when creating a DM
2022-02-10 19:54:15 +01:00
Bruno Windels
3adb2c3254
fix ts errors
2022-02-10 16:44:40 +01:00
Bruno Windels
8526461d3c
split up create code into separate files
2022-02-10 16:43:32 +01:00
Bruno Windels
15eecbb463
cleanup
2022-02-10 16:28:44 +01:00
Bruno Windels
30c8ea29b2
fix bug where the wrong left panel tile is removed when accepting invite
...
because when comparing a tile to itself it wasn't returned 0
2022-02-10 16:27:32 +01:00
Bruno Windels
b0d790543a
push to navigation in SessionViewModel rather than RVO
2022-02-10 14:57:48 +01:00
Bruno Windels
2c1b29e637
remove logging
2022-02-10 14:39:41 +01:00
Bruno Windels
75bbde598d
also consider rooms without a name and just you and the other a DM
...
as we don't process m.direct account data yet
2022-02-10 14:39:18 +01:00
Bruno Windels
955a6bd6f9
styling for button in member details to open DM
2022-02-10 14:38:12 +01:00
Bruno Windels
147810864f
add support to set alias and federation flag in create room
2022-02-10 14:09:18 +01:00
Bruno Windels
4c0167ed74
don't show spinner in left panel when room creation fails
2022-02-10 11:19:43 +01:00
Bruno Windels
024a6c06aa
handle offline error nicer
2022-02-10 11:11:15 +01:00
Bruno Windels
b5536830d0
improve RoomBeingCreatedView, allow removing the roombeingcreated
2022-02-10 11:07:29 +01:00
Bruno Windels
20493f9e87
cleanup
2022-02-10 11:07:13 +01:00
Bruno Windels
e8c20c28b2
allow passing label into LoadingView
...
also doesn't need to be a template view, as it doesn't have bindings
or event handlers
2022-02-10 11:06:44 +01:00
Bruno Windels
f12841b2d3
better error handling in RoomBeingCreated
2022-02-10 11:06:20 +01:00
Bruno Windels
d6d1af13d0
rename RoomBeingCreated.localId to id
2022-02-10 11:03:52 +01:00
Bruno Windels
bbb1683dbf
fixup: login view styling
2022-02-10 09:40:42 +01:00
Bruno Windels
fed42f13ad
textarea styling
2022-02-10 09:40:30 +01:00
Bruno Windels
5f6308e7c4
fix homeserver field style in login view
2022-02-10 09:40:19 +01:00
Bruno Windels
74f7879cb6
fix unrelated bug: invite sorting order wasn't stable in left panel
...
as the timestamp is the same when you receive the invite during your
first sync
2022-02-10 09:40:03 +01:00
Bruno Windels
5c085efc10
create room view and view model
2022-02-09 19:02:51 +01:00
Bruno Windels
a1e14c4eec
rename to not have conflict between method name and instance of CreateRoomViewModel
2022-02-09 19:02:18 +01:00
Bruno Windels
4b1be30dc0
improve form-row classes so they can work with create room form
2022-02-09 19:01:35 +01:00
Bruno Windels
8523f6feaf
setup navigation for create room form
2022-02-09 19:00:41 +01:00
Bruno Windels
83d2b58bad
add avatar support to creating room
2022-02-09 19:00:00 +01:00
Bruno Windels
afe8e17a6f
remove debugging code
2022-02-08 17:00:06 +01:00
Bruno Windels
743f2270e5
have a single tile view that supports all 3 view models
2022-02-08 16:22:44 +01:00
Bruno Windels
5325b0b466
cleanup logging
2022-02-08 14:58:29 +01:00
Bruno Windels
d7b024eac1
unrelated fix: encode user name in matrix.to link
2022-02-08 14:35:14 +01:00
Bruno Windels
45c8e3a793
mark room as DM based on synced state events,rather than just inviteData
...
as that does not work for rooms we create ourselves
2022-02-08 14:34:34 +01:00
Bruno Windels
e04463c143
WIP for finding DM room
2022-02-07 18:58:53 +01:00
Bruno Windels
26fa2a5d60
add option
2022-02-07 18:58:43 +01:00
Bruno Windels
e1fbd1242e
WIP 4
2022-02-07 16:30:44 +01:00
Bruno Windels
b868734378
change sdk version
2022-02-07 11:05:28 +01:00
Bruno Windels
0bb3cfcfad
WIP3
2022-02-04 17:49:10 +01:00
Bruno Windels
3ff39a9549
Merge pull request #661 from vector-im/sdk-additions
...
Export more code from SDK
2022-02-04 17:43:23 +01:00
Bruno Windels
94709fd316
Merge pull request #623 from vector-im/registration
...
Bootstrap enough registration functionality for embedded-hydrogen work
2022-02-04 17:43:02 +01:00
RMidhunSuresh
4a0db9f984
Add required exports
2022-02-04 18:28:17 +05:30
RMidhunSuresh
28931f4103
Use async/await
2022-02-04 17:48:42 +05:30
RMidhunSuresh
f7f32ac806
responseCodeReject may not exist
2022-02-04 17:39:52 +05:30
RMidhunSuresh
a163cee18d
Remove dead imports
2022-02-04 17:25:30 +05:30
RMidhunSuresh
0828ac12b1
Fix params
2022-02-04 17:25:15 +05:30
RMidhunSuresh
b59f916824
Merge branch 'registration' of github.com:vector-im/hydrogen-web into registration
2022-02-04 17:16:32 +05:30
R Midhun Suresh
2ac63e78ca
mark method as internal
...
Co-authored-by: Bruno Windels <bruno@windels.cloud>
2022-02-04 17:16:15 +05:30
RMidhunSuresh
028b96e4c5
Let type also be undefined
2022-02-04 17:11:33 +05:30
RMidhunSuresh
22d5505a2b
Create registration stage in Registration itself
2022-02-04 16:50:22 +05:30
RMidhunSuresh
e66549a067
Remove dead code
2022-02-04 16:40:49 +05:30
RMidhunSuresh
e8c480426a
Remove error code
2022-02-04 16:37:43 +05:30
RMidhunSuresh
891375a885
Rename allowerErrors -> allowedStatusCodes
2022-02-04 16:35:47 +05:30
RMidhunSuresh
32af7e6f09
Make more changes
...
- make setter a method
- lazily create promise
2022-02-04 16:23:39 +05:30
Bruno Windels
0b04612d6c
WIP2
2022-02-04 11:16:58 +01:00
RMidhunSuresh
3d8b9cce41
Fix responseCode in Request
2022-02-04 15:41:37 +05:30
Bruno Windels
bc09ede09f
WIP
2022-02-03 17:57:35 +01:00
RMidhunSuresh
b6e1d4a7d5
Implement responseCode()
2022-02-03 19:41:14 +05:30
RMidhunSuresh
89a97537b0
Make methods private + some props readonly
2022-02-03 19:41:14 +05:30
RMidhunSuresh
8a3c0afba6
Fix incorrect types
2022-02-03 19:41:11 +05:30
RMidhunSuresh
0ad0ecfcc2
Check response code instead of existence of props
2022-02-03 19:40:25 +05:30
RMidhunSuresh
c4894f2c24
completed is not always present
2022-02-03 19:40:25 +05:30
RMidhunSuresh
e64f4ad7b2
Refactor code
...
- Move all code that does /register to Registration.ts
- RegistrationStage only deals with the generation of auth data
- Change API so that undefined is returned instead of string when
registration is over
2022-02-03 19:40:25 +05:30
R Midhun Suresh
2aad5546bf
No need for Object.assign here either
...
Co-authored-by: Bruno Windels <brunow@matrix.org>
2022-02-03 19:40:25 +05:30
RMidhunSuresh
7bacbec5e9
Remove type directory
2022-02-03 19:40:25 +05:30
RMidhunSuresh
e13040a49e
Don't mutate flows
2022-02-03 19:40:25 +05:30
R Midhun Suresh
30cb9f6d15
Use includes instead of elaborate find
...
Co-authored-by: Bruno Windels <brunow@matrix.org>
2022-02-03 19:40:25 +05:30
RMidhunSuresh
a351a185a0
Give proper names
2022-02-03 19:40:25 +05:30
RMidhunSuresh
fe0add01ee
Use union of types for RegistrationResponse
2022-02-03 19:40:25 +05:30
RMidhunSuresh
a249a1b2b5
Implement flow seclector
2022-02-03 19:40:25 +05:30
RMidhunSuresh
6798a5e429
Move types to types.ts
2022-02-03 19:40:25 +05:30
RMidhunSuresh
3a67da8830
Refactor type
...
- Change name
- Move union type down
2022-02-03 19:40:25 +05:30
RMidhunSuresh
1d4b079d0c
Type RegistrationResponse
2022-02-03 19:40:25 +05:30
RMidhunSuresh
49ade61ef6
Fill in ts types + change names
2022-02-03 19:40:25 +05:30
RMidhunSuresh
b482d478b4
Add a tos getter
2022-02-03 19:40:25 +05:30
RMidhunSuresh
ac7108b882
Throw error instead of returning it
2022-02-03 19:40:25 +05:30
RMidhunSuresh
7bb7189c6a
No need for this export
2022-02-03 19:40:25 +05:30
RMidhunSuresh
6eba60bd75
Use typescript style that was agreed on earlier
2022-02-03 19:40:25 +05:30
RMidhunSuresh
5de1fc1453
Remove unnecessary getters
2022-02-03 19:40:25 +05:30
RMidhunSuresh
2f3865d8cc
firstStage should be a local variable
2022-02-03 19:40:25 +05:30
RMidhunSuresh
2d4c106542
REFACTOR: Inline method
2022-02-03 19:40:25 +05:30
RMidhunSuresh
a91ba4370d
Change type to show that username is optional
2022-02-03 19:40:25 +05:30
RMidhunSuresh
550a560f40
Remove space
2022-02-03 19:40:25 +05:30
RMidhunSuresh
5f11790f6b
Object.assign is overkill here
2022-02-03 19:40:25 +05:30
RMidhunSuresh
e8dbbd876c
Give default values to parameters
2022-02-03 19:40:25 +05:30
RMidhunSuresh
755f934eb2
No need to explicitly pass in inhibitLogin
2022-02-03 19:40:25 +05:30
RMidhunSuresh
5e93e048ab
Don't cache GET requests
2022-02-03 19:40:25 +05:30
RMidhunSuresh
bb6a885116
Specify what errors are ignored in options
2022-02-03 19:40:25 +05:30
RMidhunSuresh
420c12f202
Copy over username only if it exists
2022-02-03 19:40:25 +05:30
RMidhunSuresh
792d5c62c5
Return username when registration is completed
2022-02-03 19:40:25 +05:30
RMidhunSuresh
fa2e2bc8f3
Allow register without providing username
2022-02-03 19:40:25 +05:30
RMidhunSuresh
170d7a5e55
Add startRegistration method
2022-02-03 19:40:25 +05:30
RMidhunSuresh
8ab8726b8f
Implement m.login.terms stage
2022-02-03 19:40:25 +05:30
RMidhunSuresh
18e2fc1089
Pass in params to BaseRegistrationStage
2022-02-03 19:40:25 +05:30
RMidhunSuresh
a59b67ec45
Fix errors
2022-02-03 19:40:25 +05:30
RMidhunSuresh
d76a059525
Temporary fix for 401 errors
2022-02-03 19:40:25 +05:30
RMidhunSuresh
d28ab919bb
Implement dummy registration logic
2022-02-03 19:40:25 +05:30
RMidhunSuresh
eb146830ba
Implement registration endpoint
2022-02-03 19:40:25 +05:30
RMidhunSuresh
618d02d838
fetch registration flows
2022-02-03 19:40:25 +05:30
Bruno Windels
348de312f9
draft code in matrix layer to create room
2022-02-02 10:19:49 +01:00
Bruno Windels
65dcf8bc36
release v0.2.25
2022-02-01 12:34:42 +01:00
Bruno Windels
2e3616e05d
call cursor.update during backup field migration, needs new version
2022-02-01 12:31:10 +01:00
Bruno Windels
00c5e747d2
log total backed up keys during flush operation
2022-02-01 12:30:45 +01:00
Bruno Windels
b29ecd339d
add more logging to backup storage migration
2022-02-01 12:18:28 +01:00
Bruno Windels
c6820eccab
release v0.2.24
2022-02-01 11:58:47 +01:00
Bruno Windels
247d13f97a
Merge pull request #651 from vector-im/bwindels/write-session-backup
...
Session backup writing
2022-02-01 11:54:53 +01:00
Bruno Windels
f4fa013ebc
mark as not configured yet when re-enabling key backup
2022-02-01 11:32:53 +01:00
Bruno Windels
f4bb420f35
mark key backup properly as disabled
2022-02-01 11:27:42 +01:00
Bruno Windels
02f06724d0
don't block reenabling 4s if already enabled
2022-02-01 11:26:00 +01:00
Bruno Windels
fd4eb6b50d
distinguish between "waiting to go online" vs "backup not configured"
2022-02-01 11:08:13 +01:00
Bruno Windels
997666164c
remove unused enum variants
2022-01-31 17:37:44 +01:00
Bruno Windels
9c599d53aa
allow to inject max delay in key backup
2022-01-31 17:31:01 +01:00
Bruno Windels
62acd458c6
also ask for new key if backup version is not found
2022-01-31 17:30:51 +01:00
Bruno Windels
17275a5390
backup 200 keys per request
2022-01-31 17:30:15 +01:00
Bruno Windels
830786b2fd
fixes and cleanup
2022-01-31 16:26:14 +01:00
Bruno Windels
06a1421e97
add backupWriteStatus so binding can take multiple fields into account
2022-01-31 16:26:06 +01:00
Bruno Windels
6541aacf98
don't discount already finished keys in total for previous iterations
2022-01-31 16:23:48 +01:00
Bruno Windels
dacaa86386
fix percentage calculation
2022-01-31 16:22:22 +01:00
Bruno Windels
a757fb3696
better error handling in key backup, cleanup and not overuse observables
2022-01-31 14:37:05 +01:00
Bruno Windels
7eb0d347f5
flush key backup after coming online
2022-01-31 14:36:35 +01:00
Bruno Windels
ae5cc17290
mark all inbound sessions to be backed up again when changing version
2022-01-31 14:36:04 +01:00
Bruno Windels
d9e6164a5c
fix ts errors
2022-01-28 16:40:32 +01:00
Bruno Windels
a97d235cf5
flush after enabling key backup
2022-01-28 16:36:42 +01:00
Bruno Windels
c9b5ce6508
clean up key backup vm using flatMap to avoid subscription handling
2022-01-28 16:36:13 +01:00
Bruno Windels
e0df003aba
add flatMap operator on observable value
2022-01-28 16:35:49 +01:00
Bruno Windels
c340746a87
also remove text nodes when updating message body
...
fixes #649
2022-01-28 16:04:56 +01:00
Bruno Windels
eabd303c8e
count on the index if we're using one, don't always take the store
2022-01-28 15:14:58 +01:00
Bruno Windels
bd2c70b923
adapt key backup view(model) to changes in session, show backup progress
2022-01-28 15:14:23 +01:00
Bruno Windels
504f420293
make keyBackup an observable and don't have separate needs-key flag
2022-01-28 15:13:58 +01:00
Bruno Windels
eb134a6c47
only take into account non-backed up keys for counting
2022-01-28 13:18:03 +01:00
Bruno Windels
7d3e3b992b
some more typing
2022-01-28 13:14:38 +01:00
Bruno Windels
c47bdd5715
flush key backup when creating a new room key
2022-01-28 13:14:11 +01:00
Bruno Windels
b692b3ec4f
move key backup operation and flush bookkeeping inside KeyBackup
...
so we can flush from other places than Session
2022-01-28 13:13:23 +01:00
Bruno Windels
ebc7f1ecd7
needs to be awaited
2022-01-28 13:11:52 +01:00
Bruno Windels
b30db544a3
use idb key range to select non-backed up keys
2022-01-28 13:11:32 +01:00
Bruno Windels
a499689bd8
also write room key that we create ourselves with RoomKey infrastructure
...
so all keys are written in one place and the flags are always correct
2022-01-28 13:10:48 +01:00
Bruno Windels
c81dde53e7
store key source in inbound session
2022-01-28 10:03:30 +01:00
Bruno Windels
dd2b41ff95
use backup flag in key backup rather than separate store
2022-01-27 16:07:18 +01:00
Bruno Windels
48e72f9b69
replace SessionsNeedingBackup store with backup field on inbound session
2022-01-27 16:00:46 +01:00
Bruno Windels
6f1484005b
stop key backup when on the wrong version
...
users can then enter the new key in the settings to start backing up
again
2022-01-27 15:14:29 +01:00
Bruno Windels
0b4954a9ca
log key backup upload requests
2022-01-27 14:20:04 +01:00
Bruno Windels
bf08c0d850
deal with errors when enabling key backup
...
fixes #449
2022-01-27 14:19:37 +01:00
Bruno Windels
e80acd4d57
add migration when backup is enabled
2022-01-26 16:30:40 +01:00
Bruno Windels
60ed276b8a
add progress notification and cancellation to key backup flush
2022-01-26 15:19:31 +01:00
Bruno Windels
554aa45d48
add support for progress notifications in abortable operation
2022-01-26 15:18:23 +01:00
Bruno Windels
524090e27d
support idb store/index.count
2022-01-26 15:12:11 +01:00
Bruno Windels
a791641b34
move types to separate file
2022-01-26 12:10:20 +01:00
Bruno Windels
85155a43bb
cleanup types
2022-01-26 10:17:31 +01:00
Bruno Windels
cfb94206f9
move curve25519 code to separate file
2022-01-26 10:13:01 +01:00
Bruno Windels
86caa5f9b1
rename session backup to key backup to be consistent with RoomKey
2022-01-26 09:51:48 +01:00
Bruno Windels
933a1b4636
draft of session backup writing + some refactoring
2022-01-25 18:48:19 +01:00
Bruno Windels
ffece4f357
move some validation of into session backup
2022-01-25 18:48:03 +01:00
Bruno Windels
8f4e3c62ce
add hs endpoint for backup keys upload
2022-01-25 18:47:42 +01:00
Bruno Windels
290aaad63a
add sessionsNeedingBackup store
2022-01-25 18:47:27 +01:00
Bruno Windels
a3e294bb60
small cleanup
2022-01-25 18:45:39 +01:00
Bruno Windels
5d87d8bde3
change store.get return type when no value is found to undefined
...
IDBRequest.result is undefined according to the official TS type decls.
2022-01-25 18:43:44 +01:00
Bruno Windels
993a86ddb2
convert SessionBackup to typescript and pass in keyloader
2022-01-20 11:16:08 +01:00
Bruno Windels
a4d924acd1
make KeyLoader use proper olm types
2022-01-20 11:15:48 +01:00
Bruno Windels
30438846e9
Merge pull request #645 from vector-im/bwindels/fix-mobile-multiline
...
remove enterkeyhint attribute as it prevents entering newlines on android
2022-01-18 10:39:35 +01:00
Bruno Windels
e6fee75952
remove enterkeyhint attribute as it prevents entering newlines on android
...
on Android, by default (without the above attribute set to "send"), you
press enter twice to submit a field. The first time, enter, Android
seems to prevent sending logic by setting the key property on the event
to "Unidentified", but does insert a newline. The second consecutive enter,
it will be set to "Enter" and we'll send.
Having enterkeyhint to send will disable all of that. So we're going with
the default behaviour, which, IIRC, was a bit annoying on iOS as well.
2022-01-18 09:42:01 +01:00
Bruno Windels
acc9167991
Merge pull request #644 from vector-im/bwindels/fix-images-in-replies
...
fix images not loading in replies
2022-01-17 16:51:09 +01:00
Bruno Windels
b0e8506cb5
ensure images load in reply preview in timeline
2022-01-17 16:48:36 +01:00
Bruno Windels
f379bf2341
ensure images load in reply preview in composer
2022-01-17 16:48:17 +01:00
Bruno Windels
454d2d3666
Merge pull request #643 from vector-im/bwindels/separate-logout-view
...
Show logout in separate view so it's clear something is happening
2022-01-17 16:40:49 +01:00
Bruno Windels
57bf730241
mention it's better to not close the app
2022-01-17 16:33:57 +01:00
Bruno Windels
4bc421527f
also add extra classes to legacy spinner
2022-01-17 16:31:13 +01:00
Bruno Windels
05d23cc745
hook up logout view
2022-01-17 16:31:02 +01:00
Bruno Windels
4c5b884af7
create and hook up logout viewmodel, on /logout/<id> path
2022-01-17 16:30:22 +01:00
Bruno Windels
c6c1d3b3d8
refactor logout in client so we don't need a fully loaded session
...
instead, we pass the session id in
this will make it easier to first dispose the client when leaving the
/session/<id> and just creating a client without fully loading it
to log out. This way sync is already not running anymore.
2022-01-17 16:29:01 +01:00
Bruno Windels
164d72830f
create subclass for inline template views (e.g. without sub classing)
2022-01-17 16:25:48 +01:00
Bruno Windels
c10435e242
Merge pull request #642 from vector-im/update-node-faq
...
Update node version in FAQ
2022-01-17 09:18:07 +01:00
RMidhunSuresh
2dc9b63051
Update node version in FAQ
2022-01-17 12:49:55 +05:30
Bruno Windels
d673c8714e
release v0.2.23
2022-01-14 19:19:18 +01:00
Bruno Windels
412db33c36
click here labels are so nineties
2022-01-14 19:18:12 +01:00
Bruno Windels
000c8b27c3
Merge pull request #637 from vector-im/bwindels/timeline-readme
...
add basic readme for updates in the timeline
2022-01-14 19:16:25 +01:00
Bruno Windels
46c61953f6
Merge pull request #612 from vector-im/threading-fallback-reply
...
Threading fallback - PR 2 - Support rich reply
2022-01-14 19:10:39 +01:00
Bruno Windels
a8a8355ea4
fix unit test
2022-01-14 19:05:53 +01:00
Bruno Windels
3d00881508
don't look in remoteEntries when already found
2022-01-14 19:05:30 +01:00
Bruno Windels
7197e5427f
don't emit an update when the context entry is loaded sync
...
also load context entries in parallel
2022-01-14 18:16:52 +01:00
Bruno Windels
3243ce2a90
fix unit test that failed after it finished
...
crashing the runner on node 16
2022-01-14 18:15:46 +01:00
Bruno Windels
65929194b0
fix lint warnings
2022-01-14 16:23:55 +01:00
Bruno Windels
184a16a194
also define param
2022-01-14 16:23:12 +01:00
Bruno Windels
8201a85c47
ensure these have a fn for tilesCreator
2022-01-14 16:20:38 +01:00
Bruno Windels
2321228981
use this._entry here (once updated by super.updateEntry)
2022-01-14 16:20:14 +01:00
Bruno Windels
5f99c2360c
also try to create replyTile from ctor just in case update doesn't come
2022-01-14 16:12:43 +01:00
Bruno Windels
ad335d5088
pass in tilesCreator everywhere, although not needed right now
2022-01-14 16:06:29 +01:00
Bruno Windels
1ea4a347e2
encode url components
2022-01-14 15:53:17 +01:00
Bruno Windels
b578f4ac84
actually add LocationView
2022-01-14 15:50:19 +01:00
Bruno Windels
052ff02571
move TileView type too so we don't have to repeat imports
2022-01-14 15:47:22 +01:00
Bruno Windels
3c59004e72
Merge branch 'master' into threading-fallback-reply
2022-01-14 15:43:24 +01:00
Bruno Windels
17ebc8a066
Merge pull request #611 from vector-im/threading-fallback-relation
...
Threading fallback - PR 1 - Link events with their related event
2022-01-14 15:35:27 +01:00
Bruno Windels
9220b6675b
Merge pull request #641 from vector-im/bwindels/location-tile
...
add location tile view so we don't throw when a location is shared
2022-01-14 15:30:39 +01:00
Bruno Windels
18a76025c7
add location tile view so we don't throw when a location is shared
2022-01-14 15:27:46 +01:00
RMidhunSuresh
dac2d5e685
Pass everything down into updateEntry
2022-01-14 19:26:23 +05:30
RMidhunSuresh
0af9f10166
don't store tilesCreator
2022-01-14 19:11:40 +05:30
RMidhunSuresh
d18f4d341c
store replyFlags on this
2022-01-14 18:31:22 +05:30
Bruno Windels
b5a1c419ca
Merge pull request #640 from vector-im/bwindels/lazyloadimageswhenpartiallyinview
...
load image in timeline from when it is partially visible
2022-01-14 13:59:57 +01:00
Bruno Windels
1f9be978b7
load image in timeline from when it is partially visible
2022-01-14 13:57:11 +01:00
RMidhunSuresh
41fffdf155
Remove even more stray new lines
2022-01-14 18:17:49 +05:30
RMidhunSuresh
51215fda16
Rename tileCreator -> tilesCreator
2022-01-14 18:17:49 +05:30
RMidhunSuresh
d639e169ec
Move tileCreator to BaseMessageTile
2022-01-14 18:17:49 +05:30
RMidhunSuresh
e1b9b1161d
Split ifs and remove ?. abuse
2022-01-14 18:17:49 +05:30
RMidhunSuresh
846e637716
Remove stray newline
2022-01-14 18:17:49 +05:30
RMidhunSuresh
58dd25b58d
track reply-tile
2022-01-14 18:17:49 +05:30
RMidhunSuresh
a77b9d9027
Move update logic to BaseMessageTile
2022-01-14 18:17:49 +05:30
RMidhunSuresh
ef5a377bc6
Hide reply option on pending tile
2022-01-14 18:17:49 +05:30
RMidhunSuresh
951af49e04
Emit change on reply tile
2022-01-14 18:17:49 +05:30
RMidhunSuresh
455b747a1c
Don't check param for reply
2022-01-14 18:17:49 +05:30
RMidhunSuresh
28a534ee49
Fix reply nesting
2022-01-14 18:17:49 +05:30
RMidhunSuresh
f9f7f6cc6f
Fix test
2022-01-14 18:17:49 +05:30
RMidhunSuresh
7f91653208
Rename replyTextTile -> replyTile
2022-01-14 18:17:49 +05:30
RMidhunSuresh
086e0c0320
Inline methods
2022-01-14 18:17:49 +05:30
RMidhunSuresh
273c44424f
Throw if viewClass returns undefined
2022-01-14 18:17:49 +05:30
RMidhunSuresh
b134fa7409
Format swtich case properly
2022-01-14 18:17:49 +05:30
RMidhunSuresh
fee6447e22
Don't call render()
2022-01-14 18:17:49 +05:30
RMidhunSuresh
e99cd41ed0
Change check
2022-01-14 18:17:49 +05:30
RMidhunSuresh
af5a008d0f
Move links to vm
2022-01-14 18:17:49 +05:30
RMidhunSuresh
27a9f5dd02
Use DOMPurify to remove mx-reply
2022-01-14 18:17:49 +05:30
RMidhunSuresh
cfefe6962a
Remove stray space
2022-01-14 18:17:49 +05:30
RMidhunSuresh
88f9ad09a2
Move method as local function
2022-01-14 18:17:49 +05:30
RMidhunSuresh
0ae3c60d6d
Remove .js file from rebase
2022-01-14 18:17:49 +05:30
RMidhunSuresh
c34d574385
No need to export renderPart
2022-01-14 18:17:49 +05:30
RMidhunSuresh
2a124d4195
simplify css
2022-01-14 18:17:49 +05:30
RMidhunSuresh
e352867f5a
Remove unnecessary ctor
2022-01-14 18:17:49 +05:30
RMidhunSuresh
f645065db7
Remove unused getter
2022-01-14 18:17:49 +05:30
RMidhunSuresh
d69059de68
Use different flag
2022-01-14 18:17:49 +05:30
RMidhunSuresh
0c3f16e5f6
Use 's' flag with regex if available
2022-01-14 18:17:49 +05:30
RMidhunSuresh
cba044eff1
Remove comment
2022-01-14 18:17:49 +05:30
RMidhunSuresh
dee22f7120
Implement render flags
2022-01-14 18:17:49 +05:30
RMidhunSuresh
46b69b3873
Render error
2022-01-14 18:17:49 +05:30
RMidhunSuresh
687aa5a7e3
Remove dead code
2022-01-14 18:17:49 +05:30
RMidhunSuresh
4df3654166
Prevent reply previews from being nested
2022-01-14 18:17:49 +05:30
RMidhunSuresh
4d63b41127
Make reply preview flush left
2022-01-14 18:17:49 +05:30
RMidhunSuresh
1b9f970d7f
WIP: Render the whole view instead of messageBody
2022-01-14 18:17:49 +05:30
RMidhunSuresh
7f1b3e25e8
Use t instead of tag
2022-01-14 18:17:49 +05:30
RMidhunSuresh
f01d5d95d9
Reuse code from timeline view
2022-01-14 18:17:49 +05:30
RMidhunSuresh
89d6968139
Show decryption error as well
2022-01-14 18:17:49 +05:30
RMidhunSuresh
2773642406
No need to handle redaction specially
2022-01-14 18:17:49 +05:30
RMidhunSuresh
13cba84445
Remove mapSideEffect
2022-01-14 18:17:49 +05:30
RMidhunSuresh
bb45d0eae9
Render non-text messages as well
2022-01-14 18:17:49 +05:30
RMidhunSuresh
df22db256b
No need to pass tileCreator as argument
2022-01-14 18:17:49 +05:30
RMidhunSuresh
e0dc853d74
Fill matrix.to links
2022-01-14 18:17:49 +05:30
RMidhunSuresh
91912bdb8d
Create tile using tileCreator
2022-01-14 18:17:49 +05:30
RMidhunSuresh
54004eef4d
Integrate into update mechanism
2022-01-14 18:17:49 +05:30
RMidhunSuresh
aa3bb9c6ef
Remove allowReplies
2022-01-14 18:17:49 +05:30
RMidhunSuresh
73c5562fd3
Remove code from BaseTextTile
2022-01-14 18:17:49 +05:30
RMidhunSuresh
4a12acf157
Improve error code
2022-01-14 18:17:49 +05:30
RMidhunSuresh
67da746b48
Render error
2022-01-14 18:17:49 +05:30
RMidhunSuresh
545aae31d9
WIP
2022-01-14 18:17:49 +05:30
RMidhunSuresh
3aa29cfc65
Do not remove reply preview
2022-01-14 18:17:49 +05:30
RMidhunSuresh
99f4eb6843
Minimize manual dom manipulation where possible
2022-01-14 18:17:49 +05:30
RMidhunSuresh
61f4d0719f
Refactor code
2022-01-14 18:17:49 +05:30
RMidhunSuresh
d6233e7c77
Render static avatar
2022-01-14 18:17:49 +05:30
RMidhunSuresh
540aa6c546
Use contextEntry and pass avatarUrl
2022-01-14 18:17:49 +05:30
RMidhunSuresh
31573b3599
Render reply
2022-01-14 18:17:49 +05:30
RMidhunSuresh
e88ee31991
Add getter for reply body
2022-01-14 18:17:49 +05:30
RMidhunSuresh
f6cf3b378b
Strip reply fallback
2022-01-14 18:17:49 +05:30
RMidhunSuresh
35a13842af
Implement context endpoint
2022-01-14 18:17:49 +05:30
RMidhunSuresh
65f957f023
WIP
2022-01-14 18:17:49 +05:30
R Midhun Suresh
4fb0a84d0a
Return property from super
...
Co-authored-by: Bruno Windels <brunow@matrix.org>
2022-01-14 18:16:38 +05:30
RMidhunSuresh
30b8e5b5ea
use withReply
2022-01-14 18:15:26 +05:30
RMidhunSuresh
8cd430ac07
Improve test logic
2022-01-14 17:48:25 +05:30
RMidhunSuresh
75012eda9c
Fix tests
2022-01-14 17:28:31 +05:30
RMidhunSuresh
e9a49fdf74
Use hsApi mock
2022-01-14 17:07:06 +05:30
RMidhunSuresh
315acf2fbc
Remove dead code from test
2022-01-14 16:54:16 +05:30
RMidhunSuresh
310790c84e
Use mock storage
2022-01-14 16:51:06 +05:30
RMidhunSuresh
277638b107
Override methods in NonPersistedEventEntry
...
This will prevent redactions to entries fetched from hs showing "message
is being redacted" and will instead show "message is redacted"
2022-01-14 16:15:16 +05:30
RMidhunSuresh
b238357c53
Use emitUpdateForEntry
2022-01-14 16:14:42 +05:30
RMidhunSuresh
4fa32bac2f
check only in remoteEntries
2022-01-14 16:14:06 +05:30
Bruno Windels
58f2192a7e
add basic readme for updates in the timeline
2022-01-14 11:13:21 +01:00
RMidhunSuresh
3c28ee1adf
Remove unused getter
2022-01-13 21:05:18 +05:30
RMidhunSuresh
2c4610c132
add param to emitUpdateForEntry
2022-01-13 19:20:37 +05:30
RMidhunSuresh
239d16747d
Clean test code; try not to peek into internals
2022-01-13 19:14:28 +05:30
RMidhunSuresh
764541d3ca
Remove unused method
2022-01-13 18:32:18 +05:30
RMidhunSuresh
ca1831fef6
update contextForEntries
2022-01-13 14:38:05 +05:30
Bruno Windels
1ed8d48ced
release SDK 0.0.4
2022-01-12 18:39:13 +01:00
Bruno Windels
48e6bba100
Merge pull request #634 from vector-im/bwindels/fix-sdk-build2
...
Adjust SDK to not do asset imports anymore in file provided from SDK
2022-01-12 18:37:28 +01:00
Bruno Windels
8c1596d869
update SDK docs to not use paths/vite anymore
2022-01-12 18:32:15 +01:00
Bruno Windels
93eca757d3
dont add paths/vite to sdk output, as it does not work
2022-01-12 18:31:55 +01:00
Bruno Windels
3f60ef8da7
release sdk version 0.0.3
2022-01-12 17:51:48 +01:00
Bruno Windels
5d15fce343
Merge pull request #633 from vector-im/bwindels/fix-sdk-build1
...
Attempt to fix SDK build and dev server errors for consuming app
2022-01-12 17:48:08 +01:00
Bruno Windels
f526098293
also remove ts types, as we get errors for the untyped files
...
that don't exist
2022-01-12 17:41:00 +01:00
Bruno Windels
d7290bf750
remove exports field to try and prevent vite bug resolving asset url
...
downside is that we can't export cjs version anymore
2022-01-12 17:14:52 +01:00
RMidhunSuresh
2f4c0623d0
Restore earlier name
2022-01-12 19:20:32 +05:30
RMidhunSuresh
ed88184757
Remove statement
2022-01-12 19:14:38 +05:30
RMidhunSuresh
d0f7570f5e
Fix tests
2022-01-12 18:44:17 +05:30
Bruno Windels
a5eb386f48
Merge pull request #632 from vector-im/bwindels/move-bs58-to-dev-deps
...
put bs58 in devDeps as we bundle it in the sdk
2022-01-12 10:13:31 +01:00
Bruno Windels
b76f97be93
put bs58 in devDeps as we bundle it in the sdk
2022-01-12 10:11:04 +01:00
RMidhunSuresh
acafae7d3a
Implement offline support for context entries
2022-01-11 20:58:27 +05:30
RMidhunSuresh
a59bf7c002
Fix looking in allEntries
2022-01-11 20:57:29 +05:30
RMidhunSuresh
5c1813888c
Check in all entries for context
2022-01-11 14:57:22 +05:30
RMidhunSuresh
73733ce145
Guard entry from storage being processed by method
2022-01-11 14:49:59 +05:30
RMidhunSuresh
bf6dfcfcad
update comment
2022-01-11 13:28:35 +05:30
RMidhunSuresh
f605608098
getTrackedEntry -> findLoadedEventById
2022-01-11 13:20:42 +05:30
RMidhunSuresh
31a8227e53
stylistic change
2022-01-11 13:14:13 +05:30
RMidhunSuresh
62dcb61536
Rename updateEntry -> emitUpdateForEntry
2022-01-11 13:11:50 +05:30
RMidhunSuresh
fda211e7b3
Remove dead code
2022-01-11 13:10:40 +05:30
RMidhunSuresh
63b6564f70
Pass prop change
2022-01-11 11:54:41 +05:30
RMidhunSuresh
93bbeee400
Don't pass relatedEntry in param
2022-01-11 11:49:06 +05:30
RMidhunSuresh
66fa8d84a7
Make setAsContextOf private
2022-01-10 18:51:12 +05:30
RMidhunSuresh
091b55a265
Rename method and add comment
2022-01-10 18:05:33 +05:30
RMidhunSuresh
ec8f6e8e0a
use addLocalRelation
2022-01-10 12:58:45 +05:30
RMidhunSuresh
7ad73bb453
Move check down
2022-01-07 19:56:31 +05:30
RMidhunSuresh
3fecce6fe6
Fix tests
2022-01-07 19:39:51 +05:30
RMidhunSuresh
9d161a0bcf
Refactor + put redaction in NonPersistedEventEntry
2022-01-07 19:38:57 +05:30
RMidhunSuresh
8cc04e4c25
Keep calls internal to class
2022-01-07 17:50:36 +05:30
RMidhunSuresh
0a09a50ab9
Move line into if
2022-01-07 17:29:17 +05:30
RMidhunSuresh
c6484f1eac
Replace entry in contextEntryNotInTimeline
2022-01-07 17:11:42 +05:30
Bruno Windels
68214156d9
Merge pull request #608 from vector-im/ts-migration-doc
...
Clarify approach to type data objects in doc
2022-01-06 14:39:06 +01:00
Bruno Windels
314843f5f2
Merge pull request #624 from vector-im/build-fix
...
Add hash-bang to fix sdk build error
2022-01-06 13:22:10 +01:00
RMidhunSuresh
cfbb6d4250
Add explaining comment
2022-01-06 15:37:58 +05:30
RMidhunSuresh
7adce08eee
add more jsdoc comments
2022-01-06 15:33:00 +05:30
RMidhunSuresh
f76217dcce
Change method name
2022-01-06 15:14:13 +05:30
RMidhunSuresh
a2ab36480f
Add jsdoc comment
2022-01-06 15:02:44 +05:30
RMidhunSuresh
90c9018aa4
Update comment
2022-01-06 12:07:10 +05:30
RMidhunSuresh
595deb3a3d
Also copy over contextEntry from otherEntry
2022-01-06 12:07:10 +05:30
RMidhunSuresh
78f97c6532
Remove await from tests
2022-01-06 12:07:10 +05:30
RMidhunSuresh
9f1764c325
Update comment
2022-01-06 12:07:10 +05:30
RMidhunSuresh
4418700589
Add test for move code
2022-01-06 12:07:10 +05:30
RMidhunSuresh
d2c7eec8e0
No need to delete before update on map
2022-01-06 12:07:10 +05:30
RMidhunSuresh
41cf6460d0
Remove dead code
2022-01-06 12:07:10 +05:30
RMidhunSuresh
8ec75ce4bb
Rename methods
2022-01-06 12:07:10 +05:30
RMidhunSuresh
a060d54468
Make tests pass
2022-01-06 12:07:10 +05:30
RMidhunSuresh
3fe824dbd1
Propagate updates
2022-01-06 12:07:10 +05:30
RMidhunSuresh
7ef79c92f5
Remove entry from map
2022-01-06 12:07:10 +05:30
RMidhunSuresh
2d5bb82077
Fix bug
2022-01-06 12:07:10 +05:30
RMidhunSuresh
6f8001bd82
Add tests
2022-01-06 12:07:10 +05:30
RMidhunSuresh
640a3fb9fa
Check if contextEvent was found
2022-01-06 12:07:10 +05:30
RMidhunSuresh
05d2defa2d
Rename fetchedEntries --> contextEntriesNotInTimeline
2022-01-06 12:07:10 +05:30
RMidhunSuresh
c3bef6d4d2
Rename dependents --> contextForEntries
2022-01-06 12:07:10 +05:30
RMidhunSuresh
d1818d2a57
Reuse code in getOrLoadEntry
2022-01-06 12:07:10 +05:30
RMidhunSuresh
f5fadf700e
Move event to remoteEntries if needed
2022-01-06 12:07:10 +05:30
RMidhunSuresh
d924dbb723
Add explaining comment
2022-01-06 12:07:10 +05:30
RMidhunSuresh
544dca3b18
Use _updateEntry
2022-01-06 12:07:10 +05:30
RMidhunSuresh
39f68e8c2f
Refactor out magic string
2022-01-06 12:07:10 +05:30
RMidhunSuresh
5c0bbdd4c8
Move methods into Timeline
2022-01-06 12:07:10 +05:30
RMidhunSuresh
51b7b21082
Implement readById() in TimelineReader
2022-01-06 12:07:10 +05:30
RMidhunSuresh
0da94e51e0
Use map and fetch from Map if available
2022-01-06 12:07:10 +05:30
RMidhunSuresh
4a6293dcdc
Made code more readable
2022-01-06 12:07:10 +05:30
RMidhunSuresh
287212956b
findAndUpdate instead of update
2022-01-06 12:07:10 +05:30
RMidhunSuresh
7a91dd9595
Improve comment
2022-01-06 12:07:10 +05:30
RMidhunSuresh
4a81e06e96
Track fetched entries for redactions
2022-01-06 12:07:10 +05:30
RMidhunSuresh
ea89c272b9
Support redaction changes in remoteEntries
2022-01-06 12:07:10 +05:30
RMidhunSuresh
c690de9f7b
Support decryption on entries fetched from hs
2022-01-06 12:07:10 +05:30
RMidhunSuresh
7cc3d4b91a
Emit updated entries
2022-01-06 12:07:10 +05:30
RMidhunSuresh
053dcf39a5
Use NonPersistedEventEntry
2022-01-06 12:07:10 +05:30
RMidhunSuresh
d191b327c6
Change comment
2022-01-06 12:07:10 +05:30
RMidhunSuresh
06864a65b7
Add contextEventId
2022-01-06 12:07:10 +05:30
RMidhunSuresh
764e38f8c9
Use 'context' instead of 'related'
2022-01-06 12:07:10 +05:30
RMidhunSuresh
696980aca4
Parse display name and avatar of event
2022-01-06 12:07:10 +05:30
RMidhunSuresh
0c42f53a2f
Implement context endpoint
2022-01-06 12:07:06 +05:30
RMidhunSuresh
e901142661
await on loading related events
2022-01-06 11:59:58 +05:30
RMidhunSuresh
2265d198a6
Formatting fix
2022-01-06 11:59:58 +05:30
RMidhunSuresh
b753507b8d
WIP
2022-01-06 11:59:58 +05:30
Bruno Windels
196e3726cb
Merge pull request #630 from vector-im/bwindels/otk-count-cleanup
...
Missing OTK count in sync doesn't mean 0, but rather no change
2022-01-05 14:29:51 +01:00
Bruno Windels
c9d11d6f19
missing otk count does not mean 0 but rather no change
2022-01-05 14:26:15 +01:00
Bruno Windels
aabfbf507e
typo in comments
2022-01-05 14:25:42 +01:00
RMidhunSuresh
205de7e5c5
Add hash-bang to fix build error
2021-12-27 15:51:25 +05:30
Bruno Windels
908f9a7ce3
try to export stylesheet
2021-12-22 18:04:30 +01:00
Bruno Windels
203a5fd88c
Merge pull request #622 from vector-im/bwindels/sdk-refactoring
...
Some API cleanup ahead of first SDK release
2021-12-22 17:58:20 +01:00
Bruno Windels
13e77636a9
export paths from vite.js as required by Platform, reorder ctor params
...
make it easier for SDK users
2021-12-22 17:48:08 +01:00
Bruno Windels
6247ced7b7
dont export, the ctor of these classes is not a public API
2021-12-22 17:24:58 +01:00
Bruno Windels
ba27d20b24
only pass platform into Client
...
simplifying the API for SDK
2021-12-22 17:20:37 +01:00
Bruno Windels
9238961992
cache olm and olm worker promise inside Platform
...
as prep to call them every time a Client is created
2021-12-22 17:19:10 +01:00
Bruno Windels
fe26f48c47
rename SessionContainer to Client
2021-12-22 17:09:52 +01:00
Bruno Windels
b5fe65d0cc
Merge pull request #617 from vector-im/bwindels/sdk-build
...
SDK build
2021-12-22 16:54:03 +01:00
Bruno Windels
24afe1e496
add licenses to readme of things we actually bundle
...
rather than just depend on
2021-12-22 16:45:08 +01:00
Bruno Windels
5f389e654a
add description
2021-12-22 16:37:53 +01:00
Bruno Windels
c31215bc2a
less logging during build
2021-12-22 16:31:19 +01:00
Bruno Windels
c3ff571af7
update SDK doc, use it as sdk package readme
2021-12-22 16:31:19 +01:00
Bruno Windels
441fa13bfd
change sdk package name to hydrogen-view-sdk
...
as we might want to also have a lower level sdk later on
2021-12-22 16:31:19 +01:00
Bruno Windels
3bee4b4585
bundle bs58 to avoid pain of bundle transitive dependency for lib users
...
bs58 depends on safe-buffer, which depends on buffer, which is a bit
of a pain to bundle as it is a built-in node module. You'd typically
replace buffer with a browser polyfill in your build system but:
a) this is somewhat a pain to setup for simple apps
b) the polyfill is way more than we need (6kb), so we prefer to bundle
our minimal buffer replacement that uses Uint8Array. Since it is
a transitive dependency, we need to bundle bs58 and all of its
transitive dependencies (2.5kb) as well, so if users of hydrogen-sdk
also use any of these, they'll be double included in their bundle.
2021-12-22 16:31:19 +01:00
Bruno Windels
b48280905e
include path/vite in sdk bundle
2021-12-22 16:31:19 +01:00
Bruno Windels
163dae647b
move output of both lib and asset build around for coherent package
2021-12-22 16:31:19 +01:00
Bruno Windels
c921091957
run two vite builds for the sdk build, assets & js separately
2021-12-22 16:31:19 +01:00
Bruno Windels
6add3f1da3
WIP
2021-12-22 16:31:19 +01:00
Bruno Windels
ceb0b5793b
somewhat works, but not everything we need
...
it's missing still:
- non-css assets like the download sandbox and the olm worker aren't written for some reason
- the es and cjs lib.js entry points end up in assets with a hash for some reason
- in these entry files, apart from our exports, something is adding an import statement for every import that was found in the tree
- all assets are hashed even though the config tries to disable that
- tests are included
2021-12-22 16:31:18 +01:00
Bruno Windels
14b854ad4f
make tsconfig file to build declaration files
2021-12-22 16:31:18 +01:00
Bruno Windels
df6000c706
basic sdk build config file for es and cjs
2021-12-22 16:31:18 +01:00
Bruno Windels
c11f0774eb
move common parts of build config to separate file and merge with it
2021-12-22 16:31:18 +01:00
Bruno Windels
f2b822e5d2
move deps that are not used for sdk to devDependencies
2021-12-22 16:31:18 +01:00
Bruno Windels
2d2005934a
WIP
2021-12-22 16:31:18 +01:00
Bruno Windels
363cd5b046
include css
2021-12-22 16:31:18 +01:00
Bruno Windels
8922d2aaf2
prototype of sdk build
2021-12-22 16:31:18 +01:00
RMidhunSuresh
10368500f2
Fix formatting
2021-12-10 12:12:52 +05:30
RMidhunSuresh
5ef7ab32df
Update doc
2021-12-10 12:09:18 +05:30
Bruno Windels
dacdc1aec6
Merge pull request #597 from vector-im/ts-conversion-matrix-ssss
...
Convert matrix/ssss to typescript
2021-12-09 18:54:25 +01:00
Bruno Windels
589a002d67
Merge pull request #588 from vector-im/ts-conversion-matrix-net
...
Convert /matrix/net to typescript
2021-12-09 18:51:33 +01:00
Bruno Windels
21a41e192b
Merge branch 'master' into ts-conversion-matrix-net
2021-12-09 18:49:54 +01:00
Bruno Windels
5ea29297cc
fix typescript errors
2021-12-09 18:44:44 +01:00
Bruno Windels
c5c08ea34b
Merge pull request #586 from vector-im/bwindels/log-signature-failure
...
log signature verification failure in logger, not console
2021-12-09 18:40:01 +01:00
Bruno Windels
8d315f2741
Merge branch 'master' into bwindels/log-signature-failure
2021-12-09 18:34:36 +01:00
Bruno Windels
cd0d9dcbba
Merge pull request #548 from vector-im/bwindels/vite-mvp
...
Convert develop server and build system to using Vite
2021-12-09 18:29:06 +01:00
Bruno Windels
ba84387722
remove commented out code
2021-12-09 18:15:22 +01:00
Bruno Windels
0ec86b6dc1
Merge branch 'master' into bwindels/vite-mvp
2021-12-09 18:07:17 +01:00
Bruno Windels
5c5193ef48
remove old build system and unused dependencies
...
some of these are for the ie11 legacy build, which has been
postponed. They will be brougth back when we bring back the legacy build
2021-12-09 18:04:11 +01:00
Bruno Windels
d9ff4a8484
sw.js is not part of the sdk yet, so just put the path in index.html
2021-12-09 17:12:08 +01:00
Bruno Windels
dea7e7b4f5
enable minification and source maps
2021-12-09 16:42:35 +01:00
Bruno Windels
62827b92b7
implement placeholder replacement so it still works with minification
2021-12-09 16:37:31 +01:00
Bruno Windels
9a82f88e1f
log swSource as build fails in CI
2021-12-09 15:13:19 +01:00
Bruno Windels
23e0d3f2ff
get notification badge icon url through import now we transpile the sw
2021-12-09 15:13:05 +01:00
Bruno Windels
a4fac68393
use same method for setting version and build hash placeholder in sw
...
also better naming in service worker plugin
2021-12-09 14:36:12 +01:00
Bruno Windels
f934262e35
also use global hash var here
2021-12-09 12:22:17 +01:00
Bruno Windels
14dffa4ad4
remove leftover logging
2021-12-09 12:21:34 +01:00
Bruno Windels
8e4da396ea
replace global hash in given chunks
2021-12-09 12:15:17 +01:00
Bruno Windels
c344032c0a
transpile service worker and cleanup build plugin
2021-12-09 11:39:28 +01:00
Bruno Windels
180681b602
manifest ends up in assets folder, index.html in parent folder
2021-12-08 18:29:32 +01:00
Bruno Windels
fb8149b6cf
add base to manifest path, just for completeness
2021-12-08 18:29:07 +01:00
Bruno Windels
4c2c99fc07
actually remove lookbehind
2021-12-08 18:05:57 +01:00
Bruno Windels
c8b0354d07
dont use lookbehind in regular expressions, safari & older firefoxes choke on them
2021-12-08 18:00:37 +01:00
Bruno Windels
c87628b614
cleanup
2021-12-06 15:40:15 +01:00
Bruno Windels
5bd28da4f3
loading olm from the worker was broken, reading the wrong global
2021-12-06 15:35:08 +01:00
Bruno Windels
0e2a22f509
also look in chunks for cacheable assets for service worker
2021-12-06 15:34:39 +01:00
Bruno Windels
91e69a2bd0
fix icons in manifest not being found
2021-12-06 15:25:44 +01:00
Bruno Windels
155cd4c9bd
make olmPath absolute if it isn't already
2021-12-06 13:49:14 +01:00
RMidhunSuresh
734ecccb9c
Use object instead of Record here
2021-12-03 17:34:23 +05:30
Bruno Windels
9a3f74c6fb
load service worker in production mode, adjust development flag
2021-12-03 10:42:38 +01:00
RMidhunSuresh
e2abc312d3
Fix typescript errors
2021-12-03 11:48:01 +05:30
RMidhunSuresh
d6378133d8
Remove length property
2021-12-03 11:40:26 +05:30
RMidhunSuresh
49a56efa82
Remove comment
2021-12-03 11:40:26 +05:30
RMidhunSuresh
640cd88b6e
make type string
2021-12-03 11:40:26 +05:30
RMidhunSuresh
66b4f9bfe5
LogItem --> ILogItem
2021-12-03 11:40:26 +05:30
RMidhunSuresh
0541cf8f2b
Change object to Record
2021-12-03 11:40:26 +05:30
RMidhunSuresh
bf93bd79c9
types.js --> types
2021-12-03 11:40:26 +05:30
RMidhunSuresh
f89b937ee7
Use object instead of Record
2021-12-03 11:40:26 +05:30
RMidhunSuresh
82de3c9867
Prefer type over interface
2021-12-03 11:40:26 +05:30
RMidhunSuresh
b328c54da8
Change type from Ctor to Options
2021-12-03 11:40:26 +05:30
RMidhunSuresh
e9cea73357
Remove comment
2021-12-03 11:40:26 +05:30
R Midhun Suresh
3fbf65355d
Rename Ctor to Options
...
Co-authored-by: Bruno Windels <brunow@matrix.org>
2021-12-03 11:40:26 +05:30
RMidhunSuresh
b5438f2ba8
Do not set content-length
2021-12-03 11:40:26 +05:30
RMidhunSuresh
4f43398db0
Fix promise resolve type
2021-12-03 11:40:26 +05:30
RMidhunSuresh
05121e32b1
Pull interface out for HomeServerApi
2021-12-03 11:40:26 +05:30
RMidhunSuresh
a8870f2d24
Extract ctor types out
2021-12-03 11:40:26 +05:30
RMidhunSuresh
238b9aafb1
Convert replay.js to ts
2021-12-03 11:40:26 +05:30
RMidhunSuresh
2e6b909173
No need to pass undefined
2021-12-03 11:40:26 +05:30
RMidhunSuresh
4bdcafad4b
Rename file to types.ts
2021-12-03 11:40:26 +05:30
RMidhunSuresh
69e67ad5ac
Make more functions private
2021-12-03 11:40:26 +05:30
RMidhunSuresh
2dd050bd90
Change object to Record
2021-12-03 11:40:26 +05:30
RMidhunSuresh
9b315d1564
Replace object with Record
2021-12-03 11:40:26 +05:30
RMidhunSuresh
57d24dcf90
Treat wrapper hsapi as HomeServerApi
2021-12-03 11:40:26 +05:30
RMidhunSuresh
8387215efd
Add comment
2021-12-03 11:40:26 +05:30
RMidhunSuresh
885abc59be
Add return types
2021-12-03 11:40:26 +05:30
RMidhunSuresh
7403cbc389
WIP - HomeServerApi.js to ts conversion
2021-12-03 11:40:26 +05:30
RMidhunSuresh
145b40f28d
Fomatting fix
2021-12-03 11:40:26 +05:30
RMidhunSuresh
cf54b78af7
Convert RequestScheduler.js to ts
2021-12-03 11:40:26 +05:30
RMidhunSuresh
0aae31a450
Change year in copyright notice
2021-12-03 11:40:26 +05:30
RMidhunSuresh
f120ce50e6
Convert Reconnector.js to ts
2021-12-03 11:40:26 +05:30
RMidhunSuresh
90e3fde35d
Convert MediaRepository.js to ts
2021-12-03 11:40:26 +05:30
RMidhunSuresh
ff53c2757d
Convert HomeServerRequest.js to ts
2021-12-03 11:40:26 +05:30
RMidhunSuresh
e1a823400a
Convert ExponentialRetryDelay.js to ts
2021-12-03 11:40:26 +05:30
RMidhunSuresh
3a24019d96
Convert common.js to ts
2021-12-03 11:40:26 +05:30
RMidhunSuresh
9688a561b3
Move interface to common.ts
2021-12-03 11:40:26 +05:30
RMidhunSuresh
2a3b13ecce
Add request type
2021-12-03 11:40:26 +05:30
RMidhunSuresh
9bffd31ee3
Remove typeof
2021-12-03 11:36:51 +05:30
R Midhun Suresh
6dcebde69d
Alias namespace as Olm
...
Co-authored-by: Bruno Windels <brunow@matrix.org>
2021-12-03 11:36:51 +05:30
RMidhunSuresh
e06a0e9e5a
Use olm type from dependency
2021-12-03 11:36:51 +05:30
RMidhunSuresh
7362e38413
Convert interface to type
2021-12-03 11:36:51 +05:30
RMidhunSuresh
d2c09933c7
Type encrypted data
2021-12-03 11:36:51 +05:30
RMidhunSuresh
b2efcb9515
Convert SecretStorage.js to ts
2021-12-03 11:36:51 +05:30
RMidhunSuresh
814c0bed2e
Convert recoveryKey.js to ts
2021-12-03 11:36:51 +05:30
RMidhunSuresh
e45f66a199
Convert passphrase.js to ts
2021-12-03 11:36:51 +05:30
RMidhunSuresh
dd4704b818
Fix imports
2021-12-03 11:36:49 +05:30
RMidhunSuresh
9b8ab9fd8d
Convert index.js to index.ts
2021-12-03 11:35:12 +05:30
RMidhunSuresh
f9f59fec39
Convert common.js to ts
2021-12-03 11:34:09 +05:30
Bruno Windels
d91aaabeb3
Merge pull request #596 from vector-im/ts-conversion-matrix-sessioninfo
...
Convert matrix/sessioninfo to typescript
2021-12-02 09:29:11 +01:00
Bruno Windels
9042520916
Merge pull request #595 from vector-im/ts-conversion-matrix-push
...
Convert /matrix/push to typescript
2021-12-02 09:28:59 +01:00
Bruno Windels
d3ab961364
Merge pull request #593 from vector-im/ts-conversion-matrix-login
...
Convert /matrix/login to typescript
2021-12-02 09:28:47 +01:00
RMidhunSuresh
0c46460861
Add comment
2021-12-02 11:20:40 +05:30
RMidhunSuresh
9f82e7f7fc
Add proper type
2021-12-02 11:17:41 +05:30
RMidhunSuresh
ef3456199c
Fix formatting
2021-12-01 22:52:09 +05:30
R Midhun Suresh
928a5c27f3
Add rationale
...
Co-authored-by: Bruno Windels <brunow@matrix.org>
2021-12-01 22:50:59 +05:30
Bruno Windels
bc86bf2d00
some more sdk impl notes
2021-12-01 18:11:09 +01:00
Bruno Windels
fceca845a9
comment why we do this
2021-12-01 18:11:01 +01:00
Bruno Windels
09338d8aa8
bring back postcss plugins, apart from autoprefixer, which breaks vite
2021-12-01 18:10:25 +01:00
Bruno Windels
a504e74f54
extract function for script tag url
2021-12-01 18:10:02 +01:00
Bruno Windels
f83a0cec4e
update postcss plugins so they all use the same version of postcss
2021-12-01 18:09:26 +01:00
Bruno Windels
69e34d03bd
sort dependencies
2021-12-01 17:45:33 +01:00
Bruno Windels
261b17d36c
fix lint
2021-12-01 17:27:13 +01:00
Bruno Windels
3fd2d39898
remove unused packages and move dev deps accordingly
2021-12-01 17:26:48 +01:00
Bruno Windels
bb9362ee8b
only import node-html-parser when running the unit tests
2021-12-01 17:26:00 +01:00
Bruno Windels
1a618dd106
only import fake-indexeddb in tests
...
as it is a devDependency and can end up in the legacy bundle
under circumstances
2021-12-01 17:25:07 +01:00
Bruno Windels
7fda78ff2f
disable legacy build for now
2021-12-01 14:06:15 +01:00
Bruno Windels
70c1e4e3ed
move doc paragraphs around
2021-12-01 14:06:05 +01:00
Bruno Windels
b469d03677
config is at same level as paths
2021-12-01 14:05:50 +01:00
Bruno Windels
de24034b22
remove secondary theme as vite puts them in one bundle
2021-12-01 13:30:58 +01:00
Bruno Windels
75bf410320
correct path of main.js for tests
2021-12-01 13:30:17 +01:00
Bruno Windels
7e1818b285
Merge branch 'master' into bwindels/vite-mvp
2021-12-01 12:30:33 +01:00
RMidhunSuresh
73ca2dfb77
Add Record and fix typo
2021-12-01 16:05:16 +05:30
Bruno Windels
dce0ee5ace
Merge pull request #607 from vector-im/bwindels/fixpathsobserv
...
adjust path
2021-12-01 09:45:57 +01:00
Bruno Windels
85385a0aa7
adjust path
2021-12-01 09:43:58 +01:00
Bruno Windels
08314bd4b5
Merge pull request #606 from vector-im/bwindels/typescript-observable-2
...
Typescript conversion of yet more observables
2021-11-30 17:09:16 +01:00
Bruno Windels
8c3ae57497
fix Iterator vs IterableIterator confusion
2021-11-30 17:05:39 +01:00
Bruno Windels
de8995fa7e
fix handlers in test missing methods, now that observable list is typed
2021-11-30 16:58:56 +01:00
Bruno Windels
581ef47c78
fix conflicting sortedIndex declaration
2021-11-30 16:53:59 +01:00
Bruno Windels
fc3eb7f57f
Merge branch 'master' into bwindels/typescript-observable-2
2021-11-30 16:37:43 +01:00
Bruno Windels
49443d4f6e
Update TS-MIGRATION.md
2021-11-30 14:17:51 +00:00
Bruno Windels
2e57e99e34
clarify when to use type and interface
2021-11-30 14:15:25 +00:00
Bruno Windels
ef712b16f5
Merge pull request #584 from vector-im/ts-conversion-utils
...
Convert /utils to typescript
2021-11-30 14:13:09 +01:00
Bruno Windels
19827a0b5b
Merge pull request #601 from vector-im/filter-token
...
Ensure unwanted data do not end up in logs
2021-11-30 10:02:07 +01:00
RMidhunSuresh
66fbc37ec4
Remove comments
2021-11-30 14:15:49 +05:30
RMidhunSuresh
6699b71bd5
transformer is optional
2021-11-30 13:38:25 +05:30
RMidhunSuresh
fe77b71c97
use transformer function
2021-11-30 13:28:28 +05:30
Bruno Windels
be5deea1d3
Merge pull request #605 from vector-im/bwindels/try-test-ci-failure
...
Report unit test failures on CI
2021-11-30 08:20:05 +01:00
Bruno Windels
3322827979
upgrade impunity to propagate exit code
2021-11-30 08:16:28 +01:00
Bruno Windels
7f115b3e4b
Merge pull request #602 from vector-im/bwindels/tests-node-16.12
...
update impunity to 1.0.8 to run tests on node >= 16.12
2021-11-29 10:53:47 +01:00
Bruno Windels
a134e48ebb
update impunity to 1.0.8 to run tests on node >= 16.12
2021-11-29 10:49:26 +01:00
RMidhunSuresh
104590e34d
Use ! in test
2021-11-29 11:48:05 +05:30
RMidhunSuresh
d981a85239
Filter token out of stack trace
2021-11-29 11:43:43 +05:30
Bruno Windels
bc8b3d71d5
Merge pull request #600 from vector-im/bwindels/update-impunity
...
update to version that doesn't use a bash script anymore, which doesn…
2021-11-26 12:48:21 +01:00
Bruno Windels
2802164bb4
update to version that doesn't use a bash script anymore, which doesnt work on macos
2021-11-26 12:45:40 +01:00
Bruno Windels
876fcf532f
release v0.2.22
2021-11-26 09:12:08 +01:00
Bruno Windels
92bf28e104
Merge pull request #599 from vector-im/bwindels/fix-emsonelogin
...
Don't fail login if dehydrated devices are not supported
2021-11-25 15:46:01 +01:00
Bruno Windels
ae7d4d07df
use .name so we don't need an import
2021-11-25 15:42:36 +01:00
Bruno Windels
229c584138
don't fail login if dehydrated devices are not supported
2021-11-25 15:38:13 +01:00
RMidhunSuresh
bb18af414b
Convert SessionInfoStorage.js to ts
2021-11-25 15:18:03 +05:30
RMidhunSuresh
3d9fbb685a
Convert Pusher.js to ts
2021-11-25 13:23:05 +05:30
RMidhunSuresh
346e95c33c
Change return type
2021-11-25 12:33:12 +05:30
RMidhunSuresh
a31860dc5f
Fix formatting
2021-11-24 14:55:44 +05:30
RMidhunSuresh
c54ca168ed
Convert SSOLoginHelper.js to ts
2021-11-24 14:49:08 +05:30
RMidhunSuresh
a1367f8e72
Fix password login
2021-11-24 14:00:26 +05:30
RMidhunSuresh
64037cb32a
Convert TokenLoginMethod to ts
2021-11-24 13:56:47 +05:30
RMidhunSuresh
e4c443c73a
Convert PasswordLoginMethod to ts
2021-11-24 13:47:26 +05:30
RMidhunSuresh
91f2a96403
Make LoginMethod an interface
2021-11-24 13:40:04 +05:30
Bruno Windels
93abbe83e8
Merge pull request #592 from vector-im/bwindels/lazylist-enhancements
...
Lazylist enhancements
2021-11-23 14:35:18 +01:00
Bruno Windels
f444160c6a
feels ok without overflow margin for now
2021-11-23 14:33:27 +01:00
Bruno Windels
e4be1702c4
add comment for future test
2021-11-23 14:32:42 +01:00
Bruno Windels
7b38df45da
i think this is fine now?
2021-11-23 14:31:23 +01:00
Bruno Windels
e34a92e2ec
fix copyright
2021-11-23 14:30:11 +01:00
Bruno Windels
35fb84c275
remove old js lazylist
2021-11-23 14:26:15 +01:00
Bruno Windels
9557178ffb
padding needs to be on ul, not scroll container, or the list blows up
2021-11-23 14:25:35 +01:00
Bruno Windels
4be2f12a14
subscribe before calling list.length
2021-11-23 14:25:22 +01:00
Bruno Windels
c64a9c1e23
snowpack/esbuild 0.9 doesn't support override keyword
2021-11-23 14:25:00 +01:00
Bruno Windels
7897ea88cd
add some spaces and comments
2021-11-23 14:24:43 +01:00
Bruno Windels
c22718811f
more tests for queryMove
2021-11-23 08:56:33 +01:00
Bruno Windels
3aa3b7e160
fix end growing larger than totalLength when range shrinks in case of remove
2021-11-23 08:30:52 +01:00
Bruno Windels
cf9f43ab9e
WIP2
2021-11-22 20:35:57 +01:00
Bruno Windels
4a64d0ee17
WIP
2021-11-19 22:49:46 +01:00
RMidhunSuresh
d625d57aa4
Fix lastIndex
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-11-19 12:32:00 +01:00
RMidhunSuresh
bbeb909bdc
Use createEnum
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-11-19 12:32:00 +01:00
RMidhunSuresh
33ac34b04e
Do not break onListChanged
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-11-19 12:31:57 +01:00
RMidhunSuresh
5d54285640
Move ItemRange to separate file
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-11-19 12:12:50 +01:00
RMidhunSuresh
aee135a6cd
Jsdoc fix
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-11-19 12:06:40 +01:00
RMidhunSuresh
da715c70b0
Remove forceRender
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-11-19 12:06:40 +01:00
RMidhunSuresh
e10b494f0c
Improve containsIndex
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-11-19 12:06:40 +01:00
RMidhunSuresh
3ae52ea1ca
Fix bug in onAdd and onRemove
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-11-19 12:06:40 +01:00
RMidhunSuresh
1165683f69
Fix onRemove
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-11-19 12:06:40 +01:00
RMidhunSuresh
83ff2dd810
Fix onAdd
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-11-19 12:06:40 +01:00
RMidhunSuresh
587dd3848e
Use existing render function for initial render
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-11-19 12:06:40 +01:00
RMidhunSuresh
a02b6b68d3
Move common code from if-else
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-11-19 12:06:40 +01:00
RMidhunSuresh
168312627d
Render only diff of ranges
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-11-19 12:06:40 +01:00
RMidhunSuresh
61402e798e
WIP 2
2021-11-19 12:06:40 +01:00
RMidhunSuresh
1a28b4f887
WIP
2021-11-19 12:06:40 +01:00
RMidhunSuresh
d4e923f9de
Remove code from loadList
...
We don't need this method so best to leave it empty.
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-11-19 12:06:40 +01:00
Bruno Windels
c0f7f0a8f1
Merge pull request #590 from vector-im/bwindels/platform-tests
...
Search platform-specific code for tests too
2021-11-19 10:26:35 +01:00
Bruno Windels
f1a6a4924e
commit yarn.lock too
2021-11-19 10:23:59 +01:00
Bruno Windels
ec71e30ecb
add Platform as entry point so also platform dependant code gets searched for tests
2021-11-19 10:23:18 +01:00
Bruno Windels
f23227fc8b
use latest version of impunity with support for multiple entry points
2021-11-19 10:22:59 +01:00
Bruno Windels
5a747cd829
Merge pull request #589 from vector-im/bwindels/fix-sdk-example
...
packages processed by post-install need to be in dependencies, or the script fails
2021-11-18 15:26:08 +01:00
Bruno Windels
6980921dab
some impl notes for SDK
2021-11-18 14:16:10 +00:00
RMidhunSuresh
8fcfd713e0
Use IAbortable
2021-11-17 20:28:44 +05:30
RMidhunSuresh
ea2842f37f
Return empty string
2021-11-17 20:28:44 +05:30
RMidhunSuresh
64a9892ee2
Use generic T in LockMap
2021-11-17 20:28:44 +05:30
RMidhunSuresh
048547828d
Remove type Func
2021-11-17 20:28:44 +05:30
R Midhun Suresh
a14a8c3a07
Create interface IDisposable
...
Co-authored-by: Bruno Windels <brunow@matrix.org>
2021-11-17 20:28:44 +05:30
RMidhunSuresh
08ef84d112
Mention return type
2021-11-17 20:28:44 +05:30
RMidhunSuresh
5a0c06473c
Use undefined instead of null
2021-11-17 20:28:44 +05:30
RMidhunSuresh
1beb153f21
func --> Func
2021-11-17 20:28:44 +05:30
RMidhunSuresh
0c424cb77f
Fix imports
2021-11-17 20:28:44 +05:30
RMidhunSuresh
ebd1caf6d1
Convert enum.js to ts
2021-11-17 20:28:44 +05:30
RMidhunSuresh
0e18247184
Use constant type
2021-11-17 20:28:44 +05:30
RMidhunSuresh
a945edfe07
Convert pbkdf2.js to ts
2021-11-17 20:28:44 +05:30
RMidhunSuresh
6c2aa1bf61
Convert hkdf.js to ts
2021-11-17 20:28:44 +05:30
RMidhunSuresh
afecac3e3c
Convert timeout.js to ts
2021-11-17 20:28:44 +05:30
RMidhunSuresh
8a169d5ddc
Convert sortedIndex.js to ts
2021-11-17 20:28:44 +05:30
RMidhunSuresh
ea0adb4407
Convert RetainedValue.js to ts
2021-11-17 20:28:44 +05:30
RMidhunSuresh
88ec1b575d
Convert mergeMap.js to ts
2021-11-17 20:28:44 +05:30
RMidhunSuresh
1549d8add0
Convert LockMap to ts
2021-11-17 20:28:44 +05:30
RMidhunSuresh
c8eb7ea7ac
Convert Lock.js to ts
2021-11-17 20:28:44 +05:30
RMidhunSuresh
a3460d8c2a
Convert formatSize to ts
2021-11-17 20:28:44 +05:30
RMidhunSuresh
4ce7634201
Convert error.js to ts
2021-11-17 20:28:44 +05:30
RMidhunSuresh
ef53a12f7a
Fix imports
2021-11-17 20:28:44 +05:30
RMidhunSuresh
7d12c2ba54
Add return types
2021-11-17 20:28:44 +05:30
RMidhunSuresh
7270918b65
Convert Disposables to typescript
2021-11-17 20:28:44 +05:30
RMidhunSuresh
dd74ed1957
Add types to disposeValue
2021-11-17 20:28:44 +05:30
RMidhunSuresh
7772643b0d
Disposables.js --> Disposables.ts
2021-11-17 20:28:44 +05:30
Bruno Windels
0a433b90e3
packages processed by post-install need to be in dependencies, or the script fails
2021-11-17 15:09:25 +01:00
Bruno Windels
efccc1e19e
Merge pull request #583 from vector-im/ts-conversion-logging
...
Convert src/logging to typescript
2021-11-17 14:37:42 +01:00
Bruno Windels
692ae25e76
remove unused method
2021-11-17 14:35:26 +01:00
Bruno Windels
b5e9eb26ba
reduce size of ILogItem interface further
2021-11-17 14:33:58 +01:00
Bruno Windels
4030a4918d
explicitly check for undefined
2021-11-17 13:57:11 +01:00
Bruno Windels
41a10d9697
explicitly check for undefined
2021-11-17 13:56:20 +01:00
Bruno Windels
fde0163b97
remove unneeded union type and simplify code
2021-11-17 13:53:27 +01:00
Bruno Windels
42e5fb33ba
remove more non-public methods from ILogItem interface
2021-11-17 13:50:56 +01:00
Bruno Windels
526a818269
only used internally
2021-11-17 13:42:49 +01:00
Bruno Windels
afc538e875
explicitly check for type, rather than truthy
2021-11-17 12:58:08 +01:00
Bruno Windels
74fb15e426
add future todo note
2021-11-17 12:54:44 +01:00
Bruno Windels
46dd78162f
no need to dig into internals here
2021-11-17 12:54:32 +01:00
Bruno Windels
276d8d4a42
check for undefined, no need for !
2021-11-17 12:39:57 +01:00
Bruno Windels
b1d20178f8
add explicit void return type
2021-11-17 12:37:50 +01:00
Bruno Windels
5f362cbdbd
remove dead code
2021-11-17 11:54:29 +01:00
Bruno Windels
695996d6e2
add ILogger and ILogExport interface, to give export correct return type
...
also move logging related types to own file
2021-11-17 11:39:12 +01:00
RMidhunSuresh
1b13f32d94
Remove resolved todo comment
2021-11-17 15:39:21 +05:30
Bruno Windels
3ee7e73ff0
item is optional here
2021-11-17 11:08:44 +01:00
Bruno Windels
90d7b73dd4
non-persisted queued items don't have an id yet, find them by ref equality
2021-11-17 11:08:29 +01:00
Bruno Windels
f93bdd962a
might as well use generic here
2021-11-17 10:50:55 +01:00
Bruno Windels
1942c31eff
still finish item when not returning from sync callback
2021-11-17 10:42:54 +01:00
RMidhunSuresh
d01271fb15
_run return T or void depending on boolean
2021-11-17 13:22:19 +05:30
RMidhunSuresh
07a1130db3
children can be array of ISerializedItem
2021-11-17 12:02:12 +05:30
RMidhunSuresh
835da58b53
Remove !
2021-11-17 11:59:50 +05:30
R Midhun Suresh
9c8f96e233
value is optional
...
Co-authored-by: Bruno Windels <brunow@matrix.org>
2021-11-17 11:43:59 +05:30
RMidhunSuresh
b0ab8cd77f
Space before {
2021-11-17 11:40:43 +05:30
RMidhunSuresh
8fce29caf7
Explicitly check for undefined
2021-11-17 11:38:33 +05:30
RMidhunSuresh
14eaa57434
No need for type assertion here
2021-11-16 13:14:11 +05:30
RMidhunSuresh
58105824d9
Fix error in reduce
2021-11-16 13:08:13 +05:30
RMidhunSuresh
4704a70cb7
Remove todo comment
2021-11-16 13:06:47 +05:30
RMidhunSuresh
34a8463bf9
Fix jsdoc return type
2021-11-16 12:43:23 +05:30
RMidhunSuresh
e339e730f4
Remove todo comment
2021-11-16 12:42:50 +05:30
RMidhunSuresh
286747c23c
Add type annotation for ctor
2021-11-16 12:41:03 +05:30
RMidhunSuresh
3ee1607298
Convert utils to typescript
2021-11-16 12:32:49 +05:30
RMidhunSuresh
4161d31642
Convert NullLogger to typescript
2021-11-16 12:23:06 +05:30
RMidhunSuresh
4c1d7a8f2d
Use generics over returning unknown
2021-11-15 22:47:38 +05:30
Bruno Windels
2da450d69d
log signature verification failure in logger, not console
2021-11-15 15:27:57 +01:00
RMidhunSuresh
fe69f84c85
Use undefined in LogItem.serialize
2021-11-15 19:32:16 +05:30
RMidhunSuresh
ba5f2032ba
Make properties in LogItem optional, not null
2021-11-15 19:17:49 +05:30
RMidhunSuresh
7097ba07d1
Replace LogLabelOrNull type with undefined
2021-11-15 18:59:33 +05:30
RMidhunSuresh
30a384fe1e
Make LogFilter optional
2021-11-15 18:44:25 +05:30
RMidhunSuresh
520e0f1b89
Use interface ILogItem
2021-11-15 17:29:08 +05:30
RMidhunSuresh
a7d059b3ed
Fix imports
2021-11-14 19:42:18 +05:30
RMidhunSuresh
bba44abf52
Convert console logger to ts
2021-11-14 16:24:16 +05:30
RMidhunSuresh
39d0708cca
Add comment
2021-11-14 15:58:51 +05:30
RMidhunSuresh
2d8b719ab0
Add void return types as well
2021-11-14 15:55:42 +05:30
RMidhunSuresh
5efa27c2a3
Add more type annotations
2021-11-14 15:48:59 +05:30
RMidhunSuresh
67e8fc0c43
Add return types to methods in BaseLogger
2021-11-12 23:27:35 +05:30
RMidhunSuresh
8e42e3f21f
Add types to returns in LogFilter.ts
2021-11-12 23:17:21 +05:30
RMidhunSuresh
29a8260514
Add explicit types for return in methods
2021-11-12 23:12:15 +05:30
RMidhunSuresh
8c7a765e11
Convert IDBLogger to ts
2021-11-12 15:06:21 +05:30
RMidhunSuresh
f3d0f88f95
Make error public
2021-11-12 15:06:11 +05:30
RMidhunSuresh
2ddd2d16ed
IDBLogger.js --> IDBLogger.ts
2021-11-11 16:50:46 +05:30
RMidhunSuresh
9fed2ca41b
Use undefined instead of null
2021-11-11 16:25:14 +05:30
RMidhunSuresh
eb7c5c4437
Use undefined only instead of both undefined and null
2021-11-11 16:08:25 +05:30
RMidhunSuresh
09851600f7
Remove unwanted types
2021-11-11 15:35:51 +05:30
RMidhunSuresh
425a3c85a9
Make error prop private and expose via getter
2021-11-11 13:24:52 +05:30
RMidhunSuresh
0f7a78ee25
Make return type explicit
2021-11-11 13:05:12 +05:30
Bruno Windels
7148f6fd41
wip to not babel deps
2021-11-10 19:10:23 +01:00
Bruno Windels
e83781b26a
make ie11 compatible
2021-11-10 19:10:06 +01:00
RMidhunSuresh
cd7dccd804
Move interface to top
2021-11-10 19:13:35 +05:30
RMidhunSuresh
7a68c971aa
Make field readonly
2021-11-10 19:07:24 +05:30
RMidhunSuresh
cfa7708b57
Use type imports
2021-11-10 18:51:46 +05:30
Bruno Windels
c47f872f6f
Merge pull request #578 from vector-im/fix-progressbar
...
Fix progressbar not working on attachment uploads
2021-11-10 11:17:02 +01:00
RMidhunSuresh
ef2aad8956
Annotate LogFilter
2021-11-10 15:04:07 +05:30
RMidhunSuresh
ab126729e0
Use LogLevel as type instead of number
2021-11-10 14:49:59 +05:30
RMidhunSuresh
e3c85c585e
Log callbacks can return more than Promises
2021-11-10 14:42:43 +05:30
RMidhunSuresh
0b4eca4724
Create alias for LogLevel | null
2021-11-10 14:29:23 +05:30
RMidhunSuresh
142d3ef543
Split LogItemValues into union of types
2021-11-10 13:45:37 +05:30
RMidhunSuresh
ceb52eedaf
Fix imports and add type annotations
2021-11-10 12:36:56 +05:30
RMidhunSuresh
772f7a2757
Account for duration being null
2021-11-10 12:17:43 +05:30
RMidhunSuresh
db792ab5a9
Add type annotations to LogItem
2021-11-10 12:06:50 +05:30
RMidhunSuresh
97ec680af2
Remove .js files
2021-11-10 12:06:22 +05:30
RMidhunSuresh
ba4d5453a2
Move type LogCallback to LogItem
2021-11-10 12:05:29 +05:30
Bruno Windels
36a982f7e2
WIP to run rollup twice, first with vite and babel, then to inline deps
2021-11-09 18:10:12 +01:00
RMidhunSuresh
2a5d30d749
Convert to enum
2021-11-09 22:32:02 +05:30
Bruno Windels
122528f9a9
also transpile typescript files
...
note that these have already been converted to javascript by vite
2021-11-09 17:59:58 +01:00
RMidhunSuresh
55401a746c
Move type alias to LogItem
...
and add more type annotations
2021-11-09 22:28:26 +05:30
RMidhunSuresh
8cbc81b8bb
Annotate method arguments
2021-11-09 20:57:47 +05:30
Bruno Windels
da7f66a531
setup babel for legacy build as input transform plugin
2021-11-09 14:52:03 +01:00
RMidhunSuresh
7893a121c0
Initialize in field
2021-11-09 17:36:18 +05:30
RMidhunSuresh
4c5d028509
any --> unknown
2021-11-09 17:34:16 +05:30
RMidhunSuresh
eef116e26b
annotate labelOrValues
2021-11-09 17:19:46 +05:30
RMidhunSuresh
8fba3f4ca9
Add explaining comment
2021-11-09 15:39:24 +05:30
RMidhunSuresh
839d3fb689
Throw on export() in ConsoleLogger
2021-11-09 13:53:07 +05:30
RMidhunSuresh
377cc4ca1f
Make BaseLogger abstract
2021-11-09 13:52:41 +05:30
RMidhunSuresh
030c46264b
type annotate fields
2021-11-09 13:00:37 +05:30
RMidhunSuresh
dad37dece3
.js --> .ts
2021-11-09 11:46:05 +05:30
RMidhunSuresh
57e2c4ea45
No need for handler to be async
2021-11-08 22:20:56 +05:30
RMidhunSuresh
c1a8ffd814
respond with only for GET requests
2021-11-08 18:03:20 +05:30
Bruno Windels
b95c918dc6
Merge pull request #580 from vector-im/bwindels/scroll-composer
...
add scrollbar when > 5 lines in composer
2021-11-08 12:25:39 +01:00
Bruno Windels
e9586711e0
add scrollbar when > 5 lines in composer
2021-11-08 11:19:24 +01:00
Bruno Windels
ffef4936f9
update caniuse defs again after rebase
2021-11-08 11:14:00 +01:00
Bruno Windels
fcde507183
WIP
2021-11-08 11:13:02 +01:00
Bruno Windels
3b72157e64
apparently, package-overrides should use esm
...
otherwise they don't get transpiled for some reason
2021-11-08 11:12:19 +01:00
Bruno Windels
7dce579ac3
make babel plugin run after commonjs one added by vite
2021-11-08 11:12:19 +01:00
Bruno Windels
16918ddb7d
ie11 build wip
2021-11-08 11:12:13 +01:00
Bruno Windels
b65782e13c
ignore tsc errors on vite-specific imports
...
or not understood by tsc in any case
2021-11-08 11:10:34 +01:00
Bruno Windels
eb60f6717a
add comment for improvements
2021-11-08 11:10:34 +01:00
Bruno Windels
923a1a2057
use vite define option to inject version number everywhere
2021-11-08 11:10:34 +01:00
Bruno Windels
216afd45cc
vite/rollup plugin to inject and transform manifest & service worker
2021-11-08 11:10:34 +01:00
Bruno Windels
3fe1c0cdc3
tweak build and start command to use vite
2021-11-08 11:10:34 +01:00
Bruno Windels
afadd25885
tweak build settings somewhat for now
2021-11-08 11:10:34 +01:00
Bruno Windels
e2b20f466d
remove unneeded package override
2021-11-08 11:10:34 +01:00
Bruno Windels
01712c3f23
make tests run again
2021-11-08 11:10:34 +01:00
Bruno Windels
b6fda8865f
make all dependencies use vite and remove post-install script / lib dir
2021-11-08 11:10:34 +01:00
Bruno Windels
db3e8a9c6b
rearrange assets and main.js to make them run with vite
2021-11-08 11:10:23 +01:00
RMidhunSuresh
d1491cc203
More checks before returning
2021-11-08 15:11:41 +05:30
RMidhunSuresh
d31371b486
Return on upload in sw
2021-11-08 14:37:32 +05:30
Bruno Windels
2afcddbf49
release v0.2.21
2021-11-05 21:08:49 +01:00
Bruno Windels
25fb645c4b
Merge pull request #577 from vector-im/bwindels/update-caniuse
...
update caniuse
2021-11-05 21:07:39 +01:00
Bruno Windels
5c689ac5b1
yarn wants deps in different order
2021-11-05 21:02:46 +01:00
Bruno Windels
e1c8088de2
update caniuse browser definitions
2021-11-05 21:02:16 +01:00
Bruno Windels
d40037ef49
Merge pull request #576 from vector-im/bwindels/setup-new-dehydrated-device-when-claiming
...
Setup new dehydrated device when claiming
2021-11-05 20:56:23 +01:00
Bruno Windels
faa0246e28
setup new dehydrated device when claiming one
2021-11-05 20:53:04 +01:00
Bruno Windels
0749073120
clone key as olm clears it
2021-11-05 20:52:50 +01:00
Bruno Windels
2dccd36a6d
Merge pull request #575 from vector-im/bwindels/composer-layout-improvements
...
Composer layout improvements
2021-11-05 19:24:34 +01:00
Bruno Windels
23494ab630
bottom align send button, adjust paddings
2021-11-05 19:05:52 +01:00
Bruno Windels
2f15c9a4a7
show either attachment or send button, depending on composer value
2021-11-05 19:05:35 +01:00
Bruno Windels
c3203fdacd
explain this value
2021-11-05 19:05:09 +01:00
Bruno Windels
222c616148
Merge pull request #574 from vector-im/bwindels/multiline-composer-fixups
...
Multiline composer fixups
2021-11-05 18:44:54 +01:00
Bruno Windels
44e7e25cab
clear height while sending or clearing, also fix #572 in the process
2021-11-05 18:36:59 +01:00
Bruno Windels
fc1b9abe66
don't add line when hitting enter to send
2021-11-05 18:36:38 +01:00
Bruno Windels
365c8d0953
Merge pull request #566 from vector-im/composer-improvements
...
Support for multiline messages
2021-11-05 18:20:02 +01:00
Bruno Windels
8ffd98162c
don't make the composer shrink for now, timeline loses scroll position
2021-11-05 17:48:44 +01:00
Bruno Windels
c671596c6f
only schedule one resize callback per frame
2021-11-05 17:48:08 +01:00
Bruno Windels
b22437840d
don't set explicit height, rely on rows=1 for default height
2021-11-05 17:47:20 +01:00
Bruno Windels
4c5fe824c2
Merge pull request #569 from vector-im/fix-400
...
Show redacted tile for redacted messages in encrypted rooms
2021-11-05 15:57:36 +01:00
Bruno Windels
1fee773313
Merge pull request #571 from vector-im/fix-570
...
Make progress bar work for image uploads in Chrome
2021-11-05 15:56:33 +01:00
Bruno Windels
6be952491a
Merge pull request #573 from vector-im/fix-517-2
...
Continue filling gaps that return only non-rendered events in the first backfill
2021-11-05 15:45:45 +01:00
Bruno Windels
781147bf0e
add some comments and rename for clarity
2021-11-05 15:42:07 +01:00
RMidhunSuresh
a4cd40c2f8
Keep filling gap until sibling changes
2021-11-05 17:25:29 +05:30
RMidhunSuresh
96a2dd7c72
Add event handler before executing open
...
Signed-off-by: RMidhunSuresh <hi@midhun.dev>
2021-11-04 00:02:50 +05:30
RMidhunSuresh
f6b7dcbad7
Show redacted tile
2021-11-03 20:03:47 +05:30
Bruno Windels
b011c3df03
release v0.2.20
2021-11-03 02:38:52 +01:00
Bruno Windels
014acbfaf5
Merge pull request #564 from vector-im/bwindels/dehydrated-device
...
Device dehydration support
2021-11-03 00:52:46 +01:00
Bruno Windels
ee9c9b33ca
fix lint again
2021-11-03 02:36:53 +01:00
Bruno Windels
b2d8f5f023
fix lint
2021-11-03 02:35:22 +01:00
Bruno Windels
790b9cbc13
require a flag to enable account setup during login
...
as it blocks login from progressing, any sdk usage should enable
to indicate they are listening for the AccountSetup status.
2021-11-03 02:28:01 +01:00
Bruno Windels
bffe34fe0a
await write key
2021-11-03 02:20:27 +01:00
Bruno Windels
a8022077f6
add minimal logging
2021-11-03 02:20:11 +01:00
Bruno Windels
80a98f04c7
pickle clears the key, so slice it before calling so we can reuse for 4s
2021-11-03 02:08:27 +01:00
Bruno Windels
8a36eb4532
check mac of dehydrated key to match default 4s key mac before adopting
2021-11-03 02:07:57 +01:00
Matthew Hodgson
abef4f0f79
Merge pull request #568 from vector-im/initial-github-action-for-docker-images
...
Add GH Action to build the docker image
2021-11-02 00:19:45 +00:00
Ben Banfield-Zanin
05fe68823a
Add GH Action to build the docker image
...
Builds the docker image on pushes for: tags, PRs, master.
Publishes docker images as per:
* `latest` & `<TAG>` for tags
* `master` for `master`
Same as https://github.com/matrix-org/lb/pull/8 & https://github.com/matrix-org/matrix-content-scanner/pull/46
2021-11-01 14:55:32 +00:00
Bruno Windels
567cdd5510
WIP for enabling session backup from dehydration key
2021-10-29 19:17:31 +02:00
Bruno Windels
6d9d8797fe
use same UI as in settings to pick between recovery key and passphrase
2021-10-29 16:40:35 +02:00
Bruno Windels
44a26fd340
key backup: add disable button,and enabling add dehydrated device option
2021-10-29 15:48:28 +02:00
Bruno Windels
3b3751c827
remove dehydrated device test button from settings
2021-10-29 15:47:14 +02:00
Bruno Windels
6273d723f1
fix typo
2021-10-29 15:24:24 +02:00
RMidhunSuresh
6863fef7e5
Resize composer with text
...
Signed-off-by: RMidhunSuresh <hi@midhun.dev>
2021-10-29 17:00:02 +05:30
RMidhunSuresh
3a6e74ae1c
Add css style
...
Signed-off-by: RMidhunSuresh <hi@midhun.dev>
2021-10-29 15:11:34 +05:30
RMidhunSuresh
16bec0a656
Convert input to textarea
...
Signed-off-by: RMidhunSuresh <hi@midhun.dev>
2021-10-29 15:11:12 +05:30
Bruno Windels
c3dfdde626
be forgiving when dispose has already been called
2021-10-28 12:04:42 +02:00
Bruno Windels
544019f67d
ensure olm Account in dehydrated device is freed on error
2021-10-28 11:52:32 +02:00
Bruno Windels
bef12c7a8f
prevent double free on olm account when logging out
...
by ensuring we only dispose the e2ee/Account once, as well as
the Session and other classes
2021-10-28 11:48:25 +02:00
Bruno Windels
3ef37c15c7
remove import session button as it's not supported anymore
2021-10-28 11:47:54 +02:00
Bruno Windels
68a6113c26
add logout button to session load error screen
2021-10-28 11:47:31 +02:00
Bruno Windels
cbccca20d0
remove leftover logging
2021-10-27 18:09:31 +02:00
Bruno Windels
e3378d5636
use correct device_id in signatures for dehydrating device
...
completely replace device id for dehydrating device
so we don't have to pass it down the stack
2021-10-27 18:08:50 +02:00
Bruno Windels
c89e414bb5
WIP3
2021-10-27 15:08:53 +02:00
Bruno Windels
718b410253
WIP2
2021-10-27 10:26:36 +02:00
Bruno Windels
faf4ea6434
WIP
2021-10-26 18:47:46 +02:00
Bruno Windels
abb802b881
release v0.2.19
2021-10-26 15:38:50 +02:00
Bruno Windels
d9ecf38e42
Merge pull request #563 from vector-im/bwindels/exportlogsonsessionloadfail
...
add export logs button when session fails to load
2021-10-26 15:35:50 +02:00
Bruno Windels
7ef19e0ead
add export logs button when session fails to load
2021-10-26 15:30:52 +02:00
Bruno Windels
c621ccf679
release v0.2.18
2021-10-26 15:10:44 +02:00
Bruno Windels
0f0719eaa2
Merge pull request #560 from vector-im/bwindels/logout
...
Add Log out
2021-10-26 15:10:21 +02:00
Bruno Windels
5b889f0b32
Merge pull request #562 from vector-im/bwindels/diagnose-561
...
return static string when member is missing and add logging
2021-10-26 15:10:08 +02:00
Bruno Windels
82a0c1024c
return static string when member is missing and add logging
2021-10-26 15:08:51 +02:00
Bruno Windels
af85fe3892
confirm before logging out
2021-10-26 14:48:37 +02:00
Bruno Windels
f998041748
add logout button in settings
2021-10-26 12:49:31 +02:00
Bruno Windels
2b884e73db
remove action buttons on session picker
...
and now that we're adding logout, none of them are something we want to support really
2021-10-26 11:43:38 +02:00
Bruno Windels
e3c5def536
release v0.2.17
2021-10-26 11:32:42 +02:00
Bruno Windels
fae4493abc
Merge pull request #554 from vector-im/bwindels/fix-551
...
Only keep a limited amount of olm InboundGroupSession objects in memory to prevent OOM
2021-10-26 11:30:10 +02:00
Bruno Windels
67dd929951
put key session check in method
2021-10-26 11:14:46 +02:00
Bruno Windels
805c2657f2
remove unrelated file
2021-10-26 11:07:17 +02:00
Bruno Windels
ab2f15b5a2
prevent cache hiding better keys in storage (+ tests)
2021-10-25 19:17:13 +02:00
Bruno Windels
3c2604b384
test that sessions get free'd correctly
2021-10-25 17:33:33 +02:00
Bruno Windels
12b5bd3a4f
Merge pull request #553 from moritzdietz/moritzdietz/update-faq
...
Update FAQ: Add note about published builds
2021-10-25 17:21:27 +02:00
Bruno Windels
74e8bc3bda
write unit tests
2021-10-25 17:19:48 +02:00
Bruno Windels
6bbce06d93
start writing tests for key loader
2021-10-22 19:01:20 +02:00
Bruno Windels
22361bdf42
don't need to dispose room keys anymore, they are owned by the loader
2021-10-22 18:08:09 +02:00
Bruno Windels
076f450ec7
this can be const
2021-10-22 18:01:26 +02:00
Bruno Windels
6d8ec69a4d
fix lint
2021-10-22 18:01:17 +02:00
Bruno Windels
b7e3a54e15
remove now usused code
2021-10-22 17:51:00 +02:00
Bruno Windels
2943cb525f
add comment about possible future optimization
2021-10-22 17:50:45 +02:00
Bruno Windels
1278288a42
cleanup RoomKey to changes and better naming
2021-10-22 17:50:30 +02:00
Bruno Windels
66a93ee108
adapt Session and RoomEncryption to megolm/Decryption API changes
2021-10-22 17:48:53 +02:00
Bruno Windels
ac23119838
convert SessionDecryption to TS and adapt to use KeyLoader
2021-10-22 17:48:35 +02:00
Bruno Windels
b55930f084
convert ReplayDetectionEntry to typescript
2021-10-22 17:47:29 +02:00
Bruno Windels
d6e243321b
convert megolm/Decryption to typescript and adapt to KeyLoader
2021-10-22 17:46:39 +02:00
Bruno Windels
2ddb3fbf72
cleanup
2021-10-22 17:45:55 +02:00
Bruno Windels
45dc2162dc
fix unit tests
2021-10-22 17:30:20 +02:00
Bruno Windels
77d10c93d6
convert groupby and megolm decryption utils to typescript
2021-10-21 14:40:51 +02:00
Bruno Windels
66a77519d7
implement key caching in KeyLoader
...
merging session cache into it so we can better manage and recycle
keys without exposing too low-level public methods on BaseLRUCache.
Using refCount instead of inUse flag as a key can of course be used
by multiple useKey calls at the same time.
2021-10-21 11:12:54 +02:00
Bruno Windels
3bafc89855
remove unused draft code
2021-10-20 15:25:11 +02:00
Bruno Windels
4fa285e85a
convert LRUCache to ts
2021-10-20 15:24:58 +02:00
Bruno Windels
041cedbc58
fix typescript extension change
2021-10-20 15:24:39 +02:00
Bruno Windels
cbf82fcd29
cleanup code so far
2021-10-20 15:14:17 +02:00
Bruno Windels
5dc0c8c0b3
make 'better' better
2021-10-20 13:38:54 +02:00
Moritz Dietz
c83f78044e
Update FAQ to highlight about the existence of published builds
2021-10-20 12:46:37 +02:00
Bruno Windels
d7407ecf66
WIP
2021-10-20 11:39:01 +02:00
Bruno Windels
82aac93f36
Update SDK.md
2021-10-20 07:05:39 +00:00
Bruno Windels
c92d6ecbb6
Merge pull request #549 from danger89/patch-1
...
Add HTML title & icon
2021-10-08 10:39:08 +02:00
Melroy van den Berg
a20fe2b5a6
Add HTML title & icon
...
Add missing HTML title and icon
2021-10-06 20:38:39 +02:00
Danila Fedorin
3d2c74a760
Add type annotations to SortedArray
2021-10-03 22:19:46 -07:00
Danila Fedorin
7b2e452cd5
Rename SortedArray to TypeScript
2021-10-03 22:19:46 -07:00
Danila Fedorin
1363af24a7
Add type annotations to MappedList
2021-10-03 22:19:46 -07:00
Danila Fedorin
84187ce109
Make updater optional in BaseObservableList
2021-10-03 22:19:44 -07:00
Danila Fedorin
0466b49520
Rename MappedList to TypeScript
2021-10-03 22:18:12 -07:00
Danila Fedorin
3b131f2db6
Add type annotations to ConcatList
2021-10-03 22:18:12 -07:00
Danila Fedorin
588da9b719
Relax types on BaseObservableList and add helper for tests
2021-10-03 22:18:12 -07:00
Danila Fedorin
ddca467e30
Rename ConcatList to TypeScript
2021-10-03 22:18:12 -07:00
Danila Fedorin
8466a910da
Add type annotations to AsyncMappedList
2021-10-03 22:18:12 -07:00
Danila Fedorin
0e6c59983f
Generalize BaseMappedList to allow mappers to promises
2021-10-03 22:18:10 -07:00
Danila Fedorin
e6de873b6e
Rename AsyncMappedList to TypeScript
2021-10-03 22:16:46 -07:00
Danila Fedorin
b148f3ca9e
Add type annotations to ObservableArray
2021-10-03 22:16:46 -07:00
Danila Fedorin
348a9c83f5
Rename ObservableArray to TypeScript
2021-10-03 22:16:46 -07:00
Bruno Windels
6517704850
Merge pull request #545 from vector-im/bwindels/fixbuild
...
the build currently does not like override for some reason
2021-10-01 14:09:07 +02:00
Bruno Windels
cc58d27122
the build currently does not like override for some reason
2021-10-01 14:07:58 +02:00
Bruno Windels
39d5073f49
remove user and password
2021-10-01 13:37:37 +02:00
Bruno Windels
191cb78d8f
Merge pull request #544 from vector-im/bwindels/sdk-export
...
Provide very basic SDK interface
2021-10-01 13:33:13 +02:00
Bruno Windels
fbfda03138
don't let tsc check build system specific files
2021-10-01 13:32:09 +02:00
Bruno Windels
23da4ae2dd
point to SDK docs from FAQ
2021-10-01 13:27:58 +02:00
Bruno Windels
675ee59e50
Add instructions and example code for basic SDK usage
2021-10-01 13:26:14 +02:00
Bruno Windels
193a0e1a4f
move UI docs to doc folder
2021-10-01 13:26:03 +02:00
Bruno Windels
c1d20cb9f9
also call this -Path
2021-10-01 12:56:36 +02:00
Bruno Windels
d2eeaab5f5
get assets paths with import "asset?url" specifically for vitejs
2021-10-01 12:49:41 +02:00
Bruno Windels
aac0e74b9d
also export LoadStatus
2021-10-01 12:49:30 +02:00
Bruno Windels
f89d169ef3
provide library entry point that provides convenient reexports of the public classes
2021-10-01 11:30:42 +02:00
Bruno Windels
de22a0790f
Merge pull request #543 from vector-im/bwindels/typescript-observable
...
Typescript conversion of base observables
2021-10-01 10:10:20 +02:00
Bruno Windels
1c06e36c1c
add override keyword
2021-10-01 10:07:17 +02:00
Bruno Windels
3de3481765
prefer optional syntax over '| null'
2021-10-01 10:05:56 +02:00
Bruno Windels
6b50a63e95
missing space
2021-10-01 10:02:32 +02:00
Bruno Windels
393e2f809e
make subscription handle return undefined, so we can reassign optional members in one statement
2021-10-01 10:01:52 +02:00
Bruno Windels
a0f443ccc3
Merge pull request #521 from DanilaFe/typescript-observable
...
Start migrating Observable code to TypeScript.
2021-10-01 09:54:29 +02:00
Bruno Windels
155207ed95
Merge pull request #392 from MidhunSureshR/documentation
...
Documentation for Hydrogen
2021-09-30 18:38:43 +02:00
Bruno Windels
255e479d47
Merge pull request #541 from vector-im/bwindels/fix-540
...
scroll room list to top when entering query first
2021-09-30 17:24:00 +02:00
Bruno Windels
e42739ec81
scroll room list to top when entering query first
2021-09-30 17:19:42 +02:00
Bruno Windels
8911588de9
release v0.2.16
2021-09-30 12:48:45 +02:00
Bruno Windels
3fba2c6513
Merge pull request #525 from vector-im/bwindels/fix-sssskey-conversion
...
fix sssskey not being migrated properly
2021-09-30 10:19:31 +02:00
Bruno Windels
89add8b684
fix sssskey not being migrated properly
2021-09-30 10:18:03 +02:00
Bruno Windels
31a70e1b8e
release v0.2.15
2021-09-30 09:52:35 +02:00
Bruno Windels
dcb08f5266
Merge pull request #524 from vector-im/bwindels/fix-492
...
clear relations for room when forgetting room
2021-09-30 09:51:59 +02:00
Bruno Windels
d10d27c1d6
clear relations for room when forgetting room
2021-09-30 09:49:45 +02:00
Bruno Windels
4cebe26186
Merge pull request #523 from vector-im/bwindels/clear-cache-after-515
...
clear history cache to purge potential timeline corruption from #515
2021-09-30 09:41:24 +02:00
Bruno Windels
f8f4bb4eac
Merge pull request #520 from vector-im/bwindels/fix-139
...
Keep backup of e2ee identity in localStorage when idb gets cleared
2021-09-30 09:28:56 +02:00
Bruno Windels
42f1603d81
use correct prefix to remove local storage value
2021-09-30 09:25:35 +02:00
Bruno Windels
6ea835c2d1
Merge pull request #522 from xunzhou/master
...
Required pkg for aarch64 docker build
2021-09-30 08:48:47 +02:00
Bruno Windels
ae68264db4
don't use switch where single if/else works
2021-09-30 08:42:00 +02:00
Bruno Windels
ccda93cc82
remove leftover logging
2021-09-30 08:40:49 +02:00
Bruno Windels
3556878a1e
clear history cache to purge potential timeline corruption from #515
2021-09-30 08:37:33 +02:00
xunzhou
17f24942da
Required pkg for aarch64 docker build
2021-09-29 19:31:39 -07:00
Danila Fedorin
c80dfb10a2
Add type annotations to BaseMappedList
2021-09-29 18:41:30 -07:00
Danila Fedorin
99164eb0d8
Rename BaseMappedList to TypeScript
2021-09-29 18:17:38 -07:00
Danila Fedorin
bf53449f66
Add type annotations to common
2021-09-29 18:13:49 -07:00
Danila Fedorin
e53f3d23d5
Rename common to TypeScript
2021-09-29 18:10:09 -07:00
Danila Fedorin
64ba656043
Update ListView and TimelineListView
2021-09-29 18:08:13 -07:00
Danila Fedorin
414280ada9
Add type annotations to BaseObservableList
2021-09-29 18:05:30 -07:00
Danila Fedorin
3952c3b969
Rename BaseObservableList to TypeScript
2021-09-29 17:46:51 -07:00
Danila Fedorin
ab6ce62551
Add type annotations to ObservableValue
2021-09-29 17:43:17 -07:00
Danila Fedorin
a7360f409e
Rename ObservableValue to TypeScript
2021-09-29 17:42:57 -07:00
Danila Fedorin
319027e2e3
Add type annotations to BaseObservable
2021-09-29 17:42:57 -07:00
Danila Fedorin
d73dea797a
Rename BaseObservable to TypeScript
2021-09-29 17:18:22 -07:00
Bruno Windels
e0b9a3fa50
create e2ee identity also when storage got cleared without backup
2021-09-29 20:07:42 +02:00
Bruno Windels
a1c66738db
migration to initialize & restore e2ee identity backup
2021-09-29 19:39:26 +02:00
Bruno Windels
3a064d6796
a IDBRequest when opening the database does not have a source
2021-09-29 19:21:42 +02:00
Bruno Windels
2ef7251079
move ssssKey to e2ee prefix as well so it gets backed up too
2021-09-29 19:21:06 +02:00
Bruno Windels
77bd0d3f3c
store e2ee session values as well in localStorage
2021-09-29 11:49:58 +02:00
Bruno Windels
004aa5d3dc
Merge pull request #519 from vector-im/bwindels/rickfixes
...
Fix immediate errors for sdk usage
2021-09-29 11:12:17 +02:00
Bruno Windels
1b87eaf21e
move packages needed for post-install script to (non-dev) deps
2021-09-29 11:02:59 +02:00
Bruno Windels
cd071e47e0
release v0.2.14
2021-09-28 14:59:40 +02:00
Bruno Windels
9a96a5b7bb
Merge pull request #516 from vector-im/bwindels/fix-515
...
Fix interpreting hex keys as decimal
2021-09-28 14:25:33 +02:00
Bruno Windels
e31d3abc97
fix ts errors in TimelineEventStore unit tests
2021-09-28 14:20:54 +02:00
Bruno Windels
ec2f1b9833
add unit tests for findExistingKeys
2021-09-28 14:20:21 +02:00
Bruno Windels
edc3a1d33c
convert storage mock to TS and add utility for mock raw database
2021-09-28 14:19:59 +02:00
Bruno Windels
9036b21b5c
don't interpret hex as decimal when decoding the key
...
this fixes #515 as it was causing the gap not to be closed,
because the fragment id was never equal.
2021-09-28 11:34:55 +02:00
Bruno Windels
0846fcc05d
add more logging during gap filling
2021-09-27 16:34:12 +02:00
Bruno Windels
f55f450850
fix findExistingKeys too many (existing but not requested) keys
2021-09-27 16:27:52 +02:00
Bruno Windels
cc0b938a6d
release v0.2.13
2021-09-24 18:45:33 +02:00
Bruno Windels
7c44fb8cd4
Merge pull request #510 from vector-im/bwindels/fix-499
...
move over word-break lines
2021-09-24 18:44:41 +02:00
Bruno Windels
6982f55cd7
move over word-break lines
...
this didn't get moved over when converting the timeline tile css to css grid
2021-09-24 18:42:47 +02:00
Bruno Windels
e2d7954846
Merge pull request #509 from vector-im/bwindels/fix-menupositioning
...
automatically position popups using a simpler algorithm
2021-09-24 18:32:36 +02:00
Bruno Windels
71bd797dd4
automatically position popups using a simpler algorithm
2021-09-24 18:28:06 +02:00
Bruno Windels
a7b6fe4b22
Merge pull request #508 from vector-im/bwindels/fix-393
...
don't (re)link fragments in fill, close gap if overlap w linked fragment
2021-09-24 15:42:49 +02:00
Bruno Windels
b75e2fe0ce
decode straight to EventKey object
2021-09-24 15:40:33 +02:00
Bruno Windels
0d798178b0
log neighbor fragment id when closing gap
2021-09-23 18:50:40 +02:00
Bruno Windels
c6ed0abfd7
eventIds is missing
2021-09-23 18:49:23 +02:00
Bruno Windels
e6f7f213ec
don't (re)link fragments in fill, close gap if overlap w linked fragment
2021-09-23 18:02:05 +02:00
Bruno Windels
45917eae1d
Merge pull request #494 from vector-im/DanilaFe/backfill-changes
...
Unit tests for GapWriter, using a new timeline mock utility
2021-09-23 10:15:37 +02:00
Bruno Windels
4b7cb6da9e
make backfill limit explicit
2021-09-23 10:10:22 +02:00
Bruno Windels
dd71fdbe08
add comment
2021-09-23 10:04:58 +02:00
Bruno Windels
6c12f0f66f
release v0.2.12
2021-09-22 10:45:46 +02:00
Bruno Windels
0848306cb0
Merge pull request #506 from vector-im/bwindels/fix-504
...
Drop events that have been synced before
2021-09-22 10:44:55 +02:00
Bruno Windels
498c00fe3c
no need for try catch here as we already catch in getKeys
2021-09-22 10:38:29 +02:00
Bruno Windels
ac5a4c2bc6
pass log item everywhere to tryInsert
2021-09-22 10:33:40 +02:00
Bruno Windels
b58e10521f
don't log tryInsert failures anymore as everything is logged in Store
2021-09-22 10:23:28 +02:00
Bruno Windels
1963635dd7
also log index keys for a value when write fails in Store
2021-09-22 10:22:52 +02:00
Bruno Windels
a19d93dbef
don't swallow anything that isn't a request error
2021-09-22 09:36:26 +02:00
Bruno Windels
704d7b32da
add tests
2021-09-21 21:04:29 +02:00
Bruno Windels
6cded5319a
change timelineEventStore.insert to tryInsert
2021-09-21 21:04:10 +02:00
Bruno Windels
12add19c31
add Store.tryAdd, which prevent abort on ConstraintError
2021-09-21 21:03:29 +02:00
Bruno Windels
0d486a14f6
add the logger property to the null logger as well, forgot this before
2021-09-21 21:01:35 +02:00
Bruno Windels
2d2521cd9a
add prototype to show we can prevent the txn from being aborted on error
2021-09-21 20:58:16 +02:00
Danila Fedorin
92dcc6c980
Remove duplicated lines
2021-09-21 09:39:09 -07:00
Bruno Windels
b8548afb71
export temporary vm typ def
2021-09-21 10:41:01 +02:00
Bruno Windels
07c6bf7055
Merge pull request #503 from vector-im/bwindels/fix-reactions-vm-null
...
use mapped value rather than reading parent vm again
2021-09-21 10:09:05 +02:00
Bruno Windels
a020febf8d
use mapped value rather than reading parent vm again
2021-09-21 10:02:17 +02:00
Danila Fedorin
a3a743881d
Make test adjustments requested in PR.
2021-09-20 19:37:39 -07:00
Danila Fedorin
50c8b995c3
Undo GapWriter algorithm changes
2021-09-20 18:41:01 -07:00
Bruno Windels
0d6881ad22
Merge pull request #502 from vector-im/fix-util-ts-import
...
Fix util import
2021-09-20 10:19:45 +02:00
Danila Fedorin
9f6c48cf0c
Merge branch 'master' into DanilaFe/backfill-changes
2021-09-17 15:19:16 -07:00
Danila Fedorin
6d84cc0a81
Fix util import
2021-09-17 14:51:20 -07:00
Danila Fedorin
820b048272
Finish up the more difficult tests
2021-09-17 10:57:51 -07:00
Bruno Windels
08fe430c4b
release v0.2.11
2021-09-17 18:38:30 +02:00
Bruno Windels
4759b44233
Merge pull request #500 from vector-im/bwindels/idb-write-logging
...
IDB write error logging
2021-09-17 18:37:55 +02:00
Bruno Windels
53a0d29244
example how to get more context for the failure of a write operation
2021-09-17 18:25:28 +02:00
Bruno Windels
f5467a653c
fix stores returning the delete promise which isn't returned anymore
...
I checked these aren't awaited in any js file
2021-09-17 18:24:24 +02:00
Bruno Windels
ad45016b87
process write errors on complete or abort in transaction
2021-09-17 18:23:31 +02:00
Bruno Windels
533b0f40d3
pass write errors in a store to the transaction
2021-09-17 18:21:48 +02:00
Bruno Windels
aeedb948cc
pass logger to Storage and make it available in Transaction
2021-09-17 18:19:26 +02:00
Danila Fedorin
82c35355b6
Start translating GapWriter tests to using MockTimeline
2021-09-16 23:54:13 -07:00
Danila Fedorin
7d27b46873
Make the response of TimelineMock look like a room sync response
2021-09-16 23:53:38 -07:00
Danila Fedorin
bcfca9ad9a
Make event ID function public
2021-09-16 21:53:56 -07:00
Bruno Windels
cce7606960
release v0.2.10
2021-09-16 22:43:38 +02:00
Bruno Windels
5cf8c3c7d2
Merge pull request #498 from vector-im/bwindels/fix-replies
...
Fix replies after releasing scroll improvements
2021-09-16 22:43:15 +02:00
Bruno Windels
41089e2806
remove leftover logging
2021-09-16 22:30:03 +02:00
Bruno Windels
c4477a81ea
don't create the avatar node when we won't need it
2021-09-16 22:29:48 +02:00
Bruno Windels
f02d52ce4c
with !interactive, an array of an array is not a valid Child value
...
why didn't this fail before?
2021-09-16 22:29:13 +02:00
Bruno Windels
bae8dc7dd7
changes should be true when replyVM is not set and we set an entry
2021-09-16 22:28:19 +02:00
Bruno Windels
ccc5aac025
release v0.2.9
2021-09-16 18:20:25 +02:00
Bruno Windels
356af3ae7c
Merge pull request #497 from vector-im/bwindels/timeline-height-fix
...
Fix timeline height on mobile
2021-09-16 18:19:58 +02:00
Bruno Windels
e978202f36
add min-height: 0
2021-09-16 17:48:29 +02:00
Bruno Windels
9a9b206bf5
Merge pull request #486 from vector-im/bwindels/fix-scroll-jumps
...
Fix scroll jumps and loading of gaps not at top of the timeline
2021-09-16 17:14:17 +02:00
Bruno Windels
a62627f6db
fix lint warning
2021-09-16 16:39:17 +02:00
Bruno Windels
381a12db20
load 20 entries initially in timeline, otherwise it flickers a bit
2021-09-16 16:34:13 +02:00
Bruno Windels
898d32c6da
use quotes in css url path
2021-09-16 16:34:01 +02:00
Bruno Windels
6ec2712eec
remove debug logging
2021-09-16 16:33:09 +02:00
Bruno Windels
c9f79343ef
remove obsolete comment
2021-09-16 16:32:59 +02:00
Bruno Windels
b1994918fe
Merge pull request #488 from vector-im/bwindels/list-and-timeline-view-to-ts
...
Convert ListView and TimelineView to typescript
2021-09-16 16:08:34 +02:00
Bruno Windels
a6bcfac597
rename UIView to IView
2021-09-16 15:58:48 +02:00
Bruno Windels
b71a26b04a
avoid using ! in ListView
2021-09-16 15:56:57 +02:00
Bruno Windels
81ec8dca8c
improve typing in utils
2021-09-16 15:51:45 +02:00
Bruno Windels
d9ddeaf107
fix TS errors in TimelineView
2021-09-16 15:49:03 +02:00
Bruno Windels
00aa40ea7b
copy Daniel's conversion of TemplateView to TypeScript from microui
...
with some minor type adjustments
2021-09-16 15:46:02 +02:00
Bruno Windels
ea4d833a43
reuse ViewNode in Child type
2021-09-16 15:39:25 +02:00
Bruno Windels
040efa970c
make className binding always have a value (may be undefined through T)
2021-09-16 15:39:17 +02:00
Bruno Windels
68fb093c9e
don't require mount args in mountView, like in UIView interface
2021-09-16 15:23:48 +02:00
Bruno Windels
060f4aa297
change extension in preparation for TS conversion
2021-09-16 14:02:36 +02:00
Bruno Windels
65f69a121b
copy Daniel's conversion of BaseUpdateView to TypeScript from microui
2021-09-16 14:01:33 +02:00
Bruno Windels
69672dd99c
copy Daniel's conversion of html.js to TypeScript from microui
2021-09-16 10:45:06 +02:00
Bruno Windels
cce8207870
copy Daniel's conversion of EventEmitter to TypeScript from microui
2021-09-16 10:23:03 +02:00
Danila Fedorin
bbd174cd67
Add a class to mock timeline requests
2021-09-15 16:15:18 -07:00
Bruno Windels
2396a84c99
leave out svg editor markup from icon
2021-09-15 18:39:04 +02:00
Bruno Windels
e4101ece65
add "jump down" button in timeline
2021-09-15 18:30:08 +02:00
Bruno Windels
1df12b8c89
only allow pixel gaps of < 1px for stick to bottom to prevent eleweb bug
...
https://github.com/matrix-org/matrix-react-sdk/pull/6751
2021-09-15 17:23:53 +02:00
Bruno Windels
2c415e37e7
where ResizeObserver is support, restore anchored node on resize
2021-09-15 17:23:28 +02:00
Bruno Windels
04edff29cf
give more top padding to gaps that appear in the middle of the timeline
2021-09-15 15:57:31 +02:00
Danila Fedorin
d2b604e1dd
Stop using at
to fix tests.
2021-09-14 15:57:32 -07:00
Danila Fedorin
df273c5e2c
Store more events from backfill
2021-09-14 15:40:15 -07:00
Danila Fedorin
b2b5690739
Add more tests
2021-09-14 13:54:14 -07:00
Danila Fedorin
f8117b6f98
Lift transaction property to QueryTarget
2021-09-14 11:18:24 -07:00
Danila Fedorin
41e568f783
Add more tests and extract common test code
2021-09-14 11:15:13 -07:00
Danila Fedorin
31577cd496
Draft first two tests
2021-09-14 10:24:18 -07:00
Bruno Windels
247d6a2148
add comments
2021-09-14 17:01:30 +02:00
Danila Fedorin
b3df37b0bc
Add the beginning of a tests function for GapWriter
2021-09-13 17:01:32 -07:00
Danila Fedorin
713f675f3a
Mock IDBKeyRange, too
2021-09-13 17:00:49 -07:00
Danila Fedorin
71694787cd
Add an IDBFactory mock parameter
2021-09-13 16:55:55 -07:00
Bruno Windels
feb0cf7e39
fix viewport changing width when timeline starts filling the viewport
...
otherwise centered tiles like announcementview jump a bit vertically
2021-09-13 15:40:15 +02:00
Bruno Windels
906e5886e1
fix tiny jump when timeline starts filling viewport
2021-09-13 15:39:56 +02:00
Bruno Windels
ecccadb77e
avoid requestIdleCallback as it is not supported on Safari and IE11
2021-09-13 14:53:34 +02:00
Bruno Windels
8858cffc55
fallback from scrollBy() to setting scrollTop on IE11
2021-09-13 14:53:08 +02:00
Bruno Windels
02b8b37b4c
disable native scroll anchoring as it interferes with our impl
2021-09-13 13:11:25 +02:00
Bruno Windels
5c40b75eab
don't override newly requested ranges when retrying loadattop
2021-09-10 15:25:19 +02:00
Bruno Windels
9411e6f065
WIP
2021-09-10 14:47:05 +02:00
Bruno Windels
98cc1e2715
don't try to load more when end of timeline reached
2021-09-10 14:17:40 +02:00
Bruno Windels
fe4bb5db40
remove comment
2021-09-09 17:15:28 +02:00
Bruno Windels
d1242c4b67
make gaps taller
2021-09-09 17:15:06 +02:00
Bruno Windels
d0f122a2be
WIP-ish, batch visible range requests, allow setting empty ranges and...
...
don't try to notify when the tile becomes invisible again,
we don't need it currently
2021-09-09 17:14:16 +02:00
Bruno Windels
98678b991b
no need to store visible state on gap tile & don't fill if edge reached
2021-09-08 16:39:46 +02:00
Bruno Windels
ab67ac00b1
restore bottom of timeline initially after attach to DOM
...
this will also load more items if the viewport isn't filled
2021-09-08 12:06:17 +02:00
Bruno Windels
e89f60bac0
fill gap tiles when they become visible
2021-09-08 12:05:59 +02:00
Bruno Windels
7578bfa3d9
let tiles know when they become visible & load more tiles close to top
2021-09-08 12:05:19 +02:00
Bruno Windels
f4b4638ea8
actually, pass in just the tile instances for expressing the range
2021-09-07 19:10:53 +02:00
Bruno Windels
b3cd2a0e03
express the visible range with EventKeys rather than list indices
...
This is less ambiguous in case the DOM and the ObservableList would be
out of sync.
2021-09-07 17:48:49 +02:00
Bruno Windels
c78a83d398
restore most bottom tile in VP on any list change
...
and tell view model visible range so it can load more or fill gaps, ...
2021-09-07 15:17:27 +02:00
Bruno Windels
44ea65dd3e
Merge pull request #458 from MidhunSureshR/fix-457
...
Opening member-details panel should not open/close grid view
2021-09-07 12:16:24 +02:00
Bruno Windels
ad4ec5f04c
convert TimelineView to typescript
2021-09-06 17:51:32 +02:00
Bruno Windels
632d29795a
convert ListView to typescript
2021-09-06 17:12:14 +02:00
RMidhunSuresh
df74d0c814
Remove array from logic
...
Signed-off-by: RMidhunSuresh <hi@midhun.dev>
2021-09-06 17:41:36 +05:30
Bruno Windels
c6b020a9e7
Rename TimelineList to TimelineView for consistency
2021-09-06 13:31:43 +02:00
Bruno Windels
9592d286c2
Merge pull request #460 from vector-im/bwindels/ts-eventkey-direction
...
Convert EventKey & Direction to typescript + some ts tidbits
2021-09-06 13:11:54 +02:00
Bruno Windels
5953cdf0cc
turns out we do write these
2021-09-06 13:10:36 +02:00
Bruno Windels
35f8c40a0c
fix rebase mistake
2021-09-06 13:09:16 +02:00
Bruno Windels
ae5a4f0051
start doc with additional steps for migration
...
once the base migration is done
2021-09-06 13:07:47 +02:00
Bruno Windels
886a60c12a
set target version of TS to ES2020
2021-09-06 13:07:47 +02:00
Bruno Windels
7cb686ce8e
convert EventKey to ts
2021-09-06 13:07:41 +02:00
Bruno Windels
85c8415acd
convert Direction to ts
2021-09-06 13:06:20 +02:00
Bruno Windels
ed082c9869
Merge pull request #475 from vector-im/snowpack-ts-storage-4
...
Snowpack + Typescript conversion (Part 4)
2021-09-06 13:05:08 +02:00
Bruno Windels
36da02c14e
use generics here to say return type of method is same as callback
2021-09-06 13:01:32 +02:00
Bruno Windels
360b4db17a
Merge pull request #474 from vector-im/snowpack-ts-storage-3
...
Snowpack + Typescript conversion (Part 3)
2021-09-06 12:55:46 +02:00
Bruno Windels
ad28f1f9a3
split out Entry type for TimelineEventStore
2021-09-06 12:51:28 +02:00
Bruno Windels
cd98cac4e4
split out Entry type for OlmSessionStore
2021-09-06 12:46:44 +02:00
Bruno Windels
5d8e66a3f3
Merge pull request #473 from vector-im/snowpack-ts-storage-2
...
Snowpack + Typescript conversion (Part 2)
2021-09-06 11:06:46 +02:00
RMidhunSuresh
4f4bc8f805
Add test
...
Signed-off-by: RMidhunSuresh <hi@midhun.dev>
2021-09-06 14:20:33 +05:30
RMidhunSuresh
a54413625e
No need to pass in roomId
...
Signed-off-by: RMidhunSuresh <hi@midhun.dev>
2021-09-06 12:59:30 +05:30
RMidhunSuresh
f841efeef4
Make check more generic
...
Signed-off-by: RMidhunSuresh <hi@midhun.dev>
2021-09-06 12:41:17 +05:30
Bruno Windels
a0d66a71f7
Merge pull request #485 from vector-im/bwindels/make-ssss-key-settings-less-confusing
...
put switch button below input so it looks less like the big green lin…
2021-09-01 15:46:46 +02:00
Bruno Windels
6c3a64f020
put switch button below input so it looks less like the big green link is related to the first paragraph
2021-09-01 15:44:14 +02:00
Bruno Windels
27db00ab98
Merge pull request #484 from vector-im/bwindels/fix-483
...
Ignore redacting reactions on already redacted events
2021-09-01 14:23:13 +02:00
Bruno Windels
6cec583661
fix #483
2021-09-01 14:21:21 +02:00
Bruno Windels
795a57dde1
Merge pull request #481 from jryans/format-key-null
...
Check for null keys in settings view model
2021-09-01 10:37:01 +02:00
Danila Fedorin
5b9fd5de94
Import BaseLogger instead of explicitly defining 'any' type
2021-08-31 16:01:13 -07:00
Danila Fedorin
78fb8fdadf
Make export types more precise
2021-08-31 15:59:50 -07:00
Danila Fedorin
2262e6be30
Use store name enum for saving stores
2021-08-31 15:44:03 -07:00
Danila Fedorin
de3807f690
Fix IDBKeyRange type
2021-08-31 15:35:01 -07:00
Danila Fedorin
4eabb7c074
Fix newly emerging type errors in schema
2021-08-31 15:32:33 -07:00
Danila Fedorin
7f8089eaff
Merge branch 'snowpack-ts-storage-3' into snowpack-ts-storage-4
2021-08-31 15:26:26 -07:00
Danila Fedorin
f34ee53a12
Avoid casting to any when a more specific type is possible
2021-08-31 15:14:21 -07:00
Danila Fedorin
bef02d238f
Split keys out of stored data types
2021-08-31 15:12:09 -07:00
Danila Fedorin
f5943ced97
Remove IDBValidKey references
2021-08-31 14:48:38 -07:00
Danila Fedorin
1fcc147da7
Add type to the IDBKeyRange field
2021-08-31 12:16:16 -07:00
Danila Fedorin
056c7d40eb
Rename RoomEvent to TimelineEvent
2021-08-31 12:10:36 -07:00
Danila Fedorin
16d3ed579b
Reduce IDBValidKey returns to the public API
2021-08-31 11:47:54 -07:00
Danila Fedorin
ce20d40ff7
Revert the return-promise change
2021-08-31 11:31:17 -07:00
Danila Fedorin
eb3f5f1ec2
Merge branch 'master' into snowpack-ts-storage-2
2021-08-31 11:13:10 -07:00
J. Ryan Stinnett
3e5cc07440
Move check to fingerprintKey
2021-08-31 17:14:14 +01:00
J. Ryan Stinnett
284ec8a74f
Check for null keys in settings view model
...
The keys to format in the settings view model might be null. This avoid crashing
the UI by testing for this case.
2021-08-31 16:11:33 +01:00
Bruno Windels
0a13c12b1f
Update FAQ.md
...
mention olm issues when integrating for now
2021-08-31 12:16:59 +00:00
Bruno Windels
cd900ab842
Merge pull request #456 from vector-im/snowpack-ts-storage-1
...
Snowpack + Typescript conversion (Part 1)
2021-08-31 08:48:14 +02:00
Bruno Windels
995ed23b3e
tell TS we're certain to have a txn
2021-08-31 08:43:39 +02:00
Bruno Windels
3d66d71c97
fix conflict
2021-08-31 08:39:12 +02:00
Bruno Windels
f466266a5f
bring back extra caution
2021-08-31 08:16:37 +02:00
Bruno Windels
3ded5b20d3
dedupe some code here
2021-08-31 08:16:27 +02:00
Bruno Windels
8d414970c6
release v0.2.8
2021-08-30 15:23:09 +02:00
Bruno Windels
a8f89c16bd
Merge pull request #472 from vector-im/bwindels/fix-new-join-detect-one-write-phase
...
Fix missing new joins preventing key shares
2021-08-30 15:17:19 +02:00
Bruno Windels
7fb5412176
keep comment where it was
2021-08-30 15:12:25 +02:00
Bruno Windels
0d6ae19d99
use same code to add room to identity in migration as in device tracker
2021-08-30 15:05:57 +02:00
Bruno Windels
a437332482
whitespace
2021-08-30 14:52:20 +02:00
Bruno Windels
0ca46bf2ac
don't log here as we log at a lower level, and don't fail on abort
2021-08-30 14:52:04 +02:00
Bruno Windels
ddb6753f8d
fix refactor error
2021-08-27 20:05:53 +02:00
Bruno Windels
6a6762f036
ensure memberwriter works with undefined for state/timeline events array
2021-08-27 20:05:34 +02:00
Bruno Windels
8e6bd6a7a1
add missing room ids to identities for tracked rooms & clear outbound session
2021-08-27 19:39:24 +02:00
Bruno Windels
fa555bedf0
log storage migration
2021-08-27 19:35:11 +02:00
Bruno Windels
0c05e97465
abort upgrade txn on error
2021-08-27 19:07:27 +02:00
Danila Fedorin
9252f3bede
Migrate StorageFactory to TypeScript
2021-08-27 09:30:16 -07:00
Danila Fedorin
5db9d1493a
Migrate export to TypeScript
2021-08-27 09:30:16 -07:00
Danila Fedorin
04e39ef9e2
Migrate quirks to TypeScript
2021-08-27 09:30:16 -07:00
Danila Fedorin
34b173a057
Migrate schema to TypeScript
2021-08-27 09:30:16 -07:00
Danila Fedorin
eae820f91b
Migrate Storage to TypeScript
2021-08-27 09:30:15 -07:00
Danila Fedorin
5f3c9cda97
Migrate Transaction to TypeScript
2021-08-27 09:30:15 -07:00
Danila Fedorin
100aee9dcc
Migrate InboundGroupSessionStore to TypeScript
2021-08-27 09:30:10 -07:00
Danila Fedorin
914abda7c9
Migrate OlmSessionStore to TypeScript
2021-08-27 09:30:10 -07:00
Danila Fedorin
3cd0d1f423
Migrate DeviceIdentityStore to TypeScript
2021-08-27 09:30:10 -07:00
Danila Fedorin
8d44df83c4
Migrate UserIdentityStore to TypeScript
2021-08-27 09:30:10 -07:00
Danila Fedorin
b46ae152d6
Migrate PendingEventStore.js to TypeScript
2021-08-27 09:30:10 -07:00
Danila Fedorin
fad6d63c14
Migrate TimelineFragmentStore.js to TypeScript
2021-08-27 09:30:10 -07:00
Danila Fedorin
742ab28099
Migrate AccountDataStore.js to TypeScript.
2021-08-27 09:30:10 -07:00
Danila Fedorin
77f75fd968
Migrate OperationStore to TypeScript
2021-08-27 09:30:10 -07:00
Danila Fedorin
8c966627bc
Migrate GroupSessionDecryptionStore to TypeScript
2021-08-27 09:30:10 -07:00
Danila Fedorin
33d94b9497
Migrate OutboundGroupSessionStore to TypeScript
2021-08-27 09:30:10 -07:00
Danila Fedorin
5d4454734a
Migrate RoomStateStore.js to TypeScript
2021-08-27 09:30:10 -07:00
Danila Fedorin
af70269169
Merge branch 'snowpack-ts-storage-1' into snowpack-ts-storage-2
2021-08-27 09:29:53 -07:00
Danila Fedorin
4c4687a05f
Avoid unsafe (and error-prone) cast
2021-08-27 09:29:02 -07:00
Bruno Windels
a61f052fe8
fix lint
2021-08-27 17:23:32 +02:00
Bruno Windels
826de7e9cb
Write all members of a sync in one go
...
so state member events written but not causing a memberChange.hasJoined
don't prevent timeline member events for the same user from doing so
2021-08-27 17:11:29 +02:00
Danila Fedorin
b081aa171c
Merge branch 'snowpack-ts-storage-1' into snowpack-ts-storage-2
2021-08-26 17:08:00 -07:00
Danila Fedorin
904a2cbe74
Merge branch 'master' into snowpack-ts-storage-1
2021-08-26 17:07:25 -07:00
Danila Fedorin
a95704528f
Merge branch 'snowpack-ts-storage-1' into snowpack-ts-storage-2
2021-08-26 17:01:23 -07:00
Danila Fedorin
b7d232d56d
Remove unnecessary cast and restrict constructor parameter type
2021-08-26 16:56:03 -07:00
Bruno Windels
d0c1ddb51b
add failing test
2021-08-26 15:18:31 +02:00
Danila Fedorin
6d6821319e
Merge branch 'snowpack-ts-storage-1' into snowpack-ts-storage-2
2021-08-24 11:19:36 -07:00
Danila Fedorin
1707df71df
Try to reduce repitition in CursorIterator
2021-08-24 11:11:30 -07:00
Bruno Windels
25d0cbe9a2
Merge pull request #468 from vector-im/bwindels/fixlint
...
Cleanup: fix lint and remove dead code
2021-08-24 15:35:40 +02:00
Bruno Windels
cb9606a87b
remove dead code for incomplete memory store
2021-08-24 15:33:41 +02:00
Bruno Windels
e105bc4237
fix lint warnings
2021-08-24 15:31:18 +02:00
Bruno Windels
3d4f69d048
release v0.2.7
2021-08-23 20:25:47 +02:00
Bruno Windels
b4a3bd1822
Merge pull request #466 from vector-im/bwindels/fix-updating
...
rename service-worker.js back to sw.js to unbreak updating
2021-08-23 20:25:25 +02:00
Bruno Windels
54ac5a96ca
rename service-worker.js back to sw.js to unbreak updating
2021-08-23 20:23:38 +02:00
Bruno Windels
3d6a990c58
release v0.2.6
2021-08-23 20:14:20 +02:00
Bruno Windels
7946a3e4d7
Merge pull request #464 from vector-im/bwindels/well-known
...
Add .well-known support
2021-08-23 20:13:30 +02:00
Bruno Windels
65bd892d8f
better naming
2021-08-23 20:09:45 +02:00
Bruno Windels
d31e442c16
better text
2021-08-23 20:06:52 +02:00
Bruno Windels
d1412e1f42
don't retry with www.{host}, as it's a minor security issue
...
if www.host gets hacked (e.g. a bad wordpress plugin), it could spread
to the matrix server running on a different host.
2021-08-23 20:05:42 +02:00
Bruno Windels
160ae0b767
adjust to AbortableOperation api change
2021-08-23 19:53:52 +02:00
Bruno Windels
59605a2a57
don't fail login on missing cors on well-known
2021-08-23 19:53:33 +02:00
Bruno Windels
c0d3c950b0
show the homeserver after lookup
2021-08-23 19:29:17 +02:00
Bruno Windels
3dbffdb417
don't requery the same homeserver we just did
2021-08-23 19:28:43 +02:00
Bruno Windels
e0d53e57ba
clear everything when typing in homeserver field
...
as it's not relevant anymore
2021-08-23 19:28:21 +02:00
Bruno Windels
e944dc5cac
decrease typing timeout to 1s
2021-08-23 19:27:24 +02:00
Bruno Windels
c7b47bb8d6
fix homeServer misspelling to homeserver across the project
2021-08-23 19:26:39 +02:00
Bruno Windels
3a5b7c1d0e
support well-known lookup
2021-08-23 18:47:36 +02:00
Bruno Windels
b4c3a2ea43
Merge pull request #463 from vector-im/bwindels/hs-input-timer
...
Query homeserver login options 2s after stopping to type, in addition to change event
2021-08-23 14:07:46 +00:00
Bruno Windels
9760a4540e
remove debug log
2021-08-23 16:04:00 +02:00
Bruno Windels
993bc36096
dont query 2nd time after losing focus
2021-08-23 16:01:39 +02:00
Bruno Windels
d1301fa642
input is not needed in the name here
2021-08-23 15:57:16 +02:00
Bruno Windels
8eab9ab28b
add 2s timeout on input of homeserver to also query the homeserver, in addition to change event
2021-08-23 15:54:40 +02:00
Bruno Windels
577c3168e6
make queryLogin abortable
2021-08-23 15:54:06 +02:00
Bruno Windels
3b693c5b02
Merge pull request #453 from MidhunSureshR/sso-login
...
[SSO] - [PR 4] - SSO/Token login functionality
2021-08-23 11:38:48 +00:00
RMidhunSuresh
ef4db4abab
Make navigation simpler
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-23 17:00:41 +05:30
RMidhunSuresh
c9319c7c38
Catch any error from queryLogin
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-23 16:58:54 +05:30
RMidhunSuresh
fc169af10f
Rename toggle to set
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-23 16:09:40 +05:30
RMidhunSuresh
b0db7e0344
More simpler navigation
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-23 15:55:07 +05:30
RMidhunSuresh
e80667c935
Remove duplicate style
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-23 15:50:22 +05:30
RMidhunSuresh
69478b81b2
Fix toggleBusy
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-23 15:48:29 +05:30
RMidhunSuresh
ecfdc314d5
Do not set error message to empty string
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-23 15:28:44 +05:30
RMidhunSuresh
c9fbafb909
Also check LoadStatus.Error
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-23 15:12:40 +05:30
RMidhunSuresh
84fd286140
Split logintoken into two words
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-23 15:06:16 +05:30
Danila Fedorin
e610087a79
Merge branch 'snowpack-ts-storage-1' into snowpack-ts-storage-2
2021-08-20 12:51:23 -07:00
Danila Fedorin
a2ff02e6c0
Try using an enum for store names.
2021-08-20 12:33:06 -07:00
Danila Fedorin
69953e5277
Migrate TimelineRelationStore.js to TypeScript
2021-08-20 11:23:27 -07:00
Danila Fedorin
e3b1d034f0
Migrate TimelineEventStore.js to TypeScript
2021-08-20 11:23:21 -07:00
Danila Fedorin
7de704ef86
Migrate InviteStore.js to TypeScript.
2021-08-20 11:23:14 -07:00
Danila Fedorin
7c56ac7746
Migrate RoomMemberStore.js to TypeScript
2021-08-20 11:23:08 -07:00
Danila Fedorin
38a38e8287
Migrate common.ts
2021-08-20 11:23:01 -07:00
Danila Fedorin
e284224cc8
Migrate RoomSummaryStore.js to TypeScript.
2021-08-20 11:22:53 -07:00
Danila Fedorin
144e391c82
Migrate SessionStore.js to TypeScript.
2021-08-20 11:22:45 -07:00
Danila Fedorin
be4ad66b12
Merge branch 'snowpack-ts-storage-1' into snowpack-ts-storage-2-fix
2021-08-20 11:21:03 -07:00
RMidhunSuresh
04806a1425
Convert link to button
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-20 23:16:03 +05:30
Danila Fedorin
0b8acb51a4
Switch errors to using nulls
2021-08-20 10:41:15 -07:00
Danila Fedorin
50b7a8a3fd
Add a comment explaining CursorIterator
2021-08-20 10:34:06 -07:00
RMidhunSuresh
d47e126370
add missing emit
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-20 23:03:51 +05:30
RMidhunSuresh
0e6139d5e3
Use homeserver from login method
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-20 23:02:06 +05:30
RMidhunSuresh
94ba93acb5
Add explaining comment
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-20 22:57:13 +05:30
RMidhunSuresh
0630452571
No need to observe
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-20 22:53:15 +05:30
Danila Fedorin
94ff76711c
Use 'in' to be more idiomatic
2021-08-20 10:04:22 -07:00
RMidhunSuresh
a5985cba2a
Add spinner
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-20 22:18:24 +05:30
RMidhunSuresh
82067ca6f5
No need to pass showError
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-20 21:43:42 +05:30
RMidhunSuresh
55da58893b
Red + bold error
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-20 21:41:42 +05:30
RMidhunSuresh
a2677a6400
Separate errors for each vm
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-20 21:22:12 +05:30
RMidhunSuresh
355468b637
Internationalize + add back old message
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-20 20:36:33 +05:30
RMidhunSuresh
ff8417dfe2
Set busy state from login vm
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-20 20:31:22 +05:30
RMidhunSuresh
784b06d500
Fix emit for isBusy
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-20 20:12:25 +05:30
RMidhunSuresh
0e7a9e224c
Remove unwanted if
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-20 20:10:31 +05:30
RMidhunSuresh
5ca732341a
Rename defaultHomeserver to homeserver
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-20 20:09:12 +05:30
RMidhunSuresh
c650b35831
resetStatus from within startLogin
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-20 20:05:36 +05:30
RMidhunSuresh
9482998b15
Internationalize and remove dash
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-20 19:08:47 +05:30
RMidhunSuresh
2468bc3e9f
Remove homeserver prop
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-20 15:47:30 +05:30
RMidhunSuresh
dadeb7f3e5
Do not override childOptions
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-20 15:42:43 +05:30
RMidhunSuresh
bdc860eb79
Refactor to pull loadvm into login vm
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-20 15:19:42 +05:30
Danila Fedorin
19bababa68
Use method syntax in QueryTarget.
2021-08-19 17:40:10 -07:00
Danila Fedorin
704a8d99c7
Add missing return types to QueryTarget
2021-08-19 17:39:53 -07:00
RMidhunSuresh
80ea48e8a1
Move input into t.if
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-19 21:43:44 +05:30
RMidhunSuresh
5ab405fc30
Move back-button to login view
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-19 21:37:26 +05:30
RMidhunSuresh
3af2ae3bdd
make method private
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-19 20:50:00 +05:30
RMidhunSuresh
ed278e3e5a
Remove unwanted check
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-19 20:50:00 +05:30
RMidhunSuresh
2d842c7174
rename ssoEndpointLink to createSSORedirectURL
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-19 20:50:00 +05:30
RMidhunSuresh
daf7af17b1
Move logic to vm
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-19 20:50:00 +05:30
RMidhunSuresh
068fba3616
Inline method
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-19 20:50:00 +05:30
RMidhunSuresh
738603e890
Rename start to createViewModels
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-19 20:50:00 +05:30
RMidhunSuresh
17f1d6b16a
Remove defaultHomeServer prop
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-19 20:49:54 +05:30
Bruno Windels
a56496ce2b
Merge pull request #461 from vector-im/bwindels/disable-ts-lint
...
Disable TS lint again on CI, as it will be too harsh for an initial migration
2021-08-18 16:54:27 +00:00
Bruno Windels
c99c5e62ba
disable ts lint on CI
2021-08-18 18:52:19 +02:00
Bruno Windels
073743927d
only enable promise related rules ... I think?
2021-08-18 18:52:06 +02:00
RMidhunSuresh
10a6aca477
Move homeserver input into LoginView
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:05:25 +05:30
RMidhunSuresh
13cb8979ac
Check correct login method early
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:05:25 +05:30
RMidhunSuresh
83f4095d88
rename queryLogin to getLoginFlows
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:05:15 +05:30
RMidhunSuresh
d2c94b0d3e
Give argument better name
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:33 +05:30
RMidhunSuresh
db3fd3d1ae
Fix test
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:33 +05:30
RMidhunSuresh
7b9ec5516a
Move normalizeHomeserver into session container
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:33 +05:30
RMidhunSuresh
c4e7dc3b5a
Split SSOLoginViewModel
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:33 +05:30
RMidhunSuresh
4b72b64a2e
Implement SSOLoginHelper
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:33 +05:30
RMidhunSuresh
f8b0ef052f
Give sso homeserver storage key a better name
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:33 +05:30
RMidhunSuresh
98f8f04c74
Implement SSO
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:33 +05:30
RMidhunSuresh
474a4bb19a
Remove Login vm
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:33 +05:30
RMidhunSuresh
683d2c21eb
Use generic language in session load status
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:33 +05:30
RMidhunSuresh
3fa955e594
Parse token/sso login in loginOptions
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:33 +05:30
RMidhunSuresh
66f28b90fc
Implement token login
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:33 +05:30
RMidhunSuresh
daeeaa2869
Set and get strings
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:33 +05:30
RMidhunSuresh
e424293293
Save homeserver before redirecting
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:33 +05:30
RMidhunSuresh
6c6c4c7dfd
Style CompleteSSOLoginView
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:33 +05:30
RMidhunSuresh
93720f6025
Style sso button
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:33 +05:30
RMidhunSuresh
b8f0361157
Split login view into password and sso components
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:33 +05:30
RMidhunSuresh
cabffd5e3f
Move view to correct directory
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:33 +05:30
RMidhunSuresh
c82af5a0a3
Replace link with button
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:33 +05:30
RMidhunSuresh
ce5fdd465c
Remove unnecessary braces
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:33 +05:30
RMidhunSuresh
0af27fc8dd
Move normalizeHomeserver to LoginViewModel
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:33 +05:30
RMidhunSuresh
2c953e361d
Remove queryLoginFromInput()
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:33 +05:30
RMidhunSuresh
2103adfc03
Add view
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:33 +05:30
RMidhunSuresh
4b87887a4f
Show completion view on sso segment
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:33 +05:30
RMidhunSuresh
75d71717d8
Show link for SSO login
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:33 +05:30
RMidhunSuresh
b2613740b8
Add functionality to remove loginToken from URL
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:33 +05:30
RMidhunSuresh
bed0185186
Support loginToken query in History
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:33 +05:30
RMidhunSuresh
74f5e30487
Ignore sso segment in url
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:33 +05:30
RMidhunSuresh
987a83b4cf
Add method to redirect to a specific URL
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:33 +05:30
RMidhunSuresh
3efadcb72c
Add method that returns callback url
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:33 +05:30
RMidhunSuresh
e2d2291d8d
Add test
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:33 +05:30
RMidhunSuresh
19664e54be
Parse loginToken from query parameter
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:31 +05:30
RMidhunSuresh
18e1c305f5
Allow sso to be a root segment
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:04 +05:30
RMidhunSuresh
f3946fcdf3
Pass log as argument
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:04 +05:30
RMidhunSuresh
9651817c5b
Formatting fix
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:04 +05:30
RMidhunSuresh
730a6b2d0a
Move files to separate directory
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:04 +05:30
RMidhunSuresh
46b7d9a373
Add explaining comment
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:04 +05:30
RMidhunSuresh
72fb7f679b
Add license headers
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:04 +05:30
RMidhunSuresh
acfe3f30db
Make lint happy
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:04 +05:30
RMidhunSuresh
a53e29767f
Rewrite password login to use PasswordLoginMethod
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:04 +05:30
RMidhunSuresh
20765d9688
Create LoginMethod for password login
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:04 +05:30
RMidhunSuresh
e0fcec9102
Add method to query login types
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:02 +05:30
Bruno Windels
eb06629385
Merge pull request #459 from vector-im/bwindels/ts-eslint
...
add lint command for typescript
2021-08-18 16:17:14 +00:00
Bruno Windels
4b5f5ddffa
fix ts lint error by making methods abstract
2021-08-18 18:15:03 +02:00
Bruno Windels
e1481f2947
run typescript checks in ci
2021-08-18 17:46:37 +02:00
Bruno Windels
e2cdadc714
don't use any non-ts eslint rules, they don't understand abstract method
2021-08-18 17:42:12 +02:00
Bruno Windels
8fa6f4f9fd
add lint command for typescript
...
and detect missing await
2021-08-18 17:20:31 +02:00
Bruno Windels
02e422f3ac
Merge pull request #448 from vector-im/snowpack-mvp
...
Snowpack MVP
2021-08-18 13:09:02 +00:00
RMidhunSuresh
2ceaebbd1f
Don't find roomId in getter
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 18:17:37 +05:30
RMidhunSuresh
7e177f6953
Modify open-room action to fix bug
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 17:43:40 +05:30
Danila Fedorin
db66570d7a
Migrate Store.js to TypeScript
2021-08-17 16:33:07 -07:00
Danila Fedorin
c4e8ed8851
Migrate QueryTarget.js to TypeScript
2021-08-17 16:30:05 -07:00
Danila Fedorin
28ee87cd2f
Migrate error.js to TypeScript
2021-08-17 16:30:05 -07:00
Danila Fedorin
aa9839ee40
Seemingly fix a bug in utils.ts
2021-08-17 16:30:05 -07:00
Danila Fedorin
cd9fe360a4
Start migrating utils.js to TypeScript
2021-08-17 16:30:05 -07:00
Danila Fedorin
5579c018d1
Migrate common.js to TypeScript
...
Add initial stab at annotating common
Add missing return types and semicolons
2021-08-17 16:30:05 -07:00
Danila Fedorin
8ec8de67b8
Merge branch 'snowpack-mvp' into snowpack-ts-storage-1
2021-08-17 16:29:47 -07:00
Danila Fedorin
5d764a9f0e
Add comment for srcPath
2021-08-17 14:24:10 -07:00
Danila Fedorin
e8dff6d16b
Move web-specific files to platform/web
2021-08-17 14:13:27 -07:00
Bruno Windels
b6d0d54241
explicitly name snowpack build ouput dir, and remove it after build
2021-08-17 17:20:48 +02:00
Bruno Windels
522f8d085a
exclude the polyfill files as well from being transpiled
...
as they are not used in the development build
2021-08-17 12:53:36 +02:00
Bruno Windels
ebd177263a
disable HMR as we won't be using it any time soon I imagine.
...
this prevents the HMR code from loading at runtime
2021-08-17 12:53:00 +02:00
Bruno Windels
ce273d8761
make tests run again with typescript support
2021-08-17 12:52:50 +02:00
Danila Fedorin
b8e32a03f8
Invoke snowpack from build script
2021-08-09 13:30:25 -07:00
Bruno Windels
1e05d41294
release v0.2.5
2021-08-07 09:01:14 +02:00
Bruno Windels
dbb9e5363c
guard against part types that have not been impl in the view
2021-08-07 09:00:41 +02:00
Bruno Windels
d9d76839c5
Merge pull request #450 from vector-im/hr-fix
...
Add rendering for horizontal rules
2021-08-07 06:50:23 +00:00
Danila Fedorin
f239199b1b
Add rendering for horizontal rules
2021-08-06 15:50:03 -07:00
Bruno Windels
e68df1b324
release v0.2.4
2021-08-06 23:44:52 +02:00
Bruno Windels
2c8e259339
focus composer when replying
2021-08-06 23:43:10 +02:00
Bruno Windels
c3177b06bf
Merge pull request #418 from vector-im/replies
...
Sending replies
2021-08-06 21:28:42 +00:00
Bruno Windels
9f0c3b9cea
await sending a message before clearing composer (this was missing all along)
2021-08-06 23:06:58 +02:00
Danila Fedorin
38bdeae4d4
Mount more source folders
2021-08-06 13:19:37 -07:00
Danila Fedorin
d2f32ca3a5
Run snowpack on 'yarn start'
2021-08-06 13:05:40 -07:00
Danila Fedorin
86242daf3b
Add basic typescript configuration
2021-08-06 12:59:18 -07:00
Danila Fedorin
3c5b186e31
Switch BaseEntry to TypeScript
2021-08-06 12:54:06 -07:00
Danila Fedorin
b8c8325292
Copy olm and remove dompurify symlink
2021-08-06 12:46:41 -07:00
Danila Fedorin
31c6aa647b
Switch to using snowpack-provided dompurify
2021-08-06 12:39:00 -07:00
Danila Fedorin
f6b2d2cca8
Move index.html to a different place
2021-08-06 12:34:20 -07:00
Danila Fedorin
177dfd339a
Add a basic snowpack configuration
2021-08-06 12:17:03 -07:00
Danila Fedorin
973b33c032
Add snowpack and typescript dependencies
2021-08-06 12:15:23 -07:00
Danila Fedorin
053c94b60e
Stop passing room to tiles in tests
2021-08-06 11:02:41 -07:00
Danila Fedorin
f8dae8e20c
Merge branch 'replies' of github.com:vector-im/hydrogen-web into replies
2021-08-06 10:54:33 -07:00
Danila Fedorin
a8fcf63cf9
Make the close button have a pointer cursor
2021-08-06 10:46:38 -07:00
Danila Fedorin
065b1789be
Remove interactive condition on continuation
2021-08-06 10:44:35 -07:00
Danila Fedorin
bf1f288a92
Make RoomViewModel's room public and stop feeding it to tileCreator
2021-08-06 10:40:25 -07:00
Danila Fedorin
4c1aeb342a
Add two new tests for replies
2021-08-06 10:35:45 -07:00
Danila Fedorin
8dc80e68a7
Remove out-of-date comment
2021-08-06 10:31:01 -07:00
Danila Fedorin
ac044cb5c2
Rename pending event fields
2021-08-06 10:27:17 -07:00
Danila Fedorin
1207203b00
Prefer relations from encrypted content
2021-08-06 10:22:43 -07:00
Danila Fedorin
5a0bc55e54
Rename reply function in reply.js
2021-08-06 10:16:20 -07:00
Bruno Windels
2a92363317
use disposeTracked
2021-08-06 17:56:02 +02:00
Bruno Windels
3feaf38252
use internalId to compare so we don't have to cache the entry id separately
2021-08-06 17:53:58 +02:00
Bruno Windels
5426908444
add copyright header
2021-08-06 17:49:39 +02:00
Bruno Windels
5675895301
Merge pull request #447 from MidhunSureshR/avatar-memberlist-link
...
Link to member-panel from avatar
2021-08-06 15:44:57 +00:00
RMidhunSuresh
1ce111c317
Css fix
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-06 21:07:30 +05:30
RMidhunSuresh
b97b9da14a
Link to member-panel from avatar
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-06 20:51:39 +05:30
Bruno Windels
7d9ccb9a3a
Merge pull request #432 from MidhunSureshR/sync-powerlevels
...
Member Panel - PR 3 - Update powerlevels from state event
2021-08-06 15:02:21 +00:00
RMidhunSuresh
be57352f71
Move PowerLevels.js into /room
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-06 19:49:48 +05:30
RMidhunSuresh
1a062f69fd
Check state_key is zero-length string
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-06 19:02:50 +05:30
RMidhunSuresh
d85cf982cc
Check if state_key is present
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-06 17:34:21 +05:30
RMidhunSuresh
187cf5cd28
Use optional chaining
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-06 17:23:01 +05:30
RMidhunSuresh
2cae7c41d3
Check timeline before state
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-06 17:15:40 +05:30
RMidhunSuresh
4ddc7c0683
Update powerlevels in afterSync
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-06 17:15:40 +05:30
RMidhunSuresh
40128c7ff6
Set pl from room response
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-06 17:15:40 +05:30
RMidhunSuresh
b75760c437
Add event type string
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-06 17:15:40 +05:30
Bruno Windels
1862e31396
Merge pull request #417 from MidhunSureshR/member-details
...
Member Panel - PR 2 - UI
2021-08-06 11:18:52 +00:00
RMidhunSuresh
7e8d76a95e
Refactor map into switch-case
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-06 16:21:31 +05:30
RMidhunSuresh
bc8e6237d6
Merge suggestion from Github
2021-08-06 16:05:08 +05:30
R Midhun Suresh
3ff55204f3
No need for lambda here
...
Co-authored-by: Bruno Windels <bruno@windels.cloud>
2021-08-06 16:04:51 +05:30
RMidhunSuresh
dbd205701c
Remove unused prop
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-06 16:03:19 +05:30
RMidhunSuresh
86ddfc1e9e
Only need to emit
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-06 13:06:38 +05:30
R Midhun Suresh
974d9bf199
Don't cache powerlevel value
...
Co-authored-by: Bruno Windels <bruno@windels.cloud>
2021-08-06 13:02:58 +05:30
Danila Fedorin
21b067eaff
Create new tiles instead of keeping old ones
2021-08-05 10:05:50 -07:00
Danila Fedorin
434882069e
Lift tiles creator to RoomViewModel
2021-08-05 09:39:59 -07:00
Bruno Windels
73884cff0d
Merge pull request #412 from MidhunSureshR/member
...
Member panel - PR 1 - Add method to fetch member
2021-08-05 11:13:52 +00:00
RMidhunSuresh
49be4e64ca
Remove object
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-05 16:32:30 +05:30
RMidhunSuresh
fea4143af9
Use texttransform
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-05 16:32:30 +05:30
RMidhunSuresh
d3ea26a38a
Use i8n in role
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-05 16:32:30 +05:30
RMidhunSuresh
862e8569a9
Describe what changed in emitChange()
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-05 16:32:30 +05:30
RMidhunSuresh
a16c3aacab
Create getter
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-05 16:32:30 +05:30
RMidhunSuresh
28a0a0830f
Copy over all segments after right-panel
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-05 16:32:30 +05:30
RMidhunSuresh
0ff0850979
Remove dm user option
...
- I don't know why but I thought .../open-room/<user_id> would open an
invite view to a room with the specified user.
- Does not work like that, so removed.
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-05 16:32:30 +05:30
RMidhunSuresh
d056a9f961
Keep memberlist until rightpanel is closed
...
- This should make switching between memberlist and
member-details panel smoother for large rooms
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-05 16:32:30 +05:30
RMidhunSuresh
16887c3c33
Better formatting
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-05 16:32:30 +05:30
RMidhunSuresh
448bf3cb3f
Style tile
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-05 16:32:30 +05:30
RMidhunSuresh
4784bcc590
Make the tiles link to details
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-05 16:32:30 +05:30
RMidhunSuresh
65b1a1958a
Add link to open member details
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-05 16:32:30 +05:30
RMidhunSuresh
7dacbdb700
Show back button
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-05 16:32:30 +05:30
RMidhunSuresh
7530b28130
Improve segment adding logic
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-05 16:32:30 +05:30
RMidhunSuresh
ef17808fbd
Fallback to memberlist if member not available
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-05 16:32:30 +05:30
RMidhunSuresh
f9b1068bae
Add links
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-05 16:32:30 +05:30
RMidhunSuresh
fe6551ff3c
Use powerlevel
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-05 16:32:30 +05:30
RMidhunSuresh
c9224c13a7
Improve code and css
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-05 16:32:30 +05:30
RMidhunSuresh
c2b9c3f726
Add isEncrypted to vm
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-05 16:32:30 +05:30
RMidhunSuresh
7ef7c419e3
Add basic UI and styling
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-05 16:32:30 +05:30
RMidhunSuresh
acdba8fc02
Add license headers
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-05 16:32:30 +05:30
RMidhunSuresh
e4bb20575b
Create navigation and add to right panel
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-05 16:32:30 +05:30
RMidhunSuresh
fdd4caa0b7
Create vm and view
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-05 16:32:30 +05:30
RMidhunSuresh
7e481080b5
Return null
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-05 16:32:06 +05:30
Danila Fedorin
a9731f5a1d
Clean up code for inserting emotes
2021-08-04 16:02:37 -07:00
Danila Fedorin
b4a0c31e1c
Update test code with new function signature
2021-08-04 15:54:11 -07:00
Danila Fedorin
508214a46b
Insert emote text after quotes
2021-08-04 15:50:42 -07:00
Danila Fedorin
b5f16468ce
Add a flag to strip replies
2021-08-04 15:31:25 -07:00
Danila Fedorin
06961ff693
Add isReply flag to entries
2021-08-04 15:30:35 -07:00
Danila Fedorin
960e3ec469
Fix unsubscribing from observed events containing null
2021-08-04 11:08:35 -07:00
Danila Fedorin
2375bf061c
Strip relates_to from encrypted events' original contents.
2021-08-04 10:26:03 -07:00
Danila Fedorin
fa985f8f16
Blurb isn't really the right word.
2021-08-04 09:30:02 -07:00
Danila Fedorin
611c6e9717
Move replying code into reply.js and add license
2021-08-04 09:26:26 -07:00
Bruno Windels
790724bc2d
Merge pull request #438 from vector-im/bwindels/fix-401
...
Fix error when back-paginating reaction on event in unloaded fragment
2021-08-04 14:49:04 +00:00
Bruno Windels
0dc5041f47
WIP
2021-08-04 15:23:03 +02:00
Danila Fedorin
1a0e305212
Extract ComposerViewModel to its own file
2021-08-03 14:02:11 -07:00
Danila Fedorin
f0b6384ad7
Rename 'disabled' to 'interactive' in BaseMessageView
2021-08-03 13:27:33 -07:00
Danila Fedorin
8956f6ecf4
Fuse methods and properties related to replies
2021-08-03 13:10:36 -07:00
RMidhunSuresh
c9a4c393ed
Return null
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-02 23:51:19 +05:30
RMidhunSuresh
e363d32921
Return null on error
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-02 23:42:55 +05:30
RMidhunSuresh
bb68b4d367
Fetch member data from from state event if needed
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-02 23:01:44 +05:30
Bruno Windels
a9308f69b8
Merge pull request #420 from MidhunSureshR/add-license
...
Add missing license headers
2021-08-02 15:10:18 +00:00
Bruno Windels
89d9cd3782
Merge pull request #421 from MidhunSureshR/fix-avatar-lint
...
Fix lint warning
2021-08-02 15:09:31 +00:00
RMidhunSuresh
6cfb4cfbe0
Support state events
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-02 17:50:09 +05:30
Danila Fedorin
9bd7d1397c
Preserve the m.relates_to field for message.
2021-07-30 14:37:34 -07:00
Danila Fedorin
d4ed146cd7
Add implementation thoughts
2021-07-29 13:40:02 -07:00
Danila Fedorin
99a630fb84
Add a note on TilesCollection and diposing of tiles
2021-07-29 10:46:17 -07:00
Danila
d5f7280249
Merge pull request #424 from moritzdietz/master
...
docs: Update FAQ to add missing `yarn install` command
2021-07-29 09:36:46 -07:00
Moritz Dietz
9a7cb2fd31
Apply review suggestion
2021-07-29 11:54:04 +02:00
Danila Fedorin
28248722a3
Fix incorrect conditions for showing avatar
2021-07-28 16:17:25 -07:00
Danila Fedorin
e2ad589aa3
Go through and clean up affected files.
2021-07-27 16:51:34 -07:00
Danila Fedorin
fb54ab68a3
Tweak reply style
2021-07-27 15:12:03 -07:00
Moritz Dietz
699e704a49
docs: Update FAQ to add missing yarn install
command
...
Add yarn install to the FAQ docs
As someone who has never worked with either npm or yarn I was not aware that I need to run yarn install as well.
After having a chat in the Hydrogen room I was walked through to help me build hydrogen.
Either you initially meant to say yarn install instead of yarn init or it was assumed that one would run yarn install anyway.
2021-07-27 21:00:47 +02:00
Danila Fedorin
3d911f2a22
Add escaping to replies
2021-07-26 14:49:06 -07:00
Danila Fedorin
753bb8392b
Add mx-reply to dompurify's list so we can ignore it ourselves.
2021-07-26 12:21:20 -07:00
Danila Fedorin
305fab467e
Send a formatted body from quotes
2021-07-23 16:45:22 -07:00
Danila Fedorin
0db6870edb
Flesh out the fallback formatting a bit.
2021-07-23 16:37:23 -07:00
Danila Fedorin
c0d39a5983
Add very rudimentary fallback reply formatting code
2021-07-23 15:34:04 -07:00
Danila Fedorin
73ca5d21ff
Add ideas of pending replies
2021-07-23 15:32:37 -07:00
Danila Fedorin
242a9c209b
Handle replies in EventEntry
2021-07-23 14:34:11 -07:00
RMidhunSuresh
34f1ecc0dc
Remove unused import
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-23 18:10:17 +05:30
RMidhunSuresh
281dc8bdb4
Add missing license headers
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-23 18:05:48 +05:30
Danila Fedorin
711732200e
Make the reply box more distinct
2021-07-22 14:44:57 -07:00
Danila Fedorin
b0c5b2f2ce
Use the proper tile view to display reply preview
2021-07-22 14:15:18 -07:00
Danila Fedorin
650389538d
Add some basic styling
2021-07-22 14:07:13 -07:00
Danila Fedorin
83f7391af3
Adjust CSS to match new class structure
2021-07-22 13:39:40 -07:00
Danila Fedorin
1dcfdfc1d8
Split composer into preview and input
2021-07-22 13:37:35 -07:00
Danila Fedorin
013f187dc2
Avoid inserting li tags outside a list
2021-07-22 12:51:24 -07:00
Danila Fedorin
66f686210f
Add a very basic, unstyled view of the message to the composer.
2021-07-22 12:28:24 -07:00
Danila Fedorin
94ae5faa3c
Add a disabled flag to message view.
2021-07-22 11:16:34 -07:00
Danila Fedorin
7adb0e5ddc
Get rid of intermediate view model
2021-07-22 10:56:30 -07:00
RMidhunSuresh
3aeb0c4d98
Indicate if no member found
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-21 18:34:55 +05:30
Danila Fedorin
d33d55376a
Put reply into its own view model.
...
Otherwise, we re-render the reply message on
every keystroke.
2021-07-20 16:51:36 -07:00
Danila Fedorin
f486bc0e04
Reset reply state after successfully sending a reply
2021-07-20 13:01:04 -07:00
Danila Fedorin
46215b3c51
Add the ability to reply
2021-07-20 12:53:31 -07:00
Danila Fedorin
800b4785d1
Accomodate in_reply_to relation shape
2021-07-20 12:17:44 -07:00
Danila Fedorin
fdcafaf6d3
Add _replyTo field to ComposerViewModel that can be set from a message
2021-07-19 16:10:35 -07:00
RMidhunSuresh
05f05bb577
Add method to get member from storage
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-19 19:36:09 +05:30
Bruno Windels
13932bb480
release v0.2.3
2021-07-18 13:16:51 +02:00
Bruno Windels
934e7e6f71
Merge pull request #410 from vector-im/invite-avatar-fix
...
Fix error on invites in room list panel.
2021-07-18 11:14:54 +00:00
Danila Fedorin
c9e937c41c
Add redundancy to prevent stored nulls from causing errors.
2021-07-17 13:29:20 -07:00
Danila Fedorin
ad453555b9
Avoid storing null for invite avatars.
2021-07-17 13:23:13 -07:00
Bruno Windels
44b25e4157
release v0.2.2
2021-07-16 23:54:34 +02:00
Bruno Windels
b036e48b66
too many ..
2021-07-16 23:54:19 +02:00
Bruno Windels
c062584578
release v0.2.1
2021-07-16 23:48:55 +02:00
Bruno Windels
f2e5e34a7f
Merge pull request #408 from vector-im/formatted-messages
...
Formatted messages
2021-07-16 21:47:03 +00:00
Bruno Windels
9044f4eebe
also for inline code
2021-07-16 23:32:38 +02:00
Bruno Windels
bc69e1cdae
make font on code snippets slightly smaller
2021-07-16 23:29:41 +02:00
Danila Fedorin
0c0633fdd4
Fix body.string in BaseMessageTile
2021-07-16 14:28:18 -07:00
Danila Fedorin
fb29913ef0
Add lint fixes
2021-07-16 14:21:39 -07:00
Danila Fedorin
c835dc324e
Merge branch 'master' of github.com:vector-im/hydrogen-web into formatted-messages
2021-07-16 14:05:43 -07:00
Danila Fedorin
3e4314e7f3
Update comment based on 'small object' version of code.
2021-07-16 13:53:14 -07:00
Danila Fedorin
c620e9c930
Move away from Object.assign for image rendering.
2021-07-16 13:51:34 -07:00
Danila Fedorin
da48ddec83
Fix == typo
2021-07-16 13:49:33 -07:00
Danila Fedorin
7cfdd4f663
Rename TextTileFormat to BodyFormat
2021-07-16 13:46:25 -07:00
Danila Fedorin
031ce42831
Properly cache message format.
2021-07-16 13:43:40 -07:00
Danila Fedorin
9e1f57a2b1
Switch tiles to using enums and checking format.
2021-07-16 13:36:26 -07:00
Danila Fedorin
1e2945ca54
Add license headers to new files.
2021-07-16 13:12:26 -07:00
Danila Fedorin
996d0cfea8
Remove unneded attribute objects
2021-07-16 13:08:21 -07:00
Danila Fedorin
900ebfe289
Properly pass children to list block
2021-07-16 13:05:47 -07:00
Bruno Windels
da7dff18c6
Merge pull request #395 from MidhunSureshR/memberlist
...
Add memberlist right-panel to Hydrogen
2021-07-16 20:03:13 +00:00
Danila Fedorin
cdf85edad9
Move pill parsing into deserialize and avoid intermediate objects.
2021-07-16 13:01:33 -07:00
Danila Fedorin
eacc033929
Make code blocks accept non-code tags.
2021-07-16 11:38:41 -07:00
Danila Fedorin
2197d68279
Add fix to prevent pre overflow.
2021-07-16 11:00:54 -07:00
Bruno Windels
9aedc1d526
don't put body parts in span
2021-07-16 19:30:02 +02:00
Bruno Windels
629d58b041
limit code block height
2021-07-16 19:16:15 +02:00
Bruno Windels
2ce6cea4ff
not used anymore
2021-07-16 19:16:06 +02:00
Bruno Windels
b5b19abb24
only allow links for the schemas mentioned in the spec
2021-07-16 18:32:40 +02:00
Bruno Windels
fe3bdda05a
all of these should be scoped to messageBody
2021-07-16 17:27:24 +02:00
Bruno Windels
1f82aef4ad
some header styling in messages
2021-07-16 16:53:33 +02:00
Bruno Windels
47c1737371
make <code> styling like element
2021-07-16 16:28:03 +02:00
Bruno Windels
2159b67ba4
make link styling like element, blue an no underline
2021-07-16 16:27:43 +02:00
Bruno Windels
f012c64fc5
fix pill styling a bit, and open in new tab/noopener
2021-07-16 16:27:22 +02:00
RMidhunSuresh
1a721fe7e8
Import from AvatarView.js
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:13:18 +05:30
RMidhunSuresh
7c9755d1a6
Fix width for smaller screens
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
86bb56ab6f
Fix layout of details panel in mobile
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
436e87578e
Initialize prop in constructor
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
ec4a783759
Fix disambiguator
...
- Do not disambiguate name on room rejoin
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
66d5f4d1a3
Make code clearer
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
9fdfebf00d
Replace get with iterator and remove lambda
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
f366479c16
Fix move bug
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
0bd1d2b291
Improve code
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
829830c0fa
Fix lazylist
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
0e0976c7f5
Inline method
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
611524cdda
Log instead of throwing error
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
ec8b6f9dd2
Inline method
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
c410aed672
Use flex instead of setting height
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
4946683b23
Use ifView instead of mapView
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
694b627309
Inline method
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
1f67aa34d3
Move LoadingView.js
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
da733f9f8a
Move files to members directory
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
0ac3d3727b
Remove TemplateView
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
9a3d7e416a
Remove top padding of room details view
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
4bac98d39a
More css fixes
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
c4c0e0206f
Clear margin on ul
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
fe18b61688
Css fixes
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
5c0c59044f
Move spinner before the text
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
60793798c7
Subscribe to powerLevels
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
960f2c283e
Remove comment
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
e406aa6e45
Add jsdoc for powerlevels
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
5873ab63ba
Release memberlist after panel is closed
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
5a54be2e2e
Style loading view
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
be46d870aa
Center names
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
c7e12c98b5
Make addPanelIfNeeded more generic
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
b126ba1370
Fix lazy list css
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
f98a8847e3
Implement UX
...
- Add chevron to member count in room details
- Make some rows in panel buttons
- Add user chrome to right panel
- Style UI
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
21f47f21aa
Add chevron to button
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
8e55967db3
Create UI to open memberlist from details panel
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
72f79e8bef
Reduce padding
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
8ee9cb10c2
Move css to layout.css
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
fe4f6d2308
Remove listHasChangedSize
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
c073d4c0d0
Unmount child views correctly
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
2502c4024a
Fix broken tests
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
8e39aed4b6
Ensure that power levels are loaded only once
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
14c00f50fc
Make loadPowerLevels private
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
22fab3761a
Remove timeline reader and only use roomState
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
8a976ef24b
Make powerLevels observable
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
d1f465e6cc
Replace slice with iterator
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
c539c38699
Account for padding in itemHeight
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
f506cf615b
div --> li
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
ea0851eb94
Keep memberlist panel open on room/grid change
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
d3a8e95962
Find height of container from DOM
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
5338457ea0
Use normalized index in recreateItem
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
85924aba92
Fix update method
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
4cb9adc9ea
Remove misleading comment
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
9a00143623
Improve comment
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
96e2bb0b1a
Add explaining comment
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
f05574f579
Fix updates
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
452eee6767
Incorporate lazyrender code from element
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
ee072343f5
Switch to lazy list
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
0b9f4a5e1d
Add LazyListView
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
1d5b16395f
Export function
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
35f6043d06
Support slice
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
db515d48c1
Inline flatten method
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
53fc6a7af9
Check prev name is string
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
11d411c9a9
Add failing test
...
For empty names not un-disambiguating
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
89e256e563
Return array to prevent fetching again
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
ea06d4f88e
Eliminate double lookup
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
da1e981948
name changes
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
ad6122a5b6
Add explaining comment
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
41806b5e82
Remove duplication
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
ab0a48ab31
rename rightpanel to right-panel
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
3bb82e55bf
Disambiguator is not async
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
e935423814
Remove duplication in RightPanelViewModel
2021-07-16 17:08:18 +05:30
RMidhunSuresh
bcfd1bd135
Support loading view for all panels
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
d64d07aee5
Move loading view into separate file
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
3fb89a81bc
Add some initial styling
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
7139711314
Add avatar to tile
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
86c1550850
Switch to collator for perf reasons
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
3d4ba20150
Put up a temporary loading view
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
ef40027502
Call disambiguate on update/map
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
bcb46fc54a
Make tile vm support disambiguation
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
b8542c6754
Implement name disambiguation
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
dea0cad252
Fix bug in FilteredMap
...
Caused multiple updates to be triggered.
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
404129f60e
Settle on MappedMap
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
f41c835e91
Support updater in MappedMap
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
0819dcb29e
Use MappedList instead of MappedMap
...
- MappedList supports an optional updater method
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
b62473ae79
Add update method
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
4fcaac3865
Add binding in view
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
11eb9c7783
Use set instead of add in memberlist
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
2e8c4563aa
Implement set method to support update from value
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
a1e3ff3ed8
Use name instead of displayName
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
a9ff6ab026
Sort memberlist using powerlevel
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
3e23392a0e
Consider powerlevels in comparator and add tests
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
cb5e598e95
Getter for powerlevel from room
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
f7a6fbd901
Make getUserLevel() public
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
ddb7a16fb8
Make member private
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
7e72d57be7
Make list scrollable
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
abd2c19bf2
Remove unused param
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
a765d7fc7d
Create memberlist view from rightpanel
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
f3c7ab337d
Remove code from session view/vm
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
46a6cf6adf
Add memberlist to navigation
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
1418645e15
Modify CSS to reflect changes
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
dfe7385611
Accommodate "rightpanel" navigation segment
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
8b01ca502e
Create RightPanel from SessionViewModel
...
- Also remove old methods used in RoomDetails
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
7500bbeaad
Modify navigation to work with rightpanel segment
...
- Ensure that rightpanel does not show in the URL.
- Create an action of details to insert the rightpanel segment.
- Make sure rightpanel can be a child of room.
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
b74e4452dd
Move rightpanel to separate view and vm
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
7e6e4ecfab
Duplicate navigation from room details
...
- TODO: Remove duplication
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
RMidhunSuresh
69237fce85
Basic barebones of memberlist view
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-16 17:08:18 +05:30
Danila Fedorin
c619eba8cf
Add some styling to the tables.
2021-07-15 13:19:54 -07:00
Danila Fedorin
d69b78469c
Add table viewing code.
2021-07-15 13:19:54 -07:00
Danila Fedorin
f6f29adacc
Add a comment about avatar.js
2021-07-15 13:16:42 -07:00
Danila Fedorin
c13daedcb0
Ignore non-absolute links.
2021-07-15 13:15:56 -07:00
Bruno Windels
7177fc1a03
Merge pull request #409 from vector-im/bwindels/confirm-leave
...
confirm the leave room
2021-07-15 12:32:12 +00:00
Bruno Windels
fb3c090de2
confirm the leave room
2021-07-15 14:30:16 +02:00
Danila Fedorin
ba7e86ac8d
Add blocquote style.
2021-07-14 18:11:09 -07:00
Danila Fedorin
025ab16668
Fix /me body rendering.
2021-07-14 18:10:59 -07:00
Danila Fedorin
038b101ed7
Render matrix.to user links as pills
2021-07-14 17:57:53 -07:00
Danila Fedorin
78d7d556e4
Add blockquote and del elements.
2021-07-14 12:38:55 -07:00
Danila Fedorin
763e1cd5de
Add tentative version of linkification.
2021-07-13 16:56:46 -07:00
Danila Fedorin
0c05ff459c
Add another test.
2021-07-13 15:14:03 -07:00
Danila Fedorin
5e39eb8f6c
Do some additional validation, blocking block nodes inside inline nodes.
2021-07-13 14:47:10 -07:00
Danila Fedorin
4b92903ddd
Add a test for auto-closing tags.
2021-07-12 15:16:04 -07:00
Danila Fedorin
4022c6121b
Switch to DOMPurify in platform layer for sanitization.
2021-07-12 15:00:16 -07:00
Danila Fedorin
012ef2b215
Validate w/h and avoid use of properties object.
2021-07-12 13:42:39 -07:00
Danila Fedorin
1e9cdbafd4
Move test-specific code into the testing function.
2021-07-12 13:31:33 -07:00
Danila Fedorin
fd17ffecfb
Pass parameters to parseHTMLBody directly instead of via object.
2021-07-12 12:55:33 -07:00
Danila Fedorin
c261b9fb23
Avoid intermediate objects while parsing TextTiles' bodies.
2021-07-12 12:47:22 -07:00
Danila Fedorin
9304ca330e
Rewrite deserialize as a class to avoid passing options
around.
2021-07-12 12:19:51 -07:00
Danila Fedorin
abd62373e5
Remove copy of MediaRepository mxcUrl parsing.
2021-07-09 13:09:19 -07:00
Danila Fedorin
1435c2c9a2
Add HTML sanitization to domain layer.
2021-07-09 13:06:24 -07:00
Danila Fedorin
695bdec9fe
Match the thumbnail width and height in in-message images.
2021-07-08 14:41:05 -07:00
Danila Fedorin
b3dabc2054
Limit image size
2021-07-08 00:20:35 -07:00
Danila Fedorin
d38c52d311
Display images in messages
2021-07-08 00:16:58 -07:00
Danila Fedorin
c582b723bd
Start working on images.
2021-07-07 23:40:16 -07:00
Danila Fedorin
1a14719483
Wrap DOM iterables in array.
2021-07-07 14:12:24 -07:00
Danila Fedorin
92e82a76c7
Add basic styling to code block
2021-07-07 13:05:24 -07:00
Danila Fedorin
e02163b0ff
Properly display ul in message bodies.
2021-07-07 13:05:10 -07:00
Danila Fedorin
eca5308742
Move deserialization into domain and fix tests.
2021-07-07 12:21:10 -07:00
Danila Fedorin
41d82c4cdd
Add some deserialization tests.
2021-07-06 19:11:05 -07:00
Danila Fedorin
e08aa7df88
Add HTML parser library for tests.
2021-07-06 19:10:36 -07:00
Danila Fedorin
49df21e465
Display lists.
2021-07-06 16:48:31 -07:00
Danila Fedorin
1da35be148
Better handle list start attribute.
2021-07-06 16:14:35 -07:00
Danila Fedorin
e56b15237e
Parse formatted message bodies in addition to plain ones.
2021-07-06 16:14:04 -07:00
Bruno Windels
f515407491
Merge pull request #404 from MidhunSureshR/fix-402
...
Handle avatar image error
2021-07-05 07:48:48 +00:00
Danila Fedorin
cfa686867c
Make parse
a function that returns a MessageBody
2021-07-02 18:20:07 -07:00
Danila Fedorin
6ba2deffef
Make small tweaks to formatted representation.
2021-07-02 18:19:40 -07:00
Danila Fedorin
005580f385
Move HTML parsing into platform.
2021-07-02 15:05:50 -07:00
Danila Fedorin
8f44cc21db
Correct two uses of ==
.
2021-07-02 00:41:28 -07:00
Danila Fedorin
824e66a62f
Add some comments.
2021-07-02 00:23:59 -07:00
Danila Fedorin
94f6c99ea6
Begin a parser implementation from HTML into an internal representation.
2021-07-02 00:18:37 -07:00
Danila Fedorin
db202b23ae
Add some prototype rendering implementations.
2021-07-01 13:55:01 -07:00
Danila Fedorin
cc506756a1
Add code tag to HTML
2021-07-01 13:55:01 -07:00
Danila Fedorin
4ee15005f5
Inline code blocks don't contain other elements
2021-07-01 13:55:01 -07:00
Danila Fedorin
fd12baae3b
Add some other message parts as demo.
2021-07-01 13:55:01 -07:00
Danila Fedorin
ad868818c7
Add some initial thoughts on the implementation.
2021-07-01 13:55:01 -07:00
RMidhunSuresh
191613adbe
Make changes
...
- use textContent where possible
- make sure we have an image before adding title
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-01 19:21:54 +05:30
RMidhunSuresh
b8c01272f4
remove listener on dispose
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-01 15:42:07 +05:30
RMidhunSuresh
93e77a3fcd
Only add attribute if we have avatar
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-01 15:41:40 +05:30
RMidhunSuresh
03a913629f
Pass color as data attribute
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-01 15:25:28 +05:30
Bruno Windels
71d0124146
Merge pull request #405 from DanilaFe/dm-color-fix
...
Ensure room color in DM, timeline, and left panel is the same.
2021-07-01 08:03:26 +00:00
Danila Fedorin
f7d6569154
Add a small comment to Invite.avatarColorId, too.
2021-06-30 15:21:11 -07:00
Danila Fedorin
b40f946b85
Add JSDoc to new Hero method
2021-06-30 15:15:08 -07:00
Danila Fedorin
ee1f1500e9
Roll back to using heroes for computing DM color
2021-06-30 15:07:40 -07:00
RMidhunSuresh
9ed6cd57f3
use textContent
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-01 00:01:38 +05:30
RMidhunSuresh
168b1d6247
Move AvatarView to separate file
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-30 23:51:14 +05:30
RMidhunSuresh
b469c4299f
implement new approach
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-30 23:30:44 +05:30
RMidhunSuresh
bcaf84e545
Revert commits
...
This reverts commit 5f1346568d
.
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-30 23:28:13 +05:30
Danila Fedorin
d0f70cbdf9
Move avatar color ID computation into SummaryData
2021-06-29 18:01:08 -07:00
Danila Fedorin
dec0683145
Correctly color archived and invited rooms
2021-06-29 16:50:42 -07:00
RMidhunSuresh
b42f7e1a36
remove both handlers
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-29 19:50:37 +05:30
RMidhunSuresh
8b6ff533e8
Add and remove opposing event listeners
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-29 15:51:11 +05:30
Danila Fedorin
6527a0c677
Make the room color match up on the left panel, too.
2021-06-28 11:54:49 -07:00
Danila Fedorin
97854423c4
Ensure DM rooms have the same color in timeline and left panel.
2021-06-28 11:44:27 -07:00
RMidhunSuresh
5f1346568d
Handle avatar error
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-28 23:18:07 +05:30
Bruno Windels
ce647e78ce
release v0.2.0
2021-06-24 17:17:01 +02:00
Bruno Windels
80fff87950
Merge pull request #365 from MidhunSureshR/room-info
...
Add right panel with Room information
2021-06-24 15:08:34 +00:00
Bruno Windels
09aba78803
Merge branch 'master' into room-info
2021-06-24 15:06:37 +00:00
Bruno Windels
dbaef5117a
Merge pull request #384 from vector-im/bwindels/reactions
...
Reactions
2021-06-24 15:01:44 +00:00
Bruno Windels
eee1be1ceb
safari doesn't like empty string key paths 🙄
2021-06-24 16:16:15 +02:00
Bruno Windels
bb6417dab9
fix lint
2021-06-24 15:24:53 +02:00
Bruno Windels
5984e8dd6d
don't show reactions for redacted messages
2021-06-24 14:49:43 +02:00
Bruno Windels
787308375c
prevent toggling in vm while already busy
...
otherwise the check in SendQueue to prevent duplicates might fail
2021-06-24 14:33:16 +02:00
Bruno Windels
575f3fa966
fix tests
2021-06-24 14:28:10 +02:00
Bruno Windels
299294daff
prevent re(d)action in left/kicked room
2021-06-24 14:24:22 +02:00
Bruno Windels
3fa0f234bb
not used
2021-06-24 14:12:55 +02:00
Bruno Windels
20ae21ead5
add some more emoji fonts that might be install by default
2021-06-24 14:12:41 +02:00
Bruno Windels
366d3761b8
remove waiting for update event (it might not come in case of dupe)
...
also remove duplicate logging impl for re(d)action at cost of
double haveAnnotation call
2021-06-24 13:35:59 +02:00
Bruno Windels
b148368d5b
test different keys do work still
2021-06-24 13:29:13 +02:00
Bruno Windels
7557e2f437
not used
2021-06-24 13:26:14 +02:00
Bruno Windels
668c0aff36
drop duplicate reactions in send queue, as last measure of defence
2021-06-24 13:25:58 +02:00
Bruno Windels
38b465cb9d
rename vm.toggleReaction to vm.toggle
2021-06-24 13:15:20 +02:00
Bruno Windels
c46c330efb
prevent duplicate redactions from distorting reaction local echo
2021-06-24 13:14:54 +02:00
Bruno Windels
061f44f475
extract methods here
2021-06-24 12:56:23 +02:00
Bruno Windels
a4a7c23148
use pending re(d)action timestamp to have stable reaction sorting order
...
also move more logic into the matrix layer, from Reaction(s)ViewModel
to PendingAnnotation
2021-06-24 12:26:38 +02:00
RMidhunSuresh
eb35f46214
Make sure room does exist before creating vm
...
- This will stop the code from throwing when opening /details on
UnknownRoomView.
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-24 14:58:02 +05:30
RMidhunSuresh
a273b25bac
Remove css assumption
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-24 14:52:48 +05:30
RMidhunSuresh
e2fd90bdc2
Remove Segment import
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-24 13:48:53 +05:30
Bruno Windels
197c247044
Merge pull request #398 from MidhunSureshR/fix-397
...
Support removing display names in RoomMemberTile
2021-06-24 07:27:22 +00:00
Bruno Windels
52957beb82
don't encrypt reactions
2021-06-23 17:49:27 +02:00
Bruno Windels
3c7ccc90b2
fix css for reaction view and do some renaming
...
also add some user-select:none
2021-06-23 17:48:21 +02:00
Bruno Windels
c585d76ce5
also clear pending reaction promise when an error is thrown
2021-06-23 17:47:47 +02:00
Bruno Windels
1a5a64864a
don't double log redactReaction
2021-06-23 17:47:18 +02:00
Bruno Windels
e125599a47
prevent decryption result getting lost after reaction updates entry
2021-06-23 17:38:52 +02:00
Bruno Windels
48588687a5
share logic whether have reacted already between basemsgtile & reactvm
2021-06-23 15:38:12 +02:00
Bruno Windels
a1d24894eb
this will block if we have a pending redaction & reaction
...
so the reaction won't be aborted
2021-06-23 11:45:24 +02:00
Bruno Windels
442d4cce03
make the react/redactReaction promise only return after update happened
2021-06-23 11:44:53 +02:00
Bruno Windels
18562d30d8
integration tests for local echo of toggling reactions
2021-06-23 11:43:14 +02:00
Bruno Windels
4d19f8d21d
this should return any promise returned, otherwise breaks tests
2021-06-23 11:42:32 +02:00
Bruno Windels
8991632105
add redaction mock utility fn
2021-06-23 11:42:16 +02:00
Bruno Windels
b153613200
determine toggle state correctly with both pending redaction & reaction
2021-06-23 11:41:28 +02:00
Bruno Windels
616d701ebb
add test that redaction for non-sending event aborts it
2021-06-21 19:02:42 +02:00
Bruno Windels
0e750db9ae
write unit tests for (re)aggregating annotations in RelationWriter
2021-06-21 18:16:21 +02:00
Bruno Windels
d1345d0f83
write test for redaction in RelationWriter
2021-06-21 17:52:02 +02:00
Bruno Windels
81f06f565e
write tests for AsyncMappedList
2021-06-21 17:26:08 +02:00
RMidhunSuresh
12305be06a
Fix issue #397
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-19 16:01:02 +05:30
Bruno Windels
1fc1d2c79b
fix lint
2021-06-18 15:09:34 +02:00
Bruno Windels
11fba12083
add tests for remote reaction target being added after pending event
2021-06-18 15:09:14 +02:00
Bruno Windels
0703cf8915
cleanup
2021-06-18 15:06:49 +02:00
Bruno Windels
5bea8130f2
more timeline annotation tests
2021-06-18 14:39:54 +02:00
Bruno Windels
9f99cf4b1e
fix lint in tests
2021-06-18 11:52:09 +02:00
Bruno Windels
8092713faa
add tests for local echo of adding and removing reaction
2021-06-18 11:51:02 +02:00
Bruno Windels
f000e98619
no point in reacting to redacted messages
2021-06-17 16:48:58 +02:00
Bruno Windels
64f1abdfed
show quick reactions in message menu
2021-06-17 16:46:06 +02:00
Bruno Windels
4312610e7d
support menu options with custom DOM
2021-06-17 16:45:53 +02:00
Bruno Windels
70d64f38eb
spelling
2021-06-17 16:07:32 +02:00
Bruno Windels
cad884aa41
fix local redaction echo while already sending target
2021-06-17 16:07:09 +02:00
Bruno Windels
a77ef02677
cleanup
2021-06-17 10:12:45 +02:00
Bruno Windels
cbee498d41
a bit more brief
2021-06-17 10:03:32 +02:00
Bruno Windels
bf84b59e39
more accurate test name and also test >=
2021-06-17 09:59:24 +02:00
Bruno Windels
099f99a96b
check power levels to see if we can react
2021-06-17 09:41:25 +02:00
Bruno Windels
fd54539e1c
clarify comment
2021-06-17 09:41:10 +02:00
Bruno Windels
150f58a6b3
don't aggregate relations on redacted events
2021-06-16 18:00:50 +02:00
Bruno Windels
ce5409dc26
aggregate relations when seeing event target during back-pagination
2021-06-16 17:40:29 +02:00
Bruno Windels
9099a76f45
fix spelling in comment
2021-06-16 17:30:48 +02:00
Bruno Windels
bbcf0d2572
more local echo fixes for redacting a reaction + cleanup
2021-06-16 12:46:44 +02:00
Bruno Windels
94635a18e0
actually, 0 or -1 mean you have a local redaction
2021-06-16 12:41:42 +02:00
Bruno Windels
4f10174e48
clarify comment
2021-06-16 10:28:17 +02:00
Bruno Windels
3b629622d9
need to keep pending count around if 0 or less for redaction local echo
...
also need to be able to tell the difference between no pending reactions
and redactions and the sum being 0 (having both a redaction and
reaction) so we keep isPending to true
2021-06-16 10:23:22 +02:00
Bruno Windels
e5c1094153
WIP
2021-06-15 19:06:41 +02:00
RMidhunSuresh
e161f61319
Remove selector list
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-15 15:11:32 +05:30
RMidhunSuresh
5e4db2f5dc
Change font size
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-15 14:52:07 +05:30
RMidhunSuresh
1772fc04f9
Remove text(..)
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-15 14:45:46 +05:30
RMidhunSuresh
4f05d9a5b7
Make navigation changes in one go
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-15 14:34:26 +05:30
RMidhunSuresh
97e484b8e6
Rename toggle --> open
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-15 14:30:27 +05:30
RMidhunSuresh
e50b503897
Undo lint config change
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-14 22:43:42 +05:30
RMidhunSuresh
88a1e34987
Unsubscribe on dispose
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-14 21:04:44 +05:30
RMidhunSuresh
7b811aa927
Remove space after brace in two places
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-14 20:33:32 +05:30
RMidhunSuresh
e10b455b27
Rename method
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-14 20:32:05 +05:30
Bruno Windels
75ee509361
fix lint
2021-06-11 11:30:11 +02:00
Bruno Windels
6bdbbee83e
undo forced offline mode
2021-06-11 11:05:34 +02:00
Bruno Windels
81a721f880
make equality stable in comparator for reaction
2021-06-11 11:04:48 +02:00
Bruno Windels
1d9709d4e3
also compare by key if the timestamps are the same
2021-06-11 11:02:31 +02:00
Bruno Windels
757e08c62c
WIP 4
2021-06-10 18:29:10 +02:00
Bruno Windels
cb051ad161
WIP3
2021-06-09 16:52:30 +02:00
RMidhunSuresh
e2443a8b09
Undo spillover from earlier formatting havoc
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
b2f2d51594
Make formatting consistent with the codebase
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
0c5d118bfd
Add rule to warn on wrong formatting
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
dd9a19b7f0
Make formatting consistent
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
4005d70bb9
Increase height to make element more centered
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
fa67c5e248
Refactor function
...
- Move related parameters closer together.
- Remove unused parameter.
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
95512b5144
Remove margin from top
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
6086d157e2
Make value multiple of 4
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
2c0176f3f2
Remove unwanted width
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
f3f1436bb0
Rename room info to room details everywhere
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
f917730a21
Stick to naming convention for css/html classes
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
efd37d811f
Update on changes to vm
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
008f3601ca
Remove link support from Menu
...
- Not needed anymore since every link item has been rewritten as a
button.
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
332fbdda84
Move variable to scope of conditional
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
7fbcf89539
Remove unncessary empty line
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
eb870cfc23
Use url instead of link
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
fcc2afba08
Do not compute link in getter
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
04065847dc
Remove unused getter
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
c6f3b1fbbe
Do not use private props from room summary
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
4700009c68
Add new test for parseUrlPath
...
Make sure that the details panel stays open during room change.
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
4c962943b2
Modify setters in MenuOption to support chaining
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
0d63ce9a3a
Change SideBarActive --> right-shown
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
5b74038912
Check value of details everywhere
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
b2448e1207
Calculate path when button is clicked
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
37e052c061
details do not need to be child of rooms
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
a4bcb21a85
Move details handling to separate function
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
7f922afe79
Reduce duplication in code
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
04933acbfb
Add missing checks
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
a3587a80c6
Use internationalization for user facing strings
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
986f04aac0
Move Room details menu entry to top
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
9074caf443
Change Room Details --> Room details
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
65bd74442f
Make menu-items uniform
...
- Same font ,font-size and height.
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
98ef6f4321
Use optionWithButton
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
a3271fb916
Fix Menu: Use t instead of tag to get events
...
- Also move constructor up
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
8d254c91e3
Undo formatting/stylistic changes
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
3273682155
Do not show room id instead of canonical alias
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
d3d65d89ba
Put sidebar rows into container
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
f1fe17fe65
Make font-size equal to that of room-header
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
040c744b6a
Style links and buttons similarly in menu
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
00dbd3db06
Add menu entry to launch RoomInfoView
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
1e96b58f85
Add link support to menu
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
426d0779ee
Keep RoomInfoView open across room/grid changes
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
02d79b52a4
Prefer canonical alias over room_id if available
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
2dcec6343d
Info icon should open/close view alternatively
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
d782c9e0bb
Justify content to flex-end instead
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
eab6ca3baf
Make side-bar responsive
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
9ac415fa4f
Show panel when first visit contains /details
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
b5480b018b
Style open button
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
4edc58ebcf
Add button in Room header to open details
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
ecd5505af9
Bring in info icon
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
37367cde65
Make close button close the view
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
20a250dfc0
Style close button
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
c65e26ec4c
Position the close button to right end
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
91f083a245
Add close button to RoomInfoView
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
b0535b5d7d
Add styling for RoomInfoView
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
c96abc8892
Add css to place items appropriately
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
f42553f8cb
Add avatar size for design
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
ee29d7f799
Bring in icon assets
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
653fcbbb1f
Add method to create avatar section
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
0a4f8aff79
Create method to add sidebar element
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
a23e2c361a
Better styling
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
d502a7f911
Make display name bold
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
aece82dff6
Make room avatar larger in RoomInfoView
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
6f1b77b6fa
Add room avatar to RoomInfoView
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
0ea2843454
Add background for sidebar
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
191eb09a76
Fallback to canonical alias if no names found
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
0d11f85ab3
Add CSS to display sidebar to the right
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
9a605cc6c6
Remove unnecessary check
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
c3333f5fe8
Extract method
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
ddaa9b46c0
Dispose vm preemptively
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
7e38c3ea88
Remove right panel on grid update if needed
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
98d8d44695
Allow details to be child of rooms
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
439910f6ca
Handle case when path.get() may be null
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
96959a3c4c
Put name of property in emitChange
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
e39572b98b
Create RoomInformationView on toggle
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
986271d02a
Add code to toggle RoomInformation panel
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
c7fd0fac07
Allow details to be child of room
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
c7ba472042
Add view and vm for RoomInformation
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-09 16:51:18 +05:30
RMidhunSuresh
9e9099f5d0
Restructure and add syntax
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-08 23:05:33 +05:30
RMidhunSuresh
4d79279f42
Add some content
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-06-08 21:13:52 +05:30
Bruno Windels
e4a1c99615
release v0.1.57
2021-06-08 17:35:17 +02:00
Bruno Windels
670d9a5e66
Merge pull request #391 from vector-im/bwindels/update-olm
...
update olm to 3.2.3
2021-06-08 15:32:05 +00:00
Bruno Windels
0685fa2622
update olm to 3.2.3
2021-06-08 17:23:39 +02:00
Bruno Windels
206d18f498
WIP2
2021-06-08 16:56:17 +02:00
Bruno Windels
2ebadb36c3
WIP
2021-06-08 13:20:55 +02:00
Bruno Windels
c3848ff56b
Update FAQ.md
2021-06-08 07:12:10 +00:00
Bruno Windels
280de98858
fix lint
2021-06-04 16:41:37 +02:00
Bruno Windels
3e47877645
Merge branch 'master' into bwindels/reactions
2021-06-04 16:33:10 +02:00
Bruno Windels
47e74bd598
add glow animation for pending reactions
2021-06-04 16:32:35 +02:00
Bruno Windels
33655ee37e
forgot to export class
2021-06-04 16:32:03 +02:00
Bruno Windels
65eb1f7b7d
Merge pull request #388 from vector-im/bwindels/dontassumelocalentriesexists
...
Prevent 2 more small races between room sync and openTimeline
2021-06-04 14:31:01 +00:00
Bruno Windels
7691b28503
prevent another race between sync and openTimeline
2021-06-04 16:28:08 +02:00
Bruno Windels
bb6905bdcd
don't assume localEntries exists, as load races with sync.afterSync
2021-06-04 16:05:28 +02:00
Bruno Windels
23321b4c76
Merge pull request #387 from vector-im/bwindels/dontassumecontaineratload
...
Don't assume container node exists when loading bundle
2021-06-04 13:37:43 +00:00
Bruno Windels
919542f8fc
Don't assume container node exists when loading bundle
...
Only look for the container node when needed
2021-06-04 15:36:01 +02:00
Bruno Windels
b7402ce43c
support local echo for adding a reaction
2021-06-04 15:34:44 +02:00
Bruno Windels
8bf160dfc0
handle sending relations to events that haven't been sent yet
2021-06-04 10:48:59 +02:00
Bruno Windels
2878208e94
keep the DOM small, avoid a node for reactions on every message
2021-06-04 10:08:07 +02:00
Bruno Windels
4ef5afc011
this is actually not used, so remove it
2021-06-04 10:07:52 +02:00
Bruno Windels
dde26da5a6
add mountView utility to handle error handling on mount
...
and use it where errorToDOM is used currently for catching mount errors
2021-06-04 10:07:12 +02:00
Bruno Windels
ff370d03db
catch errors thrown by childview mount method on add in ListView
2021-06-04 09:37:36 +02:00
Bruno Windels
05cc1f6757
make reactions look like element
2021-06-03 21:01:59 +02:00
Bruno Windels
d91282a767
render reactions in div instead of ul
2021-06-03 21:01:47 +02:00
Bruno Windels
3e2b7ba5fa
obsolete, already provided in parent class
2021-06-03 21:01:26 +02:00
Bruno Windels
1385a22e60
don't recreate the reactions after clearing it with the last one removed
2021-06-03 21:00:57 +02:00
Bruno Windels
cc444fa207
we actually don't need any of the view model infrastructure
...
all the updates go over the observable list
2021-06-03 21:00:25 +02:00
Bruno Windels
eab3c2d6dd
update relation notes
2021-06-03 21:00:09 +02:00
Bruno Windels
8d4d9c6e8d
WIP
2021-06-03 19:57:48 +02:00
Bruno Windels
2eb2e4e9b3
more stable sorting order for reactions
2021-06-03 19:57:29 +02:00
Bruno Windels
bb8acbefa3
support undoing a reaction
2021-06-03 19:57:16 +02:00
Bruno Windels
20abb01ee8
very basic way of sending a reaction
2021-06-03 19:16:53 +02:00
Bruno Windels
b722691e85
show reactions as ListView of buttons if present
2021-06-03 19:16:19 +02:00
Bruno Windels
2152d5e833
expose reactions on base message tile as vm with observable list
2021-06-03 19:15:49 +02:00
Bruno Windels
b94ab42c90
delete annotations object when no more annotations left
2021-06-03 19:10:29 +02:00
Bruno Windels
b05345ee27
only show redacted messages
2021-06-03 16:50:37 +02:00
Bruno Windels
a78e9af8fc
Support (de)aggregating annotation relations in relation writer
...
When deaggregating on redacting an annotation relation, we remove the
relation and aggregate the other relations for that key again, so we can
reliably detect the first timestamp (and count and me as well to lesser
extent).
as a consequence, more than one event can get updated when redacting a
relation (the relation is updated, as well as the relation target), so
account for that by returning an array of entries that have updated.
2021-06-03 16:50:37 +02:00
Bruno Windels
41fb30c68b
add relations store
2021-06-03 16:50:37 +02:00
Bruno Windels
36a35d92f0
pass ownUserId to RelationWriter
...
We'll need to to aggregate whether we have reacted to a message
Create writers at room level and pass subwriter is dependency, rather
than creating them in sync and gap writer.
2021-06-03 16:50:37 +02:00
Bruno Windels
46bfab3eb7
fix some lint and comment
2021-06-03 16:50:11 +02:00
Bruno Windels
934839574e
Update FAQ.md
2021-06-03 10:16:12 +00:00
Bruno Windels
09cfd2a10a
Update FAQ.md
2021-06-03 10:15:35 +00:00
Bruno Windels
ecde6ed919
Update FAQ.md
2021-06-03 10:14:58 +00:00
Bruno Windels
eec7ceb765
remove not being able to leave rooms
2021-06-03 10:13:37 +00:00
Bruno Windels
a39d26a3e0
clarify browser support
2021-06-03 10:11:50 +00:00
Bruno Windels
41b4c31a7f
Merge pull request #381 from vector-im/bwindels/fix-fail-to-load-at-top-with-zero-entries
...
Don't assume there is at least 1 tile before loading at top
2021-06-03 07:27:49 +00:00
Bruno Windels
b83613924c
don't assume there is at least 1 tile before loading at top
...
it can happen that all tiles are not renderable, and we should just
keep calling loadAtTop
2021-06-03 09:25:56 +02:00
Bruno Windels
711b5be07f
show number of matches in logviewer and don't hide expanded sibling
...
fixes https://github.com/vector-im/hydrogen-web/issues/378
2021-06-02 21:25:46 +02:00
Bruno Windels
5562e7cd74
release v0.1.56
2021-06-02 19:08:56 +02:00
Bruno Windels
fef0832074
Merge pull request #377 from vector-im/bwindels/fix-sync-opentimeline-race
...
Fix race between sync and subscribing to timeline after opening it
2021-06-02 16:48:13 +00:00
Bruno Windels
d965d57be7
don't leak timeline when an error is thrown while opening it
...
or you are just stuck with "not dealing with race" errors until refresh
2021-06-02 18:44:03 +02:00
Bruno Windels
0c4c018ceb
add note that powerlevels won't update when the state event is changed
2021-06-02 18:43:47 +02:00
Bruno Windels
d2f5b412ac
don't try to hook up local relations for events that are not relations
...
and do unnecessary work
2021-06-02 18:43:16 +02:00
Bruno Windels
365bd5cad0
fix the race
2021-06-02 18:42:46 +02:00
Bruno Windels
84ecaa2ee1
don't trip over missing create events when loading power levels
...
as the test from previous commit fails because of that, and powerlevels
works fine without
2021-06-02 18:41:52 +02:00
Bruno Windels
4a8a6168cd
add failing test for race between sync & subscribing after openTimeline
2021-06-02 18:41:03 +02:00
Bruno Windels
d8acf63e1d
change mock event api a bit to be easier to read
2021-06-02 18:38:16 +02:00
Bruno Windels
563847bba9
Merge pull request #376 from vector-im/bwindels/filter-and-highlight-logviewer
...
add highlight and filter support to logviewer
2021-06-02 15:44:51 +00:00
Bruno Windels
88a45470ba
add highlight and filter support to logviewer
2021-06-02 17:10:56 +02:00
Bruno Windels
09bf0f3b4e
fix status styling for text messages being broken
...
as binding was put at argument level rather than className level
2021-06-02 15:25:20 +02:00
Bruno Windels
1bb61d02de
Merge pull request #375 from vector-im/bwindels/fix-open-encrypted-room-inactive-txn
...
Load power levels before decryption closes the txn
2021-06-02 13:08:28 +00:00
Bruno Windels
31075d601f
load power levels before decryption closes the txn
2021-06-02 15:06:30 +02:00
Bruno Windels
2194c1b8bd
release v0.1.55
2021-06-02 13:14:31 +02:00
Bruno Windels
928d3b5eda
Merge pull request #374 from vector-im/bwindels/fix-sideeffects-stripped
...
allow side-effects while bundling at module level in src/ dir
2021-06-02 11:14:06 +00:00
Bruno Windels
d5e8481e22
allow side-effects at module level in src/ dir
...
otherwise things like src/observable/index.js break
2021-06-02 13:12:12 +02:00
Bruno Windels
d9de28b2e7
release v0.1.54
2021-06-02 12:47:59 +02:00
Bruno Windels
aa2e1aad19
Merge pull request #373 from vector-im/bwindels/fix-send-sync-race
...
Fix race between /send and /sync
2021-06-02 10:41:50 +00:00
Bruno Windels
cef94fea45
fix lint
2021-06-02 12:38:41 +02:00
Bruno Windels
bf951bd322
fix logging wrong value
2021-06-02 12:34:14 +02:00
Bruno Windels
c3754fdbd4
fix the race, make test succeed
2021-06-02 12:34:02 +02:00
Bruno Windels
87ebdbb0b4
add failing test for unhandled race between sync and send
...
see comments in code
2021-06-02 12:33:15 +02:00
Bruno Windels
8369dcef5f
utility to wait until a value becomes truthy in a test
2021-06-02 12:32:50 +02:00
Bruno Windels
ffb6cb372a
utility to create events in tests
2021-06-02 12:32:34 +02:00
Bruno Windels
cf6e14ed8b
utility for homeserver api mocking
2021-06-02 12:32:19 +02:00
Bruno Windels
6a5679a338
create mock storage using fake-indexeddb
2021-06-02 12:32:03 +02:00
Bruno Windels
edbac25613
prepare storage to work with alternative idb impl
2021-06-02 12:31:13 +02:00
Bruno Windels
8dfed73524
Merge pull request #361 from vector-im/bwindels/redactions
...
Redactions
2021-06-02 10:22:33 +00:00
Bruno Windels
7a96f84cab
also show redaction reason for redaction local echo
2021-06-02 12:17:09 +02:00
Bruno Windels
15f6ab8b7e
only show cancel option if not already sending
2021-06-02 11:56:15 +02:00
Bruno Windels
addddf1f26
remove need for transferLocalEchoState, just add local relations again
2021-05-31 16:33:05 +02:00
Bruno Windels
13a4a0169c
remove obsolete comments
2021-05-31 16:23:59 +02:00
Bruno Windels
25ce06c9d5
clarify
2021-05-31 15:55:31 +02:00
Bruno Windels
dc2e21495b
explain why this is needed
2021-05-31 15:46:57 +02:00
Bruno Windels
8196a02f9d
don't even need isOwn member anymore
2021-05-31 15:25:01 +02:00
Bruno Windels
00231443d3
timeline has the own member, so can just use timeline, not ownUserId
2021-05-31 15:18:44 +02:00
Bruno Windels
2bd7c23076
fix lint
2021-05-31 15:08:49 +02:00
Bruno Windels
d68d14358f
use lower return
2021-05-31 14:08:45 +02:00
Bruno Windels
492a8fe359
remove extra whiteline
2021-05-31 14:05:37 +02:00
Bruno Windels
5d35caf85f
no need to emit, timeline finds out by themselves with remote echo
2021-05-31 14:03:22 +02:00
Bruno Windels
606d40c9d4
simplify canRedact logic in view by overriding in RedactedTile
2021-05-31 13:55:08 +02:00
Bruno Windels
23459aad52
check if you are allowed to redact a message
2021-05-31 13:52:03 +02:00
Bruno Windels
128f9812a6
set destructive flag here too
2021-05-31 13:08:06 +02:00
Bruno Windels
245b5458d0
put latest version in package.json as well
2021-05-31 13:06:11 +02:00
Bruno Windels
f8f1d49c56
polyfill String.matchAll for IE11
...
See https://github.com/babel/babel/issues/10816
Don't really understand how or why this works, but it did
2021-05-31 13:04:03 +02:00
Bruno Windels
57288f75b0
add avatar & sender as first element in message so they don't occlude
2021-05-31 13:03:41 +02:00
Bruno Windels
d4373eb309
make options button look the same in all browsers
2021-05-31 13:03:23 +02:00
Bruno Windels
d66cdc97cd
fix message options button placement in IE11
2021-05-31 13:02:42 +02:00
Bruno Windels
5f5f83912d
try see if newer autoprefixer fixes our issue(it didn't, but good still)
2021-05-31 13:02:01 +02:00
Bruno Windels
2e34668b91
show errors while mounting list view children
2021-05-31 12:28:42 +02:00
Bruno Windels
762ed96a3b
Not needed as both evententry and pendingevententry return timestamp
2021-05-31 11:58:01 +02:00
Bruno Windels
447b98ce6c
don't use subviews for showing/hiding avatar & sender on continuation
2021-05-31 11:57:17 +02:00
Bruno Windels
0596ca06b1
emit remove before linking up sibling tiles
...
otherwise emitting the update from updatePreviousSibling has
the wrong idx
2021-05-31 11:56:41 +02:00
Bruno Windels
63b371b6ef
support findAndUpdate with same predicate semantics in SortedArray too
2021-05-31 10:47:32 +02:00
Bruno Windels
fa37e8fedb
findAndUpdate uses predicate, just add callback to update method
2021-05-31 10:46:16 +02:00
Bruno Windels
ab6b87987b
Merge pull request #369 from MidhunSureshR/icon-fix
...
Replace ellipsis character in RoomView header with svg icon
2021-05-31 08:05:30 +00:00
RMidhunSuresh
849a02cec2
Add aria-label
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-05-28 20:37:36 +05:30
Bruno Windels
6a5d856093
add destructive flag to delete menu option
2021-05-28 16:25:23 +02:00
Bruno Windels
5b0675b711
fix lint
2021-05-28 16:25:06 +02:00
Bruno Windels
95a680eb83
fix whitespace
2021-05-28 16:24:47 +02:00
Bruno Windels
57d9916746
buttons in ff were not in Inter
2021-05-28 15:30:03 +02:00
Bruno Windels
7f41993648
prevent buttons with negative margin to displace message menu
2021-05-28 15:28:04 +02:00
Bruno Windels
b3749f2d92
prevent long links from creating horizontal scroll
2021-05-28 15:27:44 +02:00
Bruno Windels
5afcfc3e9b
fix unsent/unverified message style
2021-05-28 15:27:25 +02:00
Bruno Windels
43c082475b
unify cancel option for various tiles in menu option
2021-05-28 15:27:02 +02:00
Bruno Windels
2b0fa22c8a
open menu when clicking ... button on message with delete/cancel option
2021-05-28 13:14:55 +02:00
Bruno Windels
63e948fc80
change renderMessage fn to base class
...
as preparation to create menu items in subclasses
2021-05-28 12:32:19 +02:00
Bruno Windels
100e056d55
style the button
2021-05-28 12:22:47 +02:00
Bruno Windels
f82e873da8
adjust message status styling to css grid changes
2021-05-28 12:17:59 +02:00
RMidhunSuresh
fc898f8c7e
Set new svg icon as background-image of button
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-05-28 15:47:50 +05:30
RMidhunSuresh
ba11cdd83f
Remove ellipsis character
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-05-28 15:47:06 +05:30
RMidhunSuresh
3f99b7247c
Bring in vertical ellipsis icon
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-05-28 15:46:10 +05:30
Bruno Windels
bbf9832d6a
switch timeline messages to css grid, and add menu button
2021-05-28 12:09:21 +02:00
Bruno Windels
13ac41b264
delete obsolete code
2021-05-28 12:02:35 +02:00
Bruno Windels
2da7ef4280
can only look in remote entries here as PEEs never return an event id
2021-05-27 10:28:02 +02:00
Bruno Windels
5e9ce365bf
also apply local relations when loading at top
2021-05-27 10:27:44 +02:00
Bruno Windels
c6e2607f1f
guard against updates emitted while populating during first subscription
...
This came up now because Timeline uses a MappedList to map PendingEvents
to PendingEventEntries. In the map function, we setup links between
entries to support local echo for relations. When opening a timeline
that has unsent relations, the initial populating of the MappedList
will try to emit an update for the target entry in remoteEntries.
This all happens while the ListView of the timeline is calling subscribe
and all collections in the chain are populating themselves based on
their sources.
This usually entails calling subscribe on the source,
and now you are subscribed, iterate over the source (as you're not
allowed to query an unsubscribed observable collection, as it might not
be populated yet, and even if it did, it wouldn't be guaranteed to be
up to date as events aren't flowing yet).
So in this concrete example, TilesCollection hadn't populated its tiles
yet and when the update to the target of the unsent relation reached
TilesCollection, the tiles array was still null and it crashed.
I thought what would be the best way to fix this and have a solid model
for observable collections to ensure they are always compatible with
each other. I considered splitting up the subscription process in two
steps where you'd first populate the source and then explicitly start
events flowing.
I didn't go with this way because it's really only updates that
make sense to be emitted during setup.
A missed update wouldn't usually bring the collections out of sync
like a missed add or remove would. It would just mean the UI isn't
updated (or any subsequent filtered collections are not updated),
but this should be fine to ignore during setup, as you can rely
on the subscribing collections down the chain picking up the update
while populating. If we ever want to support add or remove events
during setup, we would have to explicitly support them, but for now
they are correct to throw.
So for now, just ignore update events that happen during setup
where needed.
2021-05-27 10:02:05 +02:00
Bruno Windels
a8e43d4850
remove leftover logging
2021-05-27 09:18:22 +02:00
Bruno Windels
a93b1af047
ensure these don't fail on a gap entry
2021-05-27 09:16:25 +02:00
Bruno Windels
afc3db2f33
unrelated todo note for later
2021-05-27 09:11:57 +02:00
Bruno Windels
2b5dcff836
consistent naming
2021-05-27 09:11:13 +02:00
Bruno Windels
56495c9d13
fix gap failing to fill 2nd time + unit regression test
2021-05-27 09:10:10 +02:00
Bruno Windels
15048bd9c3
very basic redact button on all text messages
2021-05-26 13:11:20 +02:00
Bruno Windels
da02b5fe2d
transfer local echo state when replacing event entry
...
e.g. after decryption or remote echo of other relation comes in
2021-05-26 13:10:19 +02:00
Bruno Windels
ca4d09e923
add logging and return promise from Tile.redact
2021-05-26 13:08:54 +02:00
Bruno Windels
a5d5c55835
MappedList.findAndUpdate
2021-05-26 13:08:33 +02:00
Bruno Windels
ce7147e463
put redactions in their own view, and allow aborting while still queued
2021-05-26 13:07:56 +02:00
Bruno Windels
cb622be653
rerender tile when becoming or stopped being redacted
2021-05-25 12:58:20 +02:00
Bruno Windels
af45810582
add support for redactions (and relations) local echo
2021-05-21 16:59:29 +02:00
Bruno Windels
b55efb7f11
ensure updateEntries is always set in the result of GapWriter
2021-05-21 16:58:04 +02:00
Bruno Windels
c934049523
also resolve related event ids when removing remote echo during sync
...
as /sync races with /send, and remote echo may happen first.
It's important for local echo that the pending redaction/relation
will also get attached to the remote echo before /send returns,
otherwise the remote echo would be "unannotated" until /send returns
2021-05-21 10:52:46 +02:00
Bruno Windels
bc09ed8bf6
Merge pull request #363 from vector-im/bwindels/cache-ci-deps
...
Enable yarn cache in github actions
2021-05-20 13:49:32 +00:00
Bruno Windels
54478e6940
add comment with source
2021-05-20 15:45:18 +02:00
Bruno Windels
11b30e7eda
remove whitespace
2021-05-20 15:40:53 +02:00
Bruno Windels
e08f8630df
remove whitespace
2021-05-20 15:35:58 +02:00
Bruno Windels
9de506d2a7
enable yarn cache, hopefully
2021-05-20 15:34:06 +02:00
Bruno Windels
c3fb35848b
emit update when receiving event id for related event ahead in the queue
2021-05-20 15:02:45 +02:00
Bruno Windels
619cf9bcbb
this should be filter rather than find, we iterate it
2021-05-20 15:02:24 +02:00
Bruno Windels
f271517446
log redaction during sync
2021-05-20 15:02:14 +02:00
Bruno Windels
8a8c5569dc
provide redact method on tile and room
...
also add some logging
2021-05-20 14:53:17 +02:00
Bruno Windels
9721432a8c
remove pending events that failed because of permanent error
...
so they don't get stuck
2021-05-20 14:52:30 +02:00
Bruno Windels
4ce66fc8a1
allow concurrent removals when iterating pending events
...
so we can remove failed events in the next commit
2021-05-20 14:51:04 +02:00
Bruno Windels
618a32e6c0
revert last tried pending event status to waiting when offline
...
so we don't fail the check if we can immediately remove when redacting
2021-05-20 14:49:54 +02:00
Bruno Windels
df9e886f32
fix lint
2021-05-20 13:22:54 +02:00
Bruno Windels
b655c34bbb
also show reason for redaction
2021-05-20 13:20:12 +02:00
Bruno Windels
780ad44032
render redacted messages
2021-05-20 13:15:35 +02:00
Bruno Windels
94b0bc82ef
writing relations is async
2021-05-20 12:50:16 +02:00
Bruno Windels
814e92ad92
fix missing import
2021-05-20 12:50:16 +02:00
Bruno Windels
39bed4b0fc
fix lint here
2021-05-20 12:50:16 +02:00
Bruno Windels
9b923d337d
write redactions during sync
2021-05-20 12:50:16 +02:00
Bruno Windels
edaac9f436
draft redaction support, no local echo yet
2021-05-20 12:50:16 +02:00
Bruno Windels
b31dc38af1
Merge pull request #362 from vector-im/bwindels/lintfixesandci
...
Fix/disable lint errors and enable in CI
2021-05-20 09:39:41 +00:00
Bruno Windels
ab841a84a3
rename workflow
2021-05-20 11:30:42 +02:00
Bruno Windels
3e42231e7a
rename workflow
2021-05-20 11:29:20 +02:00
Bruno Windels
e6c0df5ab2
try fix action
2021-05-20 11:25:53 +02:00
Bruno Windels
3649bf1f04
try fix action
2021-05-20 11:24:22 +02:00
Bruno Windels
7ea38a3f4c
try fix action
2021-05-20 11:23:45 +02:00
Bruno Windels
ce2acfc659
try fix action
2021-05-20 11:22:53 +02:00
Bruno Windels
145d7f6f47
why is this not showing up anymore? trying to rename back to old name
2021-05-20 11:19:04 +02:00
Bruno Windels
9df18b839e
wrong extension
2021-05-20 11:13:52 +02:00
Bruno Windels
fa7e24fed7
tune linting so it doesn't produce errors anymore and enable in CI
2021-05-20 11:11:57 +02:00
Bruno Windels
1f17edc248
fix undefined variable, this probably breaks restoring the last url
2021-05-20 11:11:07 +02:00
Bruno Windels
eb8fdf5c27
some notes on how to implement relations
2021-05-19 12:01:58 +02:00
Bruno Windels
870cf62ab6
release v0.1.53
2021-05-18 15:31:26 +02:00
Bruno Windels
df8686099f
Merge pull request #356 from MidhunSureshR/linkify-doc
...
Add jsdoc comments for clickable link code + Minor Changes
2021-05-18 13:30:23 +00:00
Bruno Windels
7488e0398c
Merge pull request #360 from vector-im/bwindels/defaultsessionurl
...
Add url action to redirect to last session id
2021-05-18 13:29:06 +00:00
Bruno Windels
c3ef801566
offer back button when session loading fails
2021-05-18 15:27:31 +02:00
Bruno Windels
d567664d8b
ensure there is a session id in last-session action
2021-05-18 14:47:45 +02:00
Bruno Windels
2c7ea44afd
don't expose last url to root VM so it isn't confused by empty path
...
instead, check the length of the path in a dedicated method in
the router
2021-05-18 14:27:09 +02:00
Bruno Windels
dd880529ac
make redirects in initial url be reflected in url bar
2021-05-18 13:52:31 +02:00
Bruno Windels
1bec1033d1
translate last-session to a real session id
2021-05-18 13:52:13 +02:00
Bruno Windels
63620ce59a
Merge pull request #358 from vector-im/bwindels/joinroom
...
Offer to join unknown room
2021-05-18 09:59:35 +00:00
Bruno Windels
4c5be997fe
fix menu alignment with extra option
...
we'll need to have a closer look how these alignment options make sense
but for now this will do
2021-05-18 11:58:06 +02:00
Bruno Windels
754e7e7bb2
clarify with comments
2021-05-18 11:54:18 +02:00
Bruno Windels
f92b1df4fc
update copyright comments
2021-05-18 11:54:10 +02:00
Bruno Windels
54798d3079
unreachable now
2021-05-18 11:50:02 +02:00
Bruno Windels
32e47bc660
remove unused imports
2021-05-18 11:49:25 +02:00
Bruno Windels
3724fc6765
log join network call
2021-05-18 11:49:16 +02:00
Bruno Windels
2cf100efaa
refine unknown room view
2021-05-18 11:46:55 +02:00
Bruno Windels
c04a8140a3
offer to rejoin archived room from menu
2021-05-18 11:07:46 +02:00
Bruno Windels
03be63572d
ask to join when room id is unknown
2021-05-18 11:07:19 +02:00
Bruno Windels
3acb3bb48c
fix memory leak when switching room ids
2021-05-18 11:06:48 +02:00
Bruno Windels
9679058081
allow to join room by id or alias
2021-05-18 11:05:31 +02:00
RMidhunSuresh
72f58b6001
Change lines[i] to line
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-05-18 14:26:56 +05:30
RMidhunSuresh
1d63799c9b
Added js-doc for formatFunction
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-05-17 20:56:12 +05:30
RMidhunSuresh
11d551f8a3
Add js-doc for parsePlainBody
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-05-17 20:39:23 +05:30
RMidhunSuresh
d671bcec31
Add js-docs for linkify function
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-05-17 20:32:35 +05:30
Bruno Windels
a4d3b5f013
release v0.1.52
2021-05-17 13:03:26 +02:00
Bruno Windels
c62eff71a9
Merge pull request #355 from vector-im/bwindels/lint
...
Enable linting
2021-05-17 11:02:42 +00:00
Bruno Windels
8ff1f91d2c
bring down lint error count, delete some old, inactive unit tests
2021-05-17 12:59:04 +02:00
Bruno Windels
c3b5c8750e
add eslint as dep, and have yarn lint run it
2021-05-17 12:53:58 +02:00
Bruno Windels
1c8fb0a7b5
Merge pull request #354 from vector-im/bwindels/fix-encrypted-tiles
...
Fix crash when rendering non-decrypted message tiles
2021-05-17 10:51:31 +00:00
Bruno Windels
645470cd03
no need for private prop here
2021-05-17 12:45:55 +02:00
Bruno Windels
ce976226f9
rename MessageTile to BaseMessageTile
...
since MessageTile doesn't have a shape property anymore
2021-05-17 12:15:13 +02:00
Bruno Windels
67714040e7
rename BaseTextMessageTile to BaseTextTile
2021-05-17 12:14:15 +02:00
Bruno Windels
fa64fcce2d
expect MessageBody here with parts property
...
and do some cleanup
2021-05-17 11:29:00 +02:00
Bruno Windels
054c51b82f
add caching MessageBody in BaseTextMessageTile,use in EncryptedEventTile
...
missing body in EncryptedEventTile was what caused the bug
2021-05-17 11:27:30 +02:00
Bruno Windels
01b8b397b6
expose sourceString on result of parsing message body
...
and also do some cleanup
2021-05-17 11:26:30 +02:00
Bruno Windels
4f1149c1a7
release v0.1.51
2021-05-12 23:10:02 +02:00
Bruno Windels
1ef6a91cf1
Merge pull request #351 from vector-im/bwindels/fix-await-room-load
...
fix DM room names appearing as "Empty room"
2021-05-12 21:09:24 +00:00
Bruno Windels
f5f25c3019
fix DM room names appearing as "Empty room"
...
because we weren't properly awaiting the heroes to be loaded
2021-05-12 23:07:25 +02:00
Bruno Windels
c153f4a3e2
release v0.1.50
2021-05-12 22:51:01 +02:00
Bruno Windels
41f77f33af
Merge pull request #350 from vector-im/bwindels/linkify-parenthesis
...
Don't accept closing parenthesis as last character of url
2021-05-12 20:50:39 +00:00
Bruno Windels
62bb891e79
don't accept closing parenthesis as last character of url
2021-05-12 22:49:34 +02:00
Bruno Windels
59a74dbd9f
Merge branch 'master' of github.com:vector-im/hydrogen-web
2021-05-12 18:33:25 +02:00
Bruno Windels
78946a953a
release v0.1.49
2021-05-12 18:33:05 +02:00
Bruno Windels
0e270f4cb9
Merge pull request #347 from vector-im/bwindels/roomlistsorting
...
Don't move rooms to lower sorting position once marked as read
2021-05-12 16:32:14 +00:00
Bruno Windels
56699baaf1
dont need this anymore
2021-05-12 18:31:13 +02:00
Bruno Windels
86d60496c0
Don't move read rooms to lower sorting position
2021-05-12 18:28:39 +02:00
Bruno Windels
402a5e5d54
fix room list sorting not keeping sorting position after clearing unread
2021-05-12 18:26:55 +02:00
Bruno Windels
93c08c16c1
Merge pull request #345 from MidhunSureshR/linkify
...
Render URLs as clickable links in timeline
2021-05-12 15:40:46 +00:00
Bruno Windels
2ccd0c8def
Merge pull request #346 from vector-im/bwindels/leave-room
...
Leave and forget room
2021-05-12 15:31:31 +00:00
Bruno Windels
10ac1dc29c
make options vertical ellipsis larger
2021-05-12 17:29:12 +02:00
Bruno Windels
b30b62416c
add option to forget archived room
2021-05-12 15:38:54 +02:00
Bruno Windels
5d139dff43
Support deleting data in several stores for room id
2021-05-12 15:38:11 +02:00
Bruno Windels
e233caf7ac
change order of type and scope in operation index key to scan per scope
2021-05-12 15:36:48 +02:00
Bruno Windels
2d2ec25f86
add comment clarifying popup arrangement options
2021-05-12 14:02:15 +02:00
Bruno Windels
f331d84292
add options menu in room header with leave room option
2021-05-12 13:59:08 +02:00
RMidhunSuresh
851e8d34a4
Incorporate better regex from review
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-05-12 16:15:30 +05:30
RMidhunSuresh
00bcdbab37
Fix broken test
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-05-12 16:15:07 +05:30
Bruno Windels
d7e8529a6e
Merge pull request #342 from vector-im/bwindels/archive-room-on-leave
...
Archive room on leave
2021-05-12 10:34:38 +00:00
RMidhunSuresh
bb74656348
Grammar fix
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-05-12 15:59:44 +05:30
RMidhunSuresh
2e657fbbbd
Add failing test for link ending with <
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-05-12 15:56:33 +05:30
RMidhunSuresh
55b7c55efe
Pull callback args into variables
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-05-12 15:52:05 +05:30
Bruno Windels
afd33f4b77
use constant for member event type
2021-05-12 12:19:05 +02:00
RMidhunSuresh
9d898bdf47
Change word to improve meaning
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-05-11 22:32:05 +05:30
RMidhunSuresh
b521797f4d
Explain the reason for double escapes
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-05-11 22:28:14 +05:30
RMidhunSuresh
ef15968a3d
Add some helpful pointers
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-05-11 22:26:45 +05:30
RMidhunSuresh
c6d7cef491
Refactor regex to improve readability
...
- Split regex into components
- Add informative comments
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-05-11 22:21:37 +05:30
RMidhunSuresh
31740f4ec6
Put regex into separate file
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-05-11 22:18:52 +05:30
RMidhunSuresh
6f0362802a
Move linkify.js to separate directory
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-05-11 22:17:08 +05:30
RMidhunSuresh
027f6020e7
Modified regex to allow unicode in fragment
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-05-11 22:15:36 +05:30
RMidhunSuresh
e20810b0cb
Add test for unicode after fragment without path
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-05-11 20:44:39 +05:30
Bruno Windels
ca84f485ab
fix tests
2021-05-11 17:04:36 +02:00
RMidhunSuresh
7be9f93909
Make regex module-level constant
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-05-11 20:32:36 +05:30
Bruno Windels
1738a0ea3c
need to create archived room when leaving, otherwise it isn't stored
2021-05-11 16:58:16 +02:00
RMidhunSuresh
03208b88d5
Move link tests to linkify
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-05-11 20:19:29 +05:30
Bruno Windels
a0e3848cf6
dispose existing view model when changing status, otherwise we leak!
2021-05-11 16:39:33 +02:00
Bruno Windels
8b8214cd1b
reference count archived rooms and keep track of active ones
...
so we don't create two instances for the same id, one for sync, and one
for displaying, and hence updates from sync being pushed on a different
instance than the one displaying, and not updating the view.
2021-05-11 16:09:58 +02:00
Bruno Windels
965700272b
remove archivedRoom map, it's unused and just complicating for now
2021-05-11 16:09:01 +02:00
RMidhunSuresh
dbe76e973e
Add braces to all blocks
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-05-11 17:59:03 +05:30
Bruno Windels
82a1b37363
refresh room view model when going from joined -> archived
...
given we have a dedicated class (ArchivedRoom) for it now
2021-05-11 13:11:38 +02:00
Bruno Windels
e3c1644d09
show leave reason instead of composer for archived room
2021-05-11 13:11:11 +02:00
Bruno Windels
9ea0138ffd
don't open room view when clearing room id
2021-05-11 13:10:21 +02:00
Bruno Windels
be7934057e
lint
2021-05-11 13:08:13 +02:00
Bruno Windels
51d13fd8d2
update comments for Invite updates
2021-05-11 13:07:57 +02:00
Bruno Windels
6bb9140720
have individual getters for kickDetails
2021-05-11 13:07:31 +02:00
Bruno Windels
00d4dc9518
rename kickAuthor to kickedBy
2021-05-11 13:07:11 +02:00
Bruno Windels
24731687dc
log room id in invite and archivedroom afterSync
2021-05-11 13:05:02 +02:00
Bruno Windels
e775ed12b4
sync arch. rooms with Room during init. sync to create summary, timeline
...
when receiving archived rooms during initial sync, sync them with Room
(e.g. as a joined room) first so the members, timeline get written
and the summary gets created which is then adopted by the ArchivedRoom.
2021-05-11 13:02:43 +02:00
Bruno Windels
2087059c0b
fix archived room summary key path now the summary is nested
2021-05-11 13:01:19 +02:00
RMidhunSuresh
3830a95af2
Cache result in TextTile
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-05-11 16:03:14 +05:30
RMidhunSuresh
86f4b6186a
Refactor functions to accept single parameter
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-05-11 15:03:20 +05:30
RMidhunSuresh
e4a143659c
Refactor unwanted getter into constant object
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-05-11 14:02:25 +05:30
RMidhunSuresh
051771397c
Fix bug in which links preceeded text
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-05-11 13:59:45 +05:30
RMidhunSuresh
3beaf88a8b
Rename messageFormat to body
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-05-11 13:46:38 +05:30
RMidhunSuresh
070bc96186
Fallback to empty string if content is undefined
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-05-11 13:43:54 +05:30
RMidhunSuresh
577883a1d4
Refactor loop
...
Don't handle last element separately
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-05-11 13:31:33 +05:30
RMidhunSuresh
03b971d898
Added tests for new linkify
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-05-11 12:55:39 +05:30
Bruno Windels
99d5467ad1
make archived room part of sync lifecycle (draft)
2021-05-10 18:42:30 +02:00
Bruno Windels
79d97737bc
calculate leave details in archived room
2021-05-10 18:41:43 +02:00
RMidhunSuresh
17be7c4f4d
Add newline to message
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-05-10 22:10:50 +05:30
RMidhunSuresh
fc3b391aa9
Use MessageBodyBuilder instead of linkify
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-05-10 21:41:57 +05:30
RMidhunSuresh
55f2d79d07
Move newline handling to MessageBodyBuilder
...
- Also add a insert method to reflect new design.
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-05-10 21:37:27 +05:30
RMidhunSuresh
787d438a74
Refactored Linkifier class into single function
...
Modified design so that linkify interacts with MessageBodyBuilder
through callbacks.
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-05-10 21:30:11 +05:30
RMidhunSuresh
dca649dfd4
Moved files into more appropriate locations
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-05-10 19:53:40 +05:30
RMidhunSuresh
06a6cae4af
Rename MessageBodyBuilder to MessageBodyBuilder
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-05-10 19:50:26 +05:30
RMidhunSuresh
bbeb0a5764
Transform new message format into DOM elements
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-05-08 19:22:49 +05:30
RMidhunSuresh
2f883d049c
Return new message format instead of message text
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-05-08 19:20:07 +05:30
RMidhunSuresh
9ca0d93a01
Add tests for linkify
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-05-08 19:18:45 +05:30
RMidhunSuresh
32fd1eb318
Implement linkifier
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-05-08 19:17:43 +05:30
RMidhunSuresh
3c46a07a1e
Implement object format to represent chat messages
...
Every chat text message can be split into parts such as text, newline
and links.
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-05-08 19:02:44 +05:30
Bruno Windels
1216378783
Extract BaseRoom from Room with summary and timeline, not sync or send
...
Which we can then reuse to create a dedicated ArchivedRoom class
which will:
- have only relevant methods and properties (e.g. no sendEvent)
- turns out that you can still receive a leave room in the sync
(e.g. when banned after kick) so we'll make the sync for
an archived room separate from room to not overcomplicate the sync
there, much like we did for Invite already.
2021-05-07 16:13:49 +02:00
Bruno Windels
06868abdb2
with room status being a thing, we don't need the invite on the room
2021-05-07 14:42:29 +02:00
Bruno Windels
a8d4ee0dd6
different room view models don't need to initiate switching now
...
as this is triggered by observing the room status
2021-05-07 13:11:17 +02:00
Bruno Windels
6c58c61da9
move switching room view models to a dedicated observable
...
based on the observing the room status
2021-05-07 13:10:35 +02:00
Bruno Windels
6bb8e2fa43
allow loading an archived room
2021-05-07 13:10:10 +02:00
Bruno Windels
1b83ae7d8a
allow observing the room status
2021-05-07 13:09:38 +02:00
Bruno Windels
243d105aad
support getting the room status for a room: invited, joined or archived
2021-05-07 13:08:39 +02:00
Bruno Windels
3143f2a791
also make an observable version of a retained value
2021-05-07 13:06:20 +02:00
Bruno Windels
36f54420cf
extract RetainedValue from MemberList
2021-05-07 13:06:00 +02:00
Bruno Windels
030b6837ef
rename
2021-05-06 15:27:32 +02:00
Bruno Windels
7e450071b1
clear all room state when rejoining room
2021-05-06 15:27:10 +02:00
Bruno Windels
8c2ae863fd
clean up rejoin storage logic somewhat
2021-05-06 15:26:48 +02:00
Bruno Windels
f16c08f13e
remove room from all user identities when leaving
...
and delete identity as well as all device identities if no rooms left
2021-05-06 15:24:52 +02:00
Bruno Windels
a12f10dc3c
make type explicit
2021-05-06 15:23:33 +02:00
Bruno Windels
00d8f81bdd
clear all room state before rejoining room
2021-05-06 14:15:47 +02:00
Bruno Windels
15080edfa7
fix failing test now we don't remove invite from collection anymore here
2021-05-06 14:15:47 +02:00
Bruno Windels
45837f7377
don't set dmUserId when not a DM
2021-05-06 14:15:47 +02:00
Bruno Windels
7defd4a02b
ensure the sync is limited when rejoining without overlap
...
otherwise gap would be lost. The server should do this already,
but we're just ensuring it is, to be more robust.
2021-05-06 14:15:47 +02:00
Bruno Windels
08ba4577f6
rejoin logic was throwing away the prev_batch token
2021-05-06 14:15:47 +02:00
Bruno Windels
9546b13821
attempt to load sync writer position when joining a room during sync
...
since fragments and events are not archived, just the summary,
attempt to load the room and sync writer during sync,
so we write the timeline correctly and don't cause ConstraintErrors
because unaware of fragments and events already there.
2021-05-06 14:15:47 +02:00
Bruno Windels
07535eedca
when rejoining, room will be archived so consider any non-join a rejoin
2021-05-06 14:15:47 +02:00
Bruno Windels
1258aaee7c
brevity
2021-05-06 14:15:47 +02:00
Bruno Windels
f6957278c3
write and remove archived summary when leaving/rejoining
2021-05-06 14:15:47 +02:00
Bruno Windels
644698aed7
remove room from room list when leaving
2021-05-06 14:15:47 +02:00
Bruno Windels
89461bf69a
do all collection removal from sync rather than hand callbacks to invite
2021-05-06 14:15:47 +02:00
Bruno Windels
12da71f731
unneeded ?
2021-05-06 14:15:47 +02:00
Bruno Windels
bcfc4d1fd7
have better transaction errors
2021-05-06 14:15:47 +02:00
Bruno Windels
184480ad36
no need to capture req here
2021-05-06 14:15:47 +02:00
Bruno Windels
d4d7adc7fc
add archivedRoomSummary store
2021-05-06 14:15:47 +02:00
Bruno Windels
c2716a061b
pass in userId for kickDetails
2021-05-06 14:15:47 +02:00
Bruno Windels
2cfe7034e8
extract fn
2021-05-06 14:15:47 +02:00
Bruno Windels
b13bfee3d8
support setting kickDetails in room summary
2021-05-06 14:15:47 +02:00
Bruno Windels
85385295a6
don't serialize null values in room summary
...
they only take space in the storage otherwise as we add more fields
2021-05-06 14:15:47 +02:00
Bruno Windels
517a7516b7
release v0.1.48
2021-05-06 12:14:58 +02:00
Bruno Windels
57725e745e
Merge pull request #343 from vector-im/bwindels/fix-sync-rooms-section-missing
...
Dont assume there is a rooms section in the sync
2021-05-06 10:11:32 +00:00
Bruno Windels
9e78f8382a
dont assume there is a rooms section in the sync
2021-05-06 12:10:10 +02:00
Bruno Windels
a28b2b74d2
Merge pull request #338 from vector-im/bwindels/ci-tests
...
Run tests on CI
2021-05-04 10:24:00 +00:00
Bruno Windels
08bafad206
Rename node.js.yml to unittests.js.yml
2021-05-04 10:23:17 +00:00
Bruno Windels
d804a93df3
last label adjustment
2021-05-04 10:22:37 +00:00
Bruno Windels
4525daee83
try to adjust label again
2021-05-04 10:21:46 +00:00
Bruno Windels
64cca3b874
Update name and npn install args
2021-05-04 10:20:19 +00:00
Bruno Windels
61c96acc7a
Run tests on CI
2021-05-04 10:16:59 +00:00
Bruno Windels
dd046d8287
Merge pull request #301 from Johennes/feature/librejs
...
Add license comments to make GNU LibreJS accept Hydrogen's JS
2021-05-03 08:33:39 +00:00
Bruno Windels
10053efc0c
Merge pull request #300 from Prathap-P/update-readme
...
Update readme
2021-04-30 14:37:45 +00:00
Bruno Windels
1a473f7f4a
Merge pull request #337 from vector-im/gsouquet-docs-link-fix
...
Fix links to Matrix documentation
2021-04-30 14:29:16 +00:00
Bruno Windels
408fc29314
Merge pull request #335 from tawfiek/add-enterkeyhint
...
Add enterkeyhint
2021-04-30 14:28:38 +00:00
Germain
62231b7833
Fix links to Matrix documentation
2021-04-30 11:58:29 +01:00
Prathap-P
57b6c45e34
Ensured more subtleness in the readme file.
2021-04-30 13:40:10 +05:30
Tawfiek
1104317a76
UI: add enterkeyhint into filter in LerftPanelView
2021-04-30 04:19:58 +02:00
Tawfiek
31a9da09b2
UI: add enterkeyhint end into the MessageComposer
2021-04-30 04:15:11 +02:00
Tawfiek Khalaf
5e9f728346
Merge pull request #1 from vector-im/master
...
Pull upstream master
2021-04-30 02:47:13 +02:00
Johannes Marbach
452a0e7bda
Merge branch 'master' into feature/librejs
2021-04-28 20:22:20 +02:00
Bruno Windels
9312f71764
release v0.1.47
2021-04-28 14:16:50 +02:00
Bruno Windels
0298f31ec7
Merge pull request #331 from vector-im/bwindels/dedupe-avatar-sizes
...
Don't repeat avatar sizes in view models
2021-04-28 14:14:38 +02:00
Bruno Windels
ad3b7f7f00
also add avatar size for timeline
2021-04-28 14:12:35 +02:00
Bruno Windels
e1d4c75d18
pass avatar sizes from view to view model rather than repeating there
...
and risk a mismatch resulting in too large/small image
2021-04-28 14:11:35 +02:00
Bruno Windels
b35b6ec496
work around --avatar-size being compiled away in build
2021-04-28 13:45:43 +02:00
Bruno Windels
bfaeffcb51
fix memory leak in settings view by using nested template builder
2021-04-28 13:05:52 +02:00
Prathap-P
3bc21c75d8
Update README.md
...
Co-authored-by: Bruno Windels <bruno@windels.cloud>
2021-04-28 15:53:37 +05:30
Bruno Windels
04a1d89907
release v0.1.46
2021-04-28 11:42:02 +02:00
Bruno Windels
870ed3f211
add avatar size now there is no default anymore
2021-04-28 11:40:24 +02:00
Bruno Windels
aea59f8974
Merge pull request #272 from jcgruenhage/jcgruenhage/new-dockerfile
...
New production Dockerfile and GitLab CI definition
2021-04-28 11:13:14 +02:00
Bruno Windels
25e0211ca1
Merge pull request #279 from Johennes/feature/safari-viewport
...
Manually adapt UI when keyboard shows or hides on mobile Safari
2021-04-28 11:04:43 +02:00
Bruno Windels
fe9f0f7692
Merge pull request #328 from vector-im/bwindels/invites
...
Invites
2021-04-28 10:14:56 +02:00
Bruno Windels
b23ec5ef70
remove obsolete comment
2021-04-28 10:08:11 +02:00
Bruno Windels
e850874019
clarify order
2021-04-28 10:05:34 +02:00
Bruno Windels
15dfb6c202
clarify
2021-04-28 10:05:21 +02:00
Bruno Windels
ef6f10c5a2
test for Path.replace
2021-04-28 09:53:44 +02:00
Bruno Windels
1c5b953026
hide non-joined rooms in left panel for now
...
until we support archiving/forgetting the room
2021-04-27 16:16:07 +02:00
Bruno Windels
025320b83e
fix filtered map
2021-04-27 16:15:20 +02:00
Bruno Windels
396ec4dfd9
also in grid remove room id from nav path when refreshing room vm fails
2021-04-27 15:33:12 +02:00
Bruno Windels
c47b27428b
implement invite view + styling
2021-04-27 15:10:12 +02:00
Bruno Windels
f4f153ac4b
don't seems to throw the letter off-center more than anything else
...
apart for some rare cases ... shrug
2021-04-27 15:09:45 +02:00
Bruno Windels
a9838fed06
don't set a default avatar size in the css, makes it easier to change it
2021-04-27 15:09:29 +02:00
Bruno Windels
fbe255f837
support extra classes in static avatar
2021-04-27 15:04:01 +02:00
Bruno Windels
441bb4d5d7
keep .room-placeholder display settings separate from .middle
2021-04-27 15:03:13 +02:00
Bruno Windels
34cca2ba0f
add invite view to view gallery
2021-04-27 15:02:43 +02:00
Bruno Windels
1f36122283
remove debugging code
2021-04-27 15:02:29 +02:00
Bruno Windels
799ea50c68
remove obsolete logging
2021-04-27 15:02:00 +02:00
Bruno Windels
32d9f6e830
expose inviter user id
2021-04-27 15:01:35 +02:00
Bruno Windels
a95df54978
scale down inviter avatar
2021-04-27 15:01:20 +02:00
Bruno Windels
15fba7a07d
missing semicolon
2021-04-27 14:43:26 +02:00
Bruno Windels
781235cb07
scale up room avatar
2021-04-27 14:43:13 +02:00
Bruno Windels
f902f255a4
add roomDescription property
2021-04-27 14:42:37 +02:00
Bruno Windels
b6573258fb
always show inviter if present
2021-04-27 14:42:12 +02:00
Bruno Windels
87defbfb51
sort invites most recent first
2021-04-27 14:27:14 +02:00
Bruno Windels
fd454f1e20
don't expose joinRule prop, as it is protocol specific
2021-04-27 14:26:40 +02:00
Bruno Windels
86e8b27cb3
fix middle-shown to use new active vm
2021-04-27 11:01:51 +02:00
Bruno Windels
aaf4e79a73
make media repo available on invite
2021-04-27 11:01:33 +02:00
Bruno Windels
9b9e6fceda
refine action buttons style
2021-04-27 10:32:06 +02:00
Bruno Windels
bb6664a9a8
fix room header height
2021-04-27 10:31:47 +02:00
Bruno Windels
ab8111f847
make all middle containers column flexboxes, not just the room view
2021-04-27 10:28:25 +02:00
Bruno Windels
55b576a299
rename .TimelinePanel to .RoomView_body
2021-04-27 10:28:09 +02:00
Bruno Windels
bd748549f7
fix updates in Invite not firing on collection
2021-04-26 10:45:27 +02:00
Bruno Windels
47b2eb0bdb
don't create a room when rejecting an invite
2021-04-26 10:41:21 +02:00
Bruno Windels
f2d7f5e4da
refresh vm when left room receives invite
...
clean up room vm switching in the process
2021-04-23 18:06:38 +02:00
Bruno Windels
827075bc37
only apply the invite when joining
2021-04-23 18:05:46 +02:00
Bruno Windels
847738a76c
set invite on left room so we can detect a vm refresh is needed
2021-04-23 18:05:14 +02:00
Bruno Windels
b9f145caa4
emit events for rooms before invites
...
so the room is already there when removing the invite
2021-04-23 18:04:10 +02:00
Bruno Windels
b77d0f75ce
can just use vm here
2021-04-22 17:23:41 +02:00
Bruno Windels
d289a44624
also sync leave now that we can handle it
2021-04-22 17:23:29 +02:00
Bruno Windels
2e9ddf9c2c
prevent key collisions between rooms and invites before creating tile vm
2021-04-22 17:22:47 +02:00
Bruno Windels
ec0de15da6
handle overlap with existing timeline when rejoining room
2021-04-22 17:21:29 +02:00
Bruno Windels
ff4abbc5ba
make dispose not fail
2021-04-22 17:18:07 +02:00
Bruno Windels
4e3127c4cf
handle key collisions in JoinedMap
2021-04-22 13:28:14 +02:00
Bruno Windels
20f4474eb6
missing semicolon
2021-04-21 18:13:29 +02:00
Bruno Windels
35992ac2fc
show very basic buttons to accept or reject invite
2021-04-21 17:50:41 +02:00
Bruno Windels
b4ad6142f4
show spinner in room list while accepting or rejecting invite
2021-04-21 17:50:22 +02:00
Bruno Windels
ac312cbdc7
fix c/p error in invite store
2021-04-21 17:49:59 +02:00
Bruno Windels
76933e51aa
fix default avatar color being broken in room list
2021-04-21 17:48:40 +02:00
Bruno Windels
1cf49688d6
show invites at the top of the room list
2021-04-21 17:26:34 +02:00
Bruno Windels
16df40331b
fix refactor mistake in sync
2021-04-21 17:26:10 +02:00
Bruno Windels
bfb7f58a3d
add very basic invite view
2021-04-21 17:25:59 +02:00
Bruno Windels
f596b34cac
add very basic join observable map, joining several maps into one
...
will be used to join invites and rooms into one map
2021-04-21 17:25:37 +02:00
Bruno Windels
1d3a2aca0e
add 'get' method to common observable map api
2021-04-21 17:23:49 +02:00
Bruno Windels
0dc796b863
spacing
2021-04-21 15:48:41 +02:00
Bruno Windels
9961d3e4fc
unused code
2021-04-21 15:48:27 +02:00
Bruno Windels
7e2870acef
wire up InviteViewModel in Session/RoomGridViewModel
...
and:
- switch to room once accepted
- close invite if rejected
2021-04-21 15:47:39 +02:00
Bruno Windels
0cc95f5083
first draft of InviteViewModel
2021-04-21 15:45:51 +02:00
Bruno Windels
16f275ca34
make pass-through props smaller
2021-04-21 15:34:35 +02:00
Bruno Windels
a91a584201
not used anymore
2021-04-21 15:33:45 +02:00
Bruno Windels
9c19fa5c63
utility to remove room from path (with our without grid)
...
which will be used when rejecting an invite
2021-04-21 15:33:08 +02:00
Bruno Windels
ad5d7fc9f0
add note collection emit should happen first in Invite
2021-04-21 15:32:37 +02:00
Bruno Windels
a5e6294593
test accepted/rejected fields in invite tests
2021-04-21 15:32:13 +02:00
Bruno Windels
465e0c191f
add logging to accepting or rejecting an invite
2021-04-21 15:31:55 +02:00
Bruno Windels
5ce138539b
network calls to accept and reject invite
2021-04-20 19:02:45 +02:00
Bruno Windels
bb1c64e1ac
add left panel tile view model for invites
...
and track in-progress state in Invite so it is shared by left panel
and open invite
2021-04-20 19:01:40 +02:00
Bruno Windels
ee98eaa640
restore invites when loading the session
2021-04-20 18:09:48 +02:00
Bruno Windels
5876e5200b
don't need this for now
2021-04-20 18:03:27 +02:00
Bruno Windels
4560e0e491
split sync lifecycle steps out in different methods to keep it smaller
2021-04-20 17:57:17 +02:00
Bruno Windels
09ac503e22
add test for removing invite
2021-04-20 17:57:03 +02:00
Bruno Windels
d1dc4c9e9c
remove extra layer of log items
2021-04-20 17:56:53 +02:00
Bruno Windels
a072426e07
integrate invites into the sync lifecycle and expose them on session
2021-04-20 17:39:46 +02:00
Bruno Windels
de125441d1
add write/load test for Invite
2021-04-20 17:34:45 +02:00
Bruno Windels
39c772300a
fix indenting
2021-04-20 16:21:35 +02:00
Bruno Windels
81a35639ba
add Invite class
...
calculating the room name, avatar, etc ...
with empty accept and reject methods for now
2021-04-20 16:21:27 +02:00
Bruno Windels
7c4a6fbe4b
invite store
2021-04-20 13:13:56 +02:00
Bruno Windels
03d92b687e
doc with design rationale
2021-04-20 13:02:33 +02:00
Bruno Windels
76e65c0bfd
move rollup to devdeps
2021-04-19 10:38:08 +02:00
Bruno Windels
7ecb4f9678
Merge pull request #326 from vector-im/bwindels/fix-avatar-updates
...
Fix avatars not switching between an image and no image
2021-04-15 15:27:32 +02:00
Bruno Windels
33f1ba686c
add warning when rendering outside of render fn for templates
2021-04-15 15:14:02 +02:00
Bruno Windels
766ce4e217
create AvatarView and renderStaticAvatar (for timeline) and use it
...
in RoomTileView, we make some efforts to only have one update listener
for the entire list, because by default a subview would listen on
the view model
2021-04-15 15:12:14 +02:00
Bruno Windels
c85b2ca3c9
allow manually updating subviews in templates w/ parentProvidesUpdates
2021-04-15 15:11:05 +02:00
Bruno Windels
357ce21678
extract base class from Template view to select update mechanism
2021-04-15 15:09:45 +02:00
Bruno Windels
16fda4dde0
white background for transparent avatar images
2021-04-15 14:59:01 +02:00
Bruno Windels
050d603812
release v0.1.45
2021-04-09 20:01:00 +02:00
Bruno Windels
3cf86999a6
Merge pull request #325 from vector-im/bwindels/connectionerror-initial-sync
...
Fix handling connection error during initial sync
2021-04-09 20:00:03 +02:00
Bruno Windels
d414fb6b94
sync can also stop without an error
2021-04-09 19:50:22 +02:00
Bruno Windels
ba38ce7976
use canonical way of check error type
2021-04-09 16:30:53 +02:00
Bruno Windels
b852feeb9c
ConnectionError isn't throw from start, but sets sync.error
2021-04-09 16:28:14 +02:00
Bruno Windels
4b19e3c498
remove unused member
2021-04-09 16:27:25 +02:00
Bruno Windels
4d0ad04f7b
Merge pull request #323 from vector-im/bwindels/service-worker-aborts
...
Map service worker aborts as network errors, so sync does not halt
2021-04-09 15:38:07 +02:00
Bruno Windels
606e30fed2
make comment easier to read
2021-04-09 15:24:10 +02:00
Bruno Windels
c604c31032
use external mock for request in timeout tests
2021-04-09 15:16:43 +02:00
Bruno Windels
c36e812360
move RequestWrapper to own file
...
and add tests, improve comments, and and don't use timeout connection
error as that's not what happens if aborted request from service worker
is reported as TypeError either.
2021-04-09 15:15:28 +02:00
Bruno Windels
2b1f4866a9
map unexpected fetch AbortError to ConnectionError, so doesn't stop sync
2021-04-09 14:25:19 +02:00
Bruno Windels
2341748023
add some tests to timeout code
2021-04-09 14:09:48 +02:00
Bruno Windels
fe6f0c9b48
Merge pull request #322 from vector-im/bwindels/send-waits-for-keyshare
...
Sending a message waits for (ongoing) keyshare
2021-04-09 10:43:05 +02:00
Bruno Windels
e17fb24bd8
also await sharing the key in encrypt
2021-04-09 10:37:55 +02:00
Bruno Windels
13f20cdd26
wait for running key share operation in encrypt
2021-04-09 10:37:43 +02:00
Bruno Windels
6802f0720e
release v0.1.44
2021-04-08 18:44:57 +02:00
Bruno Windels
dce13f67dd
Merge pull request #321 from vector-im/bwindels/fix-remote-echo-race
...
Fix local echo reappearing after remote echo arrived
2021-04-08 18:43:41 +02:00
Bruno Windels
bdc8451c4a
better logging
2021-04-08 18:39:52 +02:00
Bruno Windels
9e697c6cbe
don't add the pending event again if removed already, fixes #289
2021-04-08 18:36:26 +02:00
Bruno Windels
f976eeaf13
rename SortedArray.replace to update
2021-04-08 18:36:09 +02:00
Bruno Windels
d8d97c40f7
show start time milliseconds in log viewer
2021-04-08 18:35:30 +02:00
Bruno Windels
aee904fd8c
Merge pull request #320 from vector-im/bwindels/localecho-fallback-userid
...
fall back to bare userid for local echo profile
2021-04-08 16:35:58 +02:00
Bruno Windels
863f659774
fall back to bare userid for local echo profile
2021-04-08 16:30:46 +02:00
Bruno Windels
521894f401
Merge pull request #319 from vector-im/bwindels/lost-first-member
...
Member lookup prevents members from being written when only present in the timeline
2021-04-08 16:15:22 +02:00
Bruno Windels
813be758d7
we should prefer to not pick the event itself if it's a member event
...
but still fall back to that if it's a new join
2021-04-08 15:33:21 +02:00
Bruno Windels
f67ccc18f4
take most recent member rather than first in timeline for inline lookup
...
noticed this while inspecting the code, looks related to #269
2021-04-08 12:57:10 +02:00
Bruno Windels
6f37c232f7
Don't cache members that haven't been written yet - fixes #271
2021-04-08 12:56:24 +02:00
Bruno Windels
f5db6babf2
forgot to change the type of the hs field, so it still nags
2021-04-08 10:27:50 +02:00
Johannes Marbach
37bb078547
Add license comments to make GNU LibreJS accept Hydrogen's JS
...
This adds proper license comments to all _internal_ JS scripts in the /target
build. This way the code self-identifies as Apache-2.0 which prevents LibreJS
from blocking it.
Closes : #209
Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
2021-03-27 14:19:58 +01:00
Prathap
c74a829ae4
update readme
2021-03-26 22:52:17 +05:30
Johannes Marbach
14ed5fd1e8
Manually adapt UI when keyboard shows or hides on mobile Safari
...
Mobile Safari seems to be the only browser that does *not* resize the
viewport when the keyboard shows and hides. Instead the window is moved
to make room for the keyboard which moves content at the top off screen.
This uses the VisualViewport API to manually resize the `SessionView`
in response to keyboard display events. Additionally, if a DOM element
exists that has the `bottom-aligned-scroll` CSS class, its scroll
position is retained. Currently this only applies to the `Timeline`.
Note that the VisualViewport API was only introduced with iOS 13.
According to [statista.com], versions below 13 made up for 19% of
all iOS users in summer 2020, with the share continuing to fall off.
As a result, this seems like an acceptable workaround.
Fixes : #181
[statista.com]: https://www.statista.com/statistics/565270/apple-devices-ios-version-share-worldwide/
Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
2021-03-26 08:29:33 +01:00
Jan Christian Grünhage
d7b3d50a13
chore: add GitLab CI definition
...
This adds a GitLab CI definition which runs tests, and if they succeed,
build an archive and container image.
2021-03-14 13:20:39 +01:00
Jan Christian Grünhage
bc2e7a7366
chore: optimise Dockerfile
...
So far, the Dockerfile built hydrogen on the server running the image,
instead of building it during the building of the image. This blew up
the image size immensely and caused node+yarn to run in the resulting
image. This new Dockerfile builds hydrogen in a separate build stage and
then moves the target directory into an nginx based container image,
which takes care of serving the target webroot.
The existing Dockerfile has been moved to Dockerfile-dev for usage as a
development environment. The docs have been adjusted accordingly.
Additionally, this switched from a fixed alpine version of the node
image to the latest alpine version, and changed the container image
references in the `FROM` statements to use the fully qualified
references including the registry domain.
2021-03-14 12:52:35 +01:00