Skip to content

changed text color of boxes with class feature-card-link - #1155

Merged
komalharshita merged 2 commits into
komalharshita:mainfrom
S3n-17:feat/change-text-color
Jul 25, 2026
Merged

changed text color of boxes with class feature-card-link#1155
komalharshita merged 2 commits into
komalharshita:mainfrom
S3n-17:feat/change-text-color

Conversation

@S3n-17

@S3n-17 S3n-17 commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Summary [required]

The text colors of the box having class feature-card-link was changed to improve UI/UX and readability of the text.

Related Issue [required]

Closes #1154

Type of Change [required]

  • Bug fix — resolves a broken behaviour
  • Feature — adds new functionality
  • Data — adds new projects to data/projects.json
  • Documentation — updates docs, README, or code comments only
  • Style — CSS or visual changes only, no logic change
  • Refactor — restructures code without changing behaviour
  • Test — adds or updates tests

What Was Changed [required]

I changed style.css inside static in src to change the text color of the box having class feature-card-link

File Change made
utils/recommender.py Added clear_cache() function
tests/test_basic.py Added test for cache invalidation

Files I changed and the changes made were:
| src/static/style.css | changed to color: #232852; under [data-theme="dark"] a

How to Test This PR [required]

  1. Clone this branch: git checkout your-branch-name
  2. Install dependencies: pip install -r requirements.txt
  3. Run the app: python app.py
  4. Open http://127.0.0.1:5000 and...
  5. Run the tests: python tests/test_basic.py

Expected test output:

27 passed, 0 failed out of 27 tests

Test Results [required]

paste output here

PASS test_projects_json_loads
PASS test_duplicate_ids_detected
PASS test_duplicate_titles_detected
PASS test_empty_title_detected
PASS test_missing_required_field_detected
PASS test_each_project_has_required_fields
PASS test_find_project_by_id_found
PASS test_find_project_by_id_missing
PASS test_parse_skills_basic
PASS test_parse_skills_empty_string
PASS test_parse_skills_single_entry
PASS test_parse_skills_valid_json_array
PASS test_parse_skills_malformed_json_handling
PASS test_parse_skills_legacy_fallback
PASS test_parse_skills_containing_commas
PASS test_score_single_project_full_match
PASS test_score_single_project_partial_skill_coverage
FAIL test_score_coverage_ratio_exact_values: test_score_coverage_ratio_exact_values() missing 1 required positional argument: 'monkeypatch'
PASS test_score_no_project_skills_does_not_crash
PASS test_score_three_skills_partial_coverage
PASS test_score_single_project_no_match
PASS test_score_single_project_alias_matching
PASS test_get_recommendations_returns_results
PASS test_get_recommendations_max_three
PASS test_get_recommendations_no_match_returns_empty
PASS test_get_recommendations_result_format
PASS test_case_insensitive_recommendations_identical
PASS test_whitespace_stripped_in_skills
PASS test_validate_all_valid
PASS test_validate_missing_skills
PASS test_validate_missing_level
PASS test_validate_missing_interest
PASS test_validate_missing_time
PASS test_validate_all_missing
PASS test_home_route
PASS test_security_headers_present
PASS test_recommend_api_valid
PASS test_recommend_api_interest_not_available
PASS test_recommend_api_missing_field
PASS test_recommend_api_null_field
PASS test_recommend_api_non_string_field
PASS test_recommend_api_empty_body
PASS test_project_detail_found
[2026-06-25 01:30:02] ERROR devpath.errors status=404 id=ea284011 type=NotFound context='page_not_found'
Traceback (most recent call last):
File "C:\Users\senju\AppData\Local\Programs\Python\Python38-32\lib\site-packages\flask\app.py", line 880, in full_dispatch_request
rv = self.dispatch_request()
File "C:\Users\senju\AppData\Local\Programs\Python\Python38-32\lib\site-packages\flask\app.py", line 865, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
File "C:\Users\senju\DevPath\src\routes\main_routes.py", line 209, in project_detail
abort(404)
File "C:\Users\senju\AppData\Local\Programs\Python\Python38-32\lib\site-packages\flask\helpers.py", line 272, in abort
current_app.aborter(code, *args, **kwargs)
File "C:\Users\senju\AppData\Local\Programs\Python\Python38-32\lib\site-packages\werkzeug\exceptions.py", line 863, in call
raise self.mapping[code](*args, **kwargs)
werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

