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 functionality to see favorite gem files #19

Merged
merged 14 commits into from
Jan 20, 2024

Conversation

varkum
Copy link
Contributor

@varkum varkum commented Jan 18, 2024

Closes #17

Gemfiles that have been starred show up under the profile dropdown as "Favorite Gemfiles." Made some UI changes here to the sign out button — can change these if needed.

Screenshot 2024-01-18 at 9 08 15 AM Screenshot 2024-01-18 at 9 08 28 AM

config/routes.rb Outdated Show resolved Hide resolved
<% if @favorite_gemfiles.present? %>
<ul role="list" class="divide-y divide-gray-100">
<% @favorite_gemfiles.each do |gemfile| %>
<%= render "gemfiles/gemfile_list_item", gemfile: gemfile %>
Copy link
Contributor

Choose a reason for hiding this comment

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

You can use a collection partial here.

Suggested change
<%= render "gemfiles/gemfile_list_item", gemfile: gemfile %>
<%= render partial: "gemfiles/gemfile_list_item", collection: @favourite_gemfiles %>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've updated gemfiles/index.html.erb too where it used the same iteration.

app/views/my/favorite_gemfiles.html.erb Outdated Show resolved Hide resolved
dump.rdb Outdated Show resolved Hide resolved
Copy link
Contributor

@robzolkos robzolkos left a comment

Choose a reason for hiding this comment

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

Thanks @varkum ! Looks good.

@Shpigford Shpigford merged commit f76e031 into Shpigford:main Jan 20, 2024
3 checks passed
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.

Add a way to see your favorite Gemfiles
3 participants