feat(client/kotlin): add Favorite Resources menu#6107
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
| import ChangeItem from "./ChangeItem"; | ||
| import Entries from "./Entries"; | ||
| import Entry from "./Entry"; | ||
| import Link from "next/link"; |
There was a problem hiding this comment.
Can we enforce this with a formatter?
There was a problem hiding this comment.
I'm not aware of one, but probably
|
| Report | Tue, August 6, 2024 at 22:18:54 UTC |
| Project | Firezone |
| Branch | feat/kotlin/favorites-menu |
| Testbed | github-actions |
Click to view all benchmark results
| Benchmark | Throughput | Throughput Results bits/s | (Δ%) | Throughput Lower Boundary bits/s | (%) |
|---|---|---|---|
| direct-tcp-client2server | ✅ (view plot) | 239,671,662.55 (-0.91%) | 237,136,976.31 (98.94%) |
| direct-tcp-server2client | ✅ (view plot) | 252,261,251.33 (+1.61%) | 241,460,754.60 (95.72%) |
| direct-udp-client2server | ✅ (view plot) | 288,524,984.95 (-0.16%) | 271,982,711.85 (94.27%) |
| direct-udp-server2client | ✅ (view plot) | 390,809,121.57 (-1.33%) | 384,035,718.45 (98.27%) |
| relayed-tcp-client2server | ✅ (view plot) | 249,794,902.11 (+1.55%) | 239,479,677.85 (95.87%) |
| relayed-tcp-server2client | ✅ (view plot) | 260,336,740.88 (+1.12%) | 247,098,680.16 (94.92%) |
| relayed-udp-client2server | ✅ (view plot) | 240,726,380.40 (+4.84%) | 218,931,548.08 (90.95%) |
| relayed-udp-server2client | ✅ (view plot) | 337,257,274.93 (-0.06%) | 317,821,760.44 (94.24%) |
Bencher - Continuous Benchmarking
View Public Perf Page
Docs | Repo | Chat | Help
thomaseizinger
left a comment
There was a problem hiding this comment.
Nice work! I left some ideas and a question.
| import ChangeItem from "./ChangeItem"; | ||
| import Entries from "./Entries"; | ||
| import Entry from "./Entry"; | ||
| import Link from "next/link"; |
There was a problem hiding this comment.
Can we enforce this with a formatter?
kotlin/android/app/src/main/java/dev/firezone/android/features/session/ui/SessionViewModel.kt
Outdated
Show resolved
Hide resolved
kotlin/android/app/src/main/java/dev/firezone/android/features/session/ui/SessionActivity.kt
Outdated
Show resolved
Hide resolved
| <com.google.android.material.tabs.TabLayout | ||
| android:id="@+id/tabLayout" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="0dp" | ||
| app:layout_constraintTop_toBottomOf="@+id/tvResourcesList" | ||
| app:layout_constraintEnd_toEndOf="parent" | ||
| app:layout_constraintHorizontal_bias="1.0" | ||
| app:layout_constraintStart_toStartOf="parent" | ||
| app:tabInlineLabel="true"> | ||
|
|
||
| <com.google.android.material.tabs.TabItem | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:icon="@drawable/baseline_star_24" | ||
| android:text="@string/resources_favorites" /> | ||
|
|
||
| <com.google.android.material.tabs.TabItem | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="match_parent" | ||
| android:icon="@drawable/all_resources" | ||
| android:text="@string/resources_all" /> | ||
|
|
||
| </com.google.android.material.tabs.TabLayout> |
There was a problem hiding this comment.
This isn't a blocking concern but more of a question.
I don't really understand the choice of tabs here. To me, tabs are useful to separate unrelated entities, like Messages, Calls and Status in Whatsapp.
Favourite and non-favourite resources are still resources. Why split them into different tabs? In Fastmail for example, I can "Pin" emails (which is basically like a favourite). Those are sticky at the top of all my emails and the rest is sorted by "Recevied" date.
There was a problem hiding this comment.
Absolutely no reason, I just had the tabs half-way implemented and I forgot what the conclusion was for UX.
@Patticatti If the pinned / sticky favorites sounds good, I'll change it to that before merging later on. Your call as UX person
kotlin/android/app/src/main/java/dev/firezone/android/features/session/ui/SessionViewModel.kt
Outdated
Show resolved
Hide resolved
Patticatti
left a comment
There was a problem hiding this comment.
Looks nice - maybe we can start leaning into theme colours eventually
It's missing a couple pieces, see the tasklist
Refs #5123