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

allow to set tags on profiles #3373

Merged
merged 11 commits into from
Oct 23, 2024
Merged

allow to set tags on profiles #3373

merged 11 commits into from
Oct 23, 2024

Conversation

adbenitez
Copy link
Member

@adbenitez adbenitez commented Oct 21, 2024

@adbenitez adbenitez added the enhancement actually in development, user visible enhancement label Oct 21, 2024
@adbenitez adbenitez self-assigned this Oct 21, 2024
@adbenitez adbenitez requested a review from r10s October 21, 2024 20:40
@adbenitez
Copy link
Member Author

this uses ui.tag it make sense to add a core setting for this eventually but should not be a blocker if we don't want to invest time into that for now

@adbenitez adbenitez requested a review from Hocuri October 21, 2024 20:41
@r10s
Copy link
Member

r10s commented Oct 21, 2024

nice!

indeed i also drafted sth. these days, see deltachat/deltachat-core-rust#6088 and main...r10s/internal-profile-names

while the android PR is far behind yours (maybe only some inspiration for wordings), we should consider to add an "official" config for core - i think, it makes sense to sync them at some point and also that is better wrt compatibility. might also be, core will use the labels for sth at some point, name of backups or so

Copy link

To test the changes in this pull request, install this apk:
📦 app-preview.apk

Copy link
Member

@r10s r10s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very nice!

src/main/res/values/strings.xml Outdated Show resolved Hide resolved
src/main/res/values/strings.xml Outdated Show resolved Hide resolved
src/main/res/values/strings.xml Outdated Show resolved Hide resolved
@adbenitez adbenitez added the PR waiting for core PR is waiting for core release label Oct 21, 2024
@adbenitez adbenitez marked this pull request as draft October 21, 2024 21:32
Copy link

To test the changes in this pull request, install this apk:
📦 app-preview.apk

r10s added a commit to deltachat/deltachat-core-rust that referenced this pull request Oct 22, 2024
this PR allows setting a "private tag" for a profile, see
deltachat/deltachat-android#3373 for a possible
UI.

currently, the core does not do anything with the tag (so, it could also
be a ui.-config option), however, this may change in the future - it
might bet synced, and become also otherwise useful in core. also, having
this in core is better documentation-wise, as otherwise each UI easily
does its own things :)
@adbenitez
Copy link
Member Author

updated to use the new private_tag setting now that it is part of main branch in core, we need a new tagged core before this can be merged

Copy link

To test the changes in this pull request, install this apk:
📦 app-preview.apk

@adbenitez adbenitez marked this pull request as ready for review October 22, 2024 22:26
@r10s r10s removed the PR waiting for core PR is waiting for core release label Oct 23, 2024
@r10s
Copy link
Member

r10s commented Oct 23, 2024

updated the core on main; this PR needs a rebase

Copy link

To test the changes in this pull request, install this apk:
📦 app-preview.apk

@adbenitez adbenitez requested a review from r10s October 23, 2024 13:43
Copy link
Member

@r10s r10s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wondering, if it makes sense to show the tag additionally in the subtitle above the chatlist. but that can go to another PR, if we think it makes sense. it is already very useful as it is now

src/main/res/values/strings.xml Outdated Show resolved Hide resolved
Copy link

To test the changes in this pull request, install this apk:
📦 app-preview.apk

android:id="@+id/addr_or_tag"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textDirection="ltr"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@r10s just realized that this might be problematic with rtl languages tags, removed it, but in my tests there is no difference with/without with addresses or Arabic text

Copy link
Member

@r10s r10s Oct 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this might come from copy+paste from old signal code, where this was a phone number ...

good to remove it.

@adbenitez adbenitez merged commit 021a98c into main Oct 23, 2024
2 checks passed
@adbenitez adbenitez deleted the adb/tag-profiles branch October 23, 2024 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement actually in development, user visible enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants