Skip to content

Remove accidental login/registration screen and auth code - #4

Open
hhhthiti wants to merge 1 commit into
codex/update-zles002-page-for-material-detailsfrom
codex/remove-login-and-registration-screen
Open

Remove accidental login/registration screen and auth code#4
hhhthiti wants to merge 1 commit into
codex/update-zles002-page-for-material-detailsfrom
codex/remove-login-and-registration-screen

Conversation

@hhhthiti

Copy link
Copy Markdown
Owner

Motivation

  • The project had an unintended login/registration screen and associated user/session logic which blocks direct access to the app UI and added unused complexity.

Description

  • Removed the auth UI (#auth-screen) and user/logout UI from index.html so the app opens directly to #app-shell.
  • Eliminated admin panel and role-protection markup (removed #admin-panel, promote-user, and role-protected usage) and simplified the MB51 tab to no longer depend on roles in index.html.
  • Stripped authentication/session management from app.js by removing USERS_KEY, SESSION_KEY, user loading/saving, session handling, setupAuth/onAuthenticated/setupAdminPanel/applyRoleVisibility and related variables, and replaced startup with a simple initApp() that binds events and renders the app.
  • Cleaned up auth-specific CSS in styles.css (removed .auth-* and .user-bar rules) while keeping the app styles intact.
  • Files changed: index.html, app.js, styles.css.

Testing

  • Ran node --check app.js to verify JavaScript syntax, and it succeeded.

Codex Task

@vercel

vercel Bot commented Apr 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
expedicao Ready Ready Preview, Comment Apr 22, 2026 9:05pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant