refactor(ui): Make users be ordered properly on users page #343

Merged
NaiJi merged 3 commits from users-order into master 2023-09-18 18:32:57 +03:00
Collaborator
- Resolves [340](https://git.selfprivacy.org/SelfPrivacy/selfprivacy.org.app/issues/340)
NaiJi added the
Refactor
Severity
Low
labels 2023-09-16 07:19:45 +03:00
NaiJi self-assigned this 2023-09-16 07:19:45 +03:00
Poster
Collaborator

image

![image](/attachments/c6e12ce4-aad4-425c-8b4a-fd5cbe6ef59c)
NaiJi requested review from inex 2023-09-16 07:23:31 +03:00
NaiJi added the
Priority
Low
label 2023-09-16 07:23:41 +03:00
NaiJi reviewed 2023-09-16 07:25:13 +03:00
@ -3,11 +3,11 @@ part of 'users.dart';
class _User extends StatelessWidget {
const _User({
required this.user,
required this.isRootUser,
Poster
Collaborator

Because it's NOT ROOT USER! We filter UserType.root away in the first place!

Because it's NOT ROOT USER! We filter UserType.root away in the first place!
NaiJi marked this conversation as resolved
NaiJi reviewed 2023-09-16 07:25:52 +03:00
@ -45,15 +45,7 @@ class UsersPage extends StatelessWidget {
} else {
child = BlocBuilder<UsersCubit, UsersState>(
builder: (final BuildContext context, final UsersState state) {
final List<User> users = state.users
Poster
Collaborator

Ordering is rather business logic, not UI

Ordering is rather business logic, not UI
NaiJi marked this conversation as resolved
NaiJi force-pushed users-order from 153c8b048d to 5c329d47c1 2023-09-16 08:09:52 +03:00 Compare
inex requested changes 2023-09-18 18:21:34 +03:00
@ -4,3 +4,3 @@
const _User({
required this.user,
required this.isRootUser,
required this.isUserPrimary,

isPrimaryUser

isPrimaryUser
NaiJi marked this conversation as resolved
NaiJi added 1 commit 2023-09-18 18:27:35 +03:00
NaiJi requested review from inex 2023-09-18 18:28:05 +03:00
NaiJi added 1 commit 2023-09-18 18:28:55 +03:00
inex approved these changes 2023-09-18 18:32:25 +03:00
NaiJi merged commit d97d133479 into master 2023-09-18 18:32:57 +03:00
NaiJi deleted branch users-order 2023-09-18 18:32:57 +03:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: SelfPrivacy/selfprivacy.org.app#343
There is no content yet.