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

Admin Settings: Bugfixes #1313

Merged
merged 9 commits into from
Jun 16, 2023

Conversation

alectrocute
Copy link
Contributor

@alectrocute alectrocute commented Jun 15, 2023

Hi Lemdevs!

This PR addresses some outstanding bugs in our admin settings panel –

  • Tweak margin on icon & banner labels to match rest of form
  • Add missing bind for handleRemoveInstance (ugh, I hate we have to do this!)
  • Move loading state to AdminSettings, pass as prop to all children, which resolves some infinite loading issues
  • Add util to properly validate allowed/banned instance TLD's
  • Change admin settings header text from "Name/save your site" to "Setup/edit your site", which makes a lot more sense

Thanks!

@@ -73,6 +73,7 @@ export class Setup extends Component<any, State> {
onSaveSite={this.handleCreateSite}
siteRes={this.state.siteRes}
themeList={this.state.themeList}
loading={false}
Copy link
Contributor Author

@alectrocute alectrocute Jun 15, 2023

Choose a reason for hiding this comment

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

This can always be false since the route is redirected upon submit of this form.

Copy link
Member

@dessalines dessalines left a comment

Choose a reason for hiding this comment

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

Looks good, but I would separate the site loading indicator from the emoji loading one.

src/shared/components/home/admin-settings.tsx Outdated Show resolved Hide resolved
src/shared/components/home/admin-settings.tsx Outdated Show resolved Hide resolved
@alectrocute
Copy link
Contributor Author

Thanks for the feedback, @dessalines! I've implemented the changes.

@alectrocute alectrocute requested a review from dessalines June 16, 2023 15:49
@dessalines dessalines merged commit 80e2c96 into LemmyNet:main Jun 16, 2023
@alectrocute alectrocute deleted the admin-settings-bugfixes-and-tlc branch June 16, 2023 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants