diff --git a/backend/resources/app/templates/error-list.tmpl b/backend/resources/app/templates/error-list.tmpl index d86d983d3..73520aa36 100644 --- a/backend/resources/app/templates/error-list.tmpl +++ b/backend/resources/app/templates/error-list.tmpl @@ -11,7 +11,8 @@ penpot - error list
diff --git a/backend/resources/app/templates/styles.css b/backend/resources/app/templates/styles.css index 32fcea888..d57fd0460 100644 --- a/backend/resources/app/templates/styles.css +++ b/backend/resources/app/templates/styles.css @@ -137,8 +137,6 @@ nav > div:not(:last-child) { margin: 0px; padding: 0px; flex-direction: column; - flex-wrap: wrap; - height: calc(100vh - 75px); justify-content: flex-start; } @@ -151,19 +149,31 @@ nav > div:not(:last-child) { margin: 0px 20px; cursor: pointer; display: flex; - justify-content: center; border-radius: 3px; } + + .horizontal-list li:hover { background-color: #e9e9e9; } +.horizontal-list li > *:not(:last-child) { + margin-right: 10px; +} + .horizontal-list li > a { text-decoration: none; color: inherit; } +.horizontal-list li > .date { + font-weight: 200; + color: #686868; + min-width: 210px; +} + + form .row { padding: 5px 0; } diff --git a/backend/src/app/http/debug.clj b/backend/src/app/http/debug.clj index 79da866cd..56642f160 100644 --- a/backend/src/app/http/debug.clj +++ b/backend/src/app/http/debug.clj @@ -244,15 +244,19 @@ (yrs/response 404 "not found"))))) (def sql:error-reports - "select id, created_at from server_error_report order by created_at desc limit 100") + "SELECT id, created_at, + content->>'~:hint' AS hint + FROM server_error_report + ORDER BY created_at DESC + LIMIT 100") (defn error-list-handler [{:keys [pool]} request] (when-not (authorized? pool request) (ex/raise :type :authentication :code :only-admins-allowed)) - (let [items (db/exec! pool [sql:error-reports]) - items (map #(update % :created-at dt/format-instant :rfc1123) items)] + (let [items (->> (db/exec! pool [sql:error-reports]) + (map #(update % :created-at dt/format-instant :rfc1123)))] (yrs/response :status 200 :body (-> (io/resource "app/templates/error-list.tmpl") (tmpl/render {:items items}))