Skip to content

Revamp - #97

Draft
ximes wants to merge 25 commits into
masterfrom
revamp
Draft

Revamp#97
ximes wants to merge 25 commits into
masterfrom
revamp

Conversation

@ximes

@ximes ximes commented May 8, 2026

Copy link
Copy Markdown
Contributor

A small revamp and some additional filtering features:

  • a more flat, modern design
  • expandable filters
  • a search field (it can filter by commit message and sha)
  • filter by repo

New design is opt-in with a usage counter.

Screenshots:

image
image
image

}
&--highlight&--reviewed {
@apply bg-chartreuse;
.dark & { @apply bg-blue-900; }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You could use the newish light-dark() function here to make it a bit cleaner

Comment thread lib/remit/commit.ex
@build_commit_sha_pattern ~r/^[0-9a-f]{40}(\s|$)/

def build_commit?(commit) do
not is_nil(commit.message) && Regex.match?(@build_commit_sha_pattern, commit.message)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

negated is_nil is kind of smelly, better with a is_binary here since thats what is actually required by regex match

compact = Keyword.get(opts, :compact, false)

avatar_opts =
Keyword.delete(opts, :compact) ++

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could use a Keyword.pop/3 on L20 to combine get and delete

defp assign_deployed_shas(socket) do
repos = socket.assigns.build_commit_repos

if socket.assigns.features["build_commit_status"] && repos != [] do

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Enum.any?(repos)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants