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

Frontend cleanup #78

Merged
merged 3 commits into from
Nov 30, 2023
Merged

Frontend cleanup #78

merged 3 commits into from
Nov 30, 2023

Conversation

david-c-smith
Copy link
Collaborator

@david-c-smith david-c-smith commented Nov 30, 2023

image image image
  • improved accessibility score by 6
  • reorganized some components
  • added logic for displaying "just now", "minutes ago", "hours ago"
  • extracted some urls into separate variables
  • other small improvements

@@ -26,17 +26,19 @@ function Select({
const currentOption = options?.find((option) => option.value == value);
const [searchText, setSearchText] = useState('');

const dropdownId = `dropdown-${Math.random().toString(36).substring(7)}`;
Copy link
Owner

Choose a reason for hiding this comment

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

What is this for?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

accessibility portion of lighthouse wanted a unique id per label so i just did random gen

Copy link
Owner

@wweitzel wweitzel left a comment

Choose a reason for hiding this comment

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

lgtm i love the minutes/hours ago enhancement

@wweitzel wweitzel merged commit ab25e4d into master Nov 30, 2023
4 checks passed
@wweitzel wweitzel deleted the light-frontend-refactoring branch November 30, 2023 23:51
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