r35 FixTeams() code clean up, now runs in linear time
r34 FixTeams() is now restricted to invalid pets only

r33 added experimental fix for 5.3 petID's. Not guaranteed to restore all teams perfectly but it should be a good start.
r33 put /run PetBattleTeams.modules.TeamManager:FixTeams() into your chat bar and hit enter.

r32 each pet in a team is tagged with its speciesID
r32 if a petID is no longer valid then from the options menu you can select to reconstruct teams. For each invalid petID, PBT will find the highest level pet of the same species and add it to that team.
r32 removed Import Teams functionality as its no long relevant
r32 added Reconstruct teams option in the same location as Import teams
r32 note: this change is backwards compatible with previous versions if you need to downgrade
r32 note: this change will not restore previously lost pets

r31 left clicking the menu button now hides PBT's main frame and attaches the menu button to the pet journal near the close button in the upper right.
left clicking the menu button while its attached to the petjournal frame will reshow PBT's main frame.

3.0.4 fixed being unable to scroll to the last team when a user had 14 teams (and presumably other quantities as well)
3.0.4 changed pet bandage button to use itemID instead of enUS text
3.0.4 fixed some ability names being blank in the pet tooltip
3.0.4 fixed teams not switching

3.0.3 Changed vertical scrolling to only move one at a time
3.0.3 fixed /pbt reset teams

3.0.2 Added additional checks to make sure a petframe is set before trying to show a tooltip
3.0.2 Added enabled flag to freshly created teams
3.0.2 Added IsTeamLocked check to IsTeamEnabled (shouldnt have to ask twice to find out if its enabled)

3.0.1 team names are now colored yellow when locked to match the unit frame border
3.0.1 scrolling now correctly keeps disabled pets disabled
3.0.1 trying to swap from a locked team now automatically copies instead
3.0.1 locked teams no longer disable during a team move

r16 - moved team names up 2 px to prevent names being cut off by unit frames
r16 - newly created teams are now inserted directly after the team they were copied from
r16 - moved add team button over 3px to line up with unit frames
r16 - Increased hieght of team frame by 2px to remove overlap with unit frames

r14 - when a new team is created, that team is now selected
r14 - mainFrame no longer displays resizer and is no longer moveable after reloading (when attached)
r14 - fixed empty|invalid pets not showing up as locked when the team is locked

Added support for 5.1
Add Importer for 2.4.11 teams
Added team names to main scroll frame
Made Moving teams more user friendly, hit escape to cancel move, or wait 15seconds
Rewrote scroll frame for the Nth time
Fixed reported bugs
Fixed lib dependencies issue
Added Todo.txt , see whats left to be done and suggest more.

r3 fixed frame issue with first initialization, added Old pbt settings to toc file they are not lost and allows me to write a migration function

r2 Alpha - Complete rewrite of PBT. Expect features to be missing, or broken.

I see what your saying and the answer is a bit convoluted and maybe ill be able to stream line this in the future but heres the workaround.

Uncheck automatically saveCreate a new blank team make that team the selected team (clearing your current team)Check automatically saveConfigure your team the way you want itUncheck automatically save

I think the easiest way to solve the issue is to simply add a 'delete {petname}" option to the right click menu for the team frame. Then you can just create a team normally, right click delete the pet and then right click lock the team and that should give you what your after. And maybe a setting which says instead of clearing the slot ignore it for empty pets.

I am also curious if you have plans to minimalize the UI a bit. Currently, I have tons of teams and it is not that important for me to see the team pets (in the nav menu on the right, the mod), rather, I browse by the label I give them. Would be nice to be able to just see the labels and hide the three pet icons in the interest of space efficiency.

It wasn't designed for that but I don't see why the option cant be added in the near future. Its a bit more complicated than just hiding the pet frames at the moment.

Thanks SO much for a quick reply. I thorougly enjoy your mods; good stuff. I actually thought of your work around but in hopes of a better solution, I posted here.

A delete pet button/menu option would be perfect.

I am also curious if you have plans to minimalize the UI a bit. Currently, I have tons of teams and it is not that important for me to see the team pets (in the nav menu on the right, the mod), rather, I browse by the label I give them. Would be nice to be able to just see the labels and hide the three pet icons in the interest of space efficiency.

Not sure this is easy or possible, but a way to export Team names, Team Companions, and Selected attacks for each would be really awesome ;) Then I would be able to post them in a forum for example without manually going through each and every team and typing them all out manually.

Also, in addition to dismissing pet after switching team, maybe an option to just NOT summon a pet and block that totally so that current pet is not replaced then the new pet is not dismissed leaving us petless.

Just some thoughts, loving it as always and thanks for the compact (no roster) view!

EDIT: I turned off the roster, have one team showing (shrunk the size), turned the roster back on and it appears now I am seeing the Current Team + 1 other team of the roster, however the teams all appear to be sorted backwords, Ie. what was at the top is at the bottom and scrolling up ends up with a blank spot.

EDIT2: The scroll arrows are not working after swapping back to showing the roster while only big enough to show 1 team and active team. It appears that it requires at least 2 "roster" teams showing to scroll.

Also, in addition to dismissing pet after switching team, maybe an option to just NOT summon a pet and block that totally so that current pet is not replaced then the new pet is not dismissed leaving us petless.

Afaik you can't prevent it. I'll look again. Yep happens as a result of calling setpetladout. Nothing I can do about it beyond what I'm already doing

Not sure this is easy or possible, but a way to export Team names, Team Companions, and Selected attacks for each would be really awesome ;) Then I would be able to post them in a forum for example without manually going through each and every team and typing them all out manually.

Sure.

Ill look into the bugs. I probably just need to reset the scroll bar when the roster is re shown.

EDIT: I turned off the roster, have one team showing (shrunk the size), turned the roster back on and it appears now I am seeing the Current Team + 1 other team of the roster, however the teams all appear to be sorted backwords, Ie. what was at the top is at the bottom and scrolling up ends up with a blank spot.

Couldn't repro, hope the change fixed it.

EDIT2: The scroll arrows are not working after swapping back to showing the roster while only big enough to show 1 team and active team. It appears that it requires at least 2 "roster" teams showing to scroll.