HELD: Staff map: boot SeatLayerView with a manage grant - #21
Draft
pietechsolution wants to merge 2 commits into
Draft
pietechsolution wants to merge 2 commits into
pietechsolution wants to merge 2 commits into
Conversation
SeatLayerConfiguration gains manageAccessToken and manageAccessTokenProvider. The view then shows the organizer's live board: staff pick seats, held and sold seats included, and the selection arrives on onSelectionChanged with no hold placed. onStaffConnectionChanged reports the live connection; focusSection, setUnavailableObjects and setCategoryPrices drive the board. The handshake requires staff-map-v1 and fails with SeatLayerError.incompatible without it. A grant that is not mse_, or one mixed with buyer access, throws an ArgumentError; the picker surface is refused.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
HELD. Do not merge or publish. This waits for a SeatLayer renderer release that advertises
staff-map-v1. That release is pinned in a separate change; until then the load fails cleanly withSeatLayerError.incompatible.Staff map
A new mode of
SeatLayerViewfor apps used by an organizer's own staff, such as a box office. Boot the view with an event-scoped manage grant (mse_…) instead of buyer access, and it shows the organizer's live board. Staff pick seats (held and sold seats included), the selection arrives ononSelectionChanged, and no hold is placed.API
New types:
ManageAccessToken,ManageAccessTokenProvider,ManageAccessRequestContext,ManageAccessRefreshReason(initial,refresh),StaffConnectionState,StaffCategoryPrice,seatLayerStaffMapCapability.Rules
event:viewcapability andseatLayerMobileOrigin(https://cdn.seatlayer.io) as its allowed origin.mse_…, or a grant combined withpublicKey,buyerAccessTokenorbuyerAccessTokenProvider, throws anArgumentErrorfrom the configuration.staff-map-v1; without it the load fails withSeatLayerError.incompatible.SeatLayerPickerrefuses a manage grant withbad_payload.access.token.requestround trip. A provider failure, or anything that is not anmse_grant, answersaccess.token.unavailableand never puts a token in an event.semanticallyEqualscovers the new fields, so a rebuilt configuration does not reload the map.Changes
lib/src/staff_map.dart(new) and its export fromlib/seatlayer.dart.lib/src/seat_layer_configuration.dart: fields, validation, init payload, equality.lib/src/seat_layer_controller.dart: capability gate, grant renewal,staff.connection, three commands.test/staff_map_test.dart(new, 12 tests).Checks
flutter analyze: no issues.flutter test test/staff_map_test.dart test/bridge_profile_test.dart test/ready_timing_test.dart test/file_size_test.dart test/payloads_test.dart test/bridge_client_test.dart test/negotiation_test.dart test/seat_layer_view_reload_test.dart: 73/73.flutter test test/staff_map_test.dart test/file_size_test.dart test/package_version_test.dart: 14/14, run after the docs change.