Skip to content

Views improvements#57

Merged
blocknotes merged 2 commits intomainfrom
views-improvements
Mar 25, 2026
Merged

Views improvements#57
blocknotes merged 2 commits intomainfrom
views-improvements

Conversation

@blocknotes
Copy link
Owner

Description

In this PR:

  • (fix) guard against nil values and fix flash CSS classes
  • (chore) extract shared Attributes, ActionsButtons, and ErrorPage

@blocknotes blocknotes self-assigned this Mar 24, 2026
Fix params_to_s pushing [string] instead of string and add URL encoding
via CGI.escape. Fix Flash component using "notices" CSS class for all
message types instead of "warnings"/"errors". Add nil guard on
Head#style_links and Store#prepare_sections navbar. Add rescue in
Support.to_date for values that do not respond to to_date.
…Page

DRY up duplicated update_attributes into a Views::Attributes module
shared by BasicLayout and BasicComponent. Extract inline actions_buttons
methods from Index and Show into a reusable ActionsButtons component.
Consolidate three identical error page view_templates into an ErrorPage
base class. Also adds nil guard on field access in Index and Show
table/record iteration.
@blocknotes blocknotes marked this pull request as ready for review March 25, 2026 18:10
@blocknotes blocknotes merged commit 9ab8ca6 into main Mar 25, 2026
7 checks passed
@blocknotes blocknotes deleted the views-improvements branch March 25, 2026 18:10
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.

1 participant