-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(constants): add committee and document view constants for improv…
…ed readability
- Loading branch information
Showing
42 changed files
with
657 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
...om/hack23/cia/web/impl/ui/application/views/user/ballot/pagemode/BallotViewConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package com.hack23.cia.web.impl.ui.application.views.user.ballot.pagemode; | ||
|
||
/** | ||
* Constants for the ballot view pages. | ||
*/ | ||
public interface BallotViewConstants { | ||
// Overview page constants | ||
String OVERVIEW_MAIN_TITLE_PREFIX = "Ballot Overview "; | ||
String OVERVIEW_PAGE_DESCRIPTION = "Explore and analyze ballot results and voting statistics."; | ||
String OVERVIEW_CARD_BALLOT_INFO = "Ballot Information"; | ||
String OVERVIEW_CARD_BALLOT_PROFILE = "Ballot Profile"; | ||
String OVERVIEW_CARD_VOTING_STATS = "Voting Statistics"; | ||
|
||
// Grid constants | ||
String GRID_PARTY_BALLOT_SUMMARY = "Party Ballot Summary"; | ||
String GRID_EMBEDDED_ID_PARTY = "embeddedId.party"; | ||
|
||
// Field labels | ||
String FIELD_VOTE_DATE = "Vote Date:"; | ||
String FIELD_TITLE = "Title:"; | ||
String FIELD_SUBTITLE = "Subtitle:"; // Fixed: Added missing constant | ||
String FIELD_DECISION_TYPE = "Decision Type:"; | ||
String FIELD_CONCERN = "Concern:"; | ||
String FIELD_BALLOT_TYPE = "Ballot Type:"; | ||
String FIELD_WINNER = "Winner:"; | ||
String FIELD_APPROVED = "Approved:"; | ||
String FIELD_BALLOT_ID = "Ballot ID:"; | ||
String FIELD_RM = "RM:"; | ||
String FIELD_ISSUE = "Issue:"; | ||
String FIELD_LABEL = "Label:"; | ||
String FIELD_TOTAL_VOTES = "Total Votes:"; | ||
String FIELD_YES_VOTES = "Yes Votes:"; | ||
String FIELD_NO_VOTES = "No Votes:"; | ||
String FIELD_ABSTAIN_VOTES = "Abstain Votes:"; | ||
String FIELD_ABSENT_VOTES = "Absent Votes:"; | ||
|
||
// Charts page constants | ||
String CHARTS_TITLE_PREFIX = "Ballot Charts : "; | ||
String CHARTS_SUBTITLE = "Ballot Trends and Visualizations"; | ||
String CHARTS_DESCRIPTION = "Provides insights into election trends by visualizing ballot data, assisting in strategic decision-making and voter engagement analysis."; | ||
} |
21 changes: 21 additions & 0 deletions
21
...3/cia/web/impl/ui/application/views/user/committee/pagemode/CommitteeActionConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.hack23.cia.web.impl.ui.application.views.user.committee.pagemode; | ||
|
||
public interface CommitteeActionConstants { | ||
// Decision Flow | ||
String DF_YEAR_SELECTOR = "Select year"; | ||
|
||
// Decision Data | ||
String DD_TITLE_HEADER = "Daily Committee Decisions "; | ||
String DD_TITLE = "Summary of Decision Types"; | ||
String DD_DESCRIPTION = "Displays a summary of daily committee decision-making activity."; | ||
|
||
// Decision Summary | ||
String DS_TITLE_HEADER = "Committee Decision Summary"; | ||
String DS_TITLE = "Decision Summary"; | ||
String DS_DESCRIPTION = "Overview of decisions made by the committee."; | ||
|
||
// Ballot Decision | ||
String BD_TITLE_HEADER = "Committee Ballot Decision Summary "; | ||
String BD_TITLE = "Ballot Decision Summary"; | ||
String BD_DESCRIPTION = "Summary of ballot decisions made by the specified committee."; | ||
} |
21 changes: 21 additions & 0 deletions
21
...3/cia/web/impl/ui/application/views/user/committee/pagemode/CommitteeBallotConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.hack23.cia.web.impl.ui.application.views.user.committee.pagemode; | ||
|
||
public interface CommitteeBallotConstants { | ||
String BALLOT_ID = "ballotId"; | ||
String COMMITTEE_BALLOT_DECISION_SUMMARY = "Committee Ballot Decision Summary"; | ||
|
||
String[] BALLOT_COLUMN_ORDER = { "voteDate", "embeddedId.concern", "embeddedId.id", | ||
"committeeReport", "embeddedId.issue", "rm", "title", "subTitle", "endNumber", "org", "createdDate", | ||
"publicDate", "ballotId", "decisionType", "againstProposalParties", "againstProposalNumber", "winner", | ||
"ballotType", "label", "avgBornYear", "totalVotes", "yesVotes", "noVotes", "abstainVotes", "absentVotes", | ||
"approved", "noWinner", "percentageYes", "percentageNo", "percentageAbsent", "percentageAbstain", | ||
"percentageMale" }; | ||
|
||
String[] BALLOT_HIDE_COLUMNS = { "embeddedId", "embeddedId.id", "endNumber", "org", | ||
"createdDate", "publicDate", "ballotId", "decisionType", "label", "againstProposalNumber", "avgBornYear", | ||
"percentageMale", "approved", "noWinner", "ballotType", "percentageYes", "percentageNo", "percentageAbsent", | ||
"percentageAbstain" }; | ||
|
||
String[] BALLOT_NESTED_PROPERTIES = { "embeddedId.concern", "embeddedId.issue", | ||
"embeddedId.id" }; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.