Commit graph

72 commits

Author SHA1 Message Date
Julian Sparber
7101c3f852 Add loading spinner for session
We won't show a loading spinner as in-app-notifcation, but we show a big
loading spinner when a new session is created (via a successful login)
and when we restore a previously created session.

Fixes: https://gitlab.gnome.org/GNOME/fractal/-/issues/775
Fixes: https://gitlab.gnome.org/GNOME/fractal/-/issues/776
2021-05-10 19:48:15 +02:00
Julian Sparber
601ddee7c3 Actually make state store presistent
This sets a passphrase and path for the state store created by the sdk.
The additional information is stored in via the SecretService.
This sets opt-level for deps to 3, because otherwise the statestore
would be really slow because of the passphrase.
2021-05-10 19:48:13 +02:00
Kévin Commaille
fc02302620 content: Improve style 2021-05-10 09:11:06 +00:00
Veli Tasali
7f65b20f78 i18n: Add files to POTFILES
Closes https://gitlab.gnome.org/GNOME/fractal/-/issues/752.
2021-05-08 20:47:58 +00:00
Kévin Commaille
ce9bfd8922
Add navigation support for small screens 2021-05-07 08:51:09 +02:00
Julian Sparber
8a3150f6fa bump deps 2021-05-06 22:26:18 +00:00
Veli Tasali
4d93119299
flatpak: drop uneeded env variables
67468b7ef2
2021-05-06 19:30:50 +03:00
Veli Tasali
503ff3eadf
build-aux: Move cargo-home to the root of build dir
This avoids rebuilding all the dependencies
everytime in GNOME Builder.

51c3732bea
2021-05-06 19:17:33 +03:00
Julian Sparber
af5f427ad5 session: cleanup session creation 2021-05-05 21:34:48 +02:00
Julian Sparber
863b5125f9 session: Set lazy-loading on state events instead of the timeline
Element does enable it only for state events and for timeline no speed
improvment can be observed.

fixes: https://gitlab.gnome.org/GNOME/fractal/-/issues/768
2021-05-05 19:55:19 +02:00
Julian Sparber
86b753cb4a categories: add new rooms in batch
This reduces the number of times the singal `items-changed` is emited.
Which improves performance when adding many new rooms
2021-05-05 13:02:51 +00:00
Kévin Commaille
477fae8380
sidebar: Fix arrow color 2021-05-05 12:34:40 +02:00
Veli Tasali
28b18f7cc8 ci: docs: Don't manually install deps & use meson 2021-05-05 09:32:10 +00:00
Veli Tasali
389bc11aec meson: Add option to skip cargo-build target
This is only needed when building docs or similar
to avoid overhead.
2021-05-05 09:32:10 +00:00
Veli Tasali
f0b7e64eab meson: Get libadwaita & gtksourceview as fallback 2021-05-05 09:32:10 +00:00
Kévin Commaille
f414a6f5ba sidebar: Improve interactions with a custom SelectionModel
Closes #749
2021-05-05 11:08:13 +02:00
Kévin Commaille
29a98b2e2b sidebar: Improve items look 2021-05-05 11:08:12 +02:00
Kévin Commaille
194125f795 session: Remove session.show-room action 2021-05-05 11:06:59 +02:00
Kévin Commaille
d97f425d99 sidebar: Add selected-room property
Bind it to Session's selected-room
2021-05-05 11:06:59 +02:00
Kévin Commaille
dfc41bb596 session: Add selected-room property
Bind it to Content's room property
2021-05-05 10:59:25 +02:00
Julian Sparber
d529e0d576 content: Send room messages 2021-05-04 18:47:31 +02:00
Julian Sparber
d2004f0618 user: Expose user-id as property 2021-05-04 18:47:31 +02:00
Julian Sparber
5f1ec13631 session: Create User for the logged in user 2021-05-04 18:47:28 +02:00
Julian Sparber
e23bcff951 add comrak dependency 2021-05-04 16:40:07 +02:00
Julian Sparber
f2fd208f84 room: Use only one hashmap to link ids to Events 2021-05-04 16:40:07 +02:00
Julian Sparber
8923b82b47 content: Add property room
This adds a new property to `Content` to keep track of the currently
shown room.
2021-05-04 09:25:35 +02:00
Julian Sparber
adf678a568 session: Enable lazy loading for sync 2021-05-03 09:00:41 +00:00
Veli Tasali
f85a530ba1 sidebar: Implement room filtering
Filtering is done by lowercasing of the room name
and of the filtering criterion.

