Skip to content

Refs #576: Use ASCII punctuation on activity page#588

Open
fvlaconstancia-lang wants to merge 1 commit into
ramimbo:mainfrom
fvlaconstancia-lang:fix-activity-ascii-search-copy
Open

Refs #576: Use ASCII punctuation on activity page#588
fvlaconstancia-lang wants to merge 1 commit into
ramimbo:mainfrom
fvlaconstancia-lang:fix-activity-ascii-search-copy

Conversation

@fvlaconstancia-lang
Copy link
Copy Markdown

@fvlaconstancia-lang fvlaconstancia-lang commented May 28, 2026

Refs #576

Summary:

  • Replace curly quotes in the activity search notice with ASCII quotes.
  • Replace the centered dot between bounty links with an ASCII hyphen.
  • Update the activity page regression test to assert the ASCII-rendered copy.

Why:
Some plain HTTP clients and test output can show UTF-8 punctuation as mojibake. Keeping this small activity-page copy ASCII avoids the rendering glitch without changing behavior.

Validation:

  • python -m pytest tests/test_activity.py tests/test_activity_routes.py -q -> 4 passed
  • python -m pytest -q -> 448 passed
  • python -m ruff check tests/test_activity.py -> passed

Summary by CodeRabbit

Release Notes

  • Style
    • Updated search result display formatting to use standard quote marks instead of curly quotes.
    • Revised separator styling between bounty-related links from middle-dot to dash format.

Review Change Stack

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 28, 2026

📝 Walkthrough

Walkthrough

The activity page template updates its search results notice text to use straight quotes instead of curly quotes around the query parameter, and changes the bounty link separator from a middle-dot character to a dash. The test assertions are updated to match the new rendered UI text.

Changes

Activity Page UI Text Formatting

Layer / File(s) Summary
Template quote style, separator, and test assertions
app/templates/activity.html, tests/test_activity.py
Activity template search results notice changes from curly quotes to straight quotes around {{ query }}; bounty link separator between row.bounty_url and bounty_issue_url changes from middle-dot to - format. Test assertions for q=bob, q=#12``, and q=alice queries updated to expect straight quotes in the "Showing accepted work matching …" message.

Possibly related PRs

  • ramimbo/mergework#449: Directly overlaps with adjustments to /activity template search notice text punctuation and corresponding test assertions for filtered queries.
🚥 Pre-merge checks | ✅ 5 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Bounty Pr Focus ⚠️ Warning PR claims activity.html-only scope but includes entire repo. Review flagged quote/separator inconsistencies in wallets.html, account.html, and bounties.html—these files are in commit but unaddressed. Either: (1) Restore only activity.html/test_activity.py changes; OR (2) Address review comments by fixing wallets.html curly quotes and account/bounties.html middle-dot separators.
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately names the changed surface (activity page) and the specific modification (ASCII punctuation), directly reflecting the main changeset.
Description check ✅ Passed The description includes all required template sections: summary of changes, evidence of the problem and validation steps (test results and linting), related issue reference, and clear reasoning for the change.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Mergework Public Artifact Hygiene ✅ Passed PR contains only punctuation/formatting changes; no investment claims, price claims, cash-out claims, payout fabrications, or security details present.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2


ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 6ce3bc30-ba3a-4622-ae3c-38a6a87ebebb

📥 Commits

Reviewing files that changed from the base of the PR and between d4bf32a and 3c738a6.

📒 Files selected for processing (2)
  • app/templates/activity.html
  • tests/test_activity.py

</form>
{% if query %}
<p class="notice">Showing accepted work matching {{ query }}.</p>
<p class="notice">Showing accepted work matching "{{ query }}".</p>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Description: Find notice templates that may still use curly quotes

rg -n -C2 'class="notice"' --glob 'app/templates/*.html'

Repository: ramimbo/mergework

Length of output: 4724


Standardize quote style in notice text (activity vs wallets)

app/templates/activity.html uses straight quotes: Showing accepted work matching "{{ query }}".
app/templates/wallets.html still uses curly quotes: Showing wallets matching “{{ query_text }}”.

Update wallets.html to use straight quotes if the goal is consistent ASCII punctuation across notice templates.

<dd>
{% if row.bounty_url %}<a href="{{ row.bounty_url }}">Bounty #{{ row.bounty_id }}</a>{% endif %}
{% if row.bounty_url and bounty_issue_url %} · {% endif %}
{% if row.bounty_url and bounty_issue_url %} - {% endif %}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Description: Find templates that may still use middle-dot separators

rg -n '·' --glob 'app/templates/*.html'

Repository: ramimbo/mergework

Length of output: 652


Standardize bounty-link separator punctuation across templates

  • app/templates/account.html still uses the middle-dot (·) in {% if work.bounty_url and issue_url %} · {% endif %}, while app/templates/activity.html uses - for the same condition.
  • app/templates/bounties.html still contains · separators in the bounty/reward/availability rows (around lines 53–59); switch them to - to match activity.html.

Copy link
Copy Markdown

@eliasx45 eliasx45 left a comment

Choose a reason for hiding this comment

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

Reviewed PR #588 at current head 3c738a64d4c459b40db439fad65d576221d24e2b.

No blocker found in the activity-page copy slice. The PR only replaces curly quotes in the search-result notice with ASCII quotes and swaps the middle-dot separator between bounty links for an ASCII hyphen. The activity tests now lock the ASCII-rendered search copy for normal, issue-ref, and no-match filtered states. I also checked that the template no longer contains the curly quote/middle-dot instances this PR targets.

Validation performed:

  • PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 .\.venv\Scripts\python.exe -m pytest tests\test_activity.py -q -> 3 passed
  • .\.venv\Scripts\python.exe -m ruff check tests\test_activity.py -> passed
  • .\.venv\Scripts\python.exe -m ruff format --check tests\test_activity.py -> 1 file already formatted
  • PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 .\.venv\Scripts\python.exe scripts\docs_smoke.py -> docs smoke ok
  • PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 .\.venv\Scripts\python.exe -m mypy app\activity.py app\serializers.py -> success
  • git diff --check origin/main...HEAD -> clean
  • current-main merge probe reported already up to date / clean branch state.

Hosted checks/CodeRabbit were still not populated or still processing when I reviewed, so this approval is scoped to the local source and behavior checks above.

@eliasx45
Copy link
Copy Markdown

Follow-up after CodeRabbit's two comments: I rechecked them against the PR scope and #576. Both are broader consistency suggestions outside this activity-page slice: wallets.html still has curly quotes in its own wallet search notice, and account.html / bounties.html still have middle-dot separators in separate template areas.

Those would be reasonable follow-up cleanup targets if the project wants a global ASCII-punctuation pass, but I do not see them invalidating this PR. The current diff only changes the activity page notice/separator and updates the activity-page tests accordingly; CodeRabbit/check status is now green/skipped, and my approval for the focused activity-page change stands.

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