Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 22, 2026

Standardizes button color semantics across the application and adds Font Awesome icons to all Add/Save buttons for better visual consistency. Previously, both is-success and is-primary were used inconsistently for similar actions, and many buttons lacked icons.

Changes

Buttons updated to is-success (green):

  • All Add/Create operations (Add User, Create Shift, Add Tag, etc.)
  • All Save/Update operations (Save Changes, Update Employee, etc.)

Buttons updated to is-primary (blue):

  • Select operations (choosing existing work orders/tasks)
  • Complete operations (marking milestones complete)
  • Recover operations (undeleting items)

Icons added:

  • Added fa-plus icon to ~30 Add/Create buttons that didn't have icons
  • Added fa-save icon to ~20 Save/Update buttons that didn't have icons
  • Changed fa-check to fa-plus in shifts-addAdhocTask for consistency

Examples

<!-- Add User modal - style change -->
- <button class="button is-primary" type="submit" form="form--addUser">
+ <button class="button is-success" type="submit" form="form--addUser">

<!-- Add User modal - icon addition -->
- <button class="button is-success" type="submit" form="form--addUser">
-   Add User
+ <button class="button is-success" type="submit" form="form--addUser">
+   <span class="icon"><i class="fa-solid fa-plus"></i></span>
+   <span>Add User</span>

<!-- Select Work Order button -->
- <button class="button is-small is-success button--select" type="button">
+ <button class="button is-small is-primary button--select" type="button">

Scope

  • 45 HTML modal files (style changes)
  • 39 HTML modal files (icon additions)
  • 6 TypeScript files + 6 compiled JavaScript files
  • Visual enhancements only - no functional changes

Visual Result

All buttons now have consistent styling and iconography:

  • 🟢 Green with ➕ icon = Add/Create operations
  • 🟢 Green with 💾 icon = Save/Update operations
  • 🔵 Blue = Select/Complete/Recover operations
Original prompt

Update all "Add" and "Save" buttons to use the "is-success" button style. Buttons currently using the "is-success" that are not "add" or "save" buttons should use "is-primary" instead.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@deepsource-io
Copy link

deepsource-io bot commented Jan 22, 2026

Here's the code health analysis summary for commits a3ea6b2..40b97d6. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource JavaScript LogoJavaScript✅ SuccessView Check ↗

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

Copilot AI and others added 4 commits January 22, 2026 18:13
…/Recover to is-primary

Co-authored-by: dangowans <19495149+dangowans@users.noreply.github.com>
Copilot AI changed the title [WIP] Update button styles for Add and Save actions Standardize button styles: is-success for Add/Save, is-primary for Select/Complete/Recover Jan 22, 2026
Copilot AI requested a review from dangowans January 22, 2026 18:19
@dangowans
Copy link
Member

@copilot Update "add" buttons that do not include an icon to include the "fa-plus" icon. Update the "save" buttons that do not include an icon to include the "fa-save" icon.

dangowans and others added 2 commits January 22, 2026 13:24
Copy link
Contributor Author

Copilot AI commented Jan 22, 2026

@copilot Update "add" buttons that do not include an icon to include the "fa-plus" icon. Update the "save" buttons that do not include an icon to include the "fa-save" icon.

Done in cebc48b. Added fa-plus icons to ~30 Add/Create buttons and fa-save icons to ~20 Save/Update buttons that were missing icons.

Examples:

  • Add buttons: <span class="icon"><i class="fa-solid fa-plus"></i></span>
  • Save buttons: <span class="icon"><i class="fa-solid fa-save"></i></span>

All green (is-success) buttons now have appropriate icons for better visual consistency.

Copilot AI changed the title Standardize button styles: is-success for Add/Save, is-primary for Select/Complete/Recover Standardize button styles and add icons: is-success for Add/Save, is-primary for Select/Complete/Recover Jan 22, 2026
@dangowans dangowans marked this pull request as ready for review January 22, 2026 18:30
@dangowans dangowans merged commit f4760ce into main Jan 22, 2026
8 checks passed
@sonarqubecloud
Copy link

@dangowans dangowans deleted the copilot/update-button-styles branch January 22, 2026 19:21
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