Skip to content

fix: show submailboxes for filtering #11031

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

Merged
merged 1 commit into from
May 14, 2025
Merged

fix: show submailboxes for filtering #11031

merged 1 commit into from
May 14, 2025

Conversation

GretaD
Copy link
Contributor

@GretaD GretaD commented Apr 25, 2025

Fix #10545

Screenshot from 2025-04-28 15-56-10

@@ -92,6 +92,7 @@ export default {
input.vue-treeselect__input {
margin: 0;
padding: 0;
border: 1px solid var(--color-border-maxcontrast) !important;
Copy link
Member

Choose a reason for hiding this comment

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

What makes this necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

treeselect borders are 2px by default. Ours are 1px.

return this.currentSelectedMailboxId
},
set(selectedMailboxId) {
logger.debug('Selected mailbox set to', selectedMailboxId)
Copy link
Member

Choose a reason for hiding this comment

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

debug log?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i added this because thats what we do on accountdefaultsettings.vue where we also use the MailboxInlinePicker.

@GretaD GretaD force-pushed the fix/filter-subfolders branch from f4c50e0 to a5a7df8 Compare May 6, 2025 09:08
kesselb
kesselb previously requested changes May 6, 2025
Copy link
Contributor

@kesselb kesselb left a comment

Choose a reason for hiding this comment

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

blocking

@kesselb
Copy link
Contributor

kesselb commented May 6, 2025

Hi Greta,

Thanks again for your help on this. I apologize; I completely forgot that this is a nightmare 😂

The MailboxInlinePicker uses the databaseId, while the Sieve backend expects the IMAP name. I believe this was the reason I initially opted for the simple NcSelect to avoid the back-and-forth. I apparently overlooked the fact that getMailboxes surprisingly does not return "submailboxes."

I've pushed a fix to resolve the databaseId to the IMAP name and vice versa.

@kesselb
Copy link
Contributor

kesselb commented May 6, 2025

Screenshot From 2025-05-06 12-55-23

The border looks a bit odd in dark mode 😞

@kesselb kesselb dismissed their stale review May 6, 2025 10:59

database id is resolved to imap name now

@GretaD
Copy link
Contributor Author

GretaD commented May 6, 2025

The border looks a bit odd in dark mode 😞

we can fix that with other design issues that Nimisha has added in the overview ticket #10655

@ChristophWurst
Copy link
Member

ChristophWurst commented May 6, 2025

Fix it here so we have a releasable solution after merge into main.

@GretaD
Copy link
Contributor Author

GretaD commented May 13, 2025

the second box is slightly bigger and i cannot change that
But i fixed the rest. I hope its good enough for merging

Screenshot from 2025-05-13 13-23-22

@GretaD GretaD requested a review from kesselb May 13, 2025 11:25
@kesselb
Copy link
Contributor

kesselb commented May 13, 2025

Hi @GretaD,

I'm still seeing that weird border 😞

It appears that p from the help-text is overflowing and then overlapping with the treeselect.

What do you think about adding

.help-text {
	margin-bottom: calc(var(--default-grid-baseline) * 2);
}

to UpdateModal.vue as a workaround?

@kesselb kesselb force-pushed the fix/filter-subfolders branch from 0633c81 to 4874ee4 Compare May 14, 2025 12:09
@kesselb
Copy link
Contributor

kesselb commented May 14, 2025

/backport to stable5.0

@kesselb kesselb enabled auto-merge May 14, 2025 12:14
@kesselb kesselb merged commit b15adb9 into main May 14, 2025
35 checks passed
@kesselb kesselb deleted the fix/filter-subfolders branch May 14, 2025 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing option for subfolders in actions (filters)
3 participants