Account Deletion Request

It doesn’t affect the settings, but I can reproduce this with the translation fields:

To be clear though, this isn’t isolated to the Account Deletion Request component. Other components that I’ve tested such as Discourse TOC and Kansan exhibit the same issue with their translation fields too.

7 Likes

That is very helpful, thanks @Stephen, I’ve got a PR with a fix for theme translations: FIX: Theme translations resetting on save by pmusaraj · Pull Request #22072 · discourse/discourse · GitHub

10 Likes

Hello :wave:

I’ve merged an update to allow HTML on modal description. After you update the component you can use what Lilly suggested to line breaks.

Your text looks like this in html:

When you send us an account anonymization request, we'll remove all personal data from your account, while retaining your posts. This means:
<br>
<ul>
  <li>You will no longer be able to log in as this specific account.</li>
  <br>
  <li>A new username will be randomly assigned to the account such as anon123456. This new username will be applied to all your posts in the system, and we will update all @mentions and quotes too.</li>
  <li>The new username is not applied to: deleted posts, post revisions when the current post doesn't mention or quote the renamed user anymore, oneboxed user profiles, queued posts, or staff logs.</li>
  <li>Your email, name, date of birth and avatar will be removed.</li>
  <li>Your user profile will be removed.</li>
  <li>Any API keys generated for the account will be revoked.</li>
  <li>Any third-party authentication mechanism (Google/Facebook/etc) will be revoked.</li>
</ul>

9 Likes

Awesome, component. After upgrading discourse to 3.2.0 I’m seeing an error in the logs

Account Deletion Request theme/component is throwing errors:
TypeError: Cannot read properties of null (reading ‘en’)

Here’s the backtrace:

TypeError: Cannot read properties of null (reading 'en')
    at Object.initialize (https://site.com/theme-javascripts/3ded4211d42a4dc71642febcfdc4e24847261d8e.js?__ws=site.com:5:51)
    at n.initialize (https://site.com/assets/chunk.6d10396b901f5b95b67e.d41d8cd9.js:2:309459)
    at https://site.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:11:141483
    at e.each (https://site.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:11:368590)
    at e.walk (https://site.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:11:367606)
    at e.each (https://site.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:11:366959)
    at e.topsort (https://site.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:11:367005)
    at e._runInitializer (https://site.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:11:141795)
    at e.runInitializers (https://site.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:11:141441)
    at e._bootSync (https://site.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:11:110927)
    at e.domReady (https://site.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:11:110503)
    at invoke (https://site.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:11:358129)
    at h.flush (https://site.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:11:357216)
    at p.flush (https://site.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:11:358979)
    at B._end (https://site.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:11:364062)
    at B._boundAutorunEnd (https://site.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:11:360486)
2 Likes

Thanks for the report :slight_smile: I’ve merged a fix, please update the component.

Oh, that seems it’s stable version. :thinking: I think this won’t works yet.

1 Like

I suspect his issue is something else. RBoy reported the same issue with other components. :thinking:

Also, I’ve tried yours with Discourse 3.2.0, and I see no issues so far!

2 Likes

Yes, it only seems to affect some theme components, but not all after upgrading to 3.2.0. In my case this theme, the DiscoTOC and Dark/Light Mode themes.

2 Likes