Skip to content

Board blank page if no team id is present in localstorage#165

Merged
Rajat-Dabade merged 2 commits into
mainfrom
board-redirect-issue
Feb 10, 2026
Merged

Board blank page if no team id is present in localstorage#165
Rajat-Dabade merged 2 commits into
mainfrom
board-redirect-issue

Conversation

@Rajat-Dabade

Copy link
Copy Markdown
Contributor

Summary

Found an issue where if no team Id is present in the localstorage, the board on refresh on the page with URL boards/team goes blank. This PR solves this issue. It fetches the team ID from the API call, looks for the first team and redirects it to that team.

Ticket Link

https://mattermost.atlassian.net/browse/MM-67431

@Rajat-Dabade Rajat-Dabade self-assigned this Feb 3, 2026
@Rajat-Dabade Rajat-Dabade added 2: Dev Review Requires review by a core committer 3: QA Review Requires review by a QA tester labels Feb 3, 2026
Comment thread webapp/src/router.tsx Outdated
return null
}

if (!teamID && !firstTeam && !lastTeamID && !teamsFetched) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: We're checking 3 of these conditions twice in a row. Could simplify this.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@coderabbitai

coderabbitai Bot commented Feb 5, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • 🔍 Trigger a full review
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch board-redirect-issue

Comment @coderabbitai help to get the list of available commands and usage tips.

@yasserfaraazkhan yasserfaraazkhan added the Setup Cloud Test Server Setup a test server using Mattermost Cloud label Feb 9, 2026
@mm-cloud-bot

Copy link
Copy Markdown

Plugin Spinwick PR #165 🎉

Test server created!

Access here: https://boards-pr-165-tzz5w.test.mattermost.cloud

Plugin Version Artifact
boards 430cc37 Download

⚠️ Plugin Installation Issue

The test server was created successfully, but there was an issue installing or enabling the plugin automatically:

  • Install Error: failed to install plugin via mmctl: failed with status code 502

You can manually install the plugin:

  1. Download the plugin artifact from the link above
  2. Upload it to your test server at x4u7rkh4b3ys8ex4xhbhurss9e
  3. Enable it in System Console > Plugins

Future commits will still attempt to automatically update the plugin.

Installation ID: x4u7rkh4b3ys8ex4xhbhurss9e
Logs: Click here

Credentials: Posted securely in this Mattermost channel - Look for PR #165

@Rajat-Dabade Rajat-Dabade merged commit b69e037 into main Feb 10, 2026
10 checks passed
@mm-cloud-bot

Copy link
Copy Markdown

Test server destroyed

Rajat-Dabade added a commit that referenced this pull request Feb 16, 2026
* Checking if the last board id is present from the api

* nit
Rajat-Dabade added a commit that referenced this pull request Apr 16, 2026
* Fixed broken tests

* Remove the standalone test function

* Fix most of the integration tests

* Fix all authentication related tests

* Fix integrations test for boards

* Validation to modify comments (#152)

* Upgraded board version to v9.2.2 (#156)

* Updated mattermost/server/public/model version to v0.1.21 in boards (#158)

* Fix: Viewer Role can Accessing Individual Cards if part of board (#162)

* Fix: Filter not working correctly for text fields in Boards (#160)

* workflows: adjust token permissions (#168)

https://github.com/mattermost/mattermost-plugin-boards/security/code-scanning/7
https://github.com/mattermost/mattermost-plugin-boards/security/code-scanning/8

* Board blank page if no team id is present in localstorage (#165)

* Checking if the last board id is present from the api

* nit

* Fixed critical bugs in Mattermost Boards plugin (#169)

* Fixed critical bugs in Mattermost Boards plugin

* Linter fixes

* Linter

* Minor

* Use webapp exported markdown to card and board descriptions (#170)

* Use webapp exported markdown to card and board descriptions

* review comments:

* Fix integrations test for boards

* Fix the test for server/boards/configuration_test.go

* TestGetMembersForBoard fixed

* TestPermissionsLeaveBoardAsMember fixed

* TestPermissionsListTeams fixed

* TestPermissionsGetTeam fixed

* Removed TestPermissionsRegenerateSignupToken as it is not required

* TestPermissionsGetTeamUsers fixed

* TestPermissionsTeamArchiveExport fixed

* Fux TestPermissionsGetMe test

* TestPermissionsGetMyMemberships fixed

* TestPermissionsGetUser fixed

* TestPermissionsUpdateUserConfig fixed

* TestPermissionsCreateBoardsAndBlocks fixed

* TestPermissionsJoinBoardAsMember fixed

* TestPermissionsCreateCategory fixed

* TestPermissionsGetFile fixed

* TestPermissionsCreateSubscription fixed

* TestPermissionsGetSubscriptions fixed

* TestPermissionsOnboard fixed

* TestPermissionsBoardArchiveExport

* TestPermissionsBoardArchiveImport fixed

* TestPermissionsChannels TestPermissionsChannel fixed

* TestPermissionsGetStatistics fixed

* TestSharing fixed

* TestSidebar and TestHideUnhideBoard fixed

* Fixed remaining tests

* server test to ci

* Linter fixes

* Fix some test and added requireUserID function to check user id is present or not

* coderabbit review comments fixed

* Fix more tests

* linter issue:

* Fixed file related tests

* remove the dead api call and added user check to attachSession middleware

* linter fixes

* Remove the mysql and sqlite check from test

* fixed some tests

* review comment and code rabbit suggestions

* linter fixes

* separated webapp-test and server-test in ci

* ci persmission fix and nil pointer check

* test fixes

* ci fixes

* ci fixes

* fix tests

* disabled webapp-test ci for now

* review comments

* sanitised file name that contain path traversal for write achieve files

* linter fixes

* panic issue fixed

* linter fixes

* test fixes

* Fixed Webapp test for boards (#182)

* Fixed Webapp test for boards

* Added ci rule to run webapp test for boards

---------

Co-authored-by: Nuno Simões <nasimoes@aiven.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2: Dev Review Requires review by a core committer 3: QA Review Requires review by a QA tester Setup Cloud Test Server Setup a test server using Mattermost Cloud

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants