Skip to content

F/log reviewer server side filter #35

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

Open
wants to merge 91 commits into
base: main
Choose a base branch
from

Conversation

yuenler
Copy link
Collaborator

@yuenler yuenler commented Mar 24, 2025

No description provided.

currentPage,
numPages,
loading = false,
onPageChanged,
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing the template /* Setup */ block

Copy link
Contributor

Choose a reason for hiding this comment

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

See template. This is close but still not the same as our template

Copy link
Contributor

@gabeabrams gabeabrams left a comment

Choose a reason for hiding this comment

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

Just a few little things. Great work!

pages.push(i);
}
return pages;
};
Copy link
Contributor

Choose a reason for hiding this comment

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

Doesn't need to be a function

const pages = getPageNumbers();

return (
<nav aria-label="Page navigation" className="mt-3">
Copy link
Contributor

Choose a reason for hiding this comment

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

Give the aria-label a more specific, descriptive text

},
[],
);
// Fetch logs on mount
Copy link
Contributor

Choose a reason for hiding this comment

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

Add JSDoc

onClick={() => {
// Save active filters
activeFiltersRef.current = {
dateFilterState: JSON.parse(
Copy link
Contributor

Choose a reason for hiding this comment

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

Add comment describing the fact that we need to duplicate state

// Save active filters
activeFiltersRef.current = {
dateFilterState: JSON.parse(
JSON.stringify(pendingDateFilterState),
Copy link
Contributor

Choose a reason for hiding this comment

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

Make a helper function to clone a JSON object

year={pendingDateFilterState.endDate.year}
month={pendingDateFilterState.endDate.month}
day={pendingDateFilterState.endDate.day}
chooseFromPast
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be an error if rebase was successful. Is it?

<LoadingSpinner />
</div>
)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Indentation

@@ -0,0 +1,6 @@
// Tag filter state
Copy link
Contributor

Choose a reason for hiding this comment

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

For all your types, switch to JSDoc and add your Author tag

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.

None yet

2 participants