Skip to content

added the error type#2

Merged
ngm merged 1 commit into
masterfrom
bug-290-add-error-type
Aug 17, 2018
Merged

added the error type#2
ngm merged 1 commit into
masterfrom
bug-290-add-error-type

Conversation

@NikhitaPaturu

Copy link
Copy Markdown
Contributor

added the error type to error pages

@ngm
ngm merged commit a06c537 into master Aug 17, 2018
@ngm
ngm deleted the bug-290-add-error-type branch May 12, 2020 10:37
edwh added a commit that referenced this pull request Apr 24, 2026
Import notifications.js into the global bundle so the AJAX click
handler is registered. Without it the btn-marked link fell through
to a full page navigation that appeared to do nothing.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
edwh added a commit that referenced this pull request Jul 22, 2026
Four issues from the preview, all confirmed against develop.

1. Dead session shows a dashboard error instead of redirecting to login.
   The console evidence (GET /api/v2/users/me/events 401, "/" redirecting to
   /dashboard) is a token present in localStorage - loggedIn (=!!token) true,
   so the guard admits it - while the session behind it is invalid, common on
   a preview whose DB was reset so the token maps to a deleted user. BaseAPI
   only clears auth on a /session *401*; a 500, or a /session that returns a
   null user for a bad token, left the token in place. The cold-boot session
   plugin now clears the token on ANY failed resolve OR a null-user response,
   so the whole app - guard, navbar, the "/" redirect - consistently treats it
   as a guest and routes to /login. Two tests pin this.

2. Logged-out Sign in / Join buttons. develop writes plain anchors with inline
   styles the .btn classes were fighting: square corners (we rendered a pill
   radius), a 10px gap between them (they were touching), Sign in white with a
   2px black border, Join solid black. All re-asserted to match, sentence case
   per develop's text-transform: initial.

3. Language bar was not full width - AppFooter wrapped it in Bootstrap's
   .container, capping it to the content max-width. Removed; the bar is now
   width:100% with develop's top border, matching _languages.scss.

4. Language bar sat mid-page on short pages instead of pinned to the bottom.
   develop sets <body class="fixed-layout"> in BOTH header.blade.php (app
   pages) and header_plain.blade.php (guest), and .fixed-layout .language-bar
   is position:fixed;bottom:0;z-index:10 - i.e. pinned on every page, with the
   body padded 65px so it never covers content. An earlier fix scoped this to
   guest pages only; generalised it to every page as develop does.

The dashboard error box (#2 of the reported set) is left as-is: once the dead
session redirects to /login it no longer appears in that flow, and develop
server-renders the dashboard so there is no SPA error box to match against.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011Ye3otsxm9RiHHDKcC3TJA
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