Closes https://gitlab.gnome.org/GNOME/fractal/-/issues/750.
2021-05-03 07:26:04 +00:00
Veli Tasali
02fc50e972
meson: Add libadwaita dependency
Closes https://gitlab.gnome.org/GNOME/fractal/-/issues/747.
2021-05-02 22:09:09 +03:00
Veli Tasali
3b5bde2540
ci: docs: Install gtksourceview & enable index page
This will fix `pages` deployment which started to
fail after the addition of `gtksourceview`. Also,
add `--enable-index-page` because it looks better
that way.
2021-05-02 22:02:35 +03:00
Kévin Commaille
d9a2144753
session: Fix handle_sync_response 2021-05-02 09:17:38 +02:00
Julian Sparber
16bba4dc44 content: Implement room history 2021-04-30 18:35:01 +00:00
Julian Sparber
f352fc3cff Reimplement sidebar using TreeListModel and session::room::Room 2021-04-30 18:35:01 +00:00
Julian Sparber
d98e616872 Add wrapper object for room, room events and room members 2021-04-30 18:35:01 +00:00
Julian Sparber
77c31c30b9 Remove Supervisor
It doesn't make a lot of sense for use to use the event handler, since
we want every event from a sync response.
2021-04-30 18:35:01 +00:00
Julian Sparber
6e31eff455 Add futures as deps 2021-04-30 18:35:01 +00:00
Julian Sparber
8f2017cebd Add sourceview5 as deps 2021-04-30 18:35:01 +00:00
Raatty
0a08399e4a add docs badge that links to the pages docs 2021-04-29 22:20:58 +12:00
Veli Tasali
a5b5055ab0 docs: Set crate logo as the FractalNext icon
This replaces the default Rust logo as the app
icon on all documentation pages under `fractal`
package.
2021-04-29 10:50:29 +03:00
Veli Tasali
c797001d7b ci: docs: Publish on GitLab Pages
This makes necessary changes to the CI
configuration to publish docs on GitLab Pages.
2021-04-29 10:49:47 +03:00
Julian Sparber
c1e94744ab Remove unused resources file 2021-04-28 15:31:17 +02:00
Julian Sparber
0cc43f6258 Bump deps 2021-04-28 15:31:14 +02:00
Julian Sparber
a92c6d8b05 add html2pango and chrono as deps 2021-04-20 22:35:26 +02:00
Julian Sparber
b0be9d47f1 update deps
run cargo update
2021-04-20 22:35:23 +02:00
Julian Sparber
cb4bc60849 sidebar: change Room to SidebarRoom 2021-04-20 00:32:56 +02:00
Alexandre Franke
4f9e1726a6 Remove Frctl prefix 2021-04-13 20:21:45 +02:00
Julian Sparber
c1b65dc69c bump matrix-sdk
The new commit includes improvments for how the sdk handles http request
errors, and allows us to configure how often a request should be
retried.
2021-04-07 12:38:33 +02:00
Julian Sparber
4e409bb329 add logging for the matrix-sdk
The sdk uses tracing for loging therefore we can't use
pretty-env_logger. We are still able to set the log level via the env
variable RUST_LOG.
2021-03-31 22:11:12 +02:00
Julian Sparber
a22fa19e38 sidebar: Add things needed for the Sidebar
This includes gobject wrappers and the ui.
2021-03-27 15:04:29 +00:00
Julian Sparber
e4220835ab sidebar: Wrap ListView into ScrolledWindow 2021-03-27 15:04:29 +00:00