Skip to content

Commit

Permalink
Add new menu item constants for data, layout, risk, leadership, count…
Browse files Browse the repository at this point in the history
…ry, decision, ministry, page visit, and admin functionalities
  • Loading branch information
pethers authored Jan 16, 2025
1 parent 7e61e20 commit 8a98f7f
Show file tree
Hide file tree
Showing 14 changed files with 429 additions and 345 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
package com.hack23.cia.web.impl.ui.application.views.common.menufactory.api;

public interface MenuItemAdminConstants {
String ADMIN_TEXT = "Admin";
String AGENCY = "Agency";
String AGENT_OPERATIONS_TEXT = "Agent operations";
String APPLICATION = "Application";
String APPLICATION_CONFIGURATION = "System settings";
String APPLICATION_EVENT = "Application Event";
String APPLICATION_EVENT_CHARTS = "Application Event charts";
String APPLICATION_SESSION = "Application Session";
String APPLICATION_SESSION_CHARTS = "Active Daily Users";
String SYSTEM_PERFORMANCE = "System Performance";
String MANAGEMENT = "Management";
String CONFIGURATION = "Configuration";
String PORTAL = "Portal";
String EMAIL = "Email";
String LANGUAGE = "Language";


/** The Constant DATA_AUTHOR_SUMMARY. */
String DATA_AUTHOR_SUMMARY = "Data author summary";

/** The Constant DATA_SUMMARY_TEXT. */
String DATA_SUMMARY_TEXT = "Data Summary";



}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ public interface MenuItemCommitteeConstants {
String DOCUMENTS_TEXT = "Documents";
String BALLOTS_TEXT = "Ballots";
String BALLOT_DECISION_SUMMARY_TEXT = "Ballot Decision Summary";
String DECISION_SUMMARY_TEXT = "Decision Summary";

// Other committee constants
String CURRENT_COMMITTEES_TEXT = "Current Committees";
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.hack23.cia.web.impl.ui.application.views.common.menufactory.api;

public interface MenuItemCountryConstants {
String COUNTRY = "Country";
String COUNTRY_RANKING_TEXT = "Country Ranking";
String COUNTRY_OVERVIEW_TEXT = "Country Overview";
String COUNTRY_INDICATORS_SWEDEN = "Country Indicators Sweden";
String COUNTRY_RANKING_LINK_TEXT = "Country Ranking";
String COUNTRY_RANKING_DESCRIPTION = "Sweden's governance: key indicators.";
String SWEDEN_DASHBOARD = "Sweden Dashboard";
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package com.hack23.cia.web.impl.ui.application.views.common.menufactory.api;

public interface MenuItemDataConstants {
int DATA_POINTS_FOR_YEAR_ABOVE = 2000;
int MINIMUM_NUMBER_DATA_POINTS = 10;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package com.hack23.cia.web.impl.ui.application.views.common.menufactory.api;

public interface MenuItemDecisionConstants {
String DECISION_FLOW = "Decision Flow";
String DECISION_ACTIVITY_BY_TYPE = "Decision Activity by Type";
String DECISION_ACTIVITY_DESCRIPTION = "Decision activity description";
String DECISION_FLOW_DESCRIPTION = "Decision flow description";

String DECISION_SUMMARY_TEXT = "Decision Summary";
String DECISION_SUMMARY_DESCRIPTION = "Decision summary description";
String DECISION_TYPE_DAILY_SUMMARY_TEXT = "Decision Type Daily Summary";
String DECISION_TYPE_DAILY_SUMMARY_DESCRIPTION = "Decision type daily summary description";
String BALLOT_DECISION_SUMMARY_DESCRIPTION = "Ballot decision summary description";
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ public interface MenuItemLayoutConstants {
String MENU_BAR_WIDTH = "80%";
String HEADER_STYLE_NAME = "Header";
String LINK_STYLE_NAME = "link";


}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package com.hack23.cia.web.impl.ui.application.views.common.menufactory.api;

public interface MenuItemLeadershipConstants {
String CURRENT_LEADERS = "Current Leaders";
String CURRENT_LEADERS_DESCRIPTION = "Current leaders description";
String LEADER_HISTORY = "Leader History";
String LEADER_HISTORY_DESCRIPTION = "Leader history description";
String DESC_LEADERS_SCOREBOARD = "Leaders: comparing party leadership impact.";
String PART_LEADERS_SCOREBOARD = "Party leaders scoreboard";
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package com.hack23.cia.web.impl.ui.application.views.common.menufactory.api;

public interface MenuItemMinistryConstants {
String MINISTRIES_LINK_TEXT = "Ministries";
String MINISTRY_RANKING = "Ministry Ranking";
String MINISTRY_RANKING_LINK_TEXT = MINISTRY_RANKING;
String MINISTRY_RANKING_DESCRIPTION = "Ministry influence on policy.";
String MINISTRIES_DESCRIPTION = "All ministries: roles and commitments.";
String MINISTRY_DOCUMENT_ACTIVITY_TEXT = "Document Activity";
String MINISTRY_OVERVIEW_TEXT = "Overview";
String MINISTRIES_LEADER_SCOREBOARD = "Government Ministers Scoreboard";
String MINISTRIES_LEADER_SCOREBOARD_DESCRIPTION = "Cabinet leaders: power and institutional impact.";
String CURRENT_MINISTRIES_CURRENT_MEMBERS_TEXT = "Current Ministries, Current Members";
String ALL_MINISTRIES_TOTAL_MEMBERS = "All Ministries, Total Members";
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package com.hack23.cia.web.impl.ui.application.views.common.menufactory.api;

/**
* Constants for page visit history related menu items.
*/
public interface MenuItemPageVisitConstants {
String PAGE_VISIT_HISTORY_TEXT = "Page Visit History";
String DESC_PAGE_VISIT_HISTORY = "Visit history: tracking public engagement patterns.";

// Ministry related
String MINISTRY_PAGE_VISIT_HISTORY_TEXT = "Page Visit History";
String MINISTRY_PAGE_VISIT_HISTORY_DESCRIPTION = "View history of page visit for this page.";

// Document related
String DOCUMENT_PAGE_VISIT_HISTORY_TEXT = "Document Page Visit History";

// Country related
String COUNTRY_PAGE_VISIT_HISTORY_TEXT = "Country Page Visit History";


// Government Body related
String GOVERNMENT_BODY_PAGE_VISIT_HISTORY_TEXT = "Government Body Page Visit History";
String GOVERNMENT_BODY_PAGE_VISIT_HISTORY_DESCRIPTION = "Government body page visit history description";
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package com.hack23.cia.web.impl.ui.application.views.common.menufactory.api;

public interface MenuItemParliamentConstants {
String PARLIAMENT_RANKING_TEXT = "Parliament Ranking";
String PARLIAMENT_RANKING_LINK_TEXT = "Parliament Ranking";
String PARLIAMENT_RANKING_DESCRIPTION = "Parliament: legislative effectiveness.";
String SWEDISH_PARLIAMENT_INDICATORS = "Swedish Parliament Indicators";

String MINISTRY_DOCUMENT_ACTIVITY_TEXT = "Document Activity";

String MINISTRY_OVERVIEW_TEXT = "Overview";

// Label constants
String ALL_PARTIES_TOTAL_DAYS_SERVED_IN_PARLIAMENT = "All parties total days served in parliament";
String CURRENT_PARTIES_ACTIVE_IN_COMMITTEES_HEAD_COUNT = "Current parties in committees";
String CURRENT_PARTIES_ACTIVE_IN_MINISTRIES_HEAD_COUNT_TEXT = "Current parties in government";
String CURRENT_PARTIES_ACTIVE_IN_PARLIAMENT_HEAD_COUNT = "Current parties in parliament";
String PARTY_BY_TOTAL_MEMBERS_BASED_ON_ROLES_IN_DEPARTMENTS_COMMITTEES_AND_PARLIAMENT = "Party by total members across EU/gov/committees/parliament";

// Political analyst perspective descriptions (~50 chars)
String DESC_ALL_PARTIES_ROLES = "All parties: influence across key institutions.";
String DESC_GOVERNMENT_HEADCOUNT = "Governing parties: evaluating institutional strength.";
String DESC_COMMITTEES_HEADCOUNT = "Committees: parties' agenda-setting influence.";
String DESC_PARLIAMENT_HEADCOUNT = "Parliament: mapping party legislative leverage.";
String DESC_DAYS_SERVED_PARLIAMENT = "All parties: experience shaping policy timelines.";


}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,25 @@ public interface MenuItemPartyConstants {
String PARTIES_LINK_TEXT = "Parties";
String PARTY_RANKING_DESCRIPTION = "Parties: influence on agenda.";
String PARTIES_DESCRIPTION = "All parties: leadership and policy roles.";
// ...add other party-related constants...
// String constants


/** The Constant ROLE_CHART_PARTY_LEADERS. */
String ROLE_CHART_PARTY_LEADERS = "Role chart, party leaders";

/** The Constant VOTE_HISTORY. */
String VOTE_HISTORY = "Vote history";

/** The Constant ROLE_CHART_PARTY_LEADERS_DESCRIPTION. */
String ROLE_CHART_PARTY_LEADERS_DESCRIPTION = "Gantt chart all party leaders";

/** The Constant PARTY_WON_DAILY_SUMMARY_CHART_DESCRIPTION. */
String PARTY_WON_DAILY_SUMMARY_CHART_DESCRIPTION = "Chart for Party over won,absent and party rebel votes";

/** The Constant PARTY_AGAINST_COALATIONS_SUMMARY_DESCRIPTION. */
String PARTY_AGAINST_COALATIONS_SUMMARY_DESCRIPTION = "Coalations with groups of diffrent parties aginst committe proposals ballots";

/** The Constant PARTY_SUPPORT_SUMMARY_DESCRIPTION. */
String PARTY_SUPPORT_SUMMARY_DESCRIPTION = "Trend of agreements with other parties during ballots";

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.hack23.cia.web.impl.ui.application.views.common.menufactory.api;

public interface MenuItemRiskConstants {
String RISK_SUMMARY = "Risk Summary";
String RISK_SUMMARY_DESCRIPTION = "Risk summary description";
String RULE_VIOLATIONS = "Rule Violations";
String RULE_VIOLATIONS_DESCRIPTION = "Rule violations description";
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package com.hack23.cia.web.impl.ui.application.views.common.menufactory.api;

public interface MenuItemStatisticsConstants {
String HEADCOUNT = "Headcount";
String HEADCOUNT_CHART = "Headcount Chart";
String HEADCOUNT_DESCRIPTION = "Headcount description";
String INCOME = "Income";
String INCOME_DESCRIPTION = "Income description";
String EXPENDITURE = "Expenditure";
String EXPENDITURE_DESCRIPTION = "Expenditure description";
String TOTAL_MEMBERS = "Total members";
}

0 comments on commit 8a98f7f

Please sign in to comment.