Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Union query mode #360

Open
3 tasks
kirillt opened this issue May 27, 2023 · 0 comments
Open
3 tasks

Union query mode #360

kirillt opened this issue May 27, 2023 · 0 comments
Labels
feature Feature to implement

Comments

@kirillt
Copy link
Member

kirillt commented May 27, 2023

In addition to intersection and focus query modes, union mode should be added.
When union mode is enabled, we display all resources marked with at least one of specified tags.

  • Union query mode must be implemented
  • Focus mode should be made default query mode
  • New icons for intersection and union modes

"Intersection" mode is called "normal" in ARK-Builders/ark-android#17.
"Focus" mode was implemented in scope of ARK-Builders/ark-android#23.

New icons for query modes should remind the following:
query-modes

How union query mode works

Suppose, we have the following resources:

┌────────────────┐
│ # |  tags      │
├────────────────┤
│ 1 |  a         │
│ 2 |  b         │
│ 3 |  c         │
│ 4 |  a, b      │
│ 5 |  b, c      │
│ 6 |  a, c      │
│ 7 |  a, b, c   │
│ 8 |  <none>    │
└────────────────┘

This is how queries will work in union mode:

┌─────────────────────────────────┐
│ query     | resources           │
├─────────────────────────────────┤
│ {}        │ <none>              │
│ {a}       │ 1, 4, 6, 7          |
│ {a,b}     │ 1, 2, 4, 5, 6, 7    │
│ {a, b, c} │ 1, 2, 3, 4, 5, 6, 7 |
└─────────────────────────────────┘
@kirillt kirillt added the feature Feature to implement label May 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature to implement
Projects
None yet
Development

No branches or pull requests

1 participant