Skip to content

Commit c7014ed

Browse files
authored
Merge pull request #1 from alt-ctrl-dev/alt-ctrl-dev-patch-1
refactor: updated text
2 parents 5b009d6 + 5f0ae8e commit c7014ed

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

lib/aba_viewer_web/live/aba_live/index.ex

+6-5
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ defmodule AbaViewerWeb.AbaLive.Index do
9898

9999
defp issue_error(:bsb_filler), do: "Incorrect BSB filler"
100100
defp issue_error(:records_mismatch), do: "Records count don't match"
101-
defp issue_error(:bsb), do: "BSB is incorrect"
101+
defp issue_error(:bsb), do: "Incorrect BSB"
102+
defp issue_error(:account_number), do: "Incorrect Account Number"
102103
defp issue_error(x), do: x
103104

104105
defp handle_progress(
@@ -152,7 +153,7 @@ defmodule AbaViewerWeb.AbaLive.Index do
152153
<div class="p-4 mb-4 text-sm text-red-800 rounded-lg bg-red-50 dark:bg-gray-800 dark:text-red-400" role="alert">
153154
<div class="flex space-x-4">
154155
<Heroicons.exclamation_circle class="w-6 h-6 text-red-900 fill-red-200" />
155-
<p>Descriptive record has the following error: <%= error_to_string(@error) %></p>
156+
<p>Descriptive record has the following issue(s): <%= error_to_string(@error) %></p>
156157
</div>
157158
</div>
158159
"""
@@ -179,7 +180,7 @@ defmodule AbaViewerWeb.AbaLive.Index do
179180
<div class="p-4 mb-4 text-sm text-red-800 rounded-lg bg-red-50 dark:bg-gray-800 dark:text-red-400" role="alert">
180181
<div class="flex space-x-4">
181182
<Heroicons.exclamation_circle class="w-6 h-6 text-red-900 fill-red-200" />
182-
<p>File Total record has the following error: <%= error_to_string(@error) %></p>
183+
<p>File Total record has the following issue(s): <%= error_to_string(@error) %></p>
183184
</div>
184185
</div>
185186
"""
@@ -205,7 +206,7 @@ defmodule AbaViewerWeb.AbaLive.Index do
205206
<div class="p-4 mb-4 text-sm text-red-800 rounded-lg bg-red-50 dark:bg-gray-800 dark:text-red-400" role="alert">
206207
<div class="flex space-x-4">
207208
<Heroicons.exclamation_circle class="w-6 h-6 text-red-900 fill-red-200" />
208-
<p>Detail record has the following error: <%= error_to_string(@error) %></p>
209+
<p>Detail record has the following issue(s): <%= error_to_string(@error) %></p>
209210
</div>
210211
</div>
211212
"""
@@ -219,7 +220,7 @@ defmodule AbaViewerWeb.AbaLive.Index do
219220
<div class="p-4 mb-4 text-sm text-red-800 rounded-lg bg-red-50 dark:bg-gray-800 dark:text-red-400" role="alert">
220221
<div class="flex space-x-4">
221222
<Heroicons.exclamation_circle class="w-6 h-6 text-red-900 fill-red-200" />
222-
<p>Detail record has the following error on line <%= @line %>: <%= error_to_string(@error) %></p>
223+
<p>Detail record has the following issue(s) on line <%= @line %>: <%= error_to_string(@error) %></p>
223224
</div>
224225
</div>
225226
"""

lib/aba_viewer_web/live/aba_live/index.html.heex

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<p class="mb-4 text-4xl font-extrabold leading-none tracking-tight text-gray-900 md:text-5xl lg:text-6xl dark:text-white text-center">Aba Viewer</p>
1+
<p class="mb-4 text-4xl font-extrabold leading-none tracking-tight text-gray-900 md:text-5xl lg:text-6xl dark:text-white text-center">ABA Viewer</p>
22
<p class="mb-6 text-lg font-normal text-gray-500 lg:text-xl dark:text-gray-400 text-center">This tool will help you quickly identify issues with your ABA file.</p>
33
<p class="mb-6 text-sm font-normal text-gray-500 lg:text-lg dark:text-gray-400 text-center"><span class="font-bold text-black dark:text-white">NOTE:</span> This tool will never save your ABA file.</p>
44
<p class="mb-6 text-sm font-normal text-gray-500 lg:text-lg dark:text-gray-400 text-center"><span class="font-bold text-black dark:text-white">NOTE:</span> The library used to validate the file might have some issue. If you notice them, please report the issues <a class="underline" href="https://github.com/alt-ctrl-dev/aba-viewer/issues">here</a> </p>

test/aba_viewer_web/live/aba_live_test.exs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ defmodule AbaViewerWeb.AbaLiveTest do
77
test "lists all validator", %{conn: conn} do
88
{:ok, _index_live, html} = live(conn, ~p"/")
99

10-
assert html =~ "Aba Viewer"
10+
assert html =~ "ABA Viewer"
1111
# assert html =~ "This tool will help you quickly identify issues with your ABA file."
1212
# assert html =~ "Click to upload or drag and drop your ABA file"
1313
end

0 commit comments

Comments
 (0)