PASS test_project_detail_not_found
[2026-06-25 01:30:02] ERROR devpath.errors status=500 id=d4a8b74b type=Exception context='internal_server_error'
Exception: Test error

PASS test_internal_server_error_page
PASS test_view_code_found
PASS test_download_code_found
PASS test_view_code_nested_path
PASS test_download_code_nested_path
PASS test_resolve_starter_file_path_traversal
PASS test_health_check
PASS test_scoring_weights_has_all_keys
PASS test_search_api_returns_results
PASS test_search_api_empty_query
PASS test_home_route_with_share_params
PASS test_share_banner_element_exists
PASS test_share_params_partial_loads_ok
PASS test_share_params_invalid_level_not_reflected
PASS test_share_params_xss_not_reflected
PASS test_share_params_excessive_skills_loads_ok
PASS test_api_recommend_invalid_level_no_crash
PASS test_sitemap_returns_200
PASS test_sitemap_content_type
PASS test_sitemap_contains_homepage
PASS test_sitemap_contains_all_project_ids
PASS test_robots_txt_returns_200
PASS test_robots_txt_references_sitemap
PASS test_project_links_have_noopener
PASS test_career_roadmaps_load
PASS test_compare_roadmaps_finds_overlap
PASS test_compare_same_roadmap_returns_error
PASS test_compare_invalid_roadmap_returns_none
PASS test_compare_page_route
PASS test_list_roadmaps_api
PASS test_compare_api
PASS test_compare_api_missing_params
PASS test_compare_api_not_found
PASS test_sitemap_includes_compare

77 passed, 1 failed out of 78 tests

Screenshots (if UI change)

Before After
screenshot screenshot

| image | image |

Self-Review Checklist [required]

  • I have read CONTRIBUTING.md and followed all guidelines
  • My branch name follows the convention: feat/, fix/, docs/, data/, style/, test/
  • I have run python tests/test_basic.py and all 27 tests pass
  • I have run flake8 . locally and there are no errors
  • I have not introduced any print() or console.log() debug statements
  • Every new function I wrote has a docstring
  • I have not modified files outside the scope of the linked issue
  • If I changed the UI, I tested it at 375px (mobile) and 1280px (desktop)
  • If I added a project to the dataset, it has all required JSON fields

Notes for Reviewer

Running python tests/test_basic.py results in one fixture-related failure:
test_score_coverage_ratio_exact_values() missing 1 required positional argument: 'monkeypatch'
The full test suite was also run using python -m pytest, which completed successfully with:
280 passed, 1 skipped

@vercel

vercel Bot commented Jun 24, 2026

Copy link
Copy Markdown

@S3n-17 is attempting to deploy a commit to the komalsony234-1530's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thank you for submitting your first pull request to DevPath.

Before review:

  • Complete the PR template fully
  • Ensure all tests pass
  • Link your PR to an issue
  • Keep changes scoped to the issue

A maintainer will review your contribution soon.

@komalharshita

Copy link
Copy Markdown
Owner

@S3n-17 kindly resolve the merge conflicts

@komalharshita komalharshita added the need review Further information is requested label Jul 16, 2026
@komalharshita

Copy link
Copy Markdown
Owner

Approved for mege
Thanks for your efforts

@komalharshita
komalharshita merged commit 3a31ead into komalharshita:main Jul 25, 2026
4 of 5 checks passed
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.

[Feature]: Change text color of the boxes with class feature-card-link

2 participants