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

Add shared styles #8

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

Add shared styles #8

wants to merge 9 commits into from

Conversation

brandonhundt
Copy link

@brandonhundt brandonhundt commented Jan 23, 2025

  • Installs dovetail shared styles (including bootstrap)
  • initiates slimselect and flatpickr like we do in the other apps (I only added this to a couple of the fields on the example, just to confirm)
  • sets up basic nav and subnav

Much of this will be customized for Insights after the design process is completed, but we can work from this base so we are consistent.

@brandonhundt brandonhundt changed the title WIP: Add shared styles Add shared styles Jan 23, 2025
@brandonhundt brandonhundt requested a review from farski January 23, 2025 22:10
<div class="form-floating input-group">
<%= form.text_field :from, name: "from", class: "form-control flatpickr-input", "data-controller" => "flatpickr" %>
<%= form.label :from, "From" %>
</div>
Copy link
Author

Choose a reason for hiding this comment

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

This is how flatpickr is initialized in feeder/augury



<div class="form-floating input-group">
<select class="form-select operator <%= "field_with_errors" if filter&.errors&.include?(:operator) %>" data-controller="slim-select" role="listbox" name="filter.<%= dim_key %>">
Copy link
Author

Choose a reason for hiding this comment

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

example of slim-select.

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.

1 participant