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

DEV: Review theme and refactor js #21

Merged
merged 7 commits into from
Jul 22, 2024

Conversation

Grubba27
Copy link

@Grubba27 Grubba27 commented Jul 10, 2024

There are a few questions and todos left, but we can discuss and close them as we go.

Todos

  • Maybe we have a loading state in:

    • /components/blocks/birthday.gjs code
    • /components/blocks/online.gjs code
  • Use ajax instead of fetch in navigation.gjs code

  • add tests?

@@ -123,11 +120,7 @@ export default class BlockTopContributors extends Component {
href={{concat "/u/" topContributor.username}}
data-user-card={{topContributor.username}}
>
{{!-- {{#if topContributor.name}}
Copy link
Contributor

Choose a reason for hiding this comment

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

This was kept in in case the option to prioritize names should exist.

Co-authored-by: Jarek Radosz <jradosz@gmail.com>
Comment on lines +33 to +34
const response = await fetch(`/categories.json?page=${page}`); // why not ajax?
const data = await response.json();
Copy link
Author

Choose a reason for hiding this comment

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

@carsick, could this be changed to an Ajax?

@Grubba27 Grubba27 requested review from CvX and carsick July 12, 2024 18:38
Co-authored-by: Jarek Radosz <jradosz@gmail.com>
@Grubba27 Grubba27 merged commit 2a1c131 into lazy-load-categories Jul 22, 2024
3 checks passed
@Grubba27 Grubba27 deleted the dev/review-and-refactor branch July 22, 2024 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants