` ).
- ri_html->add( zcl_abapgit_gui_chunk_lib=>render_repo_top( io_repo = mo_repo
- iv_show_commit = abap_false ) ).
- ri_html->add( `
` ).
+ ri_html->div(
+ iv_class = 'repo'
+ ii_content = zcl_abapgit_gui_chunk_lib=>render_repo_top(
+ io_repo = mo_repo
+ iv_show_commit = abap_false ) ).
- ri_html->add( '' ).
-
- ri_html->add( render_variant(
+ render_ci_report(
+ ii_html = ri_html
iv_variant = c_variant
- iv_summary = mv_summary ) ).
-
- IF lines( mt_result ) = 0.
- ri_html->add( '
' ).
- ri_html->add( ri_html->icon( 'check' ) ).
- ri_html->add( 'No syntax errors' ).
- ri_html->add( '
' ).
- ELSE.
- render_result( ii_html = ri_html
- it_result = mt_result ).
- ENDIF.
+ iv_success_msg = 'No syntax errors' ).
ENDMETHOD.
ENDCLASS.
diff --git a/src/ui/pages/zcl_abapgit_gui_page_stage.clas.abap b/src/ui/pages/zcl_abapgit_gui_page_stage.clas.abap
index c9a67bce4..ecc824046 100644
--- a/src/ui/pages/zcl_abapgit_gui_page_stage.clas.abap
+++ b/src/ui/pages/zcl_abapgit_gui_page_stage.clas.abap
@@ -25,6 +25,7 @@ CLASS zcl_abapgit_gui_page_stage DEFINITION
iv_seed TYPE string OPTIONAL
iv_sci_result TYPE zif_abapgit_definitions=>ty_sci_result DEFAULT zif_abapgit_definitions=>c_sci_result-no_run
ii_obj_filter TYPE REF TO zif_abapgit_object_filter OPTIONAL
+ ii_force_refresh TYPE abap_bool DEFAULT abap_true
RETURNING
VALUE(ri_page) TYPE REF TO zif_abapgit_gui_renderable
RAISING
@@ -36,6 +37,7 @@ CLASS zcl_abapgit_gui_page_stage DEFINITION
iv_seed TYPE string OPTIONAL
iv_sci_result TYPE zif_abapgit_definitions=>ty_sci_result DEFAULT zif_abapgit_definitions=>c_sci_result-no_run
ii_obj_filter TYPE REF TO zif_abapgit_object_filter OPTIONAL
+ ii_force_refresh TYPE abap_bool DEFAULT abap_true
RAISING
zcx_abapgit_exception.
@@ -135,7 +137,7 @@ ENDCLASS.
-CLASS zcl_abapgit_gui_page_stage IMPLEMENTATION.
+CLASS ZCL_ABAPGIT_GUI_PAGE_STAGE IMPLEMENTATION.
METHOD check_selected.
@@ -184,6 +186,11 @@ CLASS zcl_abapgit_gui_page_stage IMPLEMENTATION.
super->constructor( ).
+ " force refresh on stage, to make sure the latest local and remote files are used
+ IF ii_force_refresh = abap_true.
+ io_repo->refresh( ).
+ ENDIF.
+
mo_repo = io_repo.
mv_seed = iv_seed.
mv_sci_result = iv_sci_result.
@@ -231,6 +238,7 @@ CLASS zcl_abapgit_gui_page_stage IMPLEMENTATION.
io_repo = io_repo
iv_seed = iv_seed
iv_sci_result = iv_sci_result
+ ii_force_refresh = ii_force_refresh
ii_obj_filter = ii_obj_filter.
ri_page = zcl_abapgit_gui_page_hoc=>create(
diff --git a/src/ui/routing/zcl_abapgit_gui_router.clas.abap b/src/ui/routing/zcl_abapgit_gui_router.clas.abap
index 83bf55134..d9d36f968 100644
--- a/src/ui/routing/zcl_abapgit_gui_router.clas.abap
+++ b/src/ui/routing/zcl_abapgit_gui_router.clas.abap
@@ -142,7 +142,7 @@ ENDCLASS.
-CLASS zcl_abapgit_gui_router IMPLEMENTATION.
+CLASS ZCL_ABAPGIT_GUI_ROUTER IMPLEMENTATION.
METHOD abapgit_services_actions.
@@ -402,9 +402,6 @@ CLASS zcl_abapgit_gui_router IMPLEMENTATION.
ENDIF.
IF ri_page IS INITIAL.
- " force refresh on stage, to make sure the latest local and remote files are used
- lo_repo->refresh( ).
-
ri_page = zcl_abapgit_gui_page_stage=>create(
io_repo = lo_repo
iv_seed = lv_seed
diff --git a/src/ui/zabapgit_css_common.w3mi.data.css b/src/ui/zabapgit_css_common.w3mi.data.css
index c955b9a8a..8d6c205e9 100644
--- a/src/ui/zabapgit_css_common.w3mi.data.css
+++ b/src/ui/zabapgit_css_common.w3mi.data.css
@@ -1183,23 +1183,100 @@ table ul.repo-labels li {
word-wrap: break-word;
}
+/* TABLE COMPONENT DEFAULT STYLE */
+
+div.default-table-container {
+ padding: 6px 0.5em;
+ background-color: white;
+ border-radius: 6px;
+}
+
+table.default-table {
+ line-height: 1.5;
+ width: 100%;
+}
+
+table.default-table thead tr {
+ border-bottom: #efefef solid 1px;
+}
+/*table.default-table tbody tr {
+ border-bottom: #efefef solid 1px;
+}
+table.default-table tbody tr:last-child {
+ border-bottom: none;
+}*/
+
+table.default-table td,
+table.default-table th {
+ padding: 6px 8px;
+ text-align: left;
+}
+
+table.default-table th span.sort-arrow {
+ display: inline-block;
+ color: hsla(0, 0%, 0%, 0.15);
+ width: 1em; /*for constant width*/
+ text-align: right;
+}
+
+table.default-table th span.sort-active {
+ color: #4078c0;
+}
+
+table.default-table th {
+ padding-bottom: 10px;
+}
+
/* CODE INSPECTOR */
-.ci-head { padding: 0.5em 1em; }
-.ci-head .package-name span { margin-left: 0.3em; }
-.ci-variant { font-weight: bold; }
-.ci-result {
- padding: 6px;
- margin-top: 4px;
+div.ci {
+ margin-top: 1px;
+ margin-bottom: 1px;
}
-.ci-result li {
- list-style-type: none;
- padding: 0.3em 0.8em;
- margin-top: 6px;
- border-left: 4px solid;
+
+div.ci-msg {
+ padding: 0.7em 1em 0.5em;
+}
+div.ci-msg span.ci-variant {
+ font-weight: bold;
+}
+
+div.ci-stats {
+ padding: 0.5em 1em;
+}
+div.ci-stats span.count {
+ display: inline-block;
+ padding: 2px 6px;
+ border-radius: 3px;
+ border: 1px solid;
+}
+
+div.ci-detail {
+ padding: 6px 0.5em;
+}
+
+div.ci-detail table td,
+div.ci-detail table th {
+ vertical-align: text-top;
+}
+
+div.ci-detail table th[data-cid="kind"],
+div.ci-detail table th[data-cid="obj_type"] {
+ white-space: nowrap
+}
+
+div.ci-detail table td[data-cid="kind"] span {
+ display: inline-block;
+ border-radius: 3px;
+ width: 1em;
+ height: 1em;
+ vertical-align: inherit;
+ color: transparent;
+}
+
+div.ci-detail table td[data-cid="text"] {
+ font-size: smaller;
}
-.ci-result li:first-child { margin-top: 0px; }
-.ci-result li > span { display: block; }
/* FLOATING BUTTONS */
diff --git a/src/ui/zabapgit_css_theme_default.w3mi.data.css b/src/ui/zabapgit_css_theme_default.w3mi.data.css
index 3e90bf48c..2a369aedd 100644
--- a/src/ui/zabapgit_css_theme_default.w3mi.data.css
+++ b/src/ui/zabapgit_css_theme_default.w3mi.data.css
@@ -405,14 +405,39 @@ div.corner-hint {
/* CODE INSPECTOR */
-.ci-head { background-color: var(--theme-container-background-color); }
-.ci-head .package-name span { color: grey; }
-.ci-variant { color: #444; }
-.ci-result { background-color: #f6f6f6; }
-.ci-result li { color: #444; }
-.ci-result li.ci-error { border-left-color: #cd5353; }
-.ci-result li.ci-warning { border-left-color: #ecd227; }
-.ci-result li.ci-info { border-left-color: #acacac; }
+div.ci { background-color: var(--theme-container-background-color); }
+
+div.ci-msg span.ci-variant { color: var(--theme-primary-font-color); }
+
+div.ci-stats span.error-count {
+ border-color: hsl(350, 100%, 80%);
+ background-color: hsl(350, 100%, 90%);
+}
+div.ci-stats span.warn-count {
+ border-color: hsl(60, 100%, 42%);
+ background-color: hsl(60, 100%, 90%);
+}
+div.ci-stats span.info-count {
+ border-color: hsl(120, 80%, 80%);
+ background-color: hsl(120, 80%, 94%);
+}
+div.ci-stats span.all-count {
+ border-color: hsl(235, 100%, 89%);
+ background-color: hsl(235, 100%, 93%);
+}
+div.ci-detail table td[data-cid="text"] {
+ color: hsl(0, 0%, 40%);
+}
+
+div.ci-detail table tr[data-kind="error"] td[data-cid="kind"] span {
+ background-color: hsl(0, 100%, 68%);
+}
+div.ci-detail table tr[data-kind="warning"] td[data-cid="kind"] span {
+ background-color:hsl(52, 100%, 49%);
+}
+div.ci-detail table tr[data-kind="info"] td[data-cid="kind"] span {
+ background-color: hsl(118, 67%, 47%);
+}
/* COMMAND PALETTE */