Skip to content

fix: Reset all clears the Kanban project binding#99

Merged
paolino merged 2 commits intomainfrom
fix/reset-kanban-project
Apr 22, 2026
Merged

fix: Reset all clears the Kanban project binding#99
paolino merged 2 commits intomainfrom
fix/reset-kanban-project

Conversation

@paolino
Copy link
Copy Markdown
Collaborator

@paolino paolino commented Apr 22, 2026

Summary

  • `clearAll` now also removes `gh-dashboard-kanban-project` and `gh-dashboard-agent-server` from localStorage, and `ResetAll` resets the corresponding state fields. Previously, Reset All left the project binding in place, so pasting a new token landed on an empty Kanban with no way to change it.
  • Settings shows the current Kanban project (by title) with a Change project button that clears the binding and re-fetches the project list — no DevTools needed.
  • `Initialize` / `SubmitToken` / `SwitchPage` auto-fetch the project list when no project is selected, so the setup picker appears without a manual refresh.

Test plan

  • With a project selected, open Settings — project title is shown.
  • Click Change project — picker appears, items stop rendering, localStorage key `gh-dashboard-kanban-project` is removed.
  • Reset all → re-enter token → Kanban setup picker appears with the project list populated.
  • Paste a token whose account has no project yet — picker shows "No projects found" plus the Create Kanban project button.

paolino added 2 commits April 22, 2026 10:16
- clearAll also removes gh-dashboard-kanban-project and
  gh-dashboard-agent-server (previously left behind, so
  Reset all followed by a new token landed on an empty
  Kanban with no way to change the project).
- ResetAll handler resets kanbanProject, agentServer and
  related state fields.
- Settings shows the bound project's title with a
  "Change project" button that clears the binding and
  reloads the project list.
- Initialize/SubmitToken/SwitchPage auto-fetch the
  project list when no project is selected, so the
  setup picker populates without a manual refresh.
- Project picker: explicit Check/Use-this/Not-compatible
  buttons, per-row status line (Not checked / Checking /
  Compatible / Needs Backlog-WIP-Done), numbered setup
  instructions, visible refresh, clear Create divider.
- Per-project checking state (projectsChecking set) so
  clicks show a 'Checking...' affordance.
- Token input: autocomplete=off and data-1p-ignore /
  data-lpignore / data-bwignore / data-form-type=other
  attributes so password managers skip the field.
@paolino paolino merged commit 730035b into main Apr 22, 2026
1 check passed
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.

1 